mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1213975 - filter out from WebExtension tabs.onUpdated events any location changes related to iframes. r=billm
This commit is contained in:
parent
715802dee6
commit
a0b14821d5
@ -199,6 +199,9 @@ extensions.registerAPI((extension, context) => {
|
||||
},
|
||||
|
||||
onLocationChange(browser, webProgress, request, locationURI, flags) {
|
||||
if (!webProgress.isTopLevel) {
|
||||
return;
|
||||
}
|
||||
let gBrowser = browser.ownerDocument.defaultView.gBrowser;
|
||||
let tab = gBrowser.getTabForBrowser(browser);
|
||||
let tabId = TabManager.getId(tab);
|
||||
|
Loading…
Reference in New Issue
Block a user