Closed Bug 1150886 Opened 10 years ago Closed 7 years ago

Link from console to source file is broken when containing the eval "//# sourceURL=..."

Categories

(DevTools :: Console, defect, P3)

36 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1192882

People

(Reporter: kes-kes, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(3 files)

Attached file test.html
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 Build ID: 20150328224110 Steps to reproduce: sorry, can not attach second file. That is test.js: function jstest() { console.log( 'hello' ); } //# sourceURL=test.js 1. open test.html 2. open WebInspector (F12) 3. goto console 4. click 'Hello' button 5. You will see in console 'hello' text message and at the end of line link to source file, where this message was logged: test.js:2:4 6. click that link Actual results: You get new empty window with 404 page not found Firefox can not find server: www.test.js. Expected results: You must open in debugger dynamically loaded test.js and move cursor to second line fourth char
Component: Untriaged → Developer Tools: Console
Product: Core → Firefox
The bug reproducible on Fx44b4 Win10.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Blocks: 583083
Keywords: regression
Version: 37 Branch → 36 Branch
Summary: link from console to source file is broken → Link from console to source file is broken when containing the eval "//# sourceURL=..."
This test case demonstrates the issue without relying on external scripts.
Flags: needinfo?(nfitzgerald)
Blocks: source-maps
Priority: -- → P3
I think the problem is explained in https://bugzilla.mozilla.org/show_bug.cgi?id=1192882#c2 In today's console the link isn't clickable, which is maybe an improvement over a link to nowhere, but of course still not very good.
Closing this one as a dup.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: