Closed Bug 1375036 Opened 3 years ago Closed 2 months ago
Thanks for the report! it seems like this might be a server issue, we will investigate further
Yulia, what do you mean by "might be a server issue"? If you mean some type of server component within Firefox/Devtools, then I guess that's beyond my knowledge, but if you mean Mattia's HTTP server then you're incorrect. I have experienced this issue (in Firefox 62) and it has nothing to do with web servers. The debugger is literally just reloading the URL of the current (container) tab using the context of the default container and showing the source of a completely page. This simply breaks the debugger tool completely when using containers, and has done for a year.
Hi Roy, The comment was referring to the Debugger Server.
Right. So then, is this just a symptom of bug 1472581? (I didn't find an existing one that described what I saw, so reported it as new, but I would think it's known to someone.)
In a sense they are related. The issue is that we are not respecting headers when we are loading information in the debugger. I believe this is closely related to bug 1149835 and bug 1060732, specifically https://bugzilla.mozilla.org/show_bug.cgi?id=1060732#c3 -- in that we are not respecting the correct headers -- I will confirm with Jim and Alex regarding this.
How does the debugger fetch the sources? It has to go through DevToolsUtils.js's fetch helper in order to retrieve the right data: https://searchfox.org/mozilla-central/source/devtools/shared/DevToolsUtils.js#490-525 This helper method tries to ensure fetching the same sources the current tab is using. The most important arguments of this method regarding the containers are `principal` and `window`. You have to pass at least one of those and it to refer to the current debugged tab. I see fetch() being used by the debugger actors over here: https://searchfox.org/mozilla-central/source/devtools/server/actors/source.js#410 Does the STR from comment 0 go throught this line? If yes, is `principal` defined? Is principal.userContextId different from 0? If yes, then, there is an issue somewhere inside fetch helper.
Flags: needinfo?(poirot.alex) → needinfo?(ystartsev)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Duplicate of this bug: 1472581
Has Regression Range: --- → yes
Has STR: --- → yes
Depends on: 1538056
Duplicate of this bug: 1556969
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.