Title: [250186] trunk/Source/WebKit
- Revision
- 250186
- Author
- [email protected]
- Date
- 2019-09-21 15:57:46 -0700 (Sat, 21 Sep 2019)
Log Message
Safari 13 may launch leftover 32-bit plug-in process from Safari 12’s WebKit, which crashes
https://bugs.webkit.org/show_bug.cgi?id=202077
<rdar://problem/55547063>
Reviewed by Sam Weinig.
* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
(WebKit::getPluginArchitecture): Removed support for i386 plug-ins.
* UIProcess/Launcher/mac/ProcessLauncherMac.mm:
(WebKit::serviceName): Assert that the requested process type is not Plugin32.
* UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
(WebKit::PluginProcessProxy::platformGetLaunchOptionsWithAttributes): Assert that the
plug-in architecture is x86_64.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (250185 => 250186)
--- trunk/Source/WebKit/ChangeLog 2019-09-21 20:20:56 UTC (rev 250185)
+++ trunk/Source/WebKit/ChangeLog 2019-09-21 22:57:46 UTC (rev 250186)
@@ -1,3 +1,21 @@
+2019-09-21 Dan Bernstein <[email protected]>
+
+ Safari 13 may launch leftover 32-bit plug-in process from Safari 12’s WebKit, which crashes
+ https://bugs.webkit.org/show_bug.cgi?id=202077
+ <rdar://problem/55547063>
+
+ Reviewed by Sam Weinig.
+
+ * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
+ (WebKit::getPluginArchitecture): Removed support for i386 plug-ins.
+
+ * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
+ (WebKit::serviceName): Assert that the requested process type is not Plugin32.
+
+ * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
+ (WebKit::PluginProcessProxy::platformGetLaunchOptionsWithAttributes): Assert that the
+ plug-in architecture is x86_64.
+
2019-09-21 Antoine Quint <[email protected]>
[Pointer Events] touch-action set to pan-x or pan-y alone should disable scrolling altogether if the intial gesture is in the disallowed direction
Modified: trunk/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm (250185 => 250186)
--- trunk/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm 2019-09-21 20:20:56 UTC (rev 250185)
+++ trunk/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm 2019-09-21 22:57:46 UTC (rev 250186)
@@ -60,12 +60,6 @@
plugin.pluginArchitecture = CPU_TYPE_X86_64;
return true;
}
-
- // We also support 32-bit Intel plug-ins on 64-bit Intel.
- if (architectures.contains(kCFBundleExecutableArchitectureI386)) {
- plugin.pluginArchitecture = CPU_TYPE_X86;
- return true;
- }
#endif
return false;
Modified: trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm (250185 => 250186)
--- trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm 2019-09-21 20:20:56 UTC (rev 250185)
+++ trunk/Source/WebKit/UIProcess/Launcher/mac/ProcessLauncherMac.mm 2019-09-21 22:57:46 UTC (rev 250186)
@@ -58,7 +58,8 @@
return "com.apple.WebKit.Networking";
#if ENABLE(NETSCAPE_PLUGIN_API)
case ProcessLauncher::ProcessType::Plugin32:
- return "com.apple.WebKit.Plugin.32";
+ ASSERT_NOT_REACHED();
+ return nullptr;
case ProcessLauncher::ProcessType::Plugin64:
return "com.apple.WebKit.Plugin.64";
#endif
Modified: trunk/Source/WebKit/UIProcess/Plugins/mac/PluginProcessProxyMac.mm (250185 => 250186)
--- trunk/Source/WebKit/UIProcess/Plugins/mac/PluginProcessProxyMac.mm 2019-09-21 20:20:56 UTC (rev 250185)
+++ trunk/Source/WebKit/UIProcess/Plugins/mac/PluginProcessProxyMac.mm 2019-09-21 22:57:46 UTC (rev 250186)
@@ -60,10 +60,8 @@
void PluginProcessProxy::platformGetLaunchOptionsWithAttributes(ProcessLauncher::LaunchOptions& launchOptions, const PluginProcessAttributes& pluginProcessAttributes)
{
- if (pluginProcessAttributes.moduleInfo.pluginArchitecture == CPU_TYPE_X86)
- launchOptions.processType = ProcessLauncher::ProcessType::Plugin32;
- else
- launchOptions.processType = ProcessLauncher::ProcessType::Plugin64;
+ ASSERT(pluginProcessAttributes.moduleInfo.pluginArchitecture == CPU_TYPE_X86);
+ launchOptions.processType = ProcessLauncher::ProcessType::Plugin64;
launchOptions.extraInitializationData.add("plugin-path", pluginProcessAttributes.moduleInfo.path);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes