Closed
Bug 617369
Opened 15 years ago
Closed 15 years ago
The state is kept for dynamically generated frames added during "load" or "DOMContentLoaded" events
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 462076
People
(Reporter: julienw, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
In an appplication, we generate iframes dynamically when the DOMContentLoaded event fires. And we set the src attribute to a specific URL.
We found that when the user reloads the page, Firefox displays the page that was displayed before reload, instead of using the provided src.
I understand this is wanted behaviour for IFrames specified in the HTML file, but I feel this is wrong for dynamically generated IFrames.
I made a testcase which shows just that. It inserts 3 Iframes with random urls when the DOMContentLoaded event fires. There is also a "p" element with the same value as the "src", to be able to compare.
Reproducible: Always
Steps to Reproduce:
1. load attached testcase
2. reload attached testcase (with F5 or the reload button)
Actual Results:
The IFrames contents are the same as before the reload.
Expected Results:
The IFrames contents should be the website indicated by the url in the paragraph just ahead.
- shift + reload works fine
- Chromium 6 works fine
- Firefox 4b7 works fine
Simple workaround :
- specifying the src attribute after appendChild.
Reporter | ||
Comment 1•15 years ago
|
||
Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
So FF4b7 works fine?
Then this sounds very much like a dup of bug 462076.
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•