pdf.js/extensions/chrome/manifest.json
Rob Wu ec5ef58b84 [CRX] Improved navigation detection.
A user reported that the PDF Viewer is not rendered on Dropbox,
(Chrome on Mac OS X). This is apparently caused by the fact that the
PDF file is loaded in an iframe in such a way that the tabs.onUpdated
event is not triggered.

This patch switches to the webNavigation event API, which improves the
reliability of the navigation detection.

Unfortunately Opera 15 does not support the webNavigation API, so the
old (tabs.onUpdated) method is used (feature-detection is used, so
whenever Opera decides to implement this API, it will profit from it).
2013-07-17 19:04:10 +02:00

32 lines
643 B
JSON

{
"manifest_version": 2,
"name": "PDF Viewer",
"version": "PDFJSSCRIPT_VERSION",
"description": "Uses HTML5 to display PDF files directly in Chrome.",
"icons": {
"128": "icon128.png",
"48": "icon48.png",
"16": "icon16.png"
},
"permissions": [
"webRequest", "webRequestBlocking",
"<all_urls>",
"tabs",
"webNavigation"
],
"content_scripts": [{
"matches": [
"*://*/*.pdf*",
"*://*/*.PDF*"
],
"css": ["hide-xhtml-error.css"]
}],
"background": {
"page": "pdfHandler.html"
},
"web_accessible_resources": [
"patch-worker.js",
"content/*"
]
}