MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
423 stars 51 forks source link

Support Lighthouse CLI #2574

Open kiddliu opened 2 years ago

kiddliu commented 2 years ago

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:

  1. Lighthouse creates a new WebView2 Window to gather all the runner results but there is no way to intercept this Window to AddHostObjectToScript.
  2. 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.
  3. 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

AB#40379026

victorthoang commented 1 year ago

Thanks for the feedback! We've added this as a scenario on our backlog!