Closed
Bug 248204
Opened 20 years ago
Closed 20 years ago
Dynamically created iframe added to history list of the parent window
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 237717
People
(Reporter: ken_mori, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.8 When an iframe is created dynamically: var f = document.createElement("iframe"); document.body.appendChild(f); The iframe is added into the history list of the parent frame. Refreshing the browser will present the page in the dynamically created iframe within the parent frame. Reproducible: Always Steps to Reproduce: 1.Create a dynamic iframe via JavaScript 2.Refresh main page 3. Actual Results: Page from iframe is displayed rather than the main page Expected Results: The main page should be displayed
Comment 1•20 years ago
|
||
I don't see exactly your problem with this testcase, but after I clicked on the button "x" times and then did a reload, I got "x" items added to the history list. I don't get to see the iframe page however after a reload.
Click the "append iframe" button, then click refresh. Notice the contents of the iframe take over the main page.
Seems that the behavior is different if you run via "open file..." than from an actual web server. The problem seems to occur only if run via "open file..."
Comment 4•20 years ago
|
||
This is fixed on trunk (but not on the 1.7 branch). *** This bug has been marked as a duplicate of 237717 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
You need to log in
before you can comment on or make changes to this bug.
Description
•