Closed Bug 990256 Opened 10 years ago Closed 5 years ago

Debugging scripts loaded with loadSubScript from an add-on

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 871489

People

(Reporter: mossop, Unassigned)

References

(Blocks 1 open bug)

Details

loadSubScript can be used to load code from an add-on into an existing global. We should detect this and add the global as a debuggee for the add-on debugger.
I'm struggling to think of cases where restartless add-ons would want to do this onto a global they don't already own so probably not worth doing until we spot problems
Summary: When loadSubScript is called with a URI from an add-on add the global to the add-on debugger → Debugging scripts loaded from an add-on with loadSubScript
Summary: Debugging scripts loaded from an add-on with loadSubScript → Debugging scripts loaded with loadSubScript from an add-on
@mossop This doesn't only affect restartless add-ons, but other add-ons, too. E.g. Selenium IDE and the family of its sub-addons use loadSubScript extensively.
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.