Closed Bug 1680622 Opened 4 years ago Closed 4 years ago

[1538348 subtask 5] Cancelling downloads on certain HTTP status codes - add support to WebExecutor

Categories

(GeckoView :: Extensions, task, P1)

Unspecified
All

Tracking

(firefox85 fixed)

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: owlish, Assigned: owlish)

References

(Blocks 1 open bug)

Details

(Whiteboard: [geckoview:m85])

Attachments

(1 file, 1 obsolete file)

This is needed to implement allowHttpErrors functionality [1] in Web Extension downloads API.

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/downloads/download

Attachment #9191198 - Attachment description: Bug 1680622 - Add AllowHttpErrors flag to WebExecutor → Bug 1680622 - Add DisallowHttpErrors flag to WebExecutor
Attachment #9191198 - Attachment is obsolete: true
Attached file Bug 1680622 - Remove dead code (deleted) —

Upon some discussion, Agi and I came to conclusion there is no need for this flag in Web Executor, since the status code can be checked in JVM and the download doesn't need to be completed for that. Having the flag would then seem like a duplicate of the existing API. In embedding code that plugs in multiple download managers (built in Android DownloadManager, for example) the check for the http status would still need to be done (either conditionally - depending on which download manager is being used - or not).

The flag is passed as part of the Downloadrequest, so the embedding code gets it and can implement the functionality using the existing Web Executor (or Android DownloadManager or some other tool) APIs.

So the initial patch for this bug https://phabricator.services.mozilla.com/D98698 was abandoned and instead we are removing dead (or rather still-born) code.

Pushed by istorozhko@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d79ac11c3052 Remove dead code r=geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: