<script src=""> elements injected early on into the HTML by extensions are given the document's URL when debugging
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: loganfsmyth, Unassigned)
References
(Blocks 1 open bug)
Details
See https://bugzilla.mozilla.org/show_bug.cgi?id=1546649
If you install the LastPass extension and then open an HTML page and open the HTML file in the debugger view, the first light should be highlighted as a breakable line. If you inspect our datastructures, you can see that we get a SourceActor with a URL that belongs to the HTML file, but the content is actually from a file served by the LastPass extension, which does
var n=document.createElement("script");n.src=e+"pageWebRequestEvents.js",t.appendChild(n),t.removeChild(n)
That should make a whole new file, but for some reason the debugger ends up seeing the file as having the same URL as the HTML document itself, and thus thinks it is an inline script.
No idea if this is an extension-specific thing, or a timing-related thing or what, but it's definitely weird.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Comment 2•5 years ago
|
||
I think this should be all set now, but https://bugzilla.mozilla.org/show_bug.cgi?id=1644075 and https://bugzilla.mozilla.org/show_bug.cgi?id=1643540 should especially drive it home.
Description
•