-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the native URL.createObjectURL
method more in the web/
folder
#11845
Use the native URL.createObjectURL
method more in the web/
folder
#11845
Conversation
Given that `URL.createObjectURL` is assumed to always be available in MOZCENTRAL builds, note the existing usage in the file, there's no reason to depend on the PDF.js helper function `createObjectURL` at all here. Furthermore this patch also changes `DownloadManager.downloadData` to actually revoke the `blobUrl` after downloading has completed, which is similar to the existing code in `DownloadManager.download`.
…ewer.js` There's no particular reason for using the PDF.js helper function `createObjectURL` here, given that the relevant code-path is already guarded by multiple "disableCreateObjectURL" option checks.
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/34c19ae7237f76b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/34c19ae7237f76b/output.txt Total script time: 2.57 mins Published |
ca776ef
to
fe69bea
Compare
…F file, when opening the `blobUrl` fails This is a simple work-around for https://bugzilla.mozilla.org/show_bug.cgi?id=1632644 which was caused by platform changes in Firefox. Ideally the Firefox bug should still be fixed, but these PDF.js changes seem generally useful to prevent both current and future issues here.
fe69bea
to
fd9f3d7
Compare
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/cb94ef04b727c63/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/cb94ef04b727c63/output.txt Total script time: 2.47 mins Published |
Looks good! |
Please refer to the individual commit messages.