Open Bug 1222775 Opened 9 years ago Updated 2 years ago

Event listener popup does not link to debugger correctly if the script the listener lives in has been loaded with the Addon-SDK loader

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: sjakthol, Unassigned)

Details

(Whiteboard: [btpp-backlog])

STR:
1. Open Developer Tools
2. Open Browser Toolbox
3. Use the Browser Toolbox element picker an element from the Developer Tools frame that contains event listeners (e.g. tab of some tool).
4. Click the ev icon to open the event listener tooltip
5. Click the icon that should open the listener in debugger.

What happens:
The debugger opens but the correct script and line are not focused.

What should happen:
The debugger opens and the correct script and line are focused.

The problem is that the listener has an URI of following form (example):
> resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/client/inspector/inspector-panel.js

But the debugger sees the following URL (example):
> resource://devtools/client/inspector/inspector-panel.js

Thus the strict equality in [1] fails to find a match and an incorrect source is selected.

[1] https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/widgets/Tooltip.js#1462
Triaging (filter on CLIMBING SHOES).
Priority: -- → P3
Whiteboard: [btpp-backlog]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.