Browse Source

#1051: test only root frames

pull/2/head
gorhill 10 years ago
parent
commit
58c546ae08
  1. 4
      platform/chromium/vapi-background.js

4
platform/chromium/vapi-background.js

@ -141,16 +141,20 @@ vAPI.tabs.registerListeners = function() {
}; };
var onBeforeNavigate = function(details) { var onBeforeNavigate = function(details) {
if ( details.frameId === 0 ) {
//console.debug('onBeforeNavigate: popup candidate', details.tabId); //console.debug('onBeforeNavigate: popup candidate', details.tabId);
popupCandidateTest(details); popupCandidateTest(details);
}
}; };
var onCommitted = function(details) { var onCommitted = function(details) {
if ( details.frameId === 0 ) {
//console.debug('onCommitted: popup candidate', details.tabId); //console.debug('onCommitted: popup candidate', details.tabId);
if ( popupCandidateTest(details) === true ) { if ( popupCandidateTest(details) === true ) {
return; return;
} }
popupCandidateDestroy(details); popupCandidateDestroy(details);
}
onNavigationClient(details); onNavigationClient(details);
}; };

Loading…
Cancel
Save