[components] Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE.
This commit is contained in:
committed by
mergify[bot]
parent
e460372f34
commit
c1a6273aa5
@@ -32,6 +32,9 @@ class HttpURLConnectionClient : Client() {
|
||||
|
||||
@Throws(IOException::class)
|
||||
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