fix: do not initialize any extension related logic in OffTheRecord contexts (#22772)
This commit is contained in:
parent
a3ee61f963
commit
21900fe4f4
5 changed files with 115 additions and 44 deletions
|
@ -139,6 +139,8 @@ class ElectronBrowserContext
|
|||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
// Guard usages of extension_system() with !IsOffTheRecord()
|
||||
// There is no extension system for in-memory sessions
|
||||
extensions::ElectronExtensionSystem* extension_system() {
|
||||
return extension_system_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue