The "use in console" contextual menu item does not work for content elements in the OBT
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Fission Milestone:MVP)
Fission Milestone | MVP |
People
(Reporter: pbro, Unassigned)
References
(Blocks 2 open bugs)
Details
Steps:
- open any website in a tab in Firefox
- open the OBT
- In the OBT's inspector panel, pick an element from the content page
- Open the split console
- Right-click on the selected element and choose "use in console"
- Press enter in the console
Expected: The selected element gets referenced by a new variable called temp0
and evaluating this in the console prints out the element.
Actual: The temp0
variable gets created but evaluating it returns an error: ReferenceError: temp0 is not defined
.
This does work fine if the selected element belongs to the main browser UI though.
Reporter | ||
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Bug 1601630 will create the variable in the right context, but you'd still have an issue directly executing the filled-in input (temp0
) because the console context isn't updated.
This is the same issue we have with "Store as global variable" in the console, and will be handled during the context switch project.
Reporter | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Tracking Fission DevTools bugs for Fission Nightly (M6)
Comment 3•4 years ago
|
||
Adding dt-fission
whiteboard tag to DevTools bugs that mention Fission or block Fission meta bugs but don't already have a dt-fission
whiteboard tag.
Comment 4•4 years ago
|
||
Moving these DevTools Fission bugs from Fission's old M6 Nightly milestone to M7 Beta. I am assuming these bugs would have the dt-fission-m2-mvp
whiteboard tag if they were Fission Nightly blockers.
Comment 5•4 years ago
|
||
Bulk change of all bugs with whiteboard tag of dt-fission
to Fission MVP milestone.
Updated•3 years ago
|
Comment 6•3 years ago
|
||
I just checked the STR and it does work for me on Nightly.
When selecting the node from the content page, the context selector switches to the content page, and evaluating the created variable works fine. This is covered by devtools/client/webconsole/test/browser/browser_jsterm_evaluation_context_selector_inspector.js
The only case where it wouldn't work would be doing the str on a node in a same-origin content iframe, as we don't create specific targets for those (at the moment). This is something that is blocking enabling the context selector on all releases.
Updated•3 years ago
|
Description
•