Closed
Bug 535740
Opened 15 years ago
Closed 15 years ago
tp4 shouldn't call document.write() from a timeout
Categories
(Release Engineering :: General, defect, P3)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hsivonen, Assigned: anodelman)
References
Details
(Whiteboard: [talos])
Attachments
(2 files)
961 bytes,
patch
|
Details | Diff | Splinter Review | |
829 bytes,
patch
|
anodelman
:
review+
anodelman
:
checked-in+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1) Push to try with the attached HTML5-enabling patch applied.
Expected results:
Expected the tp4 run to complete.
Actual results:
The tp4 run hangs at nytimes.
Additional info:
The nytimes test calls document.write() from setTimeout(). With the old parser, if the timeout fires before the parse is complete, the call succeeds in the sense that it writes to the stream at an indeterminate location.
According to HTML5, a call to document.write() from anything but a synchronously executed script element implies a call to document.open(). That is, a call to document.write() from a timeout first blows away the previous document and then writes to the newly opened document. Since document.close() is not called on the newly opened document, its onload never fires and the test suite hangs when document.write() complies with HTML5 (as it does when html5.enable is set to true).
The offending lines of code try to load a non-existent script file by document.writing a script tag from a callback that is passed to setTimeout(). Since the code tries to load a non-existent script, it seems safe (for historical performance data) to remove the problematic callback.
Reporter | ||
Comment 1•15 years ago
|
||
Attachment #418339 -
Flags: review?(anodelman)
Assignee | ||
Comment 2•15 years ago
|
||
Comment on attachment 418339 [details] [diff] [review]
[checked in]Fix: don't call document.write() from setTimeout()
Need a downtime for this change to be applied to the tp4 test.
Attachment #418339 -
Flags: review?(anodelman) → review+
Comment 3•15 years ago
|
||
Alice: are we still waiting on a downtime?
Priority: -- → P3
Whiteboard: [talos]
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → anodelman
Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 418339 [details] [diff] [review]
[checked in]Fix: don't call document.write() from setTimeout()
Changed pageset used by production talos.
Will still need to update the few other copies of tp4 that we have kicking around.
Attachment #418339 -
Attachment description: Fix: don't call document.write() from setTimeout() → [checked in]Fix: don't call document.write() from setTimeout()
Attachment #418339 -
Flags: checked-in+
Reporter | ||
Comment 5•15 years ago
|
||
tp4 seems to run to completion on tryserver now. Thanks!
Assignee | ||
Comment 6•15 years ago
|
||
Copy of tp4 on fs (Users/alice) updated to latest.
All done here.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•