not able to debug any session dependent javascript file in developer tools
Categories
(DevTools :: Debugger, defect)
Tracking
(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.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
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).
Updated•5 years ago
|
Updated•5 years ago
|
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.
Comment 5•5 years ago
|
||
This seem to be dup of bug 1375036
Honza
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.
Comment 7•5 years ago
|
||
Maxscan, can you give it a try in Nightly? It should be fixed in DevEdition now as well (70).
Updated•5 years ago
|
Description
•