Back button stops working after removing IFRAME with JavaScript

UNCONFIRMED
Unassigned

Status

()

Core
History: Global
--
minor
UNCONFIRMED
8 years ago
7 years ago

People

(Reporter: Rick Bassham, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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.
You need to log in before you can comment on or make changes to this bug.