Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: chrome/browser/resources/pdf/manifest-common.json.unflattened

Issue 819983002: OOP PDF: Fix access to chrome://resources in print preview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/pdf/index.html ('k') | chrome/browser/resources/pdf/pdf.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/manifest-common.json.unflattened
diff --git a/chrome/browser/resources/pdf/manifest-common.json.unflattened b/chrome/browser/resources/pdf/manifest-common.json.unflattened
index 947593351c7cf514e4df790b3d4243b5d877fbc7..a2033143ab3441199096ddd506f1a7699ea9b43b 100644
--- a/chrome/browser/resources/pdf/manifest-common.json.unflattened
+++ b/chrome/browser/resources/pdf/manifest-common.json.unflattened
@@ -22,4 +22,13 @@
"mime_types": [
"application/pdf"
],
- "content_security_policy": "script-src 'self' chrome://resources; object-src *; plugin-types application/x-google-chrome-pdf"
+ "content_security_policy": "script-src 'self' chrome://resources; object-src *; plugin-types application/x-google-chrome-pdf",
+ // This is to work-around an issue where this extension is not granted
+ // permission to access chrome://resources when iframed for print preview.
+ // See https://crbug.com/444752.
+ "content_scripts": [
+ {
+ "matches": ["chrome://print/*"],
+ "js": ["content_script.js"]
+ }
+ ]
« no previous file with comments | « chrome/browser/resources/pdf/index.html ('k') | chrome/browser/resources/pdf/pdf.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698