electron-archive/brightray

Add a `WebContents` argument to `InspectableWebContents::ShowDevTools`

spolu opened this issue · 0 comments

Make the WebContents to inspect parametrizable in InspectableWebContents's ShowDevTools method.

ShowDevTools(WebContents* web_content_to_inspect);

This method should accept to be called multiple times on different WebContents without calling CloseDevTools

The goal of this enhancement is to allow a top-level InspectableWebConents to be in charge of displaying the inspector for any underlying WebContents (think <webview>)