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

Unified Diff: chrome/browser/resources/pdf/index.html

Issue 1217503012: Avoid cross-origin iframe issues when loading PDF in print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: chrome/browser/resources/pdf/index.html
diff --git a/chrome/browser/resources/pdf/index.html b/chrome/browser/resources/pdf/index.html
index d35a6538f2152f072a8e03008355674ac790f2f8..d47f31ddfec10d70be9484b4190c1319693b9459 100644
--- a/chrome/browser/resources/pdf/index.html
+++ b/chrome/browser/resources/pdf/index.html
@@ -1,6 +1,12 @@
<!doctype html>
<html i18n-values="dir:textdirection;lang:language">
<head>
+ <!--
+ We set the base URL explicitly here as this file can be included outside of
+ the PDF viewer to embed the viewer elsewhere. TODO(raymes): We should
+ package this into a polymer element to better encapsulate it.
+ -->
+ <base href="chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/">
<meta charset="utf-8">
<script src="settings.js"></script>
<link rel="import" href="elements/viewer-button/viewer-button.html">

Powered by Google App Engine
This is Rietveld 408576698