WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 92401
Guard Prerenderer against inserting prerenders into detached documents.
https://bugs.webkit.org/show_bug.cgi?id=92401
Summary
Guard Prerenderer against inserting prerenders into detached documents.
Gavin Peters
Reported
2012-07-26 11:13:11 PDT
Guard Prerenderer against inserting prerenders into detached documents.
Attachments
Patch
(4.85 KB, patch)
2012-07-26 11:15 PDT
,
Gavin Peters
no flags
Details
Formatted Diff
Diff
Patch
(4.83 KB, patch)
2012-07-26 11:56 PDT
,
Gavin Peters
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gavin Peters
Comment 1
2012-07-26 11:15:10 PDT
Created
attachment 154692
[details]
Patch
Gavin Peters
Comment 2
2012-07-26 11:16:26 PDT
Japhet, WDYT?
Nate Chapin
Comment 3
2012-07-26 11:31:11 PDT
Comment on
attachment 154692
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154692&action=review
> LayoutTests/fast/dom/HTMLLinkElement/prerender-insert-after-stop.html:8 > + if (window.testRunner) { > + testRunner.notifyDone(); > + }
Nit, no braces.
> LayoutTests/fast/dom/HTMLLinkElement/prerender-insert-after-stop.html:14 > + setTimeout(done, 0);
Obligatory: any chance of avoiding the setTimeout()?
Gavin Peters
Comment 4
2012-07-26 11:56:03 PDT
Created
attachment 154711
[details]
Patch
Gavin Peters
Comment 5
2012-07-26 11:56:40 PDT
Thanks japhet!
Gavin Peters
Comment 6
2012-07-26 14:01:59 PDT
Comment on
attachment 154711
[details]
Patch Thanks to all reviewers. I double-double checked that removing the timer does not break the fix, and I'll modify some other tests accordingly. I'm also going to search for other possible post-removal DOM manipulations that can crash us, links or no links.
WebKit Review Bot
Comment 7
2012-07-26 15:07:43 PDT
Comment on
attachment 154711
[details]
Patch Clearing flags on attachment: 154711 Committed
r123798
: <
http://trac.webkit.org/changeset/123798
>
WebKit Review Bot
Comment 8
2012-07-26 15:07:47 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug