Summary: | iFrames set to display:none are Missing from frames array | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Wheeler <david> | ||||||||||||||
Component: | JavaScriptCore | Assignee: | Anders Carlsson <andersca> | ||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||
Severity: | Normal | CC: | adele, ap, ian | ||||||||||||||
Priority: | P2 | ||||||||||||||||
Version: | 412 | ||||||||||||||||
Hardware: | Mac | ||||||||||||||||
OS: | OS X 10.4 | ||||||||||||||||
Bug Depends on: | |||||||||||||||||
Bug Blocks: | 9610 | ||||||||||||||||
Attachments: |
|
Description
David Wheeler
2005-06-16 17:02:48 PDT
Created attachment 2410 [details]
Test Case
I see this issue on Safari 2.0 (v412) and TOT WebKit under 10.4.1(8B15). I have attached a screen shot of what is displayed under Safari 2.0 and Firefox 1.0.4. Created attachment 2440 [details]
Screen shot of Safari rendering this test case
Created attachment 2441 [details]
Screen shot of Mac Firefox 1.0.4 rendering this test case
*** Bug 8976 has been marked as a duplicate of this bug. *** *** Bug 9277 has been marked as a duplicate of this bug. *** Another manifestation of this caused me several hours of headaches on our site: <div id="test"> <iframe id="iframe" name="iframe" src=""></iframe> <form target="iframe"> <input type="submit" onclick="document.getElementById('test').style.display='none'"/> </form> </div> The effect of the above code, is that instead of submitting the form in the iframe, the user is assaulted by a new window! :( we don't actually create Frame objects for frame nodes that don't have renderers. We probably need to start doing that so frame's with display:none get appended to the FrameTree. Or we could find another way to use the FrameArray in JS without using the FrameTree. I'm not entirely sure how well that would work though. Created attachment 9210 [details]
Patch
Comment on attachment 9210 [details]
Patch
This introduces crashes
Created attachment 9215 [details]
Better patch
Created attachment 9216 [details]
Patch without tabs
Comment on attachment 9216 [details]
Patch without tabs
r=me
Committed in r15170 Sweet, thanks for the fix. When should we look for a Safari release with this fix? (In reply to comment #17) > Sweet, thanks for the fix. When should we look for a Safari release with this > fix? Apple doesn't comment on unreleased software, but if I had to guess, it would be Mac OS X 10.5 (Leopard). Note that I am not an Apple engineer, nor am I employed by Apple. Yeah, that was my guess, too. Pity if true. |