Bug 29520
Summary: | Calling document.close() on an iframe scrolls the page if the hash is empty | ||
---|---|---|---|
Product: | WebKit | Reporter: | taku <t> |
Component: | Frames | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, florian.haider, wdm |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://t.github.com/webkit_iframe_test/# |
taku
When URL has "#", below javascript code occurs scrolling window to the iframe position.
var hoge = document.getElementById("hoge"); // hoge is a iframe object
var doc = hoge.contentDocument;
doc.open();
doc.close();
Sample URL is here.
http://t.github.com/webkit_iframe_test/#
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** Bug 45935 has been marked as a duplicate of this bug. ***
Florian Haider
This bug is still an issue in current webkit browsers! Any news on that?