The Javascript debugger does not follow the container tab session




Developer Tools: Debugger
4 months ago
17 days ago


(Reporter: mattia.basaglia, Unassigned)


54 Branch

Firefox Tracking Flags

(firefox57 fix-optional)




4 months ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170612122310

Steps to reproduce:

* Log in or set a cookie that changes the page contents on a normal page
* Open a new container tab for the same page
* Open the Javascript debugger
* Select the page to view its sources

Actual results:

The sources of the current page show what you would get if you fetched the page from the non-container page. From the server log it seems it makes a new request and disregards the container tab.

Expected results:

It should instead show the page as fetched under the container environment.


4 months ago
Component: Untriaged → Developer Tools: Debugger
Thanks for the report! it seems like this might be a server issue, we will investigate further
status-firefox57: --- → fix-optional

Comment 2

17 days ago
If you want I made a simple page to help reproduce this:

It's a very simple PHP script and it prints its own sources so you can see what it's doing.

To repro the bug with this page:

* visit without a container
  (this sets a cookie that alters the contents of the page)
* open a new container
* visit in that container

If you do that, on view-source it should show that there's a javascript variable called cookie set to '' (since the cookie is not set for the container.
But on the debugger the sources show cookie='bar' as it doesn't honor the container cookies.
You need to log in before you can comment on or make changes to this bug.