Open
Bug 668209
Opened 15 years ago
Updated 1 year ago
Make browser_459906_sample.html non-flaky
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
NEW
People
(Reporter: hsivonen, Unassigned)
References
()
Details
browser_459906_sample.html has this bit:
// inject a cross domain file ...
var documentInjected = false;
document.getElementsByTagName("iframe")[0].onload =
function() { documentInjected = true; };
frames[0].location = "browser_459906_empty.html";
// ... and ensure that it has time to load
for (var c = 0; !documentInjected && c < 20; c++) {
var r = new XMLHttpRequest();
r.open("GET", location.href, false);
r.overrideMimeType("text/plain");
r.send(null);
}
That spinning up a nested event loop up to 20 times to make the load event fire from a nested event loop is not cool.
I'd expect a test like this to be structured to wait for the load event without any event loop tricks and to continue from there.
Updated•4 years ago
|
Severity: normal → S3
Updated•1 year ago
|
No longer blocks: sync-about-blank
See Also: → sync-about-blank
Comment 1•1 year ago
|
||
I unblocked bug 543435 on this, as the test doesn't fail flakily for me.
Updated•1 year ago
|
No longer blocks: CVE-2008-5019
Depends on: CVE-2008-5019
You need to log in
before you can comment on or make changes to this bug.
Description
•