Closed
Bug 1809119
Opened 2 months ago
Closed 2 months ago
Autocompletion in Browser Console does not seem to pick the right target
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(firefox110 fixed)
RESOLVED
FIXED
110 Branch
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
Steps to reproduce
- Open the Browser Console
- in the context selector, select a Content Process target (one prefixed with
(pid XXX)
) - evaluate
globalThis.myProp = "hello"
- Type
globalThis.my
Expected results
The completion text shows globalThis.myProp
Actual results
The completion text does not show globalThis.myProp
This is not that the property is not set, because evaluating globalThis.myProp
does return "hello"
(and I spotted this earlier because I was able to autocomplete console.
although console
is undefined in this context)
Assignee | ||
Comment 1•2 months ago
|
||
I missed this when I added the context selector in the Browser Console (Bug 1780156)
// Note that getSelectedTargetFront will return null if we default to the top level target.
// For now, in the browser console (without a toolbox), we don't support the context selector.
const contextSelectorTargetFront = hud.toolbox
? hud.toolbox.getSelectedTargetFront()
: null;
Summary: Autocompletion on Content Process does not seem to pick the right target → Autocompletion in Browser Console does not seem to pick the right target
Assignee | ||
Comment 2•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba1f5fb251fd [devtools] Use selected target in context selector for Browser Console autocomplete. r=ochameau.
Comment 4•2 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox110:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•