mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Backout experimental changes to randomly failing sessionstore browser tests (uneffective)
This commit is contained in:
parent
39d97011a4
commit
36397bbd2a
@ -92,10 +92,9 @@ function test() {
|
||||
let newWin = openDialog(location, "_blank", "chrome,all,dialog=no", testURL_A);
|
||||
newWin.addEventListener("load", function(aEvent) {
|
||||
newWin.removeEventListener("load", arguments.callee, false);
|
||||
info("New window has been opened");
|
||||
newWin.gBrowser.addEventListener("pageshow", function(aEvent) {
|
||||
newWin.gBrowser.removeEventListener("pageshow", arguments.callee, true);
|
||||
info("Content has been loaded");
|
||||
newWin.gBrowser.addEventListener("load", function(aEvent) {
|
||||
newWin.gBrowser.removeEventListener("load", arguments.callee, true);
|
||||
info("Window has been loaded");
|
||||
executeSoon(function() {
|
||||
newWin.gBrowser.addTab();
|
||||
executeSoon(function() {
|
||||
@ -127,8 +126,8 @@ function test() {
|
||||
let pbWin = openDialog(location, "_blank", "chrome,all,dialog=no", testURL_B);
|
||||
pbWin.addEventListener("load", function(aEvent) {
|
||||
pbWin.removeEventListener("load", arguments.callee, false);
|
||||
pbWin.gBrowser.addEventListener("pageshow", function(aEvent) {
|
||||
pbWin.gBrowser.removeEventListener("pageshow", arguments.callee, true);
|
||||
pbWin.gBrowser.addEventListener("load", function(aEvent) {
|
||||
pbWin.gBrowser.removeEventListener("load", arguments.callee, true);
|
||||
|
||||
executeSoon(function() {
|
||||
// Add another tab, though it's not strictly needed
|
||||
|
@ -56,7 +56,6 @@ function test() {
|
||||
|
||||
frameCount = 0;
|
||||
let tab2 = gBrowser.duplicateTab(tab);
|
||||
executeSoon(function() {
|
||||
tab2.linkedBrowser.addEventListener("load", function(aEvent) {
|
||||
// wait for all frames to load (and reload!) completely
|
||||
if (frameCount++ < 2)
|
||||
@ -87,6 +86,5 @@ function test() {
|
||||
finish();
|
||||
});
|
||||
}, true);
|
||||
});
|
||||
}, true);
|
||||
}
|
||||
|
@ -47,7 +47,6 @@ function test() {
|
||||
this.removeEventListener("load", arguments.callee, true);
|
||||
executeSoon(function() {
|
||||
let tab2 = gBrowser.duplicateTab(tab);
|
||||
executeSoon(function() {
|
||||
tab2.linkedBrowser.addEventListener("461743", function(aEvent) {
|
||||
tab2.linkedBrowser.removeEventListener("461743", arguments.callee, true);
|
||||
is(aEvent.data, "done", "XSS injection was attempted");
|
||||
@ -66,6 +65,5 @@ function test() {
|
||||
});
|
||||
}, true, true);
|
||||
});
|
||||
});
|
||||
}, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user