code review re. #1735

This commit is contained in:
gorhill 2016-09-13 11:56:13 -04:00
parent 08dd67b854
commit 0870aea2eb

View file

@ -392,15 +392,14 @@ housekeep itself.
};
// https://github.com/gorhill/uBlock/issues/1735
// Always push before committing, to allow popup detector code to do its
// job.
// Filter for popups if actually committing.
var commit = function(tabId, url) {
var entry = tabContexts[tabId];
if ( entry === undefined ) {
entry = push(tabId, url);
} else {
entry.push(url);
entry.commit(url);
popupCandidateTest(tabId);
}
return entry;
};