mozilla/pdf.js — pull request #2087 by moderation (2012-09-06 15:52:59+00:00)
Title: Updates to reenable chrome extension

This pull request address issue 2077 https://github.com/mozilla/pdf.js/issues/2077

Chrome is in the process of strengthening extension security and are making changes to the way extensions work.

http://developer.chrome.com/extensions/manifestVersion.html
http://developer.chrome.com/extensions/contentSecurityPolicy.html

These changes move all inline Javascript from viewer.html into viewer.js. The manifest is updated to the new version 2 format. Inline Javascript in pdfHandler.html moved to new file pdfHandler.js.

These changes allow the extension to load and operate without extension security policy warnings or errors in Chrome Dev Channel and Chrome Canary.