зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1077652 - Fix browser_bug400731.js to ignore loads from browsers without tabs rs=gijs
This commit is contained in:
Родитель
9a01cdb256
Коммит
b30959a171
|
@ -20,7 +20,11 @@ function test() {
|
|||
content.location = "http://www.itisatrap.org/firefox/its-an-attack.html";
|
||||
}
|
||||
|
||||
function testMalware() {
|
||||
function testMalware(event) {
|
||||
if (event.target != gBrowser.selectedBrowser.contentDocument) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.removeEventListener("DOMContentLoaded", testMalware, true);
|
||||
|
||||
// Confirm that "Ignore this warning" is visible - bug 422410
|
||||
|
@ -35,7 +39,11 @@ function testMalware() {
|
|||
content.location = "http://www.itisatrap.org/firefox/its-a-trap.html";
|
||||
}
|
||||
|
||||
function testPhishing() {
|
||||
function testPhishing(event) {
|
||||
if (event.target != gBrowser.selectedBrowser.contentDocument) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.removeEventListener("DOMContentLoaded", testPhishing, true);
|
||||
|
||||
var el = content.document.getElementById("ignoreWarningButton");
|
||||
|
|
Загрузка…
Ссылка в новой задаче