Open Bug 1830688 Opened 3 years ago Updated 2 years ago

Source of html file is not visible if it is loaded from cache

Categories

(DevTools :: Style Editor, defect, P3)

Firefox 111
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: kes-kes, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached image _.png

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.

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Networking: Cache

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.

Component: Networking: Cache → Style Editor
Product: Core → DevTools

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.

Severity: -- → S3
Flags: needinfo?(jdescottes)
Priority: -- → P3

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)

Flags: needinfo?(jdescottes)
QA Whiteboard: qa-not-actionable
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: