mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1077652 - Fix browser_bug400731.js to ignore loads from browsers without tabs rs=gijs
This commit is contained in:
parent
6d7adb7511
commit
4a45196ad0
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user