fix: make preload calculation identical between sandbox & non-sandboxed (#34531)
This commit is contained in:
parent
4ec95edf06
commit
bad8d5e08a
9 changed files with 29 additions and 59 deletions
|
@ -497,11 +497,6 @@ void ElectronBrowserClient::OverrideWebkitPrefs(
|
|||
? blink::mojom::PreferredColorScheme::kDark
|
||||
: blink::mojom::PreferredColorScheme::kLight;
|
||||
|
||||
auto preloads =
|
||||
SessionPreferences::GetValidPreloads(web_contents->GetBrowserContext());
|
||||
if (!preloads.empty())
|
||||
prefs->preloads = preloads;
|
||||
|
||||
SetFontDefaults(prefs);
|
||||
|
||||
// Custom preferences of guest page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue