fix: isolate Pepper plugins (#28332)

This commit is contained in:
Calvin 2021-03-24 12:11:26 -06:00 committed by GitHub
parent d93690ccdc
commit 89df6b98da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<blink::WebPrescientNetworking>