Source of html file is not visible if it is loaded from cache
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: kes-kes, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
59.16 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Steps to reproduce:
I opened html page from my local server. Then shutdown my server and closed firefox. Then I opened firefox.
Actual results:
The page was used from cache and instead of source I see error message. Still the page and javascript code works well from that page
Expected results:
I expect to see source code for page from cache. Also I expect to see those error messages, probably, at console.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I am not sure if its a networking problem here as the page and its script code are working fine.
Moving this to the devtool component to investigate as to why the source code for page is not loaded for cached pages.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
We most likely miss the source and can't retrieve it from the platform, but we should at least display a better error message.
Maybe we regressed this recently, will do a regression check.
Comment 4•2 years ago
|
||
The symptoms changed because in ESR we used to display a less "cryptic" message:
Error loading this URI: Unknown source
Whereas now we leak internals
Error loading this URI: sourceContents failed: Error: Protocol error (Error): Could not load the source for http://localhost:8000/.
Error: Failed to fetch http://localhost:8000/. Code 2152398861.
Stack: onResponse@resource://devtools/shared/DevToolsUtils.js:600:16
onStopRequest@resource://gre/modules/NetUtil.sys.mjs:124:18
Line: 600, column: 16 from: server0.conn0.windowGlobal10737418241/source26 (resource://devtools/server/actors/source.js:529:13)
Updated•2 years ago
|
Description
•