mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1213975 - WebExtension tab update events about location url change should contain status info. r=billm
This commit is contained in:
parent
00a30809b9
commit
7edbdb0cf6
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user