Skip to content

Add downloads samples#1716

Merged
patrickkettner merged 30 commits into
mainfrom
downloads-samples
Jul 18, 2026
Merged

Add downloads samples#1716
patrickkettner merged 30 commits into
mainfrom
downloads-samples

Conversation

@patrickkettner

Copy link
Copy Markdown
Collaborator

Builds on #934 by @daidr, whose commits this branch carries unchanged: four samples for the downloads API (filename controller, download links, download manager, overwrite). On top of his work: a merge with current main, a formatting pass for current prettier, and fixes to download_manager (missing extName locale message that prevented the extension from loading, a broken icon regeneration path in the service worker, and small MV3 lifetime improvements). Resolves #744, closes #934.

daidr and others added 28 commits May 29, 2023 23:44
the manifest referenced __MSG_extName__ but the locale file never defined
extName, so chrome refused to load the extension at all. the icons.html
regeneration path called drawIcon without options and used toDataURL,
which OffscreenCanvas does not have in a service worker. also drops the
Math.TAU global patch, slows the progress poll to 1s, and wakes the
worker on downloads.onChanged so badges stay correct after it unloads.
@google-cla

google-cla Bot commented Jul 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@patrickkettner

Copy link
Copy Markdown
Collaborator Author

@daidr would you be able to sign the CLA? thanks a bunch!

@dianedee

This comment was marked as off-topic.

@patrickkettner

This comment was marked as off-topic.

@daidr

daidr commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@daidr would you be able to sign the CLA? thanks a bunch!

Sorry, just saw this. I checked the CI logs and found I’ve already signed the CLA — looks like someone else still needs to sign it.

image

@patrickkettner
patrickkettner merged commit 72e2336 into main Jul 18, 2026
12 checks passed
@patrickkettner
patrickkettner deleted the downloads-samples branch July 18, 2026 23:13
@patrickkettner

Copy link
Copy Markdown
Collaborator Author

oops, sorry for the noise and thanks again for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrate manifest v3 download_open

3 participants