[components] Re-land: "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."

This re-lands commit bc1719598b0980b12bf7717d35ee31d15eb05365.
This commit is contained in:
Jonathan Almeida
2021-01-29 23:19:06 +04:00
committed by mergify[bot]
parent a74e0181bf
commit abdbbf2e8e
11 changed files with 106 additions and 37 deletions

View File

@@ -37,6 +37,10 @@ class OkHttpClient(
)
override fun fetch(request: Request): Response {
if (request.private) {
throw IllegalArgumentException("Client doesn't support private request")
}
if (request.isDataUri()) {
return fetchDataUri(request)
}