https://bugs.webkit.org/show_bug.cgi?id=180204
Reviewed by Brady Eidson.
LayoutTests/imported/w3c:
Rebaseline test which uses skipWaiting().
* web-platform-tests/service-workers/service-worker/claim-with-redirect.https-expected.txt:
Source/WebCore:
ServiceWorkerGlobalScope::skipWaiting() should resolve its promise, even if it is not
implemented yet. For now, always reject the promise.
* workers/service/ServiceWorkerGlobalScope.cpp:
(WebCore::ServiceWorkerGlobalScope::skipWaiting):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225346
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2017-11-30 Chris Dumez <cdumez@apple.com>
+ ServiceWorkerGlobalScope::skipWaiting() should resolve its promise
+ https://bugs.webkit.org/show_bug.cgi?id=180204
+
+ Reviewed by Brady Eidson.
+
+ Rebaseline test which uses skipWaiting().
+
+ * web-platform-tests/service-workers/service-worker/claim-with-redirect.https-expected.txt:
+
+2017-11-30 Chris Dumez <cdumez@apple.com>
+
Populate self.registration.installing/waiting/active inside service workers
https://bugs.webkit.org/show_bug.cgi?id=180168
-CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Cannot update a null/nonexistent service worker registration
+CONSOLE MESSAGE: line 27: Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'r.update')
FAIL Claim works after redirection to another origin assert_equals: expected (string) "updated" but got (undefined) undefined
2017-11-30 Chris Dumez <cdumez@apple.com>
+ ServiceWorkerGlobalScope::skipWaiting() should resolve its promise
+ https://bugs.webkit.org/show_bug.cgi?id=180204
+
+ Reviewed by Brady Eidson.
+
+ ServiceWorkerGlobalScope::skipWaiting() should resolve its promise, even if it is not
+ implemented yet. For now, always reject the promise.
+
+ * workers/service/ServiceWorkerGlobalScope.cpp:
+ (WebCore::ServiceWorkerGlobalScope::skipWaiting):
+
+2017-11-30 Chris Dumez <cdumez@apple.com>
+
Mark a few heap-allocated service worker types as WTF_MAKE_FAST_ALLOCATED
https://bugs.webkit.org/show_bug.cgi?id=180212
ServiceWorkerGlobalScope::~ServiceWorkerGlobalScope() = default;
-void ServiceWorkerGlobalScope::skipWaiting(Ref<DeferredPromise>&&)
+void ServiceWorkerGlobalScope::skipWaiting(Ref<DeferredPromise>&& promise)
{
+ // FIXME: Implement this.
+ promise->reject(Exception { NotSupportedError, ASCIILiteral("self.skipWaiting() is not yet supported") });
}
EventTargetInterface ServiceWorkerGlobalScope::eventTargetInterface() const