Programmatically inserted inline JS content scripts don't appear in DevTools Debugger
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: Mastacheata, Unassigned)
References
(Blocks 1 open bug)
Details
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 4•6 years ago
|
||
From related github issue:
https://github.com/devtools-html/debugger.html/issues/4754
Here's a minimalistic demo extension:
https://github.com/mastacheata/debug-content-scripts-demo-extension
(You'll have to debug the extension for it to stop after creating the tab and then open the debugger for the new tab to see the code injection and have it stop in the injected code)
@Mastacheata: A lot changed since this bug was reported. Is this still an issue?
Honza
Reporter | ||
Comment 5•6 years ago
|
||
A lot changed since this bug was reported. Is this still an issue?
Yes, same issue as before. Breaks in ExtensionContent.jsm instead of the injected contentScript code.
I've adjuested the demo extension to match the current state of the extension API. (apparently the activeTab permission is no longer enough to run background scripts on a tab you opened using the extension and the executeScript function is no longer defaulting to use a string argument as the code)
I've added a screenshot of the problem to the demo repository:
https://github.com/mastacheata/debug-content-scripts-demo-extension/raw/master/problems.png
Updated•6 years ago
|
Comment 6•4 years ago
|
||
This pauses in the correct script now on Nightly with https://bugzilla.mozilla.org/show_bug.cgi?id=1643540, so I'm going to close this. The source does show in the file tree, which I think is a bug, so I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1651557 to revisit that.
Description
•