Skip to content
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

Change DownloadManager.download to use Uint8Array-data #18216

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

Part of this code is really old and pre-dates general availability of things such as Blob and URL.createObjectURL. To avoid having to duplicate the Blob-creation in the viewer, we can move this into DownloadManager.download instead.

Also, remove a couple of unnecessary await statements since the methods in question are synchronous.

Part of this code is really old and pre-dates general availability of things such as `Blob` and `URL.createObjectURL`. To avoid having to duplicate the Blob-creation in the viewer, we can move this into `DownloadManager.download` instead.

Also, remove a couple of unnecessary `await` statements since the methods in question are synchronous.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/510782efe85ffc4/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/510782efe85ffc4/output.txt

Total script time: 1.08 mins

Published

@timvandermeij timvandermeij merged commit 593ce96 into mozilla:master Jun 7, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Nice improvement; thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants