From 0a89e5827ade705b254addd441ca3c9d5e708915 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 11 Jun 2015 15:11:01 -0400 Subject: [PATCH] minor code review: just in case --- src/js/traffic.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/traffic.js b/src/js/traffic.js index f5db33fb1..164eeefc8 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -325,6 +325,11 @@ var onHeadersReceived = function(details) { return onRootFrameHeadersReceived(details); } + // Just in case... + if ( details.type !== 'sub_frame' ) { + return; + } + // If we reach this point, we are dealing with a sub_frame // Lookup the page store associated with this tab id.