Closed Bug 1772700 Opened 2 years ago Closed 2 years ago

Allow webRequest API to work on "blob:" URLs

Categories

(WebExtensions :: Request Handling, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Manuel.Spam, Unassigned)

References

Details

This feature request actually is a forward of an issue that was reported for my Android PDF viewer Add-on: https://github.com/M-Reimer/android-pdf-js/issues/21

The example URL, mentioned there, is: https://drive.proton.me/urls/2AZV8KM548#7Tm8waVTnial

For some unknown reason they don't just deliver the file directly with a http(s) URL but they fetch it first (and pass some additional request header when doing this so it gets impossible to "deep link" this) and then trigger the download with a "blob:" URL.

My PDF viewer Add-on is not able to handle this PDF file as, so far, the webRequest API is not able to work on blob: URLs.

Whiteboard: [design-decision-needed]

Hooking up blob:-handlers to WebRequest takes a considerable amount of work, if at all possible.

Just adding support for blob:-URLs to webRequest wouldn't cover your use case, e.g. data:-URLs cannot be matched either.

We're more inclined to support a content handling API to support the given use case (bug 1457500).

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
See Also: → 1631933, 1457500
Whiteboard: [design-decision-needed]
You need to log in before you can comment on or make changes to this bug.