The Javascript debugger does not follow the container tab session

UNCONFIRMED
Unassigned

Status

()

Firefox
Developer Tools: Debugger
UNCONFIRMED
4 months ago
17 days ago

People

(Reporter: mattia.basaglia, Unassigned)

Tracking

54 Branch
Points:
---

Firefox Tracking Flags

(firefox57 fix-optional)

Details

(Reporter)

Description

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.

Updated

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
(Reporter)

Comment 2

17 days ago
If you want I made a simple page to help reproduce this: https://mattbas.org/misc/mozilla-bug-1375036/

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 https://mattbas.org/misc/mozilla-bug-1375036/?foo=bar without a container
  (this sets a cookie that alters the contents of the page)
* open a new container
* visit https://mattbas.org/misc/mozilla-bug-1375036/ 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.