pdf.js/web
Rob Wu 88767e1861 Improve download button and behaviour
Fix download button for top frames and sub frames

When PDF.js is the top frame, and the PDF URL is identical to
the top URL, download would fail. Fixed by adding a ? or & in these
cases.

When PDF.js is embedded in a frame from a different origin, download
would fail because window.open(url, '_parent') is ignored.
Fixed by using a.click() when available.
a.click() works in Chrome 25, Firefox 19, Opera 12.00 and IE 8.
Safari 5.1 does not support a.click()

Use a.download if available + documentation
2013-04-04 13:40:28 +02:00
..
images Replacing page shadow with image; removing some profixed styles 2013-03-03 09:38:38 -06:00
.gitignore Updates webL10n; using viewer.properties as is 2012-11-29 14:02:33 -06:00
compatibility.js Add a console warning when JavaScript/AcroForm/XFA was found 2013-03-19 07:27:09 +09:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js Compatibility with XHTML documents 2013-04-04 12:35:50 +02:00
firefoxcom.js Replace getUserData()/setUserData() with CustomEvents 2013-02-06 23:31:50 +09:00
index.html.template Update web/index.html.template 2012-10-02 07:26:20 -05:00
viewer-snippet-b2g-activity-header.html Add close button and title bar for b2g. 2012-11-28 11:02:56 -08:00
viewer-snippet-firefox-extension.html Un-inline pdf.js for the extension/mozcentral and remove fetch pdf by content code. 2012-10-29 12:44:18 -07:00
viewer-snippet.html Updates webL10n; using viewer.properties as is 2012-11-29 14:02:33 -06:00
viewer.css Merge pull request #3022 from Rob--W/css-button-fix 2013-04-03 11:19:35 -07:00
viewer.html Don't hide the download/print buttons when view is small. 2013-02-25 16:53:54 -08:00
viewer.js Improve download button and behaviour 2013-04-04 13:40:28 +02:00