From b3ec0a801a3c3ad0b789854df830bd3573d8174a Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 20 Jun 2022 02:40:03 +0200 Subject: [PATCH] chore: cleanup undocumented keys from webFrame.getWebPreference() (#34588) --- shell/renderer/api/electron_api_web_frame.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/shell/renderer/api/electron_api_web_frame.cc b/shell/renderer/api/electron_api_web_frame.cc index ea40c368cee..6a7a0c2387c 100644 --- a/shell/renderer/api/electron_api_web_frame.cc +++ b/shell/renderer/api/electron_api_web_frame.cc @@ -509,22 +509,8 @@ class WebFrameRenderer : public gin::Wrappable, } else if (pref_name == options::kHiddenPage) { // NOTE: hiddenPage is internal-only. return gin::ConvertToV8(isolate, prefs.hidden_page); - } else if (pref_name == options::kOffscreen) { - return gin::ConvertToV8(isolate, prefs.offscreen); } else if (pref_name == options::kNodeIntegration) { return gin::ConvertToV8(isolate, prefs.node_integration); - } else if (pref_name == options::kNodeIntegrationInWorker) { - return gin::ConvertToV8(isolate, prefs.node_integration_in_worker); - } else if (pref_name == options::kNodeIntegrationInSubFrames) { - return gin::ConvertToV8(isolate, true); -#if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER) - } else if (pref_name == options::kSpellcheck) { - return gin::ConvertToV8(isolate, prefs.enable_spellcheck); -#endif - } else if (pref_name == options::kPlugins) { - return gin::ConvertToV8(isolate, prefs.enable_plugins); - } else if (pref_name == options::kEnableWebSQL) { - return gin::ConvertToV8(isolate, prefs.enable_websql); } else if (pref_name == options::kWebviewTag) { return gin::ConvertToV8(isolate, prefs.webview_tag); }