Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2272)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort out the tests Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index ebebc65756f431bc1ee8074423dde2d1b2e5ccef..70b7d4c710ccc70d8b21895b871dd0a5b90c96ab 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -1466,9 +1466,6 @@ public class AwContents implements SmartClipProvider,
Log.wtf(TAG, "Unable to load data string " + data, e);
return;
}
- // When loading data with a non-data: base URL, WebView must allow renderers
- // to access file: URLs.
- nativeGrantFileSchemeAccesstoChildProcess(mNativeAwContents);
}
loadUrl(loadUrlParams);
}
@@ -1487,6 +1484,7 @@ public class AwContents implements SmartClipProvider,
// file:///android_res/ URLs. If AwSettings.getAllowFileAccess permits, it will also
// allow access to file:// URLs (subject to OS level permission checks).
params.setCanLoadLocalResources(true);
+ nativeGrantFileSchemeAccesstoChildProcess(mNativeAwContents);
}
// If we are reloading the same url, then set transition type as reload.

Powered by Google App Engine
This is Rietveld 408576698