Bug 1213975 - WebExtension tab update events about location url change should contain status info. r=billm

This commit is contained in:
Luca Greco 2015-10-26 04:54:00 +01:00
parent 00a30809b9
commit 7edbdb0cf6

View File

@ -202,7 +202,10 @@ extensions.registerAPI((extension, context) => {
let gBrowser = browser.ownerDocument.defaultView.gBrowser;
let tab = gBrowser.getTabForBrowser(browser);
let tabId = TabManager.getId(tab);
let [needed, changeInfo] = sanitize(extension, {url: locationURI.spec});
let [needed, changeInfo] = sanitize(extension, {
status: webProgress.isLoadingDocument ? "loading" : "complete",
url: locationURI.spec
});
if (needed) {
fire(tabId, changeInfo, TabManager.convert(extension, tab));
}