Sourcecode view is not updated
Categories
(Core :: DOM: Navigation, defect, P3)
Tracking
()
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.
Comment 1•3 years ago
|
||
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?
- 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
- Are you using add-ons? If so could you please list them?
- 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/
Reporter | ||
Comment 2•3 years ago
|
||
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.
Reporter | ||
Comment 3•3 years ago
|
||
By the way:
You have to keep Firefox open all the time. Only close sourcecode tab between changing HTML.
Comment 4•3 years ago
|
||
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.
Comment 5•3 years ago
|
||
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.
Reporter | ||
Comment 6•3 years ago
•
|
||
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.
Updated•3 years ago
|
Comment 7•3 years ago
|
||
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.
Comment 8•3 years ago
|
||
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
Comment 9•3 years ago
|
||
Same issue with Firefox 86 (firefox 86.0-1 Debian package).
Comment 10•3 years ago
|
||
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.
Comment 11•3 years ago
|
||
Same here with Firefox 87.
If you still a site to reproduce the problem
- visit https://coronavirus.jhu.edu/data/mortality
- view the source
- wait 24 hours
- repeat 1
- 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.
Description
•