Closed Bug 313833 Opened 19 years ago Closed 19 years ago

Navigation history incorrect when loading pages that create iframe elements dynamically

Categories

(SeaMonkey :: General, defect)

1.7 Branch
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: opensource, Unassigned)

References

()

Details

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.
Version: unspecified → 1.7 Branch
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
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.