Commit 24b92879 authored by Will Harris's avatar Will Harris Committed by Commit Bot

MacOS: Disable JIT entitlement for non-Flash plugin processes.

BUG=961831

Change-Id: Iaf98c71732e029d68cc6e97d5f9911676a154bd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079649Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746883}
parent 2f9a6034
...@@ -369,7 +369,10 @@ bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) { ...@@ -369,7 +369,10 @@ bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) {
int flags = plugin_launcher.empty() ? ChildProcessHost::CHILD_ALLOW_SELF : int flags = plugin_launcher.empty() ? ChildProcessHost::CHILD_ALLOW_SELF :
ChildProcessHost::CHILD_NORMAL; ChildProcessHost::CHILD_NORMAL;
#elif defined(OS_MACOSX) #elif defined(OS_MACOSX)
int flags = ChildProcessHost::CHILD_PLUGIN; // Flash needs to JIT, but other plugins do not.
int flags = permissions_.HasPermission(ppapi::PERMISSION_FLASH)
? ChildProcessHost::CHILD_PLUGIN
: ChildProcessHost::CHILD_NORMAL;
#else #else
int flags = ChildProcessHost::CHILD_NORMAL; int flags = ChildProcessHost::CHILD_NORMAL;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment