From 89df6b98da123f847b82eab897e02dadab02a7d4 Mon Sep 17 00:00:00 2001 From: Calvin Date: Wed, 24 Mar 2021 12:11:26 -0600 Subject: [PATCH] fix: isolate Pepper plugins (#28332) --- shell/renderer/renderer_client_base.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/shell/renderer/renderer_client_base.cc b/shell/renderer/renderer_client_base.cc index ba4676bf7877..77e766cd2b45 100644 --- a/shell/renderer/renderer_client_base.cc +++ b/shell/renderer/renderer_client_base.cc @@ -361,11 +361,8 @@ bool RendererClientBase::IsPluginHandledExternally( bool RendererClientBase::IsOriginIsolatedPepperPlugin( const base::FilePath& plugin_path) { -#if BUILDFLAG(ENABLE_PDF_VIEWER) - return plugin_path.value() == kPdfPluginPath; -#else - return false; -#endif + // Isolate all Pepper plugins, including the PDF plugin. + return true; } std::unique_ptr