fix(extensions): devtools now open for background pages (#22217)
refactor(extensions): remove unused InitWithBrowserContext method fix(extensions): release background page WebContents to avoid crash The background page WebContents instance is managed by the ExtensionHost. fix(extensions): open background page devtools detached by default test(extensions): add background page devtools test chore: test fix for null web_contents() fix: close background page devtools in test after opening
This commit is contained in:
parent
ae5776041e
commit
5a8046c994
4 changed files with 103 additions and 24 deletions
|
@ -32,8 +32,6 @@ namespace electron {
|
|||
|
||||
// An ExtensionsBrowserClient that supports a single content::BrowserContext
|
||||
// with no related incognito context.
|
||||
// Must be initialized via InitWithBrowserContext() once the BrowserContext is
|
||||
// created.
|
||||
class ElectronExtensionsBrowserClient
|
||||
: public extensions::ExtensionsBrowserClient {
|
||||
public:
|
||||
|
@ -122,11 +120,6 @@ class ElectronExtensionsBrowserClient
|
|||
content::RenderFrameHost* render_frame_host,
|
||||
const extensions::Extension* extension) const override;
|
||||
|
||||
// |context| is the single BrowserContext used for IsValidContext().
|
||||
// |pref_service| is used for GetPrefServiceForContext().
|
||||
void InitWithBrowserContext(content::BrowserContext* context,
|
||||
PrefService* pref_service);
|
||||
|
||||
// Sets the API client.
|
||||
void SetAPIClientForTest(extensions::ExtensionsAPIClient* api_client);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue