summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 20:22:39 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 20:22:39 +0000
commitee740465ab3f4a723e2144db1d9830c3752fc12d (patch)
tree3210f1a09fbea9e3bd63e29a91c560d73ae3e337
parent6c0570addc47619e705239de27c9a6f260fcdb1c (diff)
downloadchromium_src-ee740465ab3f4a723e2144db1d9830c3752fc12d.zip
chromium_src-ee740465ab3f4a723e2144db1d9830c3752fc12d.tar.gz
chromium_src-ee740465ab3f4a723e2144db1d9830c3752fc12d.tar.bz2
Print Preview: Create the PDF plugin instance as an <embed> instead of an <object>
BUG=none TEST=Right click + save as works. Review URL: http://codereview.chromium.org/6720027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80363 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/print_preview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js
index 0bf6ffb..14cc4a9 100644
--- a/chrome/browser/resources/print_preview.js
+++ b/chrome/browser/resources/print_preview.js
@@ -317,7 +317,7 @@ function createPDFPlugin() {
loadingElement.classList.add('hidden');
var mainView = loadingElement.parentNode;
- var pdfPlugin = document.createElement('object');
+ var pdfPlugin = document.createElement('embed');
pdfPlugin.setAttribute('id', 'pdf-viewer');
pdfPlugin.setAttribute('type', 'application/pdf');
pdfPlugin.setAttribute('src', 'chrome://print/print.pdf');