View Source gets wrong source when same URL is open in two windows simultaneously with different content
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
People
(Reporter: nbidwell, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 obsolete file)
Reporter | ||
Comment 1•23 years ago
|
||
Updated•23 years ago
|
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
![]() |
||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
Comment 12•23 years ago
|
||
Comment 13•23 years ago
|
||
![]() |
||
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
Comment 16•23 years ago
|
||
Comment 17•23 years ago
|
||
Comment 18•23 years ago
|
||
Comment 19•23 years ago
|
||
Comment 20•23 years ago
|
||
Comment 21•23 years ago
|
||
Comment 22•23 years ago
|
||
Comment 23•23 years ago
|
||
Comment 24•23 years ago
|
||
![]() |
||
Comment 25•23 years ago
|
||
Comment 26•23 years ago
|
||
![]() |
||
Comment 27•23 years ago
|
||
Comment 28•23 years ago
|
||
Comment 29•23 years ago
|
||
Comment 30•23 years ago
|
||
![]() |
||
Comment 31•23 years ago
|
||
Comment 32•23 years ago
|
||
Comment 34•23 years ago
|
||
Comment 35•23 years ago
|
||
Comment 36•23 years ago
|
||
![]() |
||
Comment 37•23 years ago
|
||
Comment 38•23 years ago
|
||
![]() |
||
Comment 39•23 years ago
|
||
Comment 40•23 years ago
|
||
![]() |
||
Comment 41•23 years ago
|
||
Comment 42•21 years ago
|
||
Comment 43•20 years ago
|
||
Comment 44•19 years ago
|
||
Comment 45•19 years ago
|
||
Comment 46•18 years ago
|
||
Updated•18 years ago
|
Comment 47•18 years ago
|
||
![]() |
||
Comment 48•18 years ago
|
||
Comment 49•18 years ago
|
||
Comment 50•18 years ago
|
||
Comment 52•18 years ago
|
||
![]() |
||
Updated•18 years ago
|
Comment 53•18 years ago
|
||
Comment 56•16 years ago
|
||
Comment 57•15 years ago
|
||
Updated•15 years ago
|
Comment 59•15 years ago
|
||
Comment 60•10 years ago
|
||
Updated•3 years ago
|
Updated•1 years ago
|
Comment 62•1 years ago
|
||
Using a page from random.org, I can verify that this is still open in Firefox 123 in both regular and private mode. Chromium 121 exhibits the similar behavior. When right-clicking and selecting "View Page Source" a new fetch is performed (bug 288462).
Based on Comment 36, I have a couple thoughts. Firstly, if a cache page is expunged ("case 4") I would suggest letting that happen and filing a separate bug for that edge case so that this one can be closed. Secondly, perhaps the "View-Source" page could display a meta-header indicating a timestamp of when the page was first requested, and when it was last changed. If the page is refetched because of cache issues, at least the timestamp would make that clear. (The two timestamps could account for the dynamic nature of page updates on the modern web.) This "meta-header" could display other data as appropriate, such as the final URL in case there are redirects, the on-disk status of the cache, any controlling cache-control directives, etc.
And contrary to Comment 59, if I "View Source" on the same random.org page without opening the same site in a new tab, the same source is displayed. In this scenario a second fetch does not occur. Further, if I "View Source" on the second tab without reloading it, the same source is also displayed. That is:
- Load RNG page in Tab 1 (assume RNG=1)
- Load RNG page in Tab 2 (assume RNG=2)
- "View Source" of Tab 1 -> See RNG=3
- "View Source" of Tab 2 -> See RNG=3
- Reload Tab 2 (assume RNG=4)
- "View Source" of Tab 2 -> See RNG=5
- "View Source" of Tab 1 -> See RNG=5
- "Inspect (Q)" the RNG in Tab 1 -> See RNG=1
Chrome behaves similarly, except that "view source" of the two tabs always produces new RNGs. It appears that Firefox caches the source page while Chromium does not. Chromium will also show the correct RNG data when using "Inspect" on the first tab.
For reference, this is the exact URL I'm loading: https://www.random.org/integers/?num=100&min=1&max=100&col=5&base=10&format=html&rnd=new
Description
•