fix: child window with nativeWindowOpen should disable node integration (#15213)
* fix: child window with nativeWindowOpen should disable node integration
* Revert "fix: do not enable node integration in child window if not enabled (#15076)"
This reverts commit 0252d7686c
.
This patch is not needed anymore since we are force disabling node integration
for child windows.
This commit is contained in:
parent
7a23980f4b
commit
2f3a8ecd42
8 changed files with 36 additions and 55 deletions
|
@ -76,4 +76,3 @@ tts.patch
|
|||
color_chooser.patch
|
||||
printing.patch
|
||||
verbose_generate_breakpad_symbols.patch
|
||||
web_preferences.patch
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: zcbenz <zcbenz@gmail.com>
|
||||
Date: Thu, 18 Oct 2018 17:08:33 -0700
|
||||
Subject: web_preferences.patch
|
||||
|
||||
Add a node_integration field to WebPreferences so we can determine whether
|
||||
a frame has node integration in renderer process.
|
||||
|
||||
This is required by the nativeWindowOpen option, which put multiple main
|
||||
frames in one renderer process.
|
||||
|
||||
diff --git a/content/public/common/common_param_traits_macros.h b/content/public/common/common_param_traits_macros.h
|
||||
index 57f03dc1ed38f0f7f644615dc7eb7a6f9e568760..7c4409e6e9abf4d02e50c31d480c3e3792e9e655 100644
|
||||
--- a/content/public/common/common_param_traits_macros.h
|
||||
+++ b/content/public/common/common_param_traits_macros.h
|
||||
@@ -198,6 +198,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
||||
IPC_STRUCT_TRAITS_MEMBER(animation_policy)
|
||||
IPC_STRUCT_TRAITS_MEMBER(user_gesture_required_for_presentation)
|
||||
IPC_STRUCT_TRAITS_MEMBER(text_track_margin_percentage)
|
||||
+ IPC_STRUCT_TRAITS_MEMBER(node_integration)
|
||||
IPC_STRUCT_TRAITS_MEMBER(save_previous_document_resources)
|
||||
IPC_STRUCT_TRAITS_MEMBER(text_autosizing_enabled)
|
||||
IPC_STRUCT_TRAITS_MEMBER(double_tap_to_zoom_enabled)
|
||||
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
|
||||
index 78cbf5f3db8624ad3a346406da47d0ec1a2b4e53..b33ac2894c7c305a7e303f323db22caf64d30468 100644
|
||||
--- a/content/public/common/web_preferences.h
|
||||
+++ b/content/public/common/web_preferences.h
|
||||
@@ -222,6 +222,9 @@ struct CONTENT_EXPORT WebPreferences {
|
||||
// Cues will not be placed in this margin area.
|
||||
float text_track_margin_percentage;
|
||||
|
||||
+ // Electron: Whether the frame has node integration.
|
||||
+ bool node_integration = false;
|
||||
+
|
||||
bool immersive_mode_enabled;
|
||||
|
||||
bool text_autosizing_enabled;
|
||||
--
|
||||
2.17.0
|
Loading…
Add table
Add a link
Reference in a new issue