Commit afb34685 authored by mkwst@chromium.org's avatar mkwst@chromium.org

Set PPAPI plugins' requests' contexts to 'WebURLRequest::RequestContextPlugin'.

Pepper plugins' requests are piped through Blink's Fetch implementation,
giving us the opportunity to make policy decisions about whether or not
they should be allowed by CSP or Mixed Content (we're currently not
using this ability).

In order to make these decisions, we need to know that the request is
for data a plugin is requesting, as opposed to a plugin itself. This
patch adds that detail to PPAPI's URL-requesting logic.

BUG=390497

Review URL: https://codereview.chromium.org/409563002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284445 0039d316-1c4b-4281-b951-d872f2087c98
parent b5472c84
......@@ -258,6 +258,7 @@ int32_t PepperURLLoaderHost::InternalOnHostMsgOpen(
}
web_request.setTargetType(WebURLRequest::TargetIsObject);
web_request.setRequestContext(WebURLRequest::RequestContextPlugin);
web_request.setRequestorProcessID(renderer_ppapi_host_->GetPluginPID());
WebURLLoaderOptions options;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment