|
Allow payload data > 2MB for loadDataWithBaseURL
This is needed for WebView Classic backwards compatibility -
unforks KitKat release branch workaround
https://android.googlesource.com/platform/external/chromium_org/+/63d0ac2aed^!/
Chrome has a limit of 2MB for any URL passed over IPC, to deal with this
payload data in loadDataWithBaseURL is sent as a raw buffer. (This also more
closely matches legacy semantics; e.g. no base64 encode needed).
This does not fix the issue for WebView.loadData() or arbitrary
loadUrl("data:...") navigations. I'll think about that as a followup.
At the same time, upstream the LoadUrlParams creation wrapper methods
from the glue layer into AwContents. This simplifies the underlying classes,
makes the LoadDataWithBaseUrlTest more meaningful, and is needed to avoid the
unnecessary base64 encoding of the data payload.
BUG= 298495
Total comments: 5
Total comments: 1
Total comments: 2
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+237 lines, -67 lines) |
Patch |
 |
M |
android_webview/java/src/org/chromium/android_webview/AwContents.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+47 lines, -1 line |
1 comment
|
Download
|
 |
M |
android_webview/javatests/src/org/chromium/android_webview/test/LoadDataWithBaseUrlTest.java
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+23 lines, -4 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/state_serializer.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+27 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/load_url_params.cc
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/navigation_controller_impl.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/navigation_controller_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/navigation_entry_impl.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/navigation_entry_impl.cc
|
View
|
3
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/content_param_traits.h
|
View
|
1
2
3
4
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/content_param_traits.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+35 lines, -0 lines |
2 comments
|
Download
|
 |
M |
content/common/view_messages.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
|
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+9 lines, -45 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/navigation_controller.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/navigation_entry.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_view_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+14 lines, -10 lines |
0 comments
|
Download
|
Total messages: 34 (0 generated)
|