Last Comment Bug 521232 - Back button stops working after removing IFRAME with JavaScript
: Back button stops working after removing IFRAME with JavaScript
Status: UNCONFIRMED
:
Product: Core
Classification: Components
Component: History: Global (show other bugs)
: unspecified
: x86 Windows XP
: -- minor with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Marco Bonardo [::mak]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-08 07:27 PDT by Rick Bassham
Modified: 2010-10-19 01:24 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Rick Bassham 2009-10-08 07:27:51 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

If you add an iframe to the page, navigate to a different page in the iframe (to add another item in the history), then remove the iframe with javascript, the back button no longer works.

Reproducible: Always

Steps to Reproduce:
1. Add an iframe to a page with javascript.
2. Set the iframe's src attribute.
3. Navigate to another page inside the iframe.
4. Remove the iframe from the page with javascript.
5. Try to use the back button.
Actual Results:  
The page does not go to the previous page, no matter how many times you click the back button.

Expected Results:  
The page to go to the previous page.

A workaround for website creators is to leave the iframe on the page.  Multiple back button clicks are still required to get to the parent's previous page, but it works.

Note You need to log in before you can comment on or make changes to this bug.