Bug 86111 - Web Inspector: Support //@ sourceURL= annotations for inline and generated script tags
Summary: Web Inspector: Support //@ sourceURL= annotations for inline and generated sc...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Peter Rybin
URL:
Keywords:
: 50432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-10 10:40 PDT by Malte Ubl
Modified: 2012-11-06 11:58 PST (History)
13 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Ubl 2012-05-10 10:40:59 PDT
Some script loaders generate inline script tags on-the-fly instead of using global eval to execute JS because this is faster in some browsers. It would be great if the sourceURL annotations would work there as well.
Comment 1 Paul Irish 2012-08-02 08:29:56 PDT
Malte, can you file this in new.crbug.com ?
Right now the name of a script is preferred above setting an explicit sourceURL. We can change that.
Comment 2 Malte Ubl 2012-08-02 08:33:11 PDT
Sure, just to clarify, can I do
script.name = "http:/…"
and have it show up as the URL already? That would be cool for me.
Comment 3 Paul Irish 2012-08-02 09:52:14 PDT
*** Bug 50432 has been marked as a duplicate of this bug. ***
Comment 4 Paul Irish 2012-08-02 09:54:21 PDT
(In reply to comment #2)
> Sure, just to clarify, can I do
> script.name = "http:/…"

Nope. The script name is coming in from the JS engine and determined differently. sourceURL is the explicit way to give it the name. A conditional needs to be flipped in the inspector now.

Also, great testcases here https://bugs.webkit.org/show_bug.cgi?id=50432#c9
Comment 5 Vsevolod Vlasov 2012-11-06 11:58:38 PST
This was fixed.