Skip to content

Commit 375b793

Browse files
fix: do not allow child windows to specify their own preload script (electron#23226)
1 parent 96bf9ce commit 375b793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/parse-features-string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function parseWebViewWebPreferences (preferences: string) {
7575
return parseCommaSeparatedKeyValue(preferences, false).parsed;
7676
}
7777

78-
const allowedWebPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'preload', 'javascript', 'contextIsolation', 'webviewTag'] as const;
78+
const allowedWebPreferences = ['zoomFactor', 'nodeIntegration', 'enableRemoteModule', 'javascript', 'contextIsolation', 'webviewTag'] as const;
7979
type AllowedWebPreference = (typeof allowedWebPreferences)[number];
8080

8181
/**

0 commit comments

Comments
 (0)