Open Bug 1689309 Opened 3 years ago Updated 3 years ago

Sourcecode view is not updated

Categories

(Core :: DOM: Navigation, defect, P3)

Firefox 85
defect

Tracking

()

UNCONFIRMED

People

(Reporter: drfreund, Unassigned)

Details

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

Steps to reproduce:

Running a web on a local Apache server:

  • Surf to a page of the web in Firefox
  • View HTML-sourcecode in Firefox, then close sourcecode tab
  • Change HTML of the page
  • Refresh page in Firefox
  • Again view HTML-sourcecode in new Firefox tab

Actual results:

  • Rendered page shows changes after refresh -> OK
  • Sourcecode is NOT updated immediately -> Wrong
    You have to refresh the sourcecode tab to see the changes.

Expected results:

Sourcecode view should always show the HTML, which was actually rendered, as it was in Firefox before 85.0. There should be no caching.

Hello! Unfortunately I wasn't able to reproduce the issue with the description provided in the description on Windows 10 with firefox 85.0 and 87.0a1 (2021-02-02).
Could you please answer the following questions in order to investigate it further?

  1. Does this issue happen with a new profile? Here is a link on how to create a new profile: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Are you using add-ons? If so could you please list them?
  3. Does this issue occur in the latest nightly version of firefox? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
Flags: needinfo?(drfreund)

Hello! Thank You for taking care of this bug.

Does this issue happen with a new profile?
Yes. I used a fresh default profile

Are you using add-ons?
No. I didn't install any add-ons in the default profile.

Does this issue occur in the latest nightly version of firefox?
Sorry, I haven't installed that yet.

Flags: needinfo?(drfreund)

By the way:
You have to keep Firefox open all the time. Only close sourcecode tab between changing HTML.

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

I can't reproduce this.
Is there testcase showing this behavior somewhere online?
It sounds like view-source might be use the old cache version, but hard to say without being able to reproduce.

Component: DOM: Core & HTML → DOM: Navigation

Is there testcase showing this behavior somewhere online?

I don't know, if you have one ;-)
You need a server, where you can upload files and change their HTML-content.
If You only create a local HTML-file and open it in Firefox, the soucecode view does NOT show the wrong behaviour and always reflects the latest changes.

Severity: -- → S3
Priority: -- → P3

I have exactly the same issue with a WordPress-based page (I was wondering why my changes were not taken into account until I found out that the "view-source:" content was not updated), and I can reproduce it with a simple HTML page via "http://localhost/" on my machine.

In case this matters, here are the headers for my localhost test, when reloading the page:

Request headers:

GET /~vinc17/ HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en-GB;q=0.4,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache

Response headers:

HTTP/1.1 200 OK
Date: Wed, 24 Feb 2021 14:14:03 GMT
Server: Apache/2.4.46 (Debian)
Content-Location: index.html.fr
Vary: negotiate,accept-language
TCN: choice
Last-Modified: Wed, 24 Feb 2021 14:13:21 GMT
ETag: "4192-5bc15a3255e6d"
Accept-Ranges: bytes
Content-Length: 16786
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/xhtml+xml
Content-Language: fr

Same issue with Firefox 86 (firefox 86.0-1 Debian package).

Same. I can reproduce this with any simple HTML form.

Example:

Display web page containing form.
View source (opens in new tab).
Close the view-source tab.
Fill out form, submit.
Get new page (response or error or conformation or next step, whatever the site sends).
View source.

What happens at this point is that the old source is displayed - the one from step 1. The source for the page in step 5 IS NOT DISPLAYED.

Further, it is impossible to see that source, because the only way you could get to it would be to "refresh" the original viewed source - but that would of course just display the source from the original step 1 page.

There are two other bugs - one of them five years old! - about this, but it still seems to be a pervasive problem.

Same here with Firefox 87.
If you still a site to reproduce the problem

  1. visit https://coronavirus.jhu.edu/data/mortality
  2. view the source
  3. wait 24 hours
  4. repeat 1
  5. reapet 2
    You will see that in 1 and 4 different data is shown, but in 2 and 5 the same source.
    Even if you repeat this procedure several days the source will not change. You have to relaod the source view itself to get an update.
You need to log in before you can comment on or make changes to this bug.