Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Issue 1242953007: Skip the Service Worker CORS fallback for same origin requests. [2/2 chromium] (Closed)

Created:
5 years, 5 months ago by horo
Modified:
5 years, 4 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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. 1/2 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}

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M content/browser/service_worker/service_worker_url_request_job.cc View 1 chunk +9 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
horo
falken@ Could you please review this?
5 years, 5 months ago (2015-07-22 09:26:21 UTC) #4
falken
Why is request_mode CORS when the request is not cross-origin?
5 years, 5 months ago (2015-07-22 22:12:42 UTC) #5
horo
On 2015/07/22 22:12:42, falken wrote: > Why is request_mode CORS when the request is not ...
5 years, 5 months ago (2015-07-23 03:20:49 UTC) #6
falken
OK I think I see. If request mode were same-origin, a response that redirects cross-origin ...
5 years, 5 months ago (2015-07-23 07:02:48 UTC) #8
tyoshino (SeeGerritForStatus)
On 2015/07/23 07:02:48, falken wrote: > OK I think I see. If request mode were ...
5 years, 5 months ago (2015-07-23 07:29:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242953007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1242953007/40001
5 years, 4 months ago (2015-07-31 02:26:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242953007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1242953007/40001
5 years, 4 months ago (2015-08-03 02:10:39 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:40001)
5 years, 4 months ago (2015-08-03 07:00:51 UTC) #15
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/97b13409b0c601f21f048744fa8e31852b476337 Cr-Commit-Position: refs/heads/master@{#341482}
5 years, 4 months ago (2015-08-03 07:01:28 UTC) #16
johnme
5 years, 4 months ago (2015-08-03 08:47:21 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:40001) has been created in
https://codereview.chromium.org/1258893004/ by johnme@chromium.org.

The reason for reverting is: 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=htt....

Powered by Google App Engine
This is Rietveld 408576698