|
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
Total comments: 10
|
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:
Total messages: 14 (7 generated)
|