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) {
|
onRefreshAttempted(aWebProgress, aURI, aDelay, aSameURI) {
|
||||||
if (this.mProgressListener) {
|
if (this.mProgressListener) {
|
||||||
this.mProgressListener.onRefreshAttempted(
|
return this.mProgressListener.onRefreshAttempted(
|
||||||
aWebProgress,
|
aWebProgress,
|
||||||
aURI,
|
aURI,
|
||||||
aDelay,
|
aDelay,
|
||||||
aSameURI
|
aSameURI
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
QueryInterface: ChromeUtils.generateQI([
|
QueryInterface: ChromeUtils.generateQI([
|
||||||
"nsIWebProgressListener",
|
"nsIWebProgressListener",
|
||||||
|
|
|
@ -1943,15 +1943,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
_callTabListeners(aMethod, aArgs) {
|
_callTabListeners(aMethod, aArgs) {
|
||||||
|
let rv = true;
|
||||||
for (let listener of this.mTabsProgressListeners.values()) {
|
for (let listener of this.mTabsProgressListeners.values()) {
|
||||||
if (aMethod in listener) {
|
if (aMethod in listener) {
|
||||||
try {
|
try {
|
||||||
listener[aMethod](...aArgs);
|
if (!listener[aMethod](...aArgs)) {
|
||||||
|
rv = false;
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Cu.reportError(e);
|
Cu.reportError(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
disconnectedCallback() {
|
disconnectedCallback() {
|
||||||
|
@ -2002,7 +2006,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
onRefreshAttempted(...args) {
|
onRefreshAttempted(...args) {
|
||||||
this._callTabListeners("onRefreshAttempted", args);
|
return this._callTabListeners("onRefreshAttempted", args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TabProgressListener.prototype.QueryInterface = ChromeUtils.generateQI([
|
TabProgressListener.prototype.QueryInterface = ChromeUtils.generateQI([
|
||||||
|
|
Загрузка…
Ссылка в новой задаче