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.
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.
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.
*** Bug 50432 has been marked as a duplicate of this bug. ***
(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
This was fixed.