Open Bug 1721579 Opened 3 years ago Updated 1 year ago

intercept request "replace a network request with a local file from apk"

Categories

(GeckoView :: General, enhancement, P3)

Firefox 92
Unspecified
All
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: ardemiranda, Unassigned)

Details

Attachments

(1 file)

Attached image intercept.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

I'm trying to load something from the apk with a resource address from a server. For example a request to the address https://example.com/app/index.html is intercepted to get it from an index.html file in the apk and the request to the server is not made.

Actual results:

The issue is that I need to keep the domain "https://example.com" I can't change this address to resource://, moz-extension://, data:text/html,<data> because I'm going to fall into some block when using other features such as service-worker.

Expected results:

It is possible to perform this type of intercept request using android webview.

Two examples where this type of intercept request can be found:
https://github.com/google/webview-local-server
https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader

Summary: intercept request → intercept request "replace a network request with a local file from apk"
Severity: -- → S3
Priority: -- → P3

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: