mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-29 08:41:11 +13:00
#1051: test only root frames
This commit is contained in:
parent
6ef4821b73
commit
58c546ae08
1 changed files with 10 additions and 6 deletions
|
@ -141,16 +141,20 @@ vAPI.tabs.registerListeners = function() {
|
|||
};
|
||||
|
||||
var onBeforeNavigate = function(details) {
|
||||
//console.debug('onBeforeNavigate: popup candidate', details.tabId);
|
||||
popupCandidateTest(details);
|
||||
if ( details.frameId === 0 ) {
|
||||
//console.debug('onBeforeNavigate: popup candidate', details.tabId);
|
||||
popupCandidateTest(details);
|
||||
}
|
||||
};
|
||||
|
||||
var onCommitted = function(details) {
|
||||
//console.debug('onCommitted: popup candidate', details.tabId);
|
||||
if ( popupCandidateTest(details) === true ) {
|
||||
return;
|
||||
if ( details.frameId === 0 ) {
|
||||
//console.debug('onCommitted: popup candidate', details.tabId);
|
||||
if ( popupCandidateTest(details) === true ) {
|
||||
return;
|
||||
}
|
||||
popupCandidateDestroy(details);
|
||||
}
|
||||
popupCandidateDestroy(details);
|
||||
onNavigationClient(details);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue