Closed Bug 521232 Opened 15 years ago Closed 5 years ago

Back button stops working after removing IFRAME with JavaScript

Categories

(Core :: DOM: Navigation, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: rickbassham, Unassigned, NeedInfo)

Details

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.
Component: History: Global → Document Navigation
Flags: needinfo?(rickbassham)
Hiya,

I am currently looking for bugs to fix as part of my Open Source Development module at Coventry University and I am interested in developing this bug.

Please could you assign this task to me and give me more information.

This is my first bug fix and any help would be appreciated.

Thank you.

2019-03-06

This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.

The request for information has not been answered, and we can't move forward on the bug so we are closing it.

If the defect is still present, please reopen this bug with an updated report.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.