Bug 1213975 - filter out from WebExtension tabs.onUpdated events any location changes related to iframes. r=billm

This commit is contained in:
Luca Greco 2015-10-26 04:55:00 +01:00
parent 715802dee6
commit a0b14821d5

View File

@ -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);