Navigation history incorrect when loading pages that create iframe elements dynamically

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
13 years ago
13 years ago

People

(Reporter: opensource, Unassigned)

Tracking

1.7 Branch
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3

Found this while using the FCKeditor (www.fckeditor.net). 
If a page has javascript that creates iframe elements using DOM (createElement('iframe')) during the onload then the history contains an extra url.  Looking at history.dat in .mozilla - the extra url is the iframe.src of the created iframe.

 

Reproducible: Always

Steps to Reproduce:
1. Grab test case
2. Browse to container-static.html, container-dynamic.html
3. Try hitting back both times

Actual Results:  
container-dynamic.html: When the iframe is created using javascript, back button appears to do nothing.  Actually goes back to the parent of the iframe (container-dynamic.html).

Expected Results:  
container-dynamic.html: Simply go back. Javascript created iframe should not cause history to be changed?  This is a little gray I guess - please let me know.
(Reporter)

Updated

13 years ago
Version: unspecified → 1.7 Branch

Comment 1

13 years ago
this works fine with current builds (trunk 2005102505 and SeaMonkey 1.0 branch 2005102419) although I do see it with Mozilla 1.7.12.  Mozilla 1.7.x is only taking security fixes

resolving WORKSFORME
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.