Bug 45935

Summary: Calling document.close() on an iframe scrolls the page if the hash is empty
Product: WebKit Reporter: Will Moffat <wdm>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: amla70
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Testcase for iframe scrolling none

Will Moffat
Reported 2010-09-16 16:51:50 PDT
Created attachment 67861 [details] Testcase for iframe scrolling * Open the attached testcase * click the 'with empty hash' link, the url will update to index.html# * click the 'doc.close()' button --> webkit will scroll to the iframe at the bottom of the page The scrolling only occurs when the url contains an empty hash. Neither Firefox nor IE scroll the page. I encountered this when I integrated the popular CodeMirror editor (which uses iframes) into our site.
Attachments
Testcase for iframe scrolling (498 bytes, text/html)
2010-09-16 16:51 PDT, Will Moffat
no flags
Alfonso Martínez de Lizarrondo
Comment 1 2012-04-29 06:43:50 PDT
This is a duplicate of #29520.
Alexey Proskuryakov
Comment 2 2012-04-30 11:08:04 PDT
Thank you! *** This bug has been marked as a duplicate of bug 29520 ***
Note You need to log in before you can comment on or make changes to this bug.