[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:
committed by
mergify[bot]
parent
a74e0181bf
commit
abdbbf2e8e
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user