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

Issue 2744873002: Implement the Request/Response bits of Background Fetch (Closed)

Created:
3 years, 9 months ago by Peter Beverloo
Modified:
3 years, 9 months ago
Reviewers:
haraken, harkness
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, awdf+watch_chromium.org, shimazu+serviceworker_chromium.org, Peter Beverloo, serviceworker-reviews, nhiroki, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik, harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the Request/Response bits of Background Fetch This CL implements the parts of the Background Fetch API that deal with requests and responses, notably in the events. Following this, the Web Exposed API that we're aiming for in MVP is implemented. Tests for the `backgroundfetched` and `backgroundfetchfail` events have been added, pending upstreaming to WPT like the others. BUG=692534 Review-Url: https://codereview.chromium.org/2744873002 Cr-Commit-Position: refs/heads/master@{#456383} Committed: https://chromium.googlesource.com/chromium/src/+/f0a182b5ebc9c86a6dd3df10cb0ebdbfb73c43dd

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-fail-event.https.html View 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetched-event.https.html View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js View 1 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetched-event-worker.js View 1 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp View 1 chunk +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEventInit.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRegistration.idl View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.h View 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.cpp View 1 chunk +22 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchRequest.idl View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchSettledRequest.h View 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchSettledRequest.cpp View 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchSettledRequest.idl View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp View 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEventInit.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Peter Beverloo
+haraken, harkness Last plumbing CL, the exposed API is now complete :). Next up is ...
3 years, 9 months ago (2017-03-10 18:09:50 UTC) #2
harkness
lgtm https://codereview.chromium.org/2744873002/diff/1/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js File third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js (right): https://codereview.chromium.org/2744873002/diff/1/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js#newcode8 third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js:8: // The `tag` and `failedFetches` are required in ...
3 years, 9 months ago (2017-03-13 12:43:07 UTC) #3
Peter Beverloo
https://codereview.chromium.org/2744873002/diff/1/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js File third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js (right): https://codereview.chromium.org/2744873002/diff/1/third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js#newcode8 third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-fail-event-worker.js:8: // The `tag` and `failedFetches` are required in the ...
3 years, 9 months ago (2017-03-13 13:23:17 UTC) #5
haraken
Implementation-wise LGTM.
3 years, 9 months ago (2017-03-13 13:30:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2744873002/20001
3 years, 9 months ago (2017-03-13 15:16:14 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 15:23:08 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f0a182b5ebc9c86a6dd3df10cb0e...

Powered by Google App Engine
This is Rietveld 408576698