Use the request URL as the URL of the resources which are fetched ServiceWorker ...
commit20db5d6d857f499d786f6e08ecb64daec089fddc
authorhoro <horo@chromium.org>
Thu, 20 Nov 2014 20:33:30 +0000 (20 12:33 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Nov 2014 20:34:44 +0000 (20 20:34 +0000)
tree4260a41336d02f659a762e7dfe8d73b66c89221d
parentaa5ac2e2e069f7a4fb5b8a81bf2ae23c3be609c6
Use the request URL as the URL of the resources which are fetched ServiceWorker [2/3 chromium]

blink: https://codereview.chromium.org/732963003
 - Intorduce originalURLViaServiceWorker in ResourceResponse and WebURLResponse
 - Change CSP check to use originalURLViaServiceWorker if exists in ResourceFetcher::didReceiveResponse().
2/3 chromium: https://codereview.chromium.org/731983003 [THIS PATCH]
 - Stop updating the request's URL in ResourceDispatcher::OnReceivedResponse() and WebURLLoaderImpl::Context::OnReceivedResponse().
 - Set WebURLResponse's originalURLViaServiceWorker in WebURLLoaderImpl::PopulateURLResponse().
blink: https://codereview.chromium.org/732003002
 - Change CSP check to use originalURLViaServiceWorker.
 - Add LayoutTest for this bug.

BUG=433743

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

Cr-Commit-Position: refs/heads/master@{#305075}
content/child/resource_dispatcher.cc
content/child/web_url_loader_impl.cc