
Enable JavaScript in the Pepper-free viewer. Use a separate isolate than
Blink's for PDFium. This is fine, even on the same thread, because
PDFium only makes scoped entries to its V8 isolate, so there's no danger
of jumping back into Blink with PDFium's isolate being the current one.
The Unseasoned Viewer does not respect content settings yet.
Bug: 1111024
Change-Id: I8f92997d6d6fcb8f9b42c621da9230b26a63b998
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3003541
Commit-Queue: Daniel Hosseinian <dhoss@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#900586}
//pdf
contains the PDF plugin, its Blink-based replacement, as well as PDF
utility functions that leverage PDFium. It can use low-level components that
live below the content layer, as well as other foundational code like
//printing
. It should not use //content
or anything in //components
that
lives above the content layer. Code that lives above the content layer should
live in //components/pdf
, or in the embedder. All the code here should run in
sandboxed child processes.
TODO(crbug.com/1220865): Remove existing //content
dependencies.