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

Issue 7566049: Add content-security-policy directive to print-preview pages. (Closed)

Created:
9 years, 4 months ago by Tom Sepez
Modified:
9 years, 4 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Add content-security-policy directive to print-preview pages. Since print-preview uses an object tag, relax the object-src restriction in the content_security_policy.html file. Also fix typo in print_preview.html where the object tag has a src="", not a data="" attribute. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95850

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -158 lines) Patch
M chrome/browser/browser_resources.grd View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/content_security_policy.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_data_source.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.cc View 2 chunks +84 lines, -141 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Tom Sepez
Tested manually with --enable-print-preview. Was able to print page to printer.
9 years, 4 months ago (2011-08-05 00:24:25 UTC) #1
Evan Stade
9 years, 4 months ago (2011-08-05 18:28:42 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698