зеркало из https://github.com/mozilla/gecko-dev.git
Bug 781689 - Fix broken JS code for about:neterror checks. r=mfinkle
This commit is contained in:
Родитель
51af209e69
Коммит
9258a4c9fe
|
@ -4213,10 +4213,6 @@ var ErrorPageEventHandler = {
|
|||
} else if (target == errorDoc.getElementById("getMeOutOfHereButton")) {
|
||||
errorDoc.location = "about:home";
|
||||
}
|
||||
} else if (/^about:neterror\?e=netOffline/.test(ownerDoc.documentURI)) {
|
||||
let tryAgain = errorDoc.getElementById("errorTryAgain");
|
||||
if (target == tryAgain)
|
||||
Services.io.offline = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -384,7 +384,7 @@ let Content = {
|
|||
// http://hg.mozilla.org/mozilla-central/file/855e5cd3c884/browser/base/content/browser.js#l2672
|
||||
// http://hg.mozilla.org/mozilla-central/file/855e5cd3c884/browser/components/safebrowsing/content/globalstore.js
|
||||
}
|
||||
} else if (/^about:neterror\?e=netOffline/.test(ownerDoc.documentURI)) {
|
||||
} else if (/^about:neterror\?e=netOffline/.test(errorDoc.documentURI)) {
|
||||
let tryAgain = errorDoc.getElementById("errorTryAgain");
|
||||
if (target == tryAgain)
|
||||
sendSyncMessage("Browser:GoOnline", { });
|
||||
|
|
Загрузка…
Ссылка в новой задаче