fix: do not allow child windows to specify their own preload script (#23226)
This commit is contained in:
parent
96bf9ce77f
commit
375b793984
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export function parseWebViewWebPreferences (preferences: string) {
|
||||||
return parseCommaSeparatedKeyValue(preferences, false).parsed;
|
return parseCommaSeparatedKeyValue(preferences, false).parsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
const allowedWebPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'preload', 'javascript', 'contextIsolation', 'webviewTag'] as const;
|
const allowedWebPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'javascript', 'contextIsolation', 'webviewTag'] as const;
|
||||||
type AllowedWebPreference = (typeof allowedWebPreferences)[number];
|
type AllowedWebPreference = (typeof allowedWebPreferences)[number];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue