Open Bug 1751439 Opened 4 years ago Updated 9 months ago

Refreshing a local file using F5 doesn't work as expected, after I added another iframe to the file

Categories

(Core :: DOM: Navigation, defect)

Firefox 96
defect

Tracking

()

Tracking Status
firefox-esr91 --- affected
firefox96 --- wontfix
firefox97 --- wontfix
firefox98 --- fix-optional

People

(Reporter: akerblom.jens, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

  1. Create a html file locally containing an iframe (in my case I have an iframe leading to a steam game).
  2. Open the html file with firefox.
  3. Add another iframe (in my case to a youtube video).
  4. Open the html file with firefox.

Actual results:

First iframe appeared twice.

Expected results:

Both iframes should appear (as it does with Chrome).

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Do you mean you open the same file in two different tabs, like steps 2 and 4 hint?
The file is just modified to contain another iframe?

Flags: needinfo?(akerblom.jens)

The file is just modified to contain an additional iframe yes. I got the issue by refreshing the page using F5 after the modification, but closing firefox and opening it again with the same local html page reproduces the issue.

I can also confirm that this does not happen in the released web page where firefox displays the iframes properly, only local html file seems to have this issue.

Flags: needinfo?(akerblom.jens)

Ok, so not about reopening but reloading.

I cannot reproduce this either on Release 96 or on Nightly 98.
I cannot reproduce this either with fission is enabled or disabled.

According to comment 3 and 4, moving to Session Restore for now.

Dear reporter,
if this is a relatively new issue to you, any chance you can run moz-regression tool to help us know where this issue came from?
https://mozilla.github.io/mozregression/install.html
Thank you.

Component: DOM: Core & HTML → Session Restore
Flags: needinfo?(akerblom.jens)
Product: Core → Firefox
Summary: iframe duplicates locally → Refreshing a local file using F5 doesn't work as expected, after I added another iframe to the file

I can reproduce the issue in Nightly98.0a1 Windows10

Steps to Reproduce:

  1. Create a following html file in local HDD. And let's call it d:\Bug1751439.html.
<iframe src="https://www.wikipedia.org/"></iframe>
  1. Open the file file:///D:/Bug1751439.html in a tab.
  2. Edit the file as follows and save it.
<iframe src="https://ftp.mozilla.org/pub/firefox/nightly/"></iframe>
<iframe src="https://www.wikipedia.org/"></iframe>
  1. Reload (F5)

Actual Results:
Both get the wikipedia page displayed.

Expected Results:
The first one should be mozilla.

Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Session Restore → DOM: Navigation
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Regressed by: 1375833

I take it Alice0775 provided the requested information.

Flags: needinfo?(akerblom.jens)

(In reply to Alice0775 White from comment #6)

I can reproduce the issue in Nightly98.0a1 Windows10

Steps to Reproduce:

  1. Create a following html file in local HDD. And let's call it d:\Bug1751439.html.
<iframe src="https://www.wikipedia.org/"></iframe>
  1. Open the file file:///D:/Bug1751439.html in a tab.
  2. Edit the file as follows and save it.
<iframe src="https://ftp.mozilla.org/pub/firefox/nightly/"></iframe>
<iframe src="https://www.wikipedia.org/"></iframe>
  1. Reload (F5)

Actual Results:
Both get the wikipedia page displayed.

Expected Results:
The first one should be mozilla.

Thank you! The steps were indeed reproducible for me.

Interestingly, if I appended a new iframe at the end of the file, for example, Step 3 is as

 <iframe src="https://www.wikipedia.org/"></iframe> 
<iframe src="https://ftp.mozilla.org/pub/firefox/nightly/"></iframe>

then it's not reproducible.

Severity: -- → S3
See Also: → 2011558
You need to log in before you can comment on or make changes to this bug.