Bug 1667774 - Fix HTTP refresh for content tabs r=darktrojan
This commit is contained in:
Родитель
063fc5e8cf
Коммит
68092a81c4
|
@ -257,13 +257,14 @@ tabProgressListener.prototype = {
|
|||
},
|
||||
onRefreshAttempted(aWebProgress, aURI, aDelay, aSameURI) {
|
||||
if (this.mProgressListener) {
|
||||
this.mProgressListener.onRefreshAttempted(
|
||||
return this.mProgressListener.onRefreshAttempted(
|
||||
aWebProgress,
|
||||
aURI,
|
||||
aDelay,
|
||||
aSameURI
|
||||
);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
QueryInterface: ChromeUtils.generateQI([
|
||||
"nsIWebProgressListener",
|
||||
|
|
|
@ -1943,15 +1943,19 @@
|
|||
}
|
||||
|
||||
_callTabListeners(aMethod, aArgs) {
|
||||
let rv = true;
|
||||
for (let listener of this.mTabsProgressListeners.values()) {
|
||||
if (aMethod in listener) {
|
||||
try {
|
||||
listener[aMethod](...aArgs);
|
||||
if (!listener[aMethod](...aArgs)) {
|
||||
rv = false;
|
||||
}
|
||||
} catch (e) {
|
||||
Cu.reportError(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
|
@ -2002,7 +2006,7 @@
|
|||
}
|
||||
|
||||
onRefreshAttempted(...args) {
|
||||
this._callTabListeners("onRefreshAttempted", args);
|
||||
return this._callTabListeners("onRefreshAttempted", args);
|
||||
}
|
||||
}
|
||||
TabProgressListener.prototype.QueryInterface = ChromeUtils.generateQI([
|
||||
|
|
Загрузка…
Ссылка в новой задаче