The default bug view has changed. See this FAQ.

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

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
2 years ago
a year ago

People

(Reporter: Eugen Konkov, Unassigned)

Tracking

({regression})

36 Branch
regression
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

2 years ago
Created attachment 8587964 [details]
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

Updated

2 years ago
Component: Untriaged → Developer Tools: Console
Product: Core → Firefox

Comment 1

a year ago
The bug reproducible on Fx44b4 Win10.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All

Comment 2

a year ago
Created attachment 8703458 [details]
test.html (testcase with test.js)

Regression range:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a280a03c9f3c&tochange=ae1dfa192faf

Suspected: bug 583083
Flags: needinfo?(nfitzgerald)

Updated

a year ago
Blocks: 583083
Keywords: regression
Version: 37 Branch → 36 Branch

Updated

a year ago
Summary: link from console to source file is broken → Link from console to source file is broken when containing the eval "//# sourceURL=..."
Created attachment 8703685 [details]
source-url-and-message.html

This test case demonstrates the issue without relying on external scripts.
Flags: needinfo?(nfitzgerald)
You need to log in before you can comment on or make changes to this bug.