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
Родитель 9a01cdb256
Коммит b30959a171
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

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