New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 824060 link

Starred by 6 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Explicit API for download manager

Project Member Reported by jochen@chromium.org, Mar 21 2018

Issue description

Should we have an API to interact directly with the download manager?

Maybe some extension of fetch() so we don't have to download the whole file and convert it to a blob that is dumped into an <a download> element?

I guess there's also some appetite for having a way to download multiple files that works reliably cross browsers.
 
Not a developer by any means but I followed the rabbit hole towards this topic with the 'Block cross-origin <a download>' change essentially killing a feature(for now) on a extension I use quite a bit. https://github.com/extesy/hoverzoom/issues/344

The ease at which you can save a image by hovering over a image and hitting 'S' without a contextual download window popping up was an oddly nice QoL feature. If an API can help aid in something like that I am all for it while trying to minimize the 'user-mediated cross-origin information leakage' issue.

Additionally, while slightly off topic, is there a command line flag for disabling that feature of blink? I am not quite sure what I am to look for in the settings.json5 for the setting name. This is assuming '--blink-settings <name>[=<value]' could be applied to it.

Kind regards to all of the work put in still.
Cc: peter@chromium.org
Owner: dtrainor@chromium.org
Status: Assigned (was: Untriaged)
I think we're building this out through the new background fetch JS API?  Although I don't think that lets us give the file contents as they are downloaded (we still do blobs on a per-file basis).

+peter@ to help figure out if that meets your needs and/or if it'd be worth tweaking the spec to address it.  :).

Comment 3 by peter@chromium.org, Mar 22 2018

Yeah, that sounds like Background Fetch:
https://wicg.github.io/background-fetch/

Support for accessing in-progress downloads is in the specification as BackgroundFetchRegistration.activeFetches. It's something we eventually want to support as there are very good use-cases, but it's currently scoped post v1.

Sign in to add a comment