Revert of Skip the Service Worker CORS fallback for same origin requests. [2/2 chromi...
commitac2794675706a635dd3e54245c27f64411927a6c
authorjohnme <johnme@chromium.org>
Mon, 3 Aug 2015 08:48:17 +0000 (3 01:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 3 Aug 2015 08:48:48 +0000 (3 08:48 +0000)
treed2be47c89b4952401a2391e8df07262e36b8f524
parentae9604308c926cc7df6205b5207dbf63c6e55314
Revert of Skip the Service Worker CORS fallback for same origin requests. [2/2 chromium] (patchset #1 id:40001 of https://codereview.chromium.org/1242953007/)

Reason for revert:
This broke http/tests/serviceworker/fetch-request-fallback.html, causing failures on 3 bots and timeouts on 18 bots.

See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fserviceworker%2Ffetch-request-fallback.html&testType=layout-tests

Original issue's description:
> Skip the Service Worker CORS fallback for same origin requests. [2/2 chromium]
>
> We are sending CORS fallback response from the browser process to the page's renderer process, when the ServiceWorker doesn't handle the CORS fetch request.
> But when the request URL's origin is same as the page's security origin, we can skip the fallback and send the request from the browser process.
>
> This change will improve the delay of the CORS fallback for same origin requests, especially when the renderer main thread is busy.
>
blink: https://codereview.chromium.org/1243353002/
> 2/2 chromium: this cl.
>
> BUG=512764
>
> Committed: https://crrev.com/97b13409b0c601f21f048744fa8e31852b476337
> Cr-Commit-Position: refs/heads/master@{#341482}

TBR=falken@chromium.org,tyoshino@chromium.org,horo@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=512764

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

Cr-Commit-Position: refs/heads/master@{#341499}
content/browser/service_worker/service_worker_url_request_job.cc