mirror of https://github.com/gorhill/uBlock.git
#1051: test only root frames
This commit is contained in:
parent
849206ebe7
commit
04a5786c41
|
@ -141,16 +141,20 @@ vAPI.tabs.registerListeners = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
var onBeforeNavigate = function(details) {
|
var onBeforeNavigate = function(details) {
|
||||||
//console.debug('onBeforeNavigate: popup candidate', details.tabId);
|
if ( details.frameId === 0 ) {
|
||||||
popupCandidateTest(details);
|
//console.debug('onBeforeNavigate: popup candidate', details.tabId);
|
||||||
|
popupCandidateTest(details);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var onCommitted = function(details) {
|
var onCommitted = function(details) {
|
||||||
//console.debug('onCommitted: popup candidate', details.tabId);
|
if ( details.frameId === 0 ) {
|
||||||
if ( popupCandidateTest(details) === true ) {
|
//console.debug('onCommitted: popup candidate', details.tabId);
|
||||||
return;
|
if ( popupCandidateTest(details) === true ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
popupCandidateDestroy(details);
|
||||||
}
|
}
|
||||||
popupCandidateDestroy(details);
|
|
||||||
onNavigationClient(details);
|
onNavigationClient(details);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue