diff options
author | paulmeyer <paulmeyer@chromium.org> | 2015-09-09 08:29:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-09 15:30:39 +0000 |
commit | ad727fc6c70d04cdd0a9a7d14c4aa68b4c0e8e72 (patch) | |
tree | 636ac8f7f24b949da300eac03b6ac9668d8b0c84 /extensions/common/extension_messages.h | |
parent | cb8a8e9c598b6a59c1955b89618680acdca17231 (diff) | |
download | chromium_src-ad727fc6c70d04cdd0a9a7d14c4aa68b4c0e8e72.zip chromium_src-ad727fc6c70d04cdd0a9a7d14c4aa68b4c0e8e72.tar.gz chromium_src-ad727fc6c70d04cdd0a9a7d14c4aa68b4c0e8e72.tar.bz2 |
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
Review URL: https://codereview.chromium.org/1312653003
Cr-Commit-Position: refs/heads/master@{#347936}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r-- | extensions/common/extension_messages.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h index d78ada4..5ec63d1 100644 --- a/extensions/common/extension_messages.h +++ b/extensions/common/extension_messages.h @@ -387,7 +387,7 @@ IPC_STRUCT_BEGIN(ExtensionMsg_UpdatePermissions_Params) IPC_STRUCT_MEMBER(ExtensionMsg_PermissionSetStruct, withheld_permissions) IPC_STRUCT_END() -// Messages sent from the browser to the renderer. +// Messages sent from the browser to the renderer: // The browser sends this message in response to all extension api calls. The // response data (if any) is one of the base::Value subclasses, wrapped as the @@ -574,7 +574,11 @@ IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs, std::vector<std::string> /* blob_uuids */) -// Messages sent from the renderer to the browser. +// Report the WebView partition ID to the WebView guest renderer process. +IPC_MESSAGE_CONTROL1(ExtensionMsg_SetWebViewPartitionID, + std::string /* webview_partition_id */) + +// Messages sent from the renderer to the browser: // A renderer sends this message when an extension process starts an API // request. The browser will always respond with a ExtensionMsg_Response. |