Bug 40973

Summary: Save the insertion point before beforeload events
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch eric: review+

Description Adam Barth 2010-06-21 23:59:15 PDT
Save the insertion point before beforeload events
Comment 1 Adam Barth 2010-06-22 00:00:41 PDT
Created attachment 59346 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-06-22 00:03:21 PDT
Comment on attachment 59346 [details]
Patch

HTML5 talks about needing to save the insertion point at the start of runScript and then restore at the end, whch would cover this case. This may end up restoring "too early" but I'm not sure what that would mean (if anything).  In either case, this brings us closer to correct behavior.
Comment 3 Adam Barth 2010-06-22 00:04:48 PDT
Committed r61604: <http://trac.webkit.org/changeset/61604>