Open Bug 582975 Opened 15 years ago Updated 2 years ago

Script load from local disk appears to race with about:blank load into iframe

Categories

(Core :: DOM: Navigation, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

()

Details

Steps to reproduce: 1) Load http://hoppipolla.co.uk/tests/document_write/001.html 2) Save http://hoppipolla.co.uk/tests/document_write/001.html and http://hoppipolla.co.uk/tests/document_write/001.js locally 3) Load the test locally. Actual results: From remote: 0,52,1,49,2,51,3,49,4,50 From local: 0,51,1,55,2,51,3,78,4,51,4,1280417404464 FAIL Expected results: Expected the local case look like the remote case. Additional info: My guess is that when the script is local, it get loaded as one event loop task and that races with the initial about:blank for the iframe.
The author of the test case says the weird behavior also happens from local Apache.
Yes, this is fundamentally a racy testcase as long as there's an about:blank load. Its behavior will depend on the exact timing of the script load. As you note, it will fail for local http loads, as well as remote ones with low enough latency, I bet. What's the issue?
(In reply to comment #2) > What's the issue? It's weird. Maybe this should just be treated as a duplicate of bug 543435.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.