Prototype a WebConsole UI using WebDriver BiDi commands
Categories
(Remote Protocol :: WebDriver BiDi, task, P1)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Assigned: Sasha)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m5])
We want to prototype a simple webconsole UI relying on WebDriver BiDi events and commands.
This UI should be a web application connecting to a Firefox instance started with remote debugging enabled (similar to the web client).
Updated•6 months ago
|
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
The development was happening on Github in https://github.com/lutien/bidi-webconsole-prototype.
Demo: https://lutien.github.io/bidi-webconsole-prototype/
Discovered limitations/missing features of BiDi:
-
log.entryAdded
event andscript.evaluate
don't return enough data to fully mimic console behavior, especially for the objects, which values are not serialized (e.g. functions, WeakMap, window,..). Potential work around: sending thescript.callFunction
command with handle to get additional data from content process. -
A currently hidden feature of showing an url of a browsing context next to a console message, to see where it comes from, would require implementation of
browsingContext.navigationStarted
event to callbrowsingContext.getTree
command earlier. Right now, it's happening onbrowsingContext.load
event, which is too late for somelog.entryAdded
events to show the correct data.
Assignee | ||
Comment 2•6 months ago
|
||
The repo was moved to https://github.com/firefox-devtools/bidi-webconsole-prototype
The demo is now on: https://firefox-dev.tools/bidi-webconsole-prototype/
Assignee | ||
Comment 3•6 months ago
|
||
This bug was planned only for one week, the follow-up work will be planned in the scope of bug 1794433.
Description
•