Closed Bug 1556969 Opened 5 years ago Closed 5 years ago

not able to debug any session dependent javascript file in developer tools

Categories

(DevTools :: Debugger, defect)

67 Branch
defect
Not set
normal

Tracking

(firefox67 wontfix, firefox67.0.1 wontfix, firefox68 wontfix, firefox69 wontfix, firefox70 fixed)

RESOLVED DUPLICATE of bug 1375036
Tracking Status
firefox67 --- wontfix
firefox67.0.1 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- fixed

People

(Reporter: davidspam, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: needs-review)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

Open Developer tools->Debugger->Select Script

Any session dependent script cannot be debugged anymore with Quantum 67.
Now it seems the js-source files for the debugger are loaded outside of the current browser session. So I am not able to debug any js that depends on the session of the user.

In Versions before, scripts could be debugged without problems.

See: https://hacks.mozilla.org/2019/05/faster-smarter-javascript-debugging-in-firefox/#comment-24934

Actual results:

window.parent.location.href="/login/" is displayed for our scripts due to the script being loaded outside of the current session.

Expected results:

Javascript file is loaded correctly for debugging.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Thanks David for the additional details.

https://fireox-devtools-testcase-dynamic-script.glitch.me/ can be used for a test case, but in 5min trying I could not get Nightly to show me a wrong JS file (mismatching version or session id).

Whiteboard: needs-review

All I can say is that the session-cookie is missing in the request that the debugger issues for the js-file that should be debugged.

It seems that Chrome debugger does not need to issue separate requests to get the source-files for debugging.

Prior to version 67, firefox already issued separate requests for the debugger, but then the source-files were loaded correctly as the session was the same.

I have attached two screenshots, the error_case is from actual Firefox developer. The expected_case_Chrome is from chrome with the script loaded correctly for debugging.

Attached image error_case.png

Script not loaded in debugger in Firefox.

Script loaded correctly in Chrome debugger.

This seem to be dup of bug 1375036

Honza

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

I am using Firefox 69.0b11 64-bit and the bug is still present. I too regularly need to debug pages that are behind a login and the only option I have is to use Chrome - please fix this as soon as possible. Thanks.

Maxscan, can you give it a try in Nightly? It should be fixed in DevEdition now as well (70).

Flags: needinfo?(max)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: