|
|
This patch allows the webview.partitions.accessible_resources entry in chrome app manifests to work fully as intended.
Previously, web pages attempting to use resources specified as webview accessible would fail to load those resources. This happened because a check in the renderer would stop the resource request from being made before the request ever reached the browser process where the webview accessible resources are checked in the manifest. This patch corrects this problem by propagating webview partition IDs to webview guest renderer processes, so that they can check the correct entry in the manifest for accessible resources and allow valid requests to go through to the browser process.
BUG= 460797
Committed: https://crrev.com/ad727fc6c70d04cdd0a9a7d14c4aa68b4c0e8e72
Cr-Commit-Position: refs/heads/master@{#347936}
Total comments: 5
Total comments: 8
Total comments: 22
Total comments: 10
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+234 lines, -127 lines) |
Patch |
 |
M |
chrome/browser/apps/guest_view/web_view_browsertest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/plugins/plugin_info_message_filter.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/manifest_tests/extension_manifests_webview_accessible_resources_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+35 lines, -54 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/chrome_content_renderer_client.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/chrome_content_renderer_client.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/resource_request_policy.h
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/resource_request_policy.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+15 lines, -13 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/assets/test.bmp
|
View
|
1
2
3
4
5
|
Binary file |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/background.js
|
View
|
1
2
3
4
5
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.html
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.js
|
View
|
1
2
3
4
5
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/guest.html
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/manifest.json
|
View
|
1
2
3
4
5
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_view_guest.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_view_guest.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_view_renderer_state.h
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/renderer_startup_helper.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/url_request_util.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
extensions/common/extension_messages.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/common/manifest_handlers/webview_info.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
extensions/common/manifest_handlers/webview_info.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/dispatcher.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/dispatcher.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 37 (14 generated)
|