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

Issue 819983002: OOP PDF: Fix access to chrome://resources in print preview. (Closed)

Created:
6 years ago by Sam McNally
Modified:
5 years, 11 months ago
Reviewers:
Lei Zhang, raymes
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOP PDF: Fix access to chrome://resources in print preview. When the PDF extension is iframed by the print preview page, it isn't granted permission to access chrome://resources. This CL causes the extension to be granted access to chrome://resources in the renderer process for print-preview by adding it as a content script for chrome://print/*. This is a temporary work-around until either print preview uses an embed element for the OOP PDF plugin or OOP iframe allows extensions to run with their normal permissions when iframed. This also removes the need for the work-around added in r306307. BUG=437417, 444752 Committed: https://crrev.com/7626c7325b71eaef6589d1490258efcf3a16cbe2 Cr-Commit-Position: refs/heads/master@{#310044}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : comment on why the content script #

Patch Set 3 : rebase #

Patch Set 4 : add copyright header to content_script.js to pass presubmit #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -10 lines) Patch
M chrome/browser/resources/component_extension_resources.grd View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/pdf/content_script.js View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/index.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/pdf/manifest-common.json.unflattened View 1 2 3 4 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 chunk +1 line, -8 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Sam McNally
6 years ago (2014-12-23 03:16:04 UTC) #4
raymes
lgtm https://codereview.chromium.org/819983002/diff/40001/chrome/browser/resources/pdf/manifest.json File chrome/browser/resources/pdf/manifest.json (right): https://codereview.chromium.org/819983002/diff/40001/chrome/browser/resources/pdf/manifest.json#newcode31 chrome/browser/resources/pdf/manifest.json:31: "content_scripts": [ Please add a comment here about ...
6 years ago (2014-12-23 03:27:38 UTC) #5
Sam McNally
+thestig for chrome/browser/resources/component_extension_resources.grd. https://codereview.chromium.org/819983002/diff/40001/chrome/browser/resources/pdf/manifest.json File chrome/browser/resources/pdf/manifest.json (right): https://codereview.chromium.org/819983002/diff/40001/chrome/browser/resources/pdf/manifest.json#newcode31 chrome/browser/resources/pdf/manifest.json:31: "content_scripts": [ On 2014/12/23 03:27:38, raymes ...
6 years ago (2014-12-23 03:39:09 UTC) #7
Lei Zhang
lgtm
5 years, 11 months ago (2015-01-05 22:48:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819983002/60001
5 years, 11 months ago (2015-01-05 22:50:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/33240)
5 years, 11 months ago (2015-01-05 22:59:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819983002/100001
5 years, 11 months ago (2015-01-05 23:05:00 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/pdf/manifest.json: While running git apply --index -3 -p1; error: chrome/browser/resources/pdf/manifest.json: ...
5 years, 11 months ago (2015-01-05 23:49:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819983002/120001
5 years, 11 months ago (2015-01-06 02:51:14 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 11 months ago (2015-01-06 03:51:35 UTC) #20
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 03:52:49 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7626c7325b71eaef6589d1490258efcf3a16cbe2
Cr-Commit-Position: refs/heads/master@{#310044}

Powered by Google App Engine
This is Rietveld 408576698