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

Issue 2745573002: Implement the events for Background Fetch (Closed)

Created:
3 years, 9 months ago by Peter Beverloo
Modified:
3 years, 9 months ago
Reviewers:
haraken, harkness
CC:
chromium-reviews, awdf+watch_chromium.org, Peter Beverloo, haraken, blink-reviews-bindings_chromium.org, blink-reviews, harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the events for Background Fetch This CL implements the events for Background Fetch. There are four: - BackgroundFetchEvent (onbackgroundfetchabort; base event) - BackgroundFetchClickEvent (onbackgroundfetchclick) - BackgroundFetchedEvent (onbackgroundfetched) - BackgroundFetchFailEvent (onbackgroundfetchfail) Not all attributes are supported yet. Notably, the sequences of requests and responses associated with a fetch will be exposed in a subsequent CL. Tests are included, and are in addition to the IDL harness test in WPT. I'm adding tests for the `fail` and `fetched` events in the next CL, where they get Request and Response knowledge. BUG=692534 Review-Url: https://codereview.chromium.org/2745573002 Cr-Commit-Position: refs/heads/master@{#456296} Committed: https://chromium.googlesource.com/chromium/src/+/4c13484884ae6388d116d6d9d84c9fc42479630d

Patch Set 1 #

Patch Set 2 : Implement the events for Background Fetch #

Total comments: 10

Patch Set 3 : comments + webexposed tests #

Patch Set 4 : more webexposed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-event.https.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-click-event-worker.js View 1 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/background_fetch/resources/background-fetch-event-worker.js View 1 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 4 chunks +19 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 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTypeNames.json5 View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_fetch/BUILD.gn View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.cpp View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.idl View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEventInit.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h View 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.cpp View 1 chunk +26 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.idl View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEventInit.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h View 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.cpp View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.idl View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEventInit.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h View 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.cpp View 1 1 chunk +32 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.idl View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEventInit.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/ServiceWorkerGlobalScopeBackgroundFetch.h View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_fetch/ServiceWorkerGlobalScopeBackgroundFetch.idl View 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 4 chunks +17 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (7 generated)
Peter Beverloo
+harkness
3 years, 9 months ago (2017-03-09 15:01:48 UTC) #2
harkness
lgtm https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html File third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html (right): https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html#newcode17 third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html:17: // This test needs to be ran in ...
3 years, 9 months ago (2017-03-09 19:41:15 UTC) #3
Peter Beverloo
+haraken, this one too. It looks sizeable but it's really four times the same thing. ...
3 years, 9 months ago (2017-03-10 00:42:50 UTC) #6
haraken
LGTM https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h File third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h (right): https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h#newcode38 third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h:38: String m_tag; Maybe we want to use AtomicString ...
3 years, 9 months ago (2017-03-10 09:36:34 UTC) #7
Peter Beverloo
Thank you! https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html File third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html (right): https://codereview.chromium.org/2745573002/diff/20001/third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html#newcode17 third_party/WebKit/LayoutTests/http/tests/background_fetch/background-fetch-click-event.https.html:17: // This test needs to be ran ...
3 years, 9 months ago (2017-03-10 14:03:49 UTC) #8
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/2745573002/60001
3 years, 9 months ago (2017-03-12 01:01:04 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-12 02:35:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4c13484884ae6388d116d6d9d84c...

Powered by Google App Engine
This is Rietveld 408576698