Bug 1077652 - Fix browser_bug400731.js to ignore loads from browsers without tabs rs=gijs

This commit is contained in:
Tim Taubert 2014-11-20 22:03:44 +01:00
parent 6d7adb7511
commit 4a45196ad0

View File

@ -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");