Allow the PDF extension to load its plugin correctly
commit5075bd244002f56c4bfee1bf869c034118c08c65
authorraymes <raymes@chromium.org>
Wed, 26 Nov 2014 04:43:54 +0000 (25 20:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Nov 2014 04:44:16 +0000 (26 04:44 +0000)
treeaa5a763182efe872f0865010d3f59839bc4f0de3
parent496ecd8d62b325362409272c6b26fb027e640786
Allow the PDF extension to load its plugin correctly

This changes the PDF extensions CSP so it can correctly load
its plugin. Previously we were loading it as an <object> and
specifying a src attribute which isn't a valid way to load
a plugin and causes some things not to function correctly.
Now we instead load it as an <embed> which can have a src
attribute.

BUG=416328

Review URL: https://codereview.chromium.org/754393002

Cr-Commit-Position: refs/heads/master@{#305783}
chrome/browser/resources/pdf/manifest.json
chrome/browser/resources/pdf/pdf.js
chrome/test/data/pdf/basic_test.js