Bug 1489880 [wpt PR 12910] - Update interfaces/background-fetch.idl
authorautofoolip <40241672+autofoolip@users.noreply.github.com>
Tue, 11 Sep 2018 10:02:13 +0000
changeset 436011 4eba1600ad62ef167ac7bda894e50b0292983210
parent 436010 af37a9d1a32a685117e780f10e92cbc6f78e3b21
child 436012 e12f08fd2c8b5acb23845cf79540e0e5fdfaa3ad
push id34625
push userdvarga@mozilla.com
push dateThu, 13 Sep 2018 02:31:40 +0000
treeherdermozilla-central@51e9e9660b3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1489880, 12910
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1489880 [wpt PR 12910] - Update interfaces/background-fetch.idl , a=testonly Automatic update from web-platform-testsUpdate interfaces/background-fetch.idl (#12910) Source: https://github.com/tidoust/reffy-reports/blob/63eb77f/whatwg/idl/background-fetch.idl -- wpt-commits: 19b2ce861d26bbb27f0c0fa3247eacc3d06849a1 wpt-pr: 12910
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/background-fetch.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -615464,17 +615464,17 @@
    "a55db2795927e3e3b1b45c589a24b4cd424c6de2",
    "support"
   ],
   "interfaces/audio-output.idl": [
    "c8efd4ea05161b06a3995fb29f19941452ec6b10",
    "support"
   ],
   "interfaces/background-fetch.idl": [
-   "92b6026f8b6dbbc4a79c1b3cdfdf73a0253aeaa6",
+   "130d5d825a5bef49fd651c0cb326b9b40a7fa2c7",
    "support"
   ],
   "interfaces/battery-status.idl": [
    "1dcaabb0bad226efb962fae5cdabebf728980afa",
    "support"
   ],
   "interfaces/beacon.idl": [
    "c5e3465c59fcfadba79803f7baf1853c2c48e06b",
--- a/testing/web-platform/tests/interfaces/background-fetch.idl
+++ b/testing/web-platform/tests/interfaces/background-fetch.idl
@@ -32,41 +32,43 @@ dictionary BackgroundFetchOptions : Back
 
 [Exposed=(Window,Worker)]
 interface BackgroundFetchRegistration : EventTarget {
   readonly attribute DOMString id;
   readonly attribute unsigned long long uploadTotal;
   readonly attribute unsigned long long uploaded;
   readonly attribute unsigned long long downloadTotal;
   readonly attribute unsigned long long downloaded;
-  readonly attribute BackgroundFetchState state;
+  readonly attribute BackgroundFetchResult result;
   readonly attribute BackgroundFetchFailureReason failureReason;
+  readonly attribute boolean recordsAvailable;
 
   attribute EventHandler onprogress;
 
   Promise<boolean> abort();
   Promise<BackgroundFetchRecord> match(RequestInfo request, optional CacheQueryOptions options);
   Promise<sequence<BackgroundFetchRecord>> matchAll(optional RequestInfo request, optional CacheQueryOptions options);
 };
 
-enum BackgroundFetchState { "pending", "success", "failure" };
+enum BackgroundFetchResult { "", "success", "failure" };
 
 enum BackgroundFetchFailureReason {
+  // The background fetch has not completed yet, or was successful.
   "",
   // The operation was aborted by the user, or abort() was called.
   "aborted",
   // A response had a not-ok-status.
   "bad-status",
   // A fetch failed for other reasons, e.g. CORS, MIX, an invalid partial response,
   // or a general network failure for a fetch that cannot be retried.
   "fetch-error",
   // Storage quota was reached during the operation.
   "quota-exceeded",
   // The provided downloadTotal was exceeded.
-  "total-download-exceeded"
+  "download-total-exceeded"
 };
 
 [Exposed=(Window,Worker)]
 interface BackgroundFetchRecord {
   readonly attribute Request request;
   readonly attribute Promise<Response> responseReady;
 };