Logged Content function is missing "jump to definition" icon in Omniscient Browser Toolbox
Categories
(DevTools :: Console, task, P1)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission-m1)
Attachments
(1 file)
Steps to reproduce
- Navigate to https://nchevobbe.github.io/demo/console-test-app.html
- Open the console
- Evaluate
console.log(handleLog)
Expected results
The handleLog
function appears in the Omniscient Browser Toolbox, with the "jump to definition" icon, allowing to navigate to the debugger
Actual results
The icon doesn't appear.
Assignee | ||
Comment 1•5 years ago
|
||
This is because we don't have a location
property in the grip.
And we don't have it because we don't get into this if
block (devtools/server/actors/object/previewers.js#124-132 )
Basically, this:
const script = dbgGlobal.makeDebuggeeValue(obj.unsafeDereference()).script;
returns something falsy.
Assignee | ||
Comment 2•5 years ago
|
||
Previously we were always getting the webconsole actor parent
thread actor to get the location of a script. That works well
in a tab, but when in the omniscient browser toolbox, we
need the appropriate global for this.
Since we only need the global debuggee to create a proper debuggee
value for the function, we remove the getGlobalDebugObject hook
and replace it with a makeDebuggeeValue function, where we can
re-use WebConsoleActor's makeDebuggeeValue.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5873711a3f08 Don't create a new Debugger instance in WebConsoleActor. r=ochameau,jlast.
Comment 4•5 years ago
|
||
bugherder |
Updated•4 years ago
|
Updated•3 years ago
|
Description
•