| Summary: | Crash when destroying a Document that has a throttled timer still running | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | barraclough, benjamin, commit-queue, ggaren, kling, koivisto | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | 138292 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2014-11-20 00:14:47 PST
Created attachment 241929 [details]
Patch
Comment on attachment 241929 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241929&action=review > LayoutTests/fast/dom/resources/frame-with-throttled-timer.html:3 > +<iframe id="testFrame"></iframe> This extra iframe is needed to work around: https://bugs.webkit.org/show_bug.cgi?id=138915 Comment on attachment 241929 [details]
Patch
rs=me
Comment on attachment 241929 [details] Patch Clearing flags on attachment: 241929 Committed r176402: <http://trac.webkit.org/changeset/176402> All reviewed patches have been landed. Closing bug. Comment on attachment 241929 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241929&action=review > LayoutTests/fast/dom/throttled-timer-running-on-document-destruction.html:18 > +setTimeout(removeFrame, 300); Can't this be shorter? Maybe wait for the onload of the frame and do a short timer (100ms)? (In reply to comment #6) > Comment on attachment 241929 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241929&action=review > > > LayoutTests/fast/dom/throttled-timer-running-on-document-destruction.html:18 > > +setTimeout(removeFrame, 300); > > Can't this be shorter? > > Maybe wait for the onload of the frame and do a short timer (100ms)? Yes, that works. I updated the test in https://bugs.webkit.org/show_bug.cgi?id=138915. |