Summary: | Accessing a DOM node from a parent window in a child iframe moves the prototype to the child iframe and resets it in the parent window | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Paul Sowden <paul> | ||||||||
Component: | WebCore JavaScript | Assignee: | Alexey Proskuryakov <ap> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | abarth, ap, ggaren, gianni, kangax, sam | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
URL: | http://paulsowden.com/etc/webkit/test-prototype.html | ||||||||||
Attachments: |
|
Description
Paul Sowden
2009-06-18 15:17:25 PDT
Confirming as a difference with Firefox. This is a dup of another bug that I can't put my fingers on immediately. This is also related to a recent thread on webkit-dev. The bug URL is no longer valid. Could you please attach the test case to the bug? Created attachment 49673 [details]
Testcase for the main page (requires test-prototype-iframe.html as well)
Created attachment 49674 [details]
Testcase for the iframe (is loaded by the first testcase page)
Thanks! I can reproduce with Safari/WebKit 4.0.4, but this appears fixed with recent WebKit builds (I tried r55339). For reference, I'm pretty sure this was fixed in r46444. Maybe we need to land this test case then - r46444 didn't include tests. Re-opening for that. Created attachment 49692 [details]
proposed patch
Test committed <http://trac.webkit.org/changeset/55396>. |