Skip to content

Add downloads samples#934

Closed
daidr wants to merge 25 commits into
GoogleChrome:mainfrom
daidr:daidr/downloads
Closed

Add downloads samples#934
daidr wants to merge 25 commits into
GoogleChrome:mainfrom
daidr:daidr/downloads

Conversation

@daidr

@daidr daidr commented May 31, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@daidr
daidr marked this pull request as ready for review June 5, 2023 11:17
@daidr

daidr commented Jun 5, 2023

Copy link
Copy Markdown
Contributor Author

The special thing is that eval was used before download_filename_controller to support writing js to modify the name of the downloaded file, but this cannot be used in MV3.

@oliverdunk oliverdunk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few initial thoughts - thanks for your patience on this one!

Comment thread api-samples/downloads/download_filename_controller/README.md Outdated
Comment thread api-samples/downloads/download_filename_controller/service-worker.js Outdated
Comment thread api-samples/downloads/download_manager/service-worker.js Outdated
Comment thread api-samples/downloads/download_manager/service-worker.js
Comment thread api-samples/downloads/download_manager/service-worker.js Outdated
Comment thread api-samples/downloads/download_manager/popup.js Outdated

@jpmedley jpmedley left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't inherently anything wrong with what you wrote. The issue is that we need consistency for most of the changes I requested. It's no reasonable to expect a guest contributor to know that.

Comment thread api-samples/downloads/download_filename_controller/README.md Outdated
Comment thread api-samples/downloads/download_filename_controller/README.md Outdated
Comment thread api-samples/downloads/download_filename_controller/README.md Outdated
Comment thread api-samples/downloads/download_filename_controller/manifest.json Outdated
Comment thread api-samples/downloads/download_links/README.md Outdated
Comment thread api-samples/downloads/download_manager/_locales/en/messages.json
Comment thread api-samples/downloads/downloads_overwrite/README.md Outdated
Comment thread api-samples/downloads/downloads_overwrite/README.md Outdated
Comment thread api-samples/downloads/downloads_overwrite/manifest.json Outdated
Comment thread api-samples/downloads/download_manager/service-worker.js
Co-authored-by: Joe Medley <jmedley@google.com>
@jpmedley

Copy link
Copy Markdown

READMEs and Descriptions: LGTM

Comment thread api-samples/downloads/download_links/manifest.json Outdated
Co-authored-by: Joe Medley <jmedley@google.com>

@jpmedley jpmedley left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stumbled on a typo when I was looking at where you replaced messages.json text with manifest.json text. I think I made the typo in one of my suggestions. Sorry about that.

@John-hivo

Copy link
Copy Markdown

Could you add the example for download open. I could not using it currently

@Shikho18 Shikho18 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more

suggest({
filename: item.filename,
conflictAction: 'overwrite'
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My addd

@patrickkettner

Copy link
Copy Markdown
Collaborator

hi @daidr, I am really sorry this sat unreviewed for so long. appreciate you taking the time to send it in, but there were a few tweaks I had to make. I sent in #1716 with those changes, but they are stacked on top of these commits so history keeps you as the original author. closing this in favor of that one. thank you!

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.

6 participants