electron: setDevToolsWebContents is not working for OOPIF webview

It seems that Chromium disallows using guest view as devtools, I need to find out the code in Chromium to fix it.

not ok 55 <webview> tag setDevToolsWebContents() API sets webContents of webview as devtools
  AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
      at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 18 (4 by maintainers)

Most upvoted comments

@kitze no problem, ty for the ping. You’re correct, the only current way to dock devtools is in a BrowserView at present. I can try to jump this up in my backlog within the next few weeks though and see if i can make some headway 😃

@Pines-Cheng but you cannot use a BrowserView like you would a webview (like a DOM element)

Hey @codebytere @sofianguy, I’m really glad this has moved to 6-0-x 😃 We have a big 1.0 release in a few weeks, and it would be amazing if we can add this feature to the app before the release.

Do you have any idea if it might happen within that timeline? Is there anything that I can do to help? Can I maybe pay extra and sponsor someone to prioritize it? Thank you!

@kitze great q - the crux of this bug is that Chromium itself removed/disallowed this functionality and we’re not quite sure where and how they did so.

It’s unfortunately the sort of irritating bug that’s way more grounded in annoying detective work than anything but i’m planning to spend a few hours on it today and will see what i come up with.

@zcbenz can you please confirm my question above when you have the time?

I’m thinking of downgrading electron because so many users of sizzy.co are requesting this option.