Changeset 243784 in webkit
- Timestamp:
- Apr 2, 2019, 8:24:29 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
PluginProcess/mac/PluginProcessMac.mm (modified) (1 diff)
-
UIProcess/Plugins/PluginInfoStore.cpp (modified) (1 diff)
-
UIProcess/Plugins/PluginInfoStore.h (modified) (1 diff)
-
UIProcess/Plugins/mac/PluginInfoStoreMac.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r243767 r243784 1 2019-04-02 Geoffrey Garen <ggaren@apple.com> 2 3 Eliminate plugin sandbox exceptions 4 https://bugs.webkit.org/show_bug.cgi?id=196510 5 6 Reviewed by Chris Dumez. 7 8 * PluginProcess/mac/PluginProcessMac.mm: 9 (WebKit::PluginProcess::initializeSandbox): 10 * UIProcess/Plugins/PluginInfoStore.cpp: 11 (WebKit::PluginInfoStore::shouldAllowPluginToRunUnsandboxed): Deleted. 12 * UIProcess/Plugins/PluginInfoStore.h: 13 * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: 14 (WebKit::PluginInfoStore::shouldUsePlugin): 15 (WebKit::PluginInfoStore::shouldAllowPluginToRunUnsandboxed): Deleted. 16 1 17 2019-04-02 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebKit/PluginProcess/mac/PluginProcessMac.mm
r242325 r243784 475 475 } 476 476 477 if (PluginInfoStore::shouldAllowPluginToRunUnsandboxed(m_pluginBundleIdentifier))478 return;479 480 477 bool parentIsSandboxed = parameters.connectionIdentifier.xpcConnection && connectedProcessIsSandboxed(parameters.connectionIdentifier.xpcConnection.get()); 481 478 -
trunk/Source/WebKit/UIProcess/Plugins/PluginInfoStore.cpp
r239427 r243784 160 160 #if !PLATFORM(COCOA) 161 161 162 bool PluginInfoStore::shouldAllowPluginToRunUnsandboxed(const String& pluginBundleIdentifier)163 {164 UNUSED_PARAM(pluginBundleIdentifier);165 return false;166 }167 168 162 PluginModuleLoadPolicy PluginInfoStore::defaultLoadPolicyForPlugin(const PluginModuleInfo&) 169 163 { -
trunk/Source/WebKit/UIProcess/Plugins/PluginInfoStore.h
r239427 r243784 65 65 void clearSupportedPlugins() { m_supportedPlugins = WTF::nullopt; } 66 66 67 static bool shouldAllowPluginToRunUnsandboxed(const String& pluginBundleIdentifier);68 69 67 private: 70 68 PluginModuleInfo findPluginForMIMEType(const String& mimeType, WebCore::PluginData::AllowedPluginTypes) const; -
trunk/Source/WebKit/UIProcess/Plugins/mac/PluginInfoStoreMac.mm
r236322 r243784 84 84 } 85 85 86 bool PluginInfoStore::shouldAllowPluginToRunUnsandboxed(const String& pluginBundleIdentifier)87 {88 if (RuntimeEnabledFeatures::sharedFeatures().experimentalPlugInSandboxProfilesEnabled())89 return false;90 91 return pluginBundleIdentifier == "com.cisco.webex.plugin.gpc64"_s92 || pluginBundleIdentifier == "com.google.googletalkbrowserplugin"_s93 || pluginBundleIdentifier == "com.google.o1dbrowserplugin"_s94 || pluginBundleIdentifier == "com.apple.NPSafeInput"_s95 || pluginBundleIdentifier == "com.apple.BocomSubmitCtrl"_s96 || pluginBundleIdentifier == "com.ftsafe.NPAPI-Core-Safe-SoftKeybaord.plugin.rfc1034identifier"_s97 || pluginBundleIdentifier == "com.cfca.npSecEditCtl.MAC.BOC.plugin"_s98 || pluginBundleIdentifier == "com.cfca.npSecEditCtl.MAC.BOCO"_s99 || pluginBundleIdentifier == "cfca.com.npCryptoKit.MAC.BOC"_s100 || pluginBundleIdentifier == "cfca.com.npP11CertEnroll.MAC.BOC"_s101 || pluginBundleIdentifier == "cfca.com.npCryptoKit.UnionPay.MAC"_s102 || pluginBundleIdentifier == "cfca.com.npP11CertEnroll.MAC.UnionPay"_s103 || pluginBundleIdentifier == "Bocom.netsignplugin"_s104 || pluginBundleIdentifier == "cfca.com.npP11CertEnroll.MAC.CGB"_s105 || pluginBundleIdentifier == "cfca.com.npCryptoKit.CGB.MAC"_s106 || pluginBundleIdentifier == "mw.icbc-safari-MW"_s;107 }108 109 86 bool PluginInfoStore::shouldUsePlugin(Vector<PluginModuleInfo>& alreadyLoadedPlugins, const PluginModuleInfo& plugin) 110 87 { … … 128 105 } 129 106 130 if (currentProcessIsSandboxed() && !plugin.hasSandboxProfile && !shouldAllowPluginToRunUnsandboxed(plugin.bundleIdentifier)) {107 if (currentProcessIsSandboxed() && !plugin.hasSandboxProfile) { 131 108 LOG(Plugins, "Ignoring unsandboxed plug-in %s", plugin.bundleIdentifier.utf8().data()); 132 109 return false;
Note:
See TracChangeset
for help on using the changeset viewer.