Is your feature request related to a problem? Please describe.
I want to run Lighthouse CLI with a WebView2 app. When the remote debugging is enabled with --remote-debugging-port, Lighthouse can successfully run but the result is not good enough:
Lighthouse creates a new WebView2 Window to gather all the runner results but there is no way to intercept this Window to AddHostObjectToScript.
With a little effort I make Lighthouse runs with the existing WebView2 Window, but Lighthouse cannot drive it to navigate the target, reporting a NO_FCP error.
Occasionally, Lighthouse CLI reports You probably have multiple tabs open to the same origin. even with a single WebView2 Window
Describe the solution you'd like and alternatives you've considered
Provide an event handler when a new Window is created via DevTool protocol
Is your feature request related to a problem? Please describe. I want to run Lighthouse CLI with a WebView2 app. When the remote debugging is enabled with
--remote-debugging-port
, Lighthouse can successfully run but the result is not good enough:AddHostObjectToScript
.You probably have multiple tabs open to the same origin.
even with a single WebView2 WindowDescribe the solution you'd like and alternatives you've considered
AB#40379026