Changeset 224218 in webkit


Ignore:
Timestamp:
Oct 30, 2017 8:13:03 PM (6 years ago)
Author:
Chris Dumez
Message:

Fire updatefound event after resolving the registration promise
https://bugs.webkit.org/show_bug.cgi?id=178985

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

Rebaseline tests and land expected results for tests that are timing out.
A lot of tests are now actualling testing something instead of failing right away.

  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-add.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-delete.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-keys.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-match.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-matchAll.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-keys.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage.https-expected.txt:
  • web-platform-tests/service-workers/cache-storage/serviceworker/credentials.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event-constructor.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/postmessage.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/registration-attribute.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/unregister.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/update.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/activate-event-after-install-state-change.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/activation-after-registration.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/active.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/appcache-ordering-main.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/claim-affect-other-registration.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/claim-fetch.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/claim-not-using-registration.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/claim-using-registration.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/claim-worker-fetch.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/client-id.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/client-navigate.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-get-client-types.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-get-cross-origin.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-get.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-matchall-client-types.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-matchall-exact-controller.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-matchall-include-uncontrolled.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-matchall-on-evaluation.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/clients-matchall-order.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/clients-matchall.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/controller-on-disconnect.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/controller-on-load.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/controller-on-reload.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/extendable-event-async-waituntil.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/extendable-event-waituntil.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-canvas-tainting-cache.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-canvas-tainting.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-cors-xhr.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-csp.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-after-navigation-within-page.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-async-respond-with.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-network-error.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-redirect.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-referrer-policy.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-respond-with-argument.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-respond-with-readable-stream.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-respond-with-response-body-with-invalid-chunk.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-throws-after-respond-with.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event-within-sw.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-frame-resource.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-header-visibility.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-inscope.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-outscope.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-request-css-base-url.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-css-cross-origin-mime-check.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-css-images.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-fallback.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-html-imports.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-no-freshness-headers.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-redirect.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-resources.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-xhr-sync.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-request-xhr.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-response-taint.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/fetch-response-xhr.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/fetch-waits-for-activate.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/foreign-fetch-basics.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/foreign-fetch-cors.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/foreign-fetch-event.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/foreign-fetch-workers.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/getregistrations.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/iframe-sandbox-register-link-element.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/immutable-prototype-serviceworker.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/import-scripts-redirect.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/indexeddb.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/install-event-type.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/installing.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/interfaces-sw.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/interfaces-window.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/invalid-blobtype.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/invalid-header.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/iso-latin1-header.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/link-element-register-basic.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/link-element-register-mime-types.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/link-element-register-scope.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/link-element-register-script-url.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/link-element-register-script.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/link-element-register-security-error.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/mime-sniffing.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/multi-globals/url-parsing.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/multiple-register.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/multiple-update.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigate-window.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/broken-chunked-encoding.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/chunked-encoding.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/empty-preload-response-body.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/get-state.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/redirect.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/request-headers.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-preload/resource-timing.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-redirect-body.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/navigation-redirect-to-http.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/navigation-redirect.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/onactivate-script-error.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/oninstall-script-error.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/opaque-response-preloaded.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/performance-timeline.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/postmessage-blob-url.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/postmessage-from-waiting-serviceworker.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/postmessage-msgport-to-client.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/postmessage-to-client.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/postmessage.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/ready.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/redirected-response.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/referer.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/referrer-policy-header.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/register-default-scope.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/register-foreign-fetch-errors.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/register-same-scope-different-script-url.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/register-wait-forever-in-install-worker.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-basic.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-end-to-end.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-events.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-mime-types.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-scope.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-script-url.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-script.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-security-error.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-service-worker-attributes.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/registration-updateviacache.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/request-body-blob.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/request-end-to-end.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/resource-timing.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/service-worker-csp-connect.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/service-worker-csp-default.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/service-worker-csp-script.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/serviceworker-message-event-historical.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/serviceworkerobject-scripturl.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/shared-worker-controlled.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/skip-waiting-installed.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/skip-waiting-using-registration.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/skip-waiting-without-client.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/skip-waiting.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/state.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/synced-state.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/uncontrolled-page.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/unregister-controller.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/unregister-then-register.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/unregister.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/update-after-oneday.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/update-bytecheck.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/update-recovery.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/update.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/waiting.https-expected.txt: Added.
  • web-platform-tests/service-workers/service-worker/websocket.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/windowclient-navigate.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/worker-interception.https-expected.txt:
  • web-platform-tests/service-workers/service-worker/xhr.https-expected.txt:

Source/WebCore:

Fake series of events that are supposed to happen after registering a service worker
that notify the page of the service worker's installation and activation.

Also make sure that registration.installing / waiting / active return proper values.
Make sure that serviceWorker.scriptURL returns a proper value.

This unblocks a lot of web-platform-tests since they were blocked shortly after
registration due to missing events or registration.installing being null.

  • dom/ScriptExecutionContext.cpp:

(WebCore::ScriptExecutionContext::activeServiceWorker const):
(WebCore::ScriptExecutionContext::setActiveServiceWorker):

  • dom/ScriptExecutionContext.h:
  • loader/WorkerThreadableLoader.cpp:

(WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):

  • loader/cache/CachedResourceLoader.cpp:

(WebCore::CachedResourceLoader::prepareFetch):

  • workers/WorkerScriptLoader.cpp:

(WebCore::WorkerScriptLoader::loadSynchronously):
(WebCore::WorkerScriptLoader::loadAsynchronously):

  • workers/service/ServiceWorker.cpp:

(WebCore::ServiceWorker::ServiceWorker):
(WebCore::ServiceWorker::setState):

  • workers/service/ServiceWorker.h:
  • workers/service/ServiceWorkerContainer.cpp:

(WebCore::ServiceWorkerContainer::controller const):
(WebCore::ServiceWorkerContainer::jobResolvedWithRegistration):
(WebCore::ServiceWorkerContainer::jobResolvedWithUnregistrationResult):

  • workers/service/ServiceWorkerContainer.h:
  • workers/service/ServiceWorkerRegistration.cpp:

(WebCore::ServiceWorkerRegistration::ServiceWorkerRegistration):
(WebCore::ServiceWorkerRegistration::~ServiceWorkerRegistration):
(WebCore::ServiceWorkerRegistration::installing):
(WebCore::ServiceWorkerRegistration::waiting):
(WebCore::ServiceWorkerRegistration::active):

  • workers/service/ServiceWorkerRegistration.h:
  • workers/service/ServiceWorkerRegistrationData.cpp:

(WebCore::ServiceWorkerRegistrationData::isolatedCopy const):

  • workers/service/ServiceWorkerRegistrationData.h:

(WebCore::ServiceWorkerRegistrationData::encode const):
(WebCore::ServiceWorkerRegistrationData::decode):

  • workers/service/server/SWClientConnection.cpp:

(WebCore::SWClientConnection::postMessageToServiceWorkerClient):

  • workers/service/server/SWServerRegistration.cpp:

(WebCore::SWServerRegistration::scriptContextStarted):
(WebCore::SWServerRegistration::runRegisterJob):
(WebCore::SWServerRegistration::data const):

  • workers/service/server/SWServerRegistration.h:

LayoutTests:

Update tests that are skipped due to timing out.

Location:
trunk
Files:
30 added
157 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r224214 r224218  
     12017-10-30  Chris Dumez  <cdumez@apple.com>
     2
     3        Fire updatefound event after resolving the registration promise
     4        https://bugs.webkit.org/show_bug.cgi?id=178985
     5
     6        Reviewed by Youenn Fablet.
     7
     8        Update tests that are skipped due to timing out.
     9
     10        * TestExpectations:
     11
    1122017-10-30  Ryan Haddad  <ryanhaddad@apple.com>
    213
  • trunk/LayoutTests/TestExpectations

    r224211 r224218  
    143143imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https.html [ Skip ]
    144144imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event-constructor.https.html [ Skip ]
     145imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event.https.html [ Skip ]
     146imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/unregister.https.html [ Skip ]
     147imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/update.https.html [ Skip ]
    145148imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall-on-evaluation.https.html [ Skip ]
     149imported/w3c/web-platform-tests/service-workers/service-worker/extendable-event-waituntil.https.html [ Skip ]
    146150imported/w3c/web-platform-tests/service-workers/service-worker/fetch-canvas-tainting-cache.https.html [ Skip ]
    147151imported/w3c/web-platform-tests/service-workers/service-worker/fetch-canvas-tainting.https.html [ Skip ]
    148152imported/w3c/web-platform-tests/service-workers/service-worker/fetch-cors-xhr.https.html [ Skip ]
     153imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-network-error.https.html [ Skip ]
     154imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-argument.https.html [ Skip ]
    149155imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-inscope.https.html [ Skip ]
    150156imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-outscope.https.html [ Skip ]
     
    155161imported/w3c/web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https.html [ Skip ]
    156162imported/w3c/web-platform-tests/service-workers/service-worker/iframe-sandbox-register-link-element.https.html [ Skip ]
     163imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https.html [ Skip ]
    157164imported/w3c/web-platform-tests/service-workers/service-worker/interfaces-sw.https.html [ Skip ]
    158165imported/w3c/web-platform-tests/service-workers/service-worker/link-element-register-basic.https.html [ Skip ]
     
    162169imported/w3c/web-platform-tests/service-workers/service-worker/link-element-register-script.https.html [ Skip ]
    163170imported/w3c/web-platform-tests/service-workers/service-worker/link-element-register-security-error.https.html [ Skip ]
     171imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/broken-chunked-encoding.https.html [ Skip ]
     172imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/get-state.https.html [ Skip ]
     173imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/redirect.https.html [ Skip ]
    164174imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-to-http.https.html [ Skip ]
    165175imported/w3c/web-platform-tests/service-workers/service-worker/performance-timeline.https.html [ Skip ]
     176imported/w3c/web-platform-tests/service-workers/service-worker/postmessage.https.html [ Skip ]
    166177imported/w3c/web-platform-tests/service-workers/service-worker/register-foreign-fetch-errors.https.html [ Skip ]
     178imported/w3c/web-platform-tests/service-workers/service-worker/registration-service-worker-attributes.https.html [ Skip ]
     179imported/w3c/web-platform-tests/service-workers/service-worker/registration-updateviacache.https.html [ Skip ]
    167180imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-connect.https.html [ Skip ]
    168181imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-default.https.html [ Skip ]
    169182imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-script.https.html [ Skip ]
    170183imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting-without-client.https.html [ Skip ]
     184imported/w3c/web-platform-tests/service-workers/service-worker/uncontrolled-page.https.html [ Skip ]
     185imported/w3c/web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https.html [ Skip ]
     186imported/w3c/web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https.html [ Skip ]
     187imported/w3c/web-platform-tests/service-workers/service-worker/update-after-oneday.https.html [ Skip ]
    171188imported/w3c/web-platform-tests/service-workers/service-worker/update-bytecheck.https.html [ Skip ]
    172 imported/w3c/web-platform-tests/service-workers/service-worker/waiting.https.html [ Skip ]
     189
     190imported/w3c/web-platform-tests/fetch/api/abort/general-serviceworker.https.html [ Skip ]
    173191imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html [ Skip ]
    174192imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-service-worker.https.html [ Skip ]
     
    205223imported/w3c/web-platform-tests/streams/readable-streams/templated.serviceworker.https.html [ Skip ]
    206224
     225imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-redirect.https.html [ Pass Failure ]
     226imported/w3c/web-platform-tests/service-workers/service-worker/websocket.https.html [ Pass Failure ]
    207227http/tests/workers/service/service-worker-cache-api.https.html [ Pass Failure ]
    208 imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect.https.html [ Pass Failure ]
    209228
    210229# textarea.animate is not supported
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r224195 r224218  
     12017-10-30  Chris Dumez  <cdumez@apple.com>
     2
     3        Fire updatefound event after resolving the registration promise
     4        https://bugs.webkit.org/show_bug.cgi?id=178985
     5
     6        Reviewed by Youenn Fablet.
     7
     8        Rebaseline tests and land expected results for tests that are timing out.
     9        A lot of tests are now actualling testing something instead of failing right away.
     10
     11        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-add.https-expected.txt:
     12        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-delete.https-expected.txt:
     13        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-keys.https-expected.txt:
     14        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-match.https-expected.txt:
     15        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-matchAll.https-expected.txt:
     16        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt:
     17        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-keys.https-expected.txt:
     18        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https-expected.txt:
     19        * web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage.https-expected.txt:
     20        * web-platform-tests/service-workers/cache-storage/serviceworker/credentials.https-expected.txt:
     21        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https-expected.txt: Added.
     22        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event-constructor.https-expected.txt: Added.
     23        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event.https-expected.txt:
     24        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/postmessage.https-expected.txt:
     25        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/registration-attribute.https-expected.txt:
     26        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https-expected.txt:
     27        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/unregister.https-expected.txt:
     28        * web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/update.https-expected.txt:
     29        * web-platform-tests/service-workers/service-worker/activate-event-after-install-state-change.https-expected.txt:
     30        * web-platform-tests/service-workers/service-worker/activation-after-registration.https-expected.txt:
     31        * web-platform-tests/service-workers/service-worker/active.https-expected.txt:
     32        * web-platform-tests/service-workers/service-worker/appcache-ordering-main.https-expected.txt:
     33        * web-platform-tests/service-workers/service-worker/claim-affect-other-registration.https-expected.txt:
     34        * web-platform-tests/service-workers/service-worker/claim-fetch.https-expected.txt:
     35        * web-platform-tests/service-workers/service-worker/claim-not-using-registration.https-expected.txt:
     36        * web-platform-tests/service-workers/service-worker/claim-using-registration.https-expected.txt:
     37        * web-platform-tests/service-workers/service-worker/claim-worker-fetch.https-expected.txt:
     38        * web-platform-tests/service-workers/service-worker/client-id.https-expected.txt:
     39        * web-platform-tests/service-workers/service-worker/client-navigate.https-expected.txt:
     40        * web-platform-tests/service-workers/service-worker/clients-get-client-types.https-expected.txt:
     41        * web-platform-tests/service-workers/service-worker/clients-get-cross-origin.https-expected.txt:
     42        * web-platform-tests/service-workers/service-worker/clients-get.https-expected.txt:
     43        * web-platform-tests/service-workers/service-worker/clients-matchall-client-types.https-expected.txt:
     44        * web-platform-tests/service-workers/service-worker/clients-matchall-exact-controller.https-expected.txt:
     45        * web-platform-tests/service-workers/service-worker/clients-matchall-include-uncontrolled.https-expected.txt:
     46        * web-platform-tests/service-workers/service-worker/clients-matchall-on-evaluation.https-expected.txt: Added.
     47        * web-platform-tests/service-workers/service-worker/clients-matchall-order.https-expected.txt:
     48        * web-platform-tests/service-workers/service-worker/clients-matchall.https-expected.txt:
     49        * web-platform-tests/service-workers/service-worker/controller-on-disconnect.https-expected.txt:
     50        * web-platform-tests/service-workers/service-worker/controller-on-load.https-expected.txt:
     51        * web-platform-tests/service-workers/service-worker/controller-on-reload.https-expected.txt:
     52        * web-platform-tests/service-workers/service-worker/extendable-event-async-waituntil.https-expected.txt:
     53        * web-platform-tests/service-workers/service-worker/extendable-event-waituntil.https-expected.txt:
     54        * web-platform-tests/service-workers/service-worker/fetch-canvas-tainting-cache.https-expected.txt: Added.
     55        * web-platform-tests/service-workers/service-worker/fetch-canvas-tainting.https-expected.txt: Added.
     56        * web-platform-tests/service-workers/service-worker/fetch-cors-xhr.https-expected.txt: Added.
     57        * web-platform-tests/service-workers/service-worker/fetch-csp.https-expected.txt:
     58        * web-platform-tests/service-workers/service-worker/fetch-event-after-navigation-within-page.https-expected.txt:
     59        * web-platform-tests/service-workers/service-worker/fetch-event-async-respond-with.https-expected.txt:
     60        * web-platform-tests/service-workers/service-worker/fetch-event-network-error.https-expected.txt:
     61        * web-platform-tests/service-workers/service-worker/fetch-event-redirect.https-expected.txt:
     62        * web-platform-tests/service-workers/service-worker/fetch-event-referrer-policy.https-expected.txt:
     63        * web-platform-tests/service-workers/service-worker/fetch-event-respond-with-argument.https-expected.txt:
     64        * web-platform-tests/service-workers/service-worker/fetch-event-respond-with-readable-stream.https-expected.txt:
     65        * web-platform-tests/service-workers/service-worker/fetch-event-respond-with-response-body-with-invalid-chunk.https-expected.txt:
     66        * web-platform-tests/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https-expected.txt:
     67        * web-platform-tests/service-workers/service-worker/fetch-event-throws-after-respond-with.https-expected.txt:
     68        * web-platform-tests/service-workers/service-worker/fetch-event-within-sw.https-expected.txt:
     69        * web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt:
     70        * web-platform-tests/service-workers/service-worker/fetch-frame-resource.https-expected.txt:
     71        * web-platform-tests/service-workers/service-worker/fetch-header-visibility.https-expected.txt:
     72        * web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-inscope.https-expected.txt: Added.
     73        * web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-outscope.https-expected.txt: Added.
     74        * web-platform-tests/service-workers/service-worker/fetch-request-css-base-url.https-expected.txt:
     75        * web-platform-tests/service-workers/service-worker/fetch-request-css-cross-origin-mime-check.https-expected.txt:
     76        * web-platform-tests/service-workers/service-worker/fetch-request-css-images.https-expected.txt:
     77        * web-platform-tests/service-workers/service-worker/fetch-request-fallback.https-expected.txt:
     78        * web-platform-tests/service-workers/service-worker/fetch-request-html-imports.https-expected.txt:
     79        * web-platform-tests/service-workers/service-worker/fetch-request-no-freshness-headers.https-expected.txt:
     80        * web-platform-tests/service-workers/service-worker/fetch-request-redirect.https-expected.txt:
     81        * web-platform-tests/service-workers/service-worker/fetch-request-resources.https-expected.txt:
     82        * web-platform-tests/service-workers/service-worker/fetch-request-xhr-sync.https-expected.txt:
     83        * web-platform-tests/service-workers/service-worker/fetch-request-xhr.https-expected.txt:
     84        * web-platform-tests/service-workers/service-worker/fetch-response-taint.https-expected.txt: Added.
     85        * web-platform-tests/service-workers/service-worker/fetch-response-xhr.https-expected.txt:
     86        * web-platform-tests/service-workers/service-worker/fetch-waits-for-activate.https-expected.txt:
     87        * web-platform-tests/service-workers/service-worker/foreign-fetch-basics.https-expected.txt: Added.
     88        * web-platform-tests/service-workers/service-worker/foreign-fetch-cors.https-expected.txt:
     89        * web-platform-tests/service-workers/service-worker/foreign-fetch-event.https-expected.txt: Added.
     90        * web-platform-tests/service-workers/service-worker/foreign-fetch-workers.https-expected.txt: Added.
     91        * web-platform-tests/service-workers/service-worker/getregistrations.https-expected.txt:
     92        * web-platform-tests/service-workers/service-worker/http-to-https-redirect-and-register.https-expected.txt: Added.
     93        * web-platform-tests/service-workers/service-worker/iframe-sandbox-register-link-element.https-expected.txt: Added.
     94        * web-platform-tests/service-workers/service-worker/immutable-prototype-serviceworker.https-expected.txt:
     95        * web-platform-tests/service-workers/service-worker/import-scripts-redirect.https-expected.txt: Added.
     96        * web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt:
     97        * web-platform-tests/service-workers/service-worker/indexeddb.https-expected.txt:
     98        * web-platform-tests/service-workers/service-worker/install-event-type.https-expected.txt:
     99        * web-platform-tests/service-workers/service-worker/installing.https-expected.txt:
     100        * web-platform-tests/service-workers/service-worker/interfaces-sw.https-expected.txt: Added.
     101        * web-platform-tests/service-workers/service-worker/interfaces-window.https-expected.txt:
     102        * web-platform-tests/service-workers/service-worker/invalid-blobtype.https-expected.txt:
     103        * web-platform-tests/service-workers/service-worker/invalid-header.https-expected.txt:
     104        * web-platform-tests/service-workers/service-worker/iso-latin1-header.https-expected.txt:
     105        * web-platform-tests/service-workers/service-worker/link-element-register-basic.https-expected.txt: Added.
     106        * web-platform-tests/service-workers/service-worker/link-element-register-mime-types.https-expected.txt: Added.
     107        * web-platform-tests/service-workers/service-worker/link-element-register-scope.https-expected.txt: Added.
     108        * web-platform-tests/service-workers/service-worker/link-element-register-script-url.https-expected.txt: Added.
     109        * web-platform-tests/service-workers/service-worker/link-element-register-script.https-expected.txt: Added.
     110        * web-platform-tests/service-workers/service-worker/link-element-register-security-error.https-expected.txt: Added.
     111        * web-platform-tests/service-workers/service-worker/mime-sniffing.https-expected.txt: Added.
     112        * web-platform-tests/service-workers/service-worker/multi-globals/url-parsing.https-expected.txt:
     113        * web-platform-tests/service-workers/service-worker/multiple-register.https-expected.txt:
     114        * web-platform-tests/service-workers/service-worker/multiple-update.https-expected.txt:
     115        * web-platform-tests/service-workers/service-worker/navigate-window.https-expected.txt:
     116        * web-platform-tests/service-workers/service-worker/navigation-preload/broken-chunked-encoding.https-expected.txt:
     117        * web-platform-tests/service-workers/service-worker/navigation-preload/chunked-encoding.https-expected.txt:
     118        * web-platform-tests/service-workers/service-worker/navigation-preload/empty-preload-response-body.https-expected.txt:
     119        * web-platform-tests/service-workers/service-worker/navigation-preload/get-state.https-expected.txt:
     120        * web-platform-tests/service-workers/service-worker/navigation-preload/redirect.https-expected.txt:
     121        * web-platform-tests/service-workers/service-worker/navigation-preload/request-headers.https-expected.txt:
     122        * web-platform-tests/service-workers/service-worker/navigation-preload/resource-timing.https-expected.txt:
     123        * web-platform-tests/service-workers/service-worker/navigation-redirect-body.https-expected.txt:
     124        * web-platform-tests/service-workers/service-worker/navigation-redirect-to-http.https-expected.txt: Added.
     125        * web-platform-tests/service-workers/service-worker/navigation-redirect.https-expected.txt:
     126        * web-platform-tests/service-workers/service-worker/onactivate-script-error.https-expected.txt:
     127        * web-platform-tests/service-workers/service-worker/oninstall-script-error.https-expected.txt:
     128        * web-platform-tests/service-workers/service-worker/opaque-response-preloaded.https-expected.txt:
     129        * web-platform-tests/service-workers/service-worker/performance-timeline.https-expected.txt: Added.
     130        * web-platform-tests/service-workers/service-worker/postmessage-blob-url.https-expected.txt:
     131        * web-platform-tests/service-workers/service-worker/postmessage-from-waiting-serviceworker.https-expected.txt:
     132        * web-platform-tests/service-workers/service-worker/postmessage-msgport-to-client.https-expected.txt:
     133        * web-platform-tests/service-workers/service-worker/postmessage-to-client.https-expected.txt:
     134        * web-platform-tests/service-workers/service-worker/postmessage.https-expected.txt:
     135        * web-platform-tests/service-workers/service-worker/ready.https-expected.txt:
     136        * web-platform-tests/service-workers/service-worker/redirected-response.https-expected.txt:
     137        * web-platform-tests/service-workers/service-worker/referer.https-expected.txt:
     138        * web-platform-tests/service-workers/service-worker/referrer-policy-header.https-expected.txt:
     139        * web-platform-tests/service-workers/service-worker/register-default-scope.https-expected.txt:
     140        * web-platform-tests/service-workers/service-worker/register-foreign-fetch-errors.https-expected.txt: Added.
     141        * web-platform-tests/service-workers/service-worker/register-same-scope-different-script-url.https-expected.txt:
     142        * web-platform-tests/service-workers/service-worker/register-wait-forever-in-install-worker.https-expected.txt:
     143        * web-platform-tests/service-workers/service-worker/registration-basic.https-expected.txt:
     144        * web-platform-tests/service-workers/service-worker/registration-end-to-end.https-expected.txt:
     145        * web-platform-tests/service-workers/service-worker/registration-events.https-expected.txt:
     146        * web-platform-tests/service-workers/service-worker/registration-mime-types.https-expected.txt:
     147        * web-platform-tests/service-workers/service-worker/registration-scope.https-expected.txt:
     148        * web-platform-tests/service-workers/service-worker/registration-script-url.https-expected.txt:
     149        * web-platform-tests/service-workers/service-worker/registration-script.https-expected.txt:
     150        * web-platform-tests/service-workers/service-worker/registration-security-error.https-expected.txt:
     151        * web-platform-tests/service-workers/service-worker/registration-service-worker-attributes.https-expected.txt:
     152        * web-platform-tests/service-workers/service-worker/registration-updateviacache.https-expected.txt:
     153        * web-platform-tests/service-workers/service-worker/request-body-blob.https-expected.txt:
     154        * web-platform-tests/service-workers/service-worker/request-end-to-end.https-expected.txt:
     155        * web-platform-tests/service-workers/service-worker/resource-timing.https-expected.txt:
     156        * web-platform-tests/service-workers/service-worker/service-worker-csp-connect.https-expected.txt: Added.
     157        * web-platform-tests/service-workers/service-worker/service-worker-csp-default.https-expected.txt: Added.
     158        * web-platform-tests/service-workers/service-worker/service-worker-csp-script.https-expected.txt: Added.
     159        * web-platform-tests/service-workers/service-worker/serviceworker-message-event-historical.https-expected.txt:
     160        * web-platform-tests/service-workers/service-worker/serviceworkerobject-scripturl.https-expected.txt:
     161        * web-platform-tests/service-workers/service-worker/shared-worker-controlled.https-expected.txt:
     162        * web-platform-tests/service-workers/service-worker/skip-waiting-installed.https-expected.txt:
     163        * web-platform-tests/service-workers/service-worker/skip-waiting-using-registration.https-expected.txt:
     164        * web-platform-tests/service-workers/service-worker/skip-waiting-without-client.https-expected.txt: Added.
     165        * web-platform-tests/service-workers/service-worker/skip-waiting.https-expected.txt:
     166        * web-platform-tests/service-workers/service-worker/state.https-expected.txt:
     167        * web-platform-tests/service-workers/service-worker/synced-state.https-expected.txt:
     168        * web-platform-tests/service-workers/service-worker/uncontrolled-page.https-expected.txt:
     169        * web-platform-tests/service-workers/service-worker/unregister-controller.https-expected.txt:
     170        * web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https-expected.txt:
     171        * web-platform-tests/service-workers/service-worker/unregister-then-register.https-expected.txt:
     172        * web-platform-tests/service-workers/service-worker/unregister.https-expected.txt:
     173        * web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https-expected.txt:
     174        * web-platform-tests/service-workers/service-worker/update-after-oneday.https-expected.txt:
     175        * web-platform-tests/service-workers/service-worker/update-bytecheck.https-expected.txt: Added.
     176        * web-platform-tests/service-workers/service-worker/update-recovery.https-expected.txt:
     177        * web-platform-tests/service-workers/service-worker/update.https-expected.txt:
     178        * web-platform-tests/service-workers/service-worker/waiting.https-expected.txt: Added.
     179        * web-platform-tests/service-workers/service-worker/websocket.https-expected.txt:
     180        * web-platform-tests/service-workers/service-worker/windowclient-navigate.https-expected.txt:
     181        * web-platform-tests/service-workers/service-worker/worker-interception.https-expected.txt:
     182        * web-platform-tests/service-workers/service-worker/xhr.https-expected.txt:
     183
    11842017-10-30  Dean Jackson  <dino@apple.com>
    2185
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/general-serviceworker.https-expected.txt

    r224132 r224218  
    1 CONSOLE MESSAGE: line 1714: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }')
    21
    3 FAIL General fetch abort tests in a service worker null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }')
     2Harness Error (TIMEOUT), message = null
    43
     4FAIL Aborting rejects with AbortError assert_unreached: Should have rejected: undefined Reached unreachable code
     5FAIL Aborting rejects with AbortError - no-cors assert_throws: function "function () { throw e }" threw object "TypeError: A server with the specified hostname could not be found." that is not a DOMException AbortError: property "code" is equal to undefined, expected 20
     6PASS TypeError from request constructor takes priority - RequestInit's window is not null
     7PASS TypeError from request constructor takes priority - Input URL is not valid
     8PASS TypeError from request constructor takes priority - Input URL has credentials
     9PASS TypeError from request constructor takes priority - RequestInit's mode is navigate
     10PASS TypeError from request constructor takes priority - RequestInit's referrer is invalid
     11PASS TypeError from request constructor takes priority - RequestInit's method is invalid
     12PASS TypeError from request constructor takes priority - RequestInit's method is forbidden
     13PASS TypeError from request constructor takes priority - RequestInit's mode is no-cors and method is not simple
     14PASS TypeError from request constructor takes priority - RequestInit's cache mode is only-if-cached and mode is not same-origin
     15PASS TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode cors
     16PASS TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode no-cors
     17PASS TypeError from request constructor takes priority - Bad referrerPolicy init parameter value
     18PASS TypeError from request constructor takes priority - Bad mode init parameter value
     19PASS TypeError from request constructor takes priority - Bad credentials init parameter value
     20PASS TypeError from request constructor takes priority - Bad cache init parameter value
     21PASS TypeError from request constructor takes priority - Bad redirect init parameter value
     22FAIL Request objects have a signal property assert_true: Signal member is present & truthy expected true got false
     23FAIL Signal on request object assert_true: Signal member is present & truthy expected true got false
     24FAIL Signal on request object created from request object assert_unreached: Should have rejected: undefined Reached unreachable code
     25FAIL Signal on request object created from request object, with signal on second request assert_unreached: Should have rejected: undefined Reached unreachable code
     26FAIL Signal on request object created from request object, with signal on second request overriding another assert_unreached: Should have rejected: undefined Reached unreachable code
     27FAIL Signal retained after unrelated properties are overridden by fetch assert_unreached: Should have rejected: undefined Reached unreachable code
     28PASS Signal removed by setting to null
     29FAIL Already aborted signal rejects immediately assert_unreached: Fetch must not resolve Reached unreachable code
     30PASS Request is still 'used' if signal is aborted before fetching
     31FAIL response.arrayBuffer() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     32FAIL response.blob() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     33FAIL response.formData() rejects if already aborted assert_throws: function "function () { throw e }" threw object "NotSupportedError: The operation is not supported." that is not a DOMException AbortError: property "code" is equal to 9, expected 20
     34FAIL response.json() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     35FAIL response.text() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     36FAIL Already aborted signal does not make request assert_equals: Request hasn't been made to the server expected (object) null but got (string) "open"
     37FAIL Already aborted signal can be used for many fetches assert_unreached: Should have rejected: undefined Reached unreachable code
     38FAIL Signal can be used to abort other fetches, even if another fetch succeeded before aborting assert_unreached: Should have rejected: undefined Reached unreachable code
     39FAIL Underlying connection is closed when aborting after receiving response promise_test: Unhandled rejection with value: object "Error: Timed out"
     40FAIL Underlying connection is closed when aborting after receiving response - no-cors promise_test: Unhandled rejection with value: object "TypeError: A server with the specified hostname could not be found."
     41TIMEOUT Fetch aborted & connection closed when aborted after calling response.arrayBuffer() Test timed out
     42NOTRUN Fetch aborted & connection closed when aborted after calling response.blob()
     43NOTRUN Fetch aborted & connection closed when aborted after calling response.formData()
     44NOTRUN Fetch aborted & connection closed when aborted after calling response.json()
     45NOTRUN Fetch aborted & connection closed when aborted after calling response.text()
     46NOTRUN Stream errors once aborted. Underlying connection closed.
     47NOTRUN Stream errors once aborted, after reading. Underlying connection closed.
     48NOTRUN Stream will not error if body is empty. It's closed with an empty queue before it errors.
     49NOTRUN Readable stream synchronously cancels with AbortError if aborted before reading
     50FAIL Signal state is cloned undefined is not an object (evaluating 'request.signal.aborted')
     51FAIL Clone aborts with original controller undefined is not an object (evaluating 'request.signal.addEventListener')
     52
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Already aborted request does not land in service worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL response.arrayBuffer() rejects if already aborted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL response.blob() rejects if already aborted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL response.formData() rejects if already aborted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL response.json() rejects if already aborted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL response.text() rejects if already aborted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL Stream errors once aborted. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    92
     3FAIL Already aborted request does not land in service worker assert_unreached: Should have rejected: undefined Reached unreachable code
     4FAIL response.arrayBuffer() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     5FAIL response.blob() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     6FAIL response.formData() rejects if already aborted assert_throws: function "function () { throw e }" threw object "NotSupportedError: The operation is not supported." that is not a DOMException AbortError: property "code" is equal to 9, expected 20
     7FAIL response.json() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     8FAIL response.text() rejects if already aborted assert_unreached: Should have rejected: undefined Reached unreachable code
     9FAIL Stream errors once aborted. assert_unreached: Should have rejected: undefined Reached unreachable code
     10
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/messageevent-constructor.https-expected.txt

    r224132 r224218  
    77PASS Passing null for ports parameter to initMessageEvent
    88PASS initMessageEvent operation default parameter values
    9 FAIL Passing ServiceWorker for source member promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     9PASS Passing ServiceWorker for source member
    1010
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-add.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.add and Cache.addAll assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.add and Cache.addAll Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-delete.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.delete assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.delete Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-keys.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.keys assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.keys Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-match.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.match assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.match Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-matchAll.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.matchAll assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.matchAll Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt

    r220924 r224218  
    11
    2 FAIL Cache.put assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Cache.put Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-keys.https-expected.txt

    r220924 r224218  
    11
    2 FAIL CacheStorage.keys assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT CacheStorage.keys Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https-expected.txt

    r220924 r224218  
    11
    2 FAIL CacheStorage.match assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT CacheStorage.match Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage.https-expected.txt

    r220924 r224218  
    11
    2 FAIL CacheStorage assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT CacheStorage Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/credentials.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: line 17: Unhandled Promise Rejection: Error: Not Found
    12
    2 FAIL Cache API matching includes credentials promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3Harness Error (TIMEOUT), message = null
    34
     5TIMEOUT Cache API matching includes credentials Test timed out
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Post an extendable message from a top-level client promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Post an extendable message from a nested client promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Post loopback extendable messages promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL Post extendable messages among service workers promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    63
     4FAIL Post an extendable message from a top-level client promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5FAIL Post an extendable message from a nested client promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'f.contentWindow.navigator.serviceWorker.controller.postMessage')"
     6TIMEOUT Post loopback extendable messages Test timed out
     7NOTRUN Post extendable messages among service workers
     8
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/postmessage.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Post loopback messages promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Post messages among service workers promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    42
     3FAIL Post loopback messages promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     4FAIL Post messages among service workers promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/registration-attribute.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify registration attribute on ServiceWorkerGlobalScope promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Verify registration attribute on ServiceWorkerGlobalScope assert_equals: Service Worker should respond to fetch expected "updatefound,install,statechange(installed),statechange(activating),activate,statechange(activated),fetch" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/service-worker-error-event.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Error handlers inside serviceworker should see the attributes of ErrorEvent promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
     2FAIL Error handlers inside serviceworker should see the attributes of ErrorEvent assert_equals: error column number expected 3 but got 20
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/unregister.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Unregister on script evaluation promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Unregister on installing event promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Unregister on activate event promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL Unregister controlling service worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    63
     4TIMEOUT Unregister on script evaluation Test timed out
     5NOTRUN Unregister on installing event
     6NOTRUN Unregister on activate event
     7NOTRUN Unregister controlling service worker
     8
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/update.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Update a registration on ServiceWorkerGlobalScope promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3Harness Error (TIMEOUT), message = null
     4
     5TIMEOUT Update a registration on ServiceWorkerGlobalScope Test timed out
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/activate-event-after-install-state-change.https-expected.txt

    r224132 r224218  
    11
    2 FAIL installed event should be fired before activating service worker null is not an object (evaluating 'sw')
     2PASS installed event should be fired before activating service worker
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/activation-after-registration.https-expected.txt

    r224132 r224218  
    11
    2 FAIL activation occurs after registration assert_unreached: unexpected rejection: null is not an object (evaluating 'r.installing.state') Reached unreachable code
     2PASS activation occurs after registration
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/active.https-expected.txt

    r224132 r224218  
    11
     2PASS active is set
    23
    3 FAIL active is set assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/appcache-ordering-main.https-expected.txt

    r224132 r224218  
    11
    2 FAIL serviceworkers take priority over appcaches assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL serviceworkers take priority over appcaches assert_unreached: unexpected rejection: assert_false: but serviceworkers should take priority expected false got true Reached unreachable code
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/claim-affect-other-registration.https-expected.txt

    r224132 r224218  
    11
    2 FAIL claim() should affect the originally controlling registration. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL claim() should affect the originally controlling registration. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'r.active')"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/claim-fetch.https-expected.txt

    r224132 r224218  
    11
    22
    3 FAIL fetch() should be intercepted after the client is claimed. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3FAIL fetch() should be intercepted after the client is claimed. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/claim-not-using-registration.https-expected.txt

    r224132 r224218  
    11
    22
    3 FAIL Test claim client which is not using registration promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Test claim client when there's a longer-matched registration not already used by the page promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3FAIL Test claim client which is not using registration promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'frame1.contentWindow.navigator.serviceWorker.controller.scriptURL')"
     4FAIL Test claim client when there's a longer-matched registration not already used by the page promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/claim-using-registration.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test worker claims client which is using another registration promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Test for the waiting worker claims a client which is using the the same registration promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    42
     3FAIL Test worker claims client which is using another registration promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     4FAIL Test for the waiting worker claims a client which is using the the same registration promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/claim-worker-fetch.https-expected.txt

    r224132 r224218  
    11
    22
    3 FAIL fetch() in Worker should be intercepted after the client is claimed. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3FAIL fetch() in Worker should be intercepted after the client is claimed. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/client-id.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Client.id returns the client's ID. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Client.id returns the client's ID. assert_unreached: unexpected rejection: null is not an object (evaluating 'f.contentWindow.navigator.serviceWorker.controller.postMessage') Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/client-navigate.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Frame location should update on successful navigation assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Frame location should not be accessible after redirect assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Frame location should not be accessible after cross-origin navigation assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Frame location should not update on failed about:blank navigation assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL Frame location should not update on failed mixed-content navigation assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    72
     3FAIL Frame location should update on successful navigation assert_unreached: unexpected rejection: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }') Reached unreachable code
     4FAIL Frame location should not be accessible after redirect assert_unreached: unexpected rejection: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }') Reached unreachable code
     5FAIL Frame location should not be accessible after cross-origin navigation assert_unreached: unexpected rejection: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }') Reached unreachable code
     6FAIL Frame location should not update on failed about:blank navigation assert_unreached: unexpected rejection: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }') Reached unreachable code
     7FAIL Frame location should not update on failed mixed-content navigation assert_unreached: unexpected rejection: null is not an object (evaluating 'remote.onerror = function(error) { this_obj.remote_error(error); }') Reached unreachable code
     8
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-get-client-types.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test Clients.get() with window and worker clients promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Test Clients.get() with window and worker clients promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-get-cross-origin.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: line 48: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'iframe.contentWindow.navigator.serviceWorker.controller.postMessage')
    12
    2 FAIL Test Clients.get() cross origin promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-get.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test Clients.get() promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Test Clients.get() promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'frame.contentWindow.navigator.serviceWorker.controller.postMessage')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall-client-types.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify matchAll() with window client type assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Verify matchAll() with {window, sharedworker, worker} client types promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    42
     3FAIL Verify matchAll() with window client type assert_unreached: unexpected rejection: null is not an object (evaluating 'frame.contentWindow.navigator.serviceWorker.controller.postMessage') Reached unreachable code
     4FAIL Verify matchAll() with {window, sharedworker, worker} client types promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker"
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall-exact-controller.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test Clients.matchAll() with exact controller assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Test Clients.matchAll() with exact controller assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall-include-uncontrolled.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify matchAll() respect includeUncontrolled assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Verify matchAll() respect includeUncontrolled assert_unreached: unexpected rejection: null is not an object (evaluating 'frame.contentWindow.navigator.serviceWorker.controller.postMessage') Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall-order.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Clients.matchAll() returns non-focused controlled windows in creation order. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Clients.matchAll() returns controlled windows in focus order.  Case 1. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Clients.matchAll() returns controlled windows in focus order.  Case 2. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL Clients.matchAll() returns non-focused uncontrolled windows in creation order. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL Clients.matchAll() returns uncontrolled windows in focus order.  Case 1. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL Clients.matchAll() returns uncontrolled windows in focus order.  Case 2. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL Clients.matchAll() returns controlled windows and frames in focus order. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Clients.matchAll() returns non-focused controlled windows in creation order. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     3FAIL Clients.matchAll() returns controlled windows in focus order.  Case 1. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     4FAIL Clients.matchAll() returns controlled windows in focus order.  Case 2. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5FAIL Clients.matchAll() returns non-focused uncontrolled windows in creation order. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     6FAIL Clients.matchAll() returns uncontrolled windows in focus order.  Case 1. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     7FAIL Clients.matchAll() returns uncontrolled windows in focus order.  Case 2. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     8FAIL Clients.matchAll() returns controlled windows and frames in focus order. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    99
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/clients-matchall.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test Clients.matchAll() assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Test Clients.matchAll() assert_unreached: unexpected rejection: null is not an object (evaluating 'frame2.contentWindow.navigator.serviceWorker.controller.postMessage') Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/controller-on-disconnect.https-expected.txt

    r224132 r224218  
    11
    2 FAIL controller is cleared on disconnected window assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL controller is cleared on disconnected window assert_true: controller should be a ServiceWorker object expected true got false
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/controller-on-load.https-expected.txt

    r224132 r224218  
    11
    2 FAIL controller is set for a controlled document assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL controller is set for a controlled document assert_true: controller should be a ServiceWorker object expected true got false
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/controller-on-reload.https-expected.txt

    r224132 r224218  
    11
    22
    3 FAIL controller is set upon reload after registration promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3FAIL controller is set upon reload after registration assert_equals: controller should be null until the document is reloaded expected null but got object "[object ServiceWorker]"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/extendable-event-async-waituntil.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test calling waitUntil in a different task without an existing extension throws assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Test calling waitUntil in a different microtask without an existing extension throws assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Test calling waitUntil in a different task with an existing extension succeeds assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Test calling waitUntil with an existing extension promise handler succeeds assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL Test calling waitUntil at the end of the microtask turn throws assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    7 FAIL Test calling waitUntil after the current extension expired in a different task fails assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    8 FAIL Test calling waitUntil on a script constructed ExtendableEvent throws exception assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    9 FAIL Test calling waitUntil asynchronously with pending respondWith promise. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    10 FAIL Test calling waitUntil synchronously inside microtask of respondWith promise. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    11 FAIL Test calling waitUntil asynchronously inside microtask of respondWith promise. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Test calling waitUntil in a different task without an existing extension throws assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     3FAIL Test calling waitUntil in a different microtask without an existing extension throws assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     4FAIL Test calling waitUntil in a different task with an existing extension succeeds assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     5FAIL Test calling waitUntil with an existing extension promise handler succeeds assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     6FAIL Test calling waitUntil at the end of the microtask turn throws assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     7FAIL Test calling waitUntil after the current extension expired in a different task fails assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     8FAIL Test calling waitUntil on a script constructed ExtendableEvent throws exception assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     9FAIL Test calling waitUntil asynchronously with pending respondWith promise. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     10FAIL Test calling waitUntil synchronously inside microtask of respondWith promise. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     11FAIL Test calling waitUntil asynchronously inside microtask of respondWith promise. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
    1212
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/extendable-event-waituntil.https-expected.txt

    r224132 r224218  
    1 CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'worker.postMessage')
    2 CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'worker.postMessage')
    3 CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'worker.postMessage')
     1CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: NotSupportedError: Passing MessagePort objects to postMessage is not yet supported
     2CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: NotSupportedError: Passing MessagePort objects to postMessage is not yet supported
     3CONSOLE MESSAGE: line 19: Unhandled Promise Rejection: NotSupportedError: Passing MessagePort objects to postMessage is not yet supported
    44
    5 Harness Error (FAIL), message = null is not an object (evaluating 'worker.postMessage')
     5Harness Error (FAIL), message = Passing MessagePort objects to postMessage is not yet supported
    66
    7 FAIL Test install event waitUntil fulfilled assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    8 FAIL Test ExtendableEvent multiple waitUntil fulfilled. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    9 FAIL Test ExtendableEvent waitUntil reject precedence. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    10 FAIL Test activate event waitUntil fulfilled assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    11 FAIL Test install event waitUntil rejected assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    12 FAIL Test activate event waitUntil rejected. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     7FAIL Test install event waitUntil fulfilled assert_unreached: unexpected rejection: assert_true: state should be "installed" after the waitUntil promise for "oninstall" is fulfilled. expected true got undefined Reached unreachable code
     8FAIL Test ExtendableEvent multiple waitUntil fulfilled. assert_unreached: unexpected rejection: assert_true: state should be "installed" after all waitUntil promises for "oninstall" are fulfilled. expected true got undefined Reached unreachable code
     9TIMEOUT Test ExtendableEvent waitUntil reject precedence. Test timed out
     10FAIL Test activate event waitUntil fulfilled assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     11TIMEOUT Test install event waitUntil rejected Test timed out
     12PASS Test activate event waitUntil rejected.
    1313
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-csp.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: Refused to load https://127.0.0.1:9443/service-workers/service-worker/resources/fetch-access-control.py?PNGIMAGE because it does not appear in the img-src directive of the Content Security Policy.
     2CONSOLE MESSAGE: Refused to load https://127.0.0.1:9443/service-workers/service-worker/resources/fetch-access-control.py?PNGIMAGE because it does not appear in the img-src directive of the Content Security Policy.
    13
    2 FAIL Verify CSP control of fetch() in a Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    34
     5FAIL Verify CSP control of fetch() in a Service Worker promise_test: Unhandled rejection with value: object "Error: Allowed scope image resource which was fetched via SW should be loaded. - undefined"
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-after-navigation-within-page.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service Worker should respond to fetch event after the hash changes promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Service Worker should respond to fetch event after the pushState promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    42
     3FAIL Service Worker should respond to fetch event after the hash changes assert_equals: expected "intercepted by service worker" but got "a simple text file\n"
     4FAIL Service Worker should respond to fetch event after the pushState assert_equals: expected "intercepted by service worker" but got "a simple text file\n"
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-async-respond-with.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Calling respondWith asynchronously throws an exception promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Calling respondWith asynchronously throws an exception promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-network-error.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: line 57: TypeError: window.parent.notify_done is not a function. (In 'window.parent.notify_done('FAIL: no controller')', 'window.parent.notify_done' is undefined)
    12
    2 FAIL Rejecting the fetch event or using preventDefault() causes a network error promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    33
     4Harness Error (TIMEOUT), message = null
     5
     6TIMEOUT Rejecting the fetch event or using preventDefault() causes a network error Test timed out
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-redirect.https-expected.txt

    r224132 r224218  
    11
    2 FAIL initialize global state promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Non-navigation, manual redirect, cors mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    4 FAIL Non-navigation, manual redirect, cors mode Request redirected to no-cors without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    5 FAIL Non-navigation, manual redirect, cors mode Request redirected to cors without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    6 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    7 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to no-cors without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    8 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to cors without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    9 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    10 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to no-cors without credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    11 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to cors without credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    12 FAIL Non-navigation, manual redirect, cors mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    13 FAIL Non-navigation, manual redirect, cors mode Request redirected to no-cors with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    14 FAIL Non-navigation, manual redirect, cors mode Request redirected to cors with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    15 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    16 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to no-cors with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    17 FAIL Non-navigation, manual redirect, same-origin mode Request redirected to cors with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    18 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    19 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to no-cors with credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    20 FAIL Non-navigation, manual redirect, no-cors mode Request redirected to cors with credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    21 FAIL Non-navigation, follow redirect, cors mode Request redirected to same-origin without credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    22 FAIL Non-navigation, follow redirect, cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    23 FAIL Non-navigation, follow redirect, cors mode Request redirected to cors without credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    24 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to same-origin without credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    25 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to no-cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    26 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    27 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to same-origin without credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    28 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to no-cors without credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    29 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to cors without credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    30 FAIL Non-navigation, follow redirect, cors mode Request redirected to same-origin with credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    31 FAIL Non-navigation, follow redirect, cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    32 FAIL Non-navigation, follow redirect, cors mode Request redirected to cors with credentials should fail interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    33 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to same-origin with credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    34 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to no-cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    35 FAIL Non-navigation, follow redirect, same-origin mode Request redirected to cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    36 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to same-origin with credentials should succeed interception and response should be redirected undefined is not an object (evaluating 'frame.contentWindow')
    37 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to no-cors with credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    38 FAIL Non-navigation, follow redirect, no-cors mode Request redirected to cors with credentials should succeed interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    39 FAIL Non-navigation, error redirect, cors mode Request redirected to same-origin without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    40 FAIL Non-navigation, error redirect, cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    41 FAIL Non-navigation, error redirect, cors mode Request redirected to cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    42 FAIL Non-navigation, error redirect, same-origin mode Request redirected to same-origin without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    43 FAIL Non-navigation, error redirect, same-origin mode Request redirected to no-cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    44 FAIL Non-navigation, error redirect, same-origin mode Request redirected to cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    45 FAIL Non-navigation, error redirect, no-cors mode Request redirected to same-origin without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    46 FAIL Non-navigation, error redirect, no-cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    47 FAIL Non-navigation, error redirect, no-cors mode Request redirected to cors without credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    48 FAIL Non-navigation, error redirect, cors mode Request redirected to same-origin with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    49 FAIL Non-navigation, error redirect, cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    50 FAIL Non-navigation, error redirect, cors mode Request redirected to cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    51 FAIL Non-navigation, error redirect, same-origin mode Request redirected to same-origin with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    52 FAIL Non-navigation, error redirect, same-origin mode Request redirected to no-cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    53 FAIL Non-navigation, error redirect, same-origin mode Request redirected to cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    54 FAIL Non-navigation, error redirect, no-cors mode Request redirected to same-origin with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    55 FAIL Non-navigation, error redirect, no-cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
    56 FAIL Non-navigation, error redirect, no-cors mode Request redirected to cors with credentials should fail interception and response should not be redirected undefined is not an object (evaluating 'frame.contentWindow')
     2PASS initialize global state
     3FAIL Non-navigation, manual redirect, cors mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     4FAIL Non-navigation, manual redirect, cors mode Request redirected to no-cors without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     5FAIL Non-navigation, manual redirect, cors mode Request redirected to cors without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     6FAIL Non-navigation, manual redirect, same-origin mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     7FAIL Non-navigation, manual redirect, same-origin mode Request redirected to no-cors without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     8FAIL Non-navigation, manual redirect, same-origin mode Request redirected to cors without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     9FAIL Non-navigation, manual redirect, no-cors mode Request redirected to same-origin without credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     10FAIL Non-navigation, manual redirect, no-cors mode Request redirected to no-cors without credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     11FAIL Non-navigation, manual redirect, no-cors mode Request redirected to cors without credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     12FAIL Non-navigation, manual redirect, cors mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     13FAIL Non-navigation, manual redirect, cors mode Request redirected to no-cors with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     14FAIL Non-navigation, manual redirect, cors mode Request redirected to cors with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     15FAIL Non-navigation, manual redirect, same-origin mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     16FAIL Non-navigation, manual redirect, same-origin mode Request redirected to no-cors with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     17FAIL Non-navigation, manual redirect, same-origin mode Request redirected to cors with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     18FAIL Non-navigation, manual redirect, no-cors mode Request redirected to same-origin with credentials should succeed opaqueredirect interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     19FAIL Non-navigation, manual redirect, no-cors mode Request redirected to no-cors with credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     20FAIL Non-navigation, manual redirect, no-cors mode Request redirected to cors with credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaqueredirect" but got "basic"
     21FAIL Non-navigation, follow redirect, cors mode Request redirected to same-origin without credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     22FAIL Non-navigation, follow redirect, cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-cors-redirects-to-nocors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     23FAIL Non-navigation, follow redirect, cors mode Request redirected to cors without credentials should succeed interception and response should be redirected assert_equals: response.type expected "cors" but got "basic"
     24FAIL Non-navigation, follow redirect, same-origin mode Request redirected to same-origin without credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     25FAIL Non-navigation, follow redirect, same-origin mode Request redirected to no-cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-sameorigin-redirects-to-nocors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     26FAIL Non-navigation, follow redirect, same-origin mode Request redirected to cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-sameorigin-redirects-to-cors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     27FAIL Non-navigation, follow redirect, no-cors mode Request redirected to same-origin without credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     28FAIL Non-navigation, follow redirect, no-cors mode Request redirected to no-cors without credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaque" but got "basic"
     29FAIL Non-navigation, follow redirect, no-cors mode Request redirected to cors without credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaque" but got "basic"
     30FAIL Non-navigation, follow redirect, cors mode Request redirected to same-origin with credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     31FAIL Non-navigation, follow redirect, cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-cors-redirects-to-nocors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     32FAIL Non-navigation, follow redirect, cors mode Request redirected to cors with credentials should fail interception and response should be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-cors-redirects-to-cors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     33FAIL Non-navigation, follow redirect, same-origin mode Request redirected to same-origin with credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     34FAIL Non-navigation, follow redirect, same-origin mode Request redirected to no-cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-sameorigin-redirects-to-nocors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     35FAIL Non-navigation, follow redirect, same-origin mode Request redirected to cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-follow-sameorigin-redirects-to-cors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     36FAIL Non-navigation, follow redirect, no-cors mode Request redirected to same-origin with credentials should succeed interception and response should be redirected assert_equals: response.redirected expected true but got false
     37FAIL Non-navigation, follow redirect, no-cors mode Request redirected to no-cors with credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaque" but got "basic"
     38FAIL Non-navigation, follow redirect, no-cors mode Request redirected to cors with credentials should succeed interception and response should not be redirected assert_equals: response.type expected "opaque" but got "basic"
     39FAIL Non-navigation, error redirect, cors mode Request redirected to same-origin without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-sameorigin-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Flocalhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     40FAIL Non-navigation, error redirect, cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-nocors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     41FAIL Non-navigation, error redirect, cors mode Request redirected to cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-cors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     42FAIL Non-navigation, error redirect, same-origin mode Request redirected to same-origin without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-sameorigin-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Flocalhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     43FAIL Non-navigation, error redirect, same-origin mode Request redirected to no-cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-nocors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     44FAIL Non-navigation, error redirect, same-origin mode Request redirected to cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-cors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     45FAIL Non-navigation, error redirect, no-cors mode Request redirected to same-origin without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-sameorigin-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Flocalhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     46FAIL Non-navigation, error redirect, no-cors mode Request redirected to no-cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-nocors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     47FAIL Non-navigation, error redirect, no-cors mode Request redirected to cors without credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-cors-nocreds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252F127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     48FAIL Non-navigation, error redirect, cors mode Request redirected to same-origin with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-sameorigin-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540localhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     49FAIL Non-navigation, error redirect, cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-nocors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     50FAIL Non-navigation, error redirect, cors mode Request redirected to cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-cors-redirects-to-cors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     51FAIL Non-navigation, error redirect, same-origin mode Request redirected to same-origin with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-sameorigin-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540localhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     52FAIL Non-navigation, error redirect, same-origin mode Request redirected to no-cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-nocors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     53FAIL Non-navigation, error redirect, same-origin mode Request redirected to cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-sameorigin-redirects-to-cors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
     54FAIL Non-navigation, error redirect, no-cors mode Request redirected to same-origin with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-sameorigin-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540localhost%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     55FAIL Non-navigation, error redirect, no-cors mode Request redirected to no-cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-nocors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py Promise did not reject."
     56FAIL Non-navigation, error redirect, no-cors mode Request redirected to cors with credentials should fail interception and response should not be redirected promise_test: Unhandled rejection with value: "assert_promise_rejects: Must fail to fetch: url=/nonav-error-nocors-redirects-to-cors-creds?url=redirect.py%3FRedirect%3Dhttps%253A%252F%252Ffoo%253Abar%2540127.0.0.1%253A9443%252Fservice-workers%252Fservice-worker%252Fresources%252Fsuccess.py%253FACAOrigin%253Dhttps%25253A%25252F%25252Flocalhost%25253A9443 Promise did not reject."
    5757PASS restore global state
    5858
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-referrer-policy.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service Worker responds to fetch event with the referrer policy assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Service Worker responds to fetch event with the referrer policy assert_unreached: unexpected rejection: assert_equals: Service Worker should respond to fetch with the default referrer policy expected "ReferrerPolicy: no-referrer-when-downgrade" but got "Here's a simple html file.\n" Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-argument.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: line 52: TypeError: window.parent.notify_done is not a function. (In 'window.parent.notify_done('FAIL: no controller')', 'window.parent.notify_done' is undefined)
    12
    2 FAIL respondWith() takes either a Response or a promise that resolves with a Response. Other values should raise a network error. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    33
     4Harness Error (TIMEOUT), message = null
     5
     6TIMEOUT respondWith() takes either a Response or a promise that resolves with a Response. Other values should raise a network error. Test timed out
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-readable-stream.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Respond with a Response built from a ReadableStream promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Respond with a Response built from a ReadableStream assert_equals: expected "PASS" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-response-body-with-invalid-chunk.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Response with a ReadableStream having non-Uint8Array chunks should be transferred as errored promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Response with a ReadableStream having non-Uint8Array chunks should be transferred as errored assert_equals: expected "PASS" but got "FAIL: read() should be rejected"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-stops-propagation.https-expected.txt

    r224132 r224218  
    11
    2 FAIL respondWith() invokes stopImmediatePropagation() promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL respondWith() invokes stopImmediatePropagation() promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-throws-after-respond-with.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Fetch event handler throws after a successful respondWith() promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Fetch event handler throws after a successful respondWith() promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-within-sw.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service worker intercepts requests from window promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'nextWorker.addEventListener')"
    3 FAIL Service worker does not intercept fetch/cache requests within service worker promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'nextWorker.addEventListener')"
     2FAIL Service worker intercepts requests from window assert_equals: fetch intercepted expected "intercepted" but got "Hello world\n"
     3FAIL Service worker does not intercept fetch/cache requests within service worker assert_equals: fetch within SW not intercepted expected "Hello world\n" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service Worker headers in the request of a fetch event assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Service Worker responds to fetch event with string assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Service Worker responds to fetch event with blob body assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Service Worker responds to fetch event with the referrer URL assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL Service Worker responds to fetch event with an existing client id assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    7 FAIL Service Worker does not respond to fetch event assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    8 FAIL Service Worker responds to fetch event with null response body assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    9 FAIL Service Worker fetches other file in fetch event assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    10 FAIL Service Worker responds to fetch event with POST form assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    11 FAIL Multiple calls of respondWith must throw InvalidStateErrors assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    12 FAIL Service Worker event.respondWith must set the used flag assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    13 FAIL Service Worker should expose FetchEvent URL fragments. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    14 FAIL Service Worker responds to fetch event with the correct cache types assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    15 FAIL Service Worker should intercept EventSource assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    16 FAIL Service Worker responds to fetch event with the correct integrity_metadata assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    172
     3FAIL Service Worker headers in the request of a fetch event assert_unreached: unexpected rejection: JSON Parse error: Unexpected identifier "Here" Reached unreachable code
     4FAIL Service Worker responds to fetch event with string assert_unreached: unexpected rejection: assert_equals: Service Worker should respond to fetch with a test string expected "Test string" but got "Here's a simple html file.\n" Reached unreachable code
     5FAIL Service Worker responds to fetch event with blob body assert_unreached: unexpected rejection: assert_equals: Service Worker should respond to fetch with a test string expected "Test blob" but got "Here's a simple html file.\n" Reached unreachable code
     6FAIL Service Worker responds to fetch event with the referrer URL assert_unreached: unexpected rejection: assert_equals: Service Worker should respond to fetch with the referrer URL expected "Referrer: https://localhost:9443/service-workers/service-worker/fetch-event.https.html" but got "Here's a simple html file.\n" Reached unreachable code
     7FAIL Service Worker responds to fetch event with an existing client id assert_unreached: unexpected rejection: assert_equals: Service Worker should respond to fetch with a client id expected "Client ID Not Found" but got "Here's a simple html file.\n" Reached unreachable code
     8PASS Service Worker does not respond to fetch event
     9FAIL Service Worker responds to fetch event with null response body assert_unreached: unexpected rejection: assert_equals: Response should be the empty string expected "" but got "Here's a simple html file.\n" Reached unreachable code
     10FAIL Service Worker fetches other file in fetch event assert_unreached: unexpected rejection: assert_equals: Response should come from fetched other file expected "Here's an other html file.\n" but got "Here's a simple html file.\n" Reached unreachable code
     11FAIL Service Worker responds to fetch event with POST form assert_unreached: unexpected rejection: assert_equals: expected "POST:application/x-www-form-urlencoded:testName1=testValue1&testName2=testValue2" but got "{\"error\": {\"message\": \"\", \"code\": 404}}" Reached unreachable code
     12FAIL Multiple calls of respondWith must throw InvalidStateErrors assert_unreached: unexpected rejection: assert_equals: Multiple calls of respondWith must throw InvalidStateErrors. expected "(0)(1)[InvalidStateError](2)[InvalidStateError]" but got "Here's a simple html file.\n" Reached unreachable code
     13FAIL Service Worker event.respondWith must set the used flag assert_unreached: unexpected rejection: assert_equals: Response should come from fetched other file expected "Here's an other html file.\n" but got "Here's a simple html file.\n" Reached unreachable code
     14FAIL Service Worker should expose FetchEvent URL fragments. assert_unreached: unexpected rejection: assert_equals: Service worker should expose URL fragments in request. expected "Fragment Found :#/some/fragment" but got "Here's a simple html file.\n" Reached unreachable code
     15FAIL Service Worker responds to fetch event with the correct cache types assert_unreached: unexpected rejection: assert_equals: expected "default" but got "Here's a simple html file.\n" Reached unreachable code
     16FAIL Service Worker should intercept EventSource assert_unreached: unexpected rejection: The EventSource fired an error event. Reached unreachable code
     17FAIL Service Worker responds to fetch event with the correct integrity_metadata assert_unreached: unexpected rejection: assert_equals: expected "" but got "Here's a simple html file.\n" Reached unreachable code
     18
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-frame-resource.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Basic type response could be loaded in the iframe. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL CORS type response could be loaded in the iframe. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Opaque type response could not be loaded in the iframe. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Basic type response could be loaded in the new window. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL CORS type response could be loaded in the new window. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    7 FAIL Opaque type response could not be loaded in the new window. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Basic type response could be loaded in the iframe. assert_unreached: unexpected rejection: null is not an object (evaluating 'result.jsonpResult') Reached unreachable code
     3FAIL CORS type response could be loaded in the iframe. assert_unreached: unexpected rejection: null is not an object (evaluating 'result.jsonpResult') Reached unreachable code
     4PASS Opaque type response could not be loaded in the iframe.
     5FAIL Basic type response could be loaded in the new window. assert_unreached: unexpected rejection: null is not an object (evaluating 'result.jsonpResult') Reached unreachable code
     6FAIL CORS type response could be loaded in the new window. assert_unreached: unexpected rejection: null is not an object (evaluating 'result.jsonpResult') Reached unreachable code
     7PASS Opaque type response could not be loaded in the new window.
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-header-visibility.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Visibility of defaulted headers during interception assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Visibility of defaulted headers during interception assert_unreached: unexpected rejection: withUA FAIL - expected "custom_ua", got "<script src="/common/get-host-info.sub.js"></script>
     4<script src="test-helpers.sub.js?pipe=sub"></script>
     5<script>
     6  var host_info = get_host_info();
     7  var uri = document.location + '?check-ua-header';
     8
     9  var headers = new Headers();
     10  headers.set('User-Agent', 'custom_ua');
     11
     12  // Check the custom UA case
     13  fetch(uri, { headers: headers }).then(function(response) {
     14    return response.text();
     15  }).then(function(text) {
     16    if (text == 'custom_ua') {
     17      parent.postMessage('PASS', '*');
     18    } else {
     19      parent.postMessage('withUA FAIL - expected "custom_ua", got "' + text + '"', '*');
     20    }
     21  }).catch(function(err) {
     22    parent.postMessage('withUA FAIL - unexpected error: ' + err, '*');
     23  });
     24
     25  // Check the default UA case
     26  fetch(uri, {}).then(function(response) {
     27    return response.text();
     28  }).then(function(text) {
     29    if (text == 'NO_UA') {
     30      parent.postMessage('PASS', '*');
     31    } else {
     32      parent.postMessage('noUA FAIL - expected "NO_UA", got "' + text + '"', '*');
     33    }
     34  }).catch(function(err) {
     35    parent.postMessage('noUA FAIL - unexpected error: ' + err, '*');
     36  });
     37
     38  var uri = document.location + '?check-accept-header';
     39  var headers = new Headers();
     40  headers.set('Accept', 'hmm');
     41
     42  // Check for custom accept header
     43  fetch(uri, { headers: headers }).then(function(response) {
     44    return response.text();
     45  }).then(function(text) {
     46    if (text === headers.get('Accept')) {
     47      parent.postMessage('PASS', '*');
     48    } else {
     49      parent.postMessage('custom accept FAIL - expected ' + headers.get('Accept') +
     50                         ' got "' + text + '"', '*');
     51    }
     52  }).catch(function(err) {
     53    parent.postMessage('custom accept FAIL - unexpected error: ' + err, '*');
     54  });
     55
     56  // Check for default accept header
     57  fetch(uri).then(function(response) {
     58    return response.text();
     59  }).then(function(text) {
     60    if (text === '*/*') {
     61      parent.postMessage('PASS', '*');
     62    } else {
     63      parent.postMessage('accept FAIL - expected */* got "' + text + '"', '*');
     64    }
     65  }).catch(function(err) {
     66    parent.postMessage('accept FAIL - unexpected error: ' + err, '*');
     67  });
     68</script>
     69" Reached unreachable code
     70
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-css-base-url.https-expected.txt

    r224132 r224218  
    11
    2 FAIL CSS's base URL must be the request URL even when fetched from other URL. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL CSS's base URL must be the request URL even when fetched from other URL. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-css-cross-origin-mime-check.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Mime type checking of CSS files fetched via SW. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Mime type checking of CSS files fetched via SW. assert_equals: The color must be overridden by cross origin CSS. expected "rgb(0, 0, 255)" but got "rgb(255, 0, 0)"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-css-images.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify FetchEvent for css image (backgroundImage). assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Verify FetchEvent for css image (shapeOutside). assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Verify FetchEvent for css image-set (backgroundImage). assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Verify FetchEvent for css image-set (shapeOutside). assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    62
     3FAIL Verify FetchEvent for css image (backgroundImage). assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     4FAIL Verify FetchEvent for css image (shapeOutside). assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     5FAIL Verify FetchEvent for css image-set (backgroundImage). assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     6FAIL Verify FetchEvent for css image-set (shapeOutside). assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-fallback.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     2CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/fetch-access-control.py? due to access control checks.
     3CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     4CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/fetch-access-control.py? due to access control checks.
     5CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     6CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
     7CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     8CONSOLE MESSAGE: Cross-origin image load denied by Cross-Origin Resource Sharing policy.
    19
    2 FAIL initialize global state promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL The SW must intercept the request for a main resource. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL The SW must intercept the request of same origin XHR. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL The SW must intercept the request of CORS-unsupported other origin XHR. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL The SW must intercept the request of CORS-supported other origin XHR. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL The SW must intercept only the first request of redirected XHR. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL The SW must intercept only the first request for XHR which is redirected to CORS-unsupported other origin. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    9 FAIL The SW must intercept only the first request for XHR which is redirected to CORS-supported other origin. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    10 FAIL The SW must intercept the request for image. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    11 FAIL The SW must intercept the request for other origin image. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    12 FAIL The SW must intercept the request for CORS-unsupported other origin image. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    13 FAIL The SW must intercept the request for CORS-supported other origin image. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    14 FAIL The SW must intercept only the first request for redirected image resource. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    15 FAIL The SW must intercept only the first request for image resource which is redirected to other origin. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    16 FAIL The SW must intercept only the first request for image resource which is redirected to CORS-unsupported other origin. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    17 FAIL The SW must intercept only the first request for image resource which is redirected to CORS-supported other origin. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     10PASS initialize global state
     11FAIL The SW must intercept the request for a main resource. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     12FAIL The SW must intercept the request of same origin XHR. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     13FAIL The SW must intercept the request of CORS-unsupported other origin XHR. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     14FAIL The SW must intercept the request of CORS-supported other origin XHR. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     15FAIL The SW must intercept only the first request of redirected XHR. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     16FAIL The SW must intercept only the first request for XHR which is redirected to CORS-unsupported other origin. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     17FAIL The SW must intercept only the first request for XHR which is redirected to CORS-supported other origin. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     18FAIL The SW must intercept the request for image. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     19FAIL The SW must intercept the request for other origin image. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     20FAIL The SW must intercept the request for CORS-unsupported other origin image. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     21FAIL The SW must intercept the request for CORS-supported other origin image. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     22FAIL The SW must intercept only the first request for redirected image resource. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     23FAIL The SW must intercept only the first request for image resource which is redirected to other origin. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     24FAIL The SW must intercept only the first request for image resource which is redirected to CORS-unsupported other origin. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     25FAIL The SW must intercept only the first request for image resource which is redirected to CORS-supported other origin. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     26PASS restore global state
    1827
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-html-imports.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the FetchEvent for HTMLImports assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Verify the FetchEvent for HTMLImports assert_unreached: unexpected rejection: undefined is not an object (evaluating 'same.getElementById') Reached unreachable code
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-no-freshness-headers.https-expected.txt

    r224132 r224218  
    11
    2 FAIL The headers of FetchEvent shouldn't contain freshness headers. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL The headers of FetchEvent shouldn't contain freshness headers. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-redirect.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify redirect mode of Fetch API and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Verify redirected of Response(Fetch API) and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Verify redirected of Response(Fetch API), Cache API and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    52
     3FAIL Verify redirect mode of Fetch API and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: Loading redirected image with Request.redirect=follow should succeed. - undefined"
     4FAIL Verify redirected of Response(Fetch API) and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: Redirected XHR should be reject and response should be redirected with NO-CORS mode and redirect-mode=manual."
     5FAIL Verify redirected of Response(Fetch API), Cache API and ServiceWorker FetchEvent. promise_test: Unhandled rejection with value: object "Error: Redirected COS image should be reject and response should not be redirected with NO-CORS mode. - undefined"
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-resources.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify FetchEvent for resources. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Verify FetchEvent for resources. assert_unreached: unexpected rejection: Passing MessagePort objects to postMessage is not yet supported Reached unreachable code
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-xhr-sync.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify SyncXHR is intercepted promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Verify SyncXHR is intercepted assert_equals: HTTP response status code for intercepted request expected 200 but got 404
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-xhr.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     2CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/dummy?test due to access control checks.
     3CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     4CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/dummy?test due to access control checks.
    15
    2 FAIL initialize global state promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL event.request has the expected headers for same-origin GET. undefined is not an object (evaluating 'frame.contentWindow')
    4 FAIL event.request has the expected headers for same-origin POST. undefined is not an object (evaluating 'frame.contentWindow')
    5 FAIL event.request has the expected headers for cross-origin GET. undefined is not an object (evaluating 'frame.contentWindow')
    6 FAIL event.request has the expected headers for cross-origin POST. undefined is not an object (evaluating 'frame.contentWindow')
    7 FAIL FetchEvent#request.body contains XHR request data (string) undefined is not an object (evaluating 'frame.contentWindow')
    8 FAIL FetchEvent#request.body contains XHR request data (blob) undefined is not an object (evaluating 'frame.contentWindow')
    9 FAIL FetchEvent#request.method is set to XHR method undefined is not an object (evaluating 'frame.contentWindow')
    10 FAIL XHR using OPTIONS method undefined is not an object (evaluating 'frame.contentWindow')
    11 FAIL XHR with form data undefined is not an object (evaluating 'frame.contentWindow')
    12 FAIL XHR with mode/credentials set undefined is not an object (evaluating 'frame.contentWindow')
    13 FAIL XHR to data URL undefined is not an object (evaluating 'frame.contentWindow')
     6PASS initialize global state
     7FAIL event.request has the expected headers for same-origin GET. promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'headers.length')"
     8FAIL event.request has the expected headers for same-origin POST. promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'headers.length')"
     9FAIL event.request has the expected headers for cross-origin GET. promise_test: Unhandled rejection with value: "XHR should succeed."
     10FAIL event.request has the expected headers for cross-origin POST. promise_test: Unhandled rejection with value: "XHR should succeed."
     11FAIL FetchEvent#request.body contains XHR request data (string) promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "POST" but got (undefined) undefined"
     12FAIL FetchEvent#request.body contains XHR request data (blob) promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "POST" but got (undefined) undefined"
     13FAIL FetchEvent#request.method is set to XHR method promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "XXX" but got (undefined) undefined"
     14FAIL XHR using OPTIONS method promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "OPTIONS" but got (undefined) undefined"
     15FAIL XHR with form data promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "POST" but got (undefined) undefined"
     16FAIL XHR with mode/credentials set promise_test: Unhandled rejection with value: object "Error: assert_equals: expected (string) "cors" but got (undefined) undefined"
     17PASS XHR to data URL
    1418PASS restore global state
    1519
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-response-xhr.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the response of FetchEvent using XMLHttpRequest assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Verify the response of FetchEvent using XMLHttpRequest assert_equals: expected (string) "foo, bar" but got (object) null
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-waits-for-activate.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Fetch events should wait for the activate event to complete. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Fetch events should wait for the activate event to complete. assert_unreached: unexpected rejection: assert_equals: frame should not be loaded expected (undefined) undefined but got (object) Element node <iframe class="test-iframe" src="resources/fetch-waits-fo... Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/foreign-fetch-cors.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     2CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     3CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     4CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D due to access control checks.
     5CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     6CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     7CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     8CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     9CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     10CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     11CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     12CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D due to access control checks.
     13CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     14CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     15CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     16CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D due to access control checks.
     17CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     18CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     19CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     20CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     21CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     22CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     23CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     24CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Afalse%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D due to access control checks.
     25CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     26CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     27CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     28CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Afalse%7D due to access control checks.
     29CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     30CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     31CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     32CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D due to access control checks.
     33CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     34CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     35CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     36CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     37CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     38CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     39CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     40CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Atrue%2C%22with_acaorigin%22%3Atrue%7D due to access control checks.
     41CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     42CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     43CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     44CONSOLE MESSAGE: XMLHttpRequest cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Atrue%7D due to access control checks.
     45CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     46CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     47CONSOLE MESSAGE: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
     48CONSOLE MESSAGE: Fetch API cannot load https://127.0.0.1:9443/service-workers/service-worker/resources/simple.txt?%7B%22cross_origin%22%3Atrue%2C%22with_aceheaders%22%3Afalse%2C%22with_acaorigin%22%3Atrue%7D. Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin.
    149 
    250
    3 FAIL Same origin fetch without CORS headers, not exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    4 FAIL Same origin fetch without CORS headers, only origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    5 FAIL Same origin fetch without CORS headers, headers and origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    6 FAIL Same origin fetch without CORS headers, exposed to wrong origin promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    7 FAIL Same origin fetch with CORS headers, not exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    8 FAIL Same origin fetch with CORS headers, only origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    9 FAIL Same origin fetch with CORS headers, headers and origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    10 FAIL Same origin fetch with CORS headers, exposed to wrong origin promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    11 FAIL Cross origin fetch without CORS headers, not exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    12 FAIL Cross origin fetch with ACEHeaders header, not exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    13 FAIL Cross origin fetch with ACEHeaders header, only origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    14 FAIL Cross origin fetch with ACEHeaders header, headers and origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    15 FAIL Cross origin fetch with ACEHeaders header, exposed to wrong origin promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    16 FAIL Cross origin fetch without ACEHeaders header, not exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    17 FAIL Cross origin fetch without ACEHeaders header, only origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
    18 FAIL Cross origin fetch without ACEHeaders header, headers and origin exposed promise_test: Unhandled rejection with value: "failure:TypeError: null is not an object (evaluating 'worker.addEventListener')"
     51PASS Same origin fetch without CORS headers, not exposed
     52FAIL Same origin fetch without CORS headers, only origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     53FAIL Same origin fetch without CORS headers, headers and origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     54FAIL Same origin fetch without CORS headers, exposed to wrong origin assert_unreached: Should have rejected: undefined Reached unreachable code
     55PASS Same origin fetch with CORS headers, not exposed
     56FAIL Same origin fetch with CORS headers, only origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     57FAIL Same origin fetch with CORS headers, headers and origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     58FAIL Same origin fetch with CORS headers, exposed to wrong origin assert_unreached: Should have rejected: undefined Reached unreachable code
     59PASS Cross origin fetch without CORS headers, not exposed
     60PASS Cross origin fetch with ACEHeaders header, not exposed
     61FAIL Cross origin fetch with ACEHeaders header, only origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     62FAIL Cross origin fetch with ACEHeaders header, headers and origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     63FAIL Cross origin fetch with ACEHeaders header, exposed to wrong origin assert_unreached: Should have rejected: undefined Reached unreachable code
     64PASS Cross origin fetch without ACEHeaders header, not exposed
     65FAIL Cross origin fetch without ACEHeaders header, only origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
     66FAIL Cross origin fetch without ACEHeaders header, headers and origin exposed promise_test: Unhandled rejection with value: object "TypeError: Origin https://localhost:9443 is not allowed by Access-Control-Allow-Origin."
    1967
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/getregistrations.https-expected.txt

    r224132 r224218  
    44FAIL Register multiple times then getRegistrations assert_array_equals: getRegistrations should resolve with array of registrations. lengths differ, expected 2 got 0
    55PASS Register then Unregister then getRegistrations
    6 FAIL Register then Unregister with controlled frame then getRegistrations promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     6PASS Register then Unregister with controlled frame then getRegistrations
    77FAIL getRegistrations promise resolves only with same origin registrations. assert_array_equals: getRegistrations should only return same origin registrations. lengths differ, expected 1 got 0
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/immutable-prototype-serviceworker.https-expected.txt

    r224132 r224218  
    11
    2 FAIL worker prototype chain should be immutable promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
     2FAIL worker prototype chain should be immutable promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-redirect.https-expected.txt

    r224166 r224218  
    11
    2 FAIL importScripts() supports redirects assert_not_equals: worker is installing got disallowed value null
    3 FAIL importScripts() supports redirects and can be updated assert_not_equals: worker is installing got disallowed value null
     2PASS importScripts() supports redirects
     3FAIL importScripts() supports redirects and can be updated promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt

    r224132 r224218  
    11
    2 FAIL initialize global state promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL import script previously imported at worker evaluation time promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL import script previously imported at worker install time promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL import script not previously imported promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    63
     4PASS initialize global state
     5TIMEOUT import script previously imported at worker evaluation time Test timed out
     6NOTRUN import script previously imported at worker install time
     7NOTRUN import script not previously imported
     8NOTRUN Tests for importScripts: import scripts updated flag
     9
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/indexeddb.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify Indexed DB operation in a Service Worker promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
     2FAIL Verify Indexed DB operation in a Service Worker promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    33PASS clean up: registration
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/install-event-type.https-expected.txt

    r224132 r224218  
    11
    2 FAIL install event type promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
     2PASS install event type
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/installing.https-expected.txt

    r224132 r224218  
    11
     2PASS installing is set
    23
    3 FAIL installing is set null is not an object (evaluating 'registration.installing.scriptURL')
    4 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/interfaces-window.https-expected.txt

    r224132 r224218  
    1616PASS ServiceWorker interface: operation postMessage(any, [object Object])
    1717PASS ServiceWorker interface: attribute onstatechange
    18 FAIL Stringification of window.registrationInstance.installing assert_equals: class string of window.registrationInstance.installing expected "[object ServiceWorker]" but got "[object Null]"
    19 FAIL ServiceWorker interface: window.registrationInstance.installing must inherit property "scriptURL" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    20 FAIL ServiceWorker interface: window.registrationInstance.installing must inherit property "state" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    21 FAIL ServiceWorker interface: window.registrationInstance.installing must inherit property "postMessage(any, [object Object])" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    22 FAIL ServiceWorker interface: calling postMessage(any, [object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError object is not an Object. (evaluating '"hasOwnProperty" in object')
    23 FAIL ServiceWorker interface: window.registrationInstance.installing must inherit property "onstatechange" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    24 FAIL EventTarget interface: window.registrationInstance.installing must inherit property "addEventListener(DOMString, EventListener, [object Object],[object Object])" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    25 FAIL EventTarget interface: calling addEventListener(DOMString, EventListener, [object Object],[object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError object is not an Object. (evaluating '"hasOwnProperty" in object')
    26 FAIL EventTarget interface: window.registrationInstance.installing must inherit property "removeEventListener(DOMString, EventListener, [object Object],[object Object])" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    27 FAIL EventTarget interface: calling removeEventListener(DOMString, EventListener, [object Object],[object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError object is not an Object. (evaluating '"hasOwnProperty" in object')
    28 FAIL EventTarget interface: window.registrationInstance.installing must inherit property "dispatchEvent(Event)" with the proper type object is not an Object. (evaluating '"hasOwnProperty" in object')
    29 FAIL EventTarget interface: calling dispatchEvent(Event) on window.registrationInstance.installing with too few arguments must throw TypeError object is not an Object. (evaluating '"hasOwnProperty" in object')
     18PASS ServiceWorker must be primary interface of window.registrationInstance.installing
     19PASS Stringification of window.registrationInstance.installing
     20PASS ServiceWorker interface: window.registrationInstance.installing must inherit property "scriptURL" with the proper type
     21PASS ServiceWorker interface: window.registrationInstance.installing must inherit property "state" with the proper type
     22PASS ServiceWorker interface: window.registrationInstance.installing must inherit property "postMessage(any, [object Object])" with the proper type
     23PASS ServiceWorker interface: calling postMessage(any, [object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError
     24PASS ServiceWorker interface: window.registrationInstance.installing must inherit property "onstatechange" with the proper type
     25PASS EventTarget interface: window.registrationInstance.installing must inherit property "addEventListener(DOMString, EventListener, [object Object],[object Object])" with the proper type
     26PASS EventTarget interface: calling addEventListener(DOMString, EventListener, [object Object],[object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError
     27PASS EventTarget interface: window.registrationInstance.installing must inherit property "removeEventListener(DOMString, EventListener, [object Object],[object Object])" with the proper type
     28PASS EventTarget interface: calling removeEventListener(DOMString, EventListener, [object Object],[object Object]) on window.registrationInstance.installing with too few arguments must throw TypeError
     29PASS EventTarget interface: window.registrationInstance.installing must inherit property "dispatchEvent(Event)" with the proper type
     30PASS EventTarget interface: calling dispatchEvent(Event) on window.registrationInstance.installing with too few arguments must throw TypeError
    3031PASS ServiceWorkerRegistration interface: existence and properties of interface object
    3132PASS ServiceWorkerRegistration interface object length
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/invalid-blobtype.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the response of FetchEvent using XMLHttpRequest assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Verify the response of FetchEvent using XMLHttpRequest assert_equals: expected "finish" but got "failure:Content-Type must be null."
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/invalid-header.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the response of FetchEvent using XMLHttpRequest assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Verify the response of FetchEvent using XMLHttpRequest assert_equals: expected "finish" but got "failure:XHR must fail."
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/iso-latin1-header.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the response of FetchEvent using XMLHttpRequest assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2PASS Verify the response of FetchEvent using XMLHttpRequest
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/mime-sniffing.https-expected.txt

    r224166 r224218  
    11
    2 FAIL The response from service worker should be correctly MIME siniffed. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL The response from service worker should be correctly MIME siniffed. assert_equals: expected "test" but got ""
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/multi-globals/url-parsing.https-expected.txt

    r224132 r224218  
    11
    22
    3 FAIL register should use the relevant global of the object it was called on to resolve the script URL and the default scope URL promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL register should use the relevant global of the object it was called on to resolve the script URL and the given scope URL promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     3PASS register should use the relevant global of the object it was called on to resolve the script URL and the default scope URL
     4FAIL register should use the relevant global of the object it was called on to resolve the script URL and the given scope URL assert_equals: the given scope URL should be parsed against the relevant global expected "https://localhost:9443/service-workers/service-worker/multi-globals/relevant/scope" but got "https://localhost:9443/service-workers/service-worker/multi-globals/relevant/"
    55FAIL getRegistration should use the relevant global of the object it was called on to resolve the script URL assert_not_equals: the registration from the other frame should not be null got disallowed value null
    66
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/multiple-register.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Subsequent registrations resolve to the same registration object assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Subsequent registrations from a different iframe resolve to the different registration object but they refer to the same registration and workers assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2
     3FAIL Subsequent registrations resolve to the same registration object assert_unreached: unexpected rejection: assert_equals: register should resolve to the same registration expected object "[object ServiceWorkerRegistration]" but got object "[object ServiceWorkerRegistration]" Reached unreachable code
     4FAIL Subsequent registrations from a different iframe resolve to the different registration object but they refer to the same registration and workers assert_unreached: unexpected rejection: assert_equals: registrations should have the same scope expected "https://localhost:9443/service-workers/service-worker/resources/scope/subsequent-register-from-different-iframe" but got "https://localhost:9443/service-workers/service-worker/resources/scope/subsequent-register-from-same-window" Reached unreachable code
    45FAIL Concurrent registrations resolve to the same registration object assert_unreached: unexpected rejection: assert_equals: register should resolve to the same registration expected object "[object ServiceWorkerRegistration]" but got object "[object ServiceWorkerRegistration]" Reached unreachable code
    56
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/multiple-update.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Trigger multiple updates. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Trigger multiple updates. promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigate-window.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Clients.matchAll() should not show an old window as controlled after it navigates. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Clients.matchAll() should not show an old window after it navigates. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Clients.matchAll() should not show an old window as controlled after it navigates. assert_unreached: unexpected rejection: null is not an object (evaluating 'reg.active') Reached unreachable code
     3FAIL Clients.matchAll() should not show an old window after it navigates. assert_unreached: unexpected rejection: null is not an object (evaluating 'reg.active') Reached unreachable code
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/broken-chunked-encoding.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload with broken chunked encoding must fail. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3Harness Error (TIMEOUT), message = null
     4
     5TIMEOUT Navigation Preload with broken chunked encoding must fail. Test timed out
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/chunked-encoding.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload must work with chunked encoding. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3PASS Navigation Preload must work with chunked encoding.
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/empty-preload-response-body.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload empty response body. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Navigation Preload empty response body. assert_equals: expected "[]" but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/get-state.https-expected.txt

    r224132 r224218  
    11
    2 FAIL getState promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL getState from a worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL no active worker promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'np.enable')"
     2Harness Error (TIMEOUT), message = null
    53
     4FAIL getState promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'np.getState')"
     5TIMEOUT getState from a worker Test timed out
     6NOTRUN no active worker
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/redirect.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Navigation Preload no-location redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Navigation Preload no-location redirect response with body. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL Navigation Preload redirect to the same scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    62
     3Harness Error (TIMEOUT), message = null
     4
     5TIMEOUT Navigation Preload redirect response. Test timed out
     6NOTRUN Navigation Preload no-location redirect response.
     7NOTRUN Navigation Preload no-location redirect response with body.
     8NOTRUN Navigation Preload redirect to the same scope.
     9
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/request-headers.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload request headers. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Navigation Preload request headers. assert_true: The Navigation Preload request must specify a "Service-Worker-Navigation-Preload" header. expected true got false
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/resource-timing.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation Preload Resource Timing. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Navigation Preload Resource Timing. promise_test: Unhandled rejection with value: object "SyntaxError: JSON Parse error: Unexpected identifier "This""
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-body.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Navigation redirection must clear body promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2PASS Navigation redirection must clear body
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect.https-expected.txt

    r224132 r224218  
    1 CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'worker.addEventListener')
     1CONSOLE MESSAGE: line 126: TypeError: resolve is not a function. (In 'resolve(e.data.result)', 'resolve' is undefined)
    22
    33
    4 FAIL Normal redirect to same-origin scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL Normal redirect to other-origin scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL SW-fallbacked redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL SW-fallbacked redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL SW-fallbacked redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    9 FAIL SW-fallbacked redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    10 FAIL SW-fallbacked redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    11 FAIL SW-generated redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    12 FAIL SW-generated redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    13 FAIL SW-generated redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    14 FAIL SW-generated redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    15 FAIL SW-generated redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    16 FAIL SW-fetched redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    17 FAIL SW-fetched redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    18 FAIL SW-fetched redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    19 FAIL SW-fetched redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    20 FAIL SW-fetched redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    21 FAIL Redirect to same-origin out-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    22 FAIL Redirect to same-origin same-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    23 FAIL Redirect to same-origin other-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    24 FAIL Redirect to other-origin out-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    25 FAIL Redirect to other-origin in-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    26 FAIL No location redirect response. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    27 FAIL Redirect to same-origin out-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    28 FAIL Redirect to same-origin same-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    29 FAIL Redirect to same-origin other-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    30 FAIL Redirect to other-origin out-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    31 FAIL Redirect to other-origin in-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32 FAIL No location redirect response via Cache. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     4FAIL Normal redirect to same-origin scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5FAIL Normal redirect to other-origin scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     6FAIL SW-fallbacked redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     7FAIL SW-fallbacked redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     8FAIL SW-fallbacked redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     9FAIL SW-fallbacked redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     10FAIL SW-fallbacked redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     11FAIL SW-generated redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     12FAIL SW-generated redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     13FAIL SW-generated redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     14FAIL SW-generated redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     15FAIL SW-generated redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     16FAIL SW-fetched redirect to same-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     17FAIL SW-fetched redirect to same-origin same-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     18FAIL SW-fetched redirect to same-origin other-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     19FAIL SW-fetched redirect to other-origin out-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     20FAIL SW-fetched redirect to other-origin in-scope. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     21FAIL Redirect to same-origin out-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     22FAIL Redirect to same-origin same-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     23FAIL Redirect to same-origin other-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     24FAIL Redirect to other-origin out-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     25FAIL Redirect to other-origin in-scope with opaque redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     26FAIL No location redirect response. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     27FAIL Redirect to same-origin out-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     28FAIL Redirect to same-origin same-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     29FAIL Redirect to same-origin other-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     30FAIL Redirect to other-origin out-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     31FAIL Redirect to other-origin in-scope with opaque redirect response which is passed through Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     32FAIL No location redirect response via Cache. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    3333
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/onactivate-script-error.https-expected.txt

    r224132 r224218  
    11
    2 FAIL activate handler throws an error promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    3 FAIL activate handler throws an error, error handler does not cancel promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    4 FAIL activate handler dispatches an event that throws an error promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    5 FAIL activate handler throws an error that is cancelled promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    6 FAIL activate handler throws an error and prevents default promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
     2PASS activate handler throws an error
     3PASS activate handler throws an error, error handler does not cancel
     4PASS activate handler dispatches an event that throws an error
     5PASS activate handler throws an error that is cancelled
     6PASS activate handler throws an error and prevents default
    77
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/oninstall-script-error.https-expected.txt

    r224132 r224218  
    11
    2 FAIL install handler throws an error promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    3 FAIL install handler throws an error, error handler does not cancel promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    4 FAIL install handler dispatches an event that throws an error promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    5 FAIL install handler throws an error in the waitUntil promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    6 FAIL install handler throws an error that is cancelled promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
    7 FAIL install handler throws an error and prevents default promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
     2PASS install handler throws an error
     3PASS install handler throws an error, error handler does not cancel
     4PASS install handler dispatches an event that throws an error
     5FAIL install handler throws an error in the waitUntil assert_equals: The worker was installed expected false but got true
     6PASS install handler throws an error that is cancelled
     7PASS install handler throws an error and prevents default
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/opaque-response-preloaded.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Opaque responses should not be reused for XHRs, loading case promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Opaque responses should not be reused for XHRs, done case promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Opaque responses should not be reused for XHRs, loading case assert_equals: expected "PASS" but got "FAIL: {\"error\": {\"message\": \"\", \"code\": 404}}"
     3FAIL Opaque responses should not be reused for XHRs, done case assert_equals: expected "PASS" but got "FAIL: {\"error\": {\"message\": \"\", \"code\": 404}}"
    44
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/postmessage-blob-url.https-expected.txt

    r224132 r224218  
    11
    2 FAIL postMessage Blob URL to a ServiceWorker promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
     2PASS postMessage Blob URL to a ServiceWorker
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/postmessage-from-waiting-serviceworker.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Client.postMessage() from waiting serviceworker. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Client.postMessage() from waiting serviceworker. assert_unreached: unexpected rejection: assert_equals: should be same registration expected object "[object ServiceWorkerRegistration]" but got object "[object ServiceWorkerRegistration]" Reached unreachable code
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/postmessage-msgport-to-client.https-expected.txt

    r224132 r224218  
    11
    2 FAIL postMessage MessagePorts from ServiceWorker to Client promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL postMessage MessagePorts from ServiceWorker to Client promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'w.navigator.serviceWorker.controller.postMessage')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/postmessage-to-client.https-expected.txt

    r224132 r224218  
    11
    2 FAIL postMessage from ServiceWorker to Client. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL postMessage from ServiceWorker to Client. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'w.navigator.serviceWorker.controller.postMessage')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/postmessage.https-expected.txt

    r224132 r224218  
    11
    2 FAIL postMessage to a ServiceWorker (and back via MessagePort) promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
    3 FAIL postMessage a transferable ArrayBuffer between ServiceWorker and Client promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'r.installing.postMessage')"
    4 FAIL postMessage a transferable ArrayBuffer between ServiceWorker and Client over MessagePort promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'r.installing.postMessage')"
     2Harness Error (TIMEOUT), message = null
    53
     4FAIL postMessage to a ServiceWorker (and back via MessagePort) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5TIMEOUT postMessage a transferable ArrayBuffer between ServiceWorker and Client Test timed out
     6NOTRUN postMessage a transferable ArrayBuffer between ServiceWorker and Client over MessagePort
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ready.https-expected.txt

    r224166 r224218  
    55PASS ready returns the same Promise object
    66PASS ready returns a Promise object in the context of the related document
    7 FAIL ready on a controlled document promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     7FAIL ready on a controlled document promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
    88FAIL ready on a potential controlled document promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
    99FAIL ready on an iframe whose parent registers a new service worker promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
    1010FAIL ready on an iframe that installs a new service worker promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
    11 FAIL ready after a longer matched registration registered promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    12 FAIL access ready after it has been resolved promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    13 FAIL access ready on uninstalling registration that is resurrected promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     11FAIL ready after a longer matched registration registered promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
     12FAIL access ready after it has been resolved promise_test: Unhandled rejection with value: object "UnknownError: serviceWorker.ready() is not yet implemented"
     13FAIL access ready on uninstalling registration that is resurrected assert_equals: existing registration should be resurrected expected object "[object ServiceWorkerRegistration]" but got object "[object ServiceWorkerRegistration]"
    1414
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/redirected-response.https-expected.txt

    r224166 r224218  
    11
    2 FAIL initialize global state (service worker registration and caches) promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL mode: "follow", non-intercepted request, no server redirect promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL mode: "follow", non-intercepted request promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL mode: "manual", non-intercepted request promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL mode: "error", non-intercepted request promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL mode: "follow", no mode change, no server redirect promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL mode: "follow", no mode change promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    9 FAIL mode: "error", mode change: "follow" promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    10 FAIL mode: "manual", mode change: "follow" promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    11 FAIL mode: "follow", mode change: "manual" promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    12 FAIL mode: "error", mode change: "manual" promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    13 FAIL mode: "manual", no mode change promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    14 FAIL mode: "follow", generated redirect response promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    15 FAIL mode: "error", generated redirect response promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    16 FAIL mode: "manual", generated redirect response promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    17 FAIL Fetch should follow the redirect response 20 times promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    18 FAIL Fetch should not follow the redirect response 21 times. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL initialize global state (service worker registration and caches) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     3FAIL mode: "follow", non-intercepted request, no server redirect promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     4FAIL mode: "follow", non-intercepted request promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5FAIL mode: "manual", non-intercepted request promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     6FAIL mode: "error", non-intercepted request promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     7FAIL mode: "follow", no mode change, no server redirect promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     8FAIL mode: "follow", no mode change promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     9FAIL mode: "error", mode change: "follow" promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     10FAIL mode: "manual", mode change: "follow" promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     11FAIL mode: "follow", mode change: "manual" promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     12FAIL mode: "error", mode change: "manual" promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     13FAIL mode: "manual", no mode change promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     14FAIL mode: "follow", generated redirect response promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     15FAIL mode: "error", generated redirect response promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     16FAIL mode: "manual", generated redirect response promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     17FAIL Fetch should follow the redirect response 20 times promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     18FAIL Fetch should not follow the redirect response 21 times. promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    1919PASS restore global state (service worker registration)
     20PASS restore global state (caches)
    2021
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/referer.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the referer assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Verify the referer assert_equals: expected "finish" but got "failure:Referer for request-headers.py?url=request-headers.py must be https://localhost:9443/service-workers/service-worker/resources/fetch-rewrite-worker.js but got https://localhost:9443/service-workers/service-worker/resources/referer-iframe.html"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/referrer-policy-header.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the referer with a Referrer Policy promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Verify the referer with a Referrer Policy assert_equals: expected "finish" but got "failure:Referer for request-headers.py?url=request-headers.py must be https://localhost:9443/ but got https://localhost:9443/service-workers/service-worker/resources/referrer-policy-iframe.html"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/register-same-scope-different-script-url.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Register different scripts concurrently assert_unreached: unexpected rejection: null is not an object (evaluating 'registration.installing.scriptURL') Reached unreachable code
    3 FAIL Register then register new script URL assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Register then register new script URL that 404s assert_unreached: unexpected rejection: null is not an object (evaluating 'registration.active.scriptURL') Reached unreachable code
    5 FAIL Register then register new script that does not install assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL Register same-scope new script url effect on controller assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    72
     3FAIL Register different scripts concurrently assert_unreached: unexpected rejection: assert_equals: on second register, second script should be installing expected "https://localhost:9443/service-workers/service-worker/resources/empty-worker.js?new" but got "https://localhost:9443/service-workers/service-worker/resources/empty-worker.js" Reached unreachable code
     4FAIL Register then register new script URL assert_unreached: unexpected rejection: assert_equals: on second register, the second script should be installing expected "https://localhost:9443/service-workers/service-worker/resources/empty-worker.js?new" but got "https://localhost:9443/service-workers/service-worker/resources/empty-worker.js" Reached unreachable code
     5FAIL Register then register new script URL that 404s assert_unreached: unexpected rejection: assert_unreached: register should reject Reached unreachable code Reached unreachable code
     6FAIL Register then register new script that does not install assert_unreached: unexpected rejection: assert_equals: on update, the second script should be installing expected "https://localhost:9443/service-workers/service-worker/resources/reject-install-worker.js" but got "https://localhost:9443/service-workers/service-worker/resources/empty-worker.js" Reached unreachable code
     7FAIL Register same-scope new script url effect on controller assert_unreached: unexpected rejection: null is not an object (evaluating 'sw_container.controller.scriptURL') Reached unreachable code
     8
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-end-to-end.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Registration: end-to-end assert_unreached: unexpected rejection: null is not an object (evaluating 'sw.state') Reached unreachable code
     2FAIL Registration: end-to-end Passing MessagePort objects to postMessage is not yet supported
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-events.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Registration: events null is not an object (evaluating 'sw')
     2FAIL Registration: events Passing MessagePort objects to postMessage is not yet supported
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-script-url.https-expected.txt

    r224132 r224218  
    44PASS Script URL including URL-encoded backslash
    55PASS Script URL including uppercase URL-encoded backslash
    6 FAIL Script URL including self-reference promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'get_newest_worker(registration).scriptURL')"
    7 FAIL Script URL including parent-reference promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'get_newest_worker(registration).scriptURL')"
     6PASS Script URL including self-reference
     7PASS Script URL including parent-reference
    88
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-service-worker-attributes.https-expected.txt

    r224132 r224218  
    11
    2 FAIL installing/waiting/active after registration promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'registration.installing.scriptURL')"
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT installing/waiting/active after registration Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-updateviacache.https-expected.txt

    r224132 r224218  
    11
    2 FAIL register-via-api-updateViaCache-undefined promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL register-via-api-updateViaCache-imports promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL register-via-api-updateViaCache-all assert_equals: reg.updateViaCache expected "all" but got "imports"
    5 FAIL register-via-api-updateViaCache-none assert_equals: reg.updateViaCache expected "none" but got "imports"
    6 FAIL register-via-link-element-updateViaCache-undefined promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    7 FAIL register-via-link-element-updateViaCache-imports promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    8 FAIL register-via-link-element-updateViaCache-all promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    9 FAIL register-via-link-element-updateViaCache-none promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    10 FAIL register-via-link-header-updateViaCache-undefined promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    11 FAIL register-via-link-header-updateViaCache-imports promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    12 FAIL register-via-link-header-updateViaCache-all promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    13 FAIL register-via-link-header-updateViaCache-none promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
    14 FAIL register-with-updateViaCache-undefined-then-undefined promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    15 FAIL register-with-updateViaCache-undefined-then-imports promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    16 FAIL register-with-updateViaCache-undefined-then-all promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    17 FAIL register-with-updateViaCache-undefined-then-none promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    18 FAIL register-with-updateViaCache-imports-then-undefined promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    19 FAIL register-with-updateViaCache-imports-then-imports promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    20 FAIL register-with-updateViaCache-imports-then-all promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    21 FAIL register-with-updateViaCache-imports-then-none promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    22 FAIL register-with-updateViaCache-all-then-undefined promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    23 FAIL register-with-updateViaCache-all-then-imports promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    24 FAIL register-with-updateViaCache-all-then-all promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    25 FAIL register-with-updateViaCache-all-then-none promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    26 FAIL register-with-updateViaCache-none-then-undefined promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    27 FAIL register-with-updateViaCache-none-then-imports promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    28 FAIL register-with-updateViaCache-none-then-all promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    29 FAIL register-with-updateViaCache-none-then-none promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    303
     4TIMEOUT register-via-api-updateViaCache-undefined Test timed out
     5NOTRUN register-via-api-updateViaCache-imports
     6NOTRUN register-via-api-updateViaCache-all
     7NOTRUN register-via-api-updateViaCache-none
     8NOTRUN register-via-link-element-updateViaCache-undefined
     9NOTRUN register-via-link-element-updateViaCache-imports
     10NOTRUN register-via-link-element-updateViaCache-all
     11NOTRUN register-via-link-element-updateViaCache-none
     12NOTRUN register-via-link-header-updateViaCache-undefined
     13NOTRUN register-via-link-header-updateViaCache-imports
     14NOTRUN register-via-link-header-updateViaCache-all
     15NOTRUN register-via-link-header-updateViaCache-none
     16NOTRUN register-with-updateViaCache-undefined-then-undefined
     17NOTRUN register-with-updateViaCache-undefined-then-imports
     18NOTRUN register-with-updateViaCache-undefined-then-all
     19NOTRUN register-with-updateViaCache-undefined-then-none
     20NOTRUN register-with-updateViaCache-imports-then-undefined
     21NOTRUN register-with-updateViaCache-imports-then-imports
     22NOTRUN register-with-updateViaCache-imports-then-all
     23NOTRUN register-with-updateViaCache-imports-then-none
     24NOTRUN register-with-updateViaCache-all-then-undefined
     25NOTRUN register-with-updateViaCache-all-then-imports
     26NOTRUN register-with-updateViaCache-all-then-all
     27NOTRUN register-with-updateViaCache-all-then-none
     28NOTRUN register-with-updateViaCache-none-then-undefined
     29NOTRUN register-with-updateViaCache-none-then-imports
     30NOTRUN register-with-updateViaCache-none-then-all
     31NOTRUN register-with-updateViaCache-none-then-none
     32
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/request-body-blob.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service worker can read the request body blob promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Service worker can read the request body blob assert_equals: expected "Pass" but got "error: bad response: 404"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/request-end-to-end.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test FetchEvent.request passed to onfetch promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Test FetchEvent.request passed to onfetch promise_test: Unhandled rejection with value: object "SyntaxError: JSON Parse error: Unexpected EOF"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/resource-timing.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Controlled resource loads assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2
     3FAIL Controlled resource loads assert_unreached: unexpected rejection: undefined is not an object (evaluating 'entry.workerStart') Reached unreachable code
    34PASS Non-controlled resource loads
    45
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/serviceworker-message-event-historical.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test MessageEvent supplants ServiceWorkerMessageEvent. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Test MessageEvent supplants ServiceWorkerMessageEvent. promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.postMessage')"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/serviceworkerobject-scripturl.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify the scriptURL property: relative promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.scriptURL')"
    3 FAIL Verify the scriptURL property: with-fragment promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.scriptURL')"
    4 FAIL Verify the scriptURL property: absolute promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.scriptURL')"
     2PASS Verify the scriptURL property: relative
     3PASS Verify the scriptURL property: with-fragment
     4PASS Verify the scriptURL property: absolute
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/shared-worker-controlled.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify subresource loads in SharedWorker are controlled by a Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Verify SharedWorker construction is controlled by a Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Verify importScripts from SharedWorker is controlled by a Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Verify subresource loads in SharedWorker are controlled by a Service Worker promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker"
     3FAIL Verify SharedWorker construction is controlled by a Service Worker promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker"
     4FAIL Verify importScripts from SharedWorker is controlled by a Service Worker promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SharedWorker"
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting-installed.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test skipWaiting when a installed worker is waiting promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    32
     3FAIL Test skipWaiting when a installed worker is waiting promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'frame_sw.controller.scriptURL')"
     4
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting-using-registration.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test skipWaiting while a client is using the registration promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Test skipWaiting while a client is using the registration promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'frame_sw.controller.scriptURL')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Test skipWaiting with both active and waiting workers promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL Test skipWaiting with both active and waiting workers promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'waiting_worker.scriptURL')"
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/state.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Service Worker state property and "statechange" event null is not an object (evaluating 'sw.addEventListener')
     2PASS Service Worker state property and "statechange" event
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/synced-state.https-expected.txt

    r224132 r224218  
    11
    2 FAIL worker objects for the same entity have the same state promise_test: Unhandled rejection with value: object "TypeError: null is not an object (evaluating 'worker.addEventListener')"
     2FAIL worker objects for the same entity have the same state assert_equals: getRegistration should return the same object expected object "[object ServiceWorkerRegistration]" but got null
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/uncontrolled-page.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Fetch events should not go through uncontrolled page. assert_unreached: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Fetch events should not go through uncontrolled page. Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-controller.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Unregister does not affect existing controller assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Unregister prevents control of subsequent navigations assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Unregister prevents new controllee even if registration is still in use assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    52
     3FAIL Unregister does not affect existing controller assert_unreached: unexpected rejection: assert_true: document should load with a controller expected true got false Reached unreachable code
     4PASS Unregister prevents control of subsequent navigations
     5PASS Unregister prevents new controllee even if registration is still in use
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Registering a new script URL while an unregistered registration is in use assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 PASS Registering a new script URL that 404s does not resurrect an unregistered registration
    4 FAIL Registering a new script URL that fails to install does not resurrect an unregistered registration assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2Harness Error (TIMEOUT), message = null
    53
     4TIMEOUT Registering a new script URL while an unregistered registration is in use Test timed out
     5TIMEOUT Registering a new script URL that 404s does not resurrect an unregistered registration Test timed out
     6TIMEOUT Registering a new script URL that fails to install does not resurrect an unregistered registration Test timed out
     7
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-then-register.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Unregister then register resolves to a new value assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    3 FAIL Unregister then register resolves to the original value if the registration is in use. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    4 FAIL Reloading the last controlled iframe after unregistration should ensure the deletion of the registration assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    5 FAIL Unregister then register does not affect existing controllee assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    6 FAIL Unregister then register resurrects the registration assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    72
     3PASS Unregister then register resolves to a new value
     4FAIL Unregister then register resolves to the original value if the registration is in use. assert_unreached: unexpected rejection: assert_equals: new registration should resolve to the same registration expected object "[object ServiceWorkerRegistration]" but got object "[object ServiceWorkerRegistration]" Reached unreachable code
     5FAIL Reloading the last controlled iframe after unregistration should ensure the deletion of the registration assert_unreached: unexpected rejection: assert_equals: getRegistration should return undefined after unregistration expected (undefined) undefined but got (object) null Reached unreachable code
     6FAIL Unregister then register does not affect existing controllee assert_unreached: unexpected rejection: assert_equals: installing version is null expected null but got object "[object ServiceWorker]" Reached unreachable code
     7FAIL Unregister then register resurrects the registration assert_unreached: unexpected rejection: assert_not_equals: document should have a controller got disallowed value null Reached unreachable code
     8
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Update should be triggered after a navigation fetch event. promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Update should be triggered after a navigation fetch event. Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-after-oneday.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Update should be triggered after a functional event when last update time is over 24 hours promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2Harness Error (TIMEOUT), message = null
    33
     4TIMEOUT Update should be triggered after a functional event when last update time is over 24 hours Test timed out
     5
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-recovery.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Recover from a bad service worker by updating after a failed navigation. assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
     2FAIL Recover from a bad service worker by updating after a failed navigation. assert_unreached: unexpected rejection: expected bad iframe should not fire a load event! Reached unreachable code
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Update a registration. assert_throws: Using a disallowed mimetype should make update() promise reject with a SecurityError. function "function () { throw e; }" threw object "Error: wait_for_state must be passed a ServiceWorker" that is not a DOMException SecurityError: property "code" is equal to undefined, expected 18
     2FAIL Update a registration. assert_throws: Using a disallowed mimetype should make update() promise reject with a SecurityError. function "function () { throw e; }" threw object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented" that is not a DOMException SecurityError: property "code" is equal to 9, expected 18
    33
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/websocket.https-expected.txt

    r224132 r224218  
     1CONSOLE MESSAGE: WebSocket network error: OSStatus Error -9807: Invalid certificate chain
     2CONSOLE MESSAGE: WebSocket network error: OSStatus Error -9807: Invalid certificate chain
    13
    2 FAIL Verify WebSocket handshake channel does not get intercepted assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    34
     5FAIL Verify WebSocket handshake channel does not get intercepted assert_unreached: unexpected rejection: [object Event] Reached unreachable code
     6
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/windowclient-navigate.https-expected.txt

    r224132 r224218  
    11
    2 FAIL normal promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL blank url promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL in scope but not controlled test on installing worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    5 FAIL in scope but not controlled test on active worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    6 FAIL out of scope promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    7 FAIL cross orgin url promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    8 FAIL invalid url (http://[example.com]) promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    9 FAIL invalid url (view-source://example.com) promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    10 FAIL invalid url (file:///) promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    11 FAIL invalid url (about:blank) promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2FAIL normal promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     3FAIL blank url promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     4FAIL in scope but not controlled test on installing worker promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     5FAIL in scope but not controlled test on active worker promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     6FAIL out of scope promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     7FAIL cross orgin url promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     8FAIL invalid url (http://[example.com]) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     9FAIL invalid url (view-source://example.com) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     10FAIL invalid url (file:///) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
     11FAIL invalid url (about:blank) promise_test: Unhandled rejection with value: object "NotSupportedError: Passing MessagePort objects to postMessage is not yet supported"
    1212
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/worker-interception.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify worker script from uncontrolled document is intercepted by Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    3 FAIL Verify worker script intercepted by same-origin response succeeds promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
    4 FAIL Verify worker script intercepted by cors response succeeds promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     2
     3PASS Verify worker script from uncontrolled document is intercepted by Service Worker
     4PASS Verify worker script intercepted by same-origin response succeeds
     5PASS Verify worker script intercepted by cors response succeeds
    56PASS Verify worker script intercepted by no-cors cross-origin response fails
    6 FAIL Verify worker loads from controlled document are intercepted by Service Worker promise_test: Unhandled rejection with value: object "Error: wait_for_state must be passed a ServiceWorker"
     7FAIL Verify worker loads from controlled document are intercepted by Service Worker assert_equals: expected "This load was successfully intercepted." but got "{\"error\": {\"message\": \"\", \"code\": 404}}"
    78
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/xhr.https-expected.txt

    r224132 r224218  
    11
    2 FAIL Verify XHR does not exist assert_unreached: unexpected rejection: wait_for_state must be passed a ServiceWorker Reached unreachable code
    32
     3FAIL Verify XHR does not exist assert_unreached: unexpected rejection: null is not an object (evaluating 'frame.contentWindow.navigator.serviceWorker.controller.postMessage') Reached unreachable code
     4
  • trunk/Source/WebCore/ChangeLog

    r224213 r224218  
     12017-10-30  Chris Dumez  <cdumez@apple.com>
     2
     3        Fire updatefound event after resolving the registration promise
     4        https://bugs.webkit.org/show_bug.cgi?id=178985
     5
     6        Reviewed by Youenn Fablet.
     7
     8        Fake series of events that are supposed to happen after registering a service worker
     9        that notify the page of the service worker's installation and activation.
     10
     11        Also make sure that registration.installing / waiting / active return proper values.
     12        Make sure that serviceWorker.scriptURL returns a proper value.
     13
     14        This unblocks a lot of web-platform-tests since they were blocked shortly after
     15        registration due to missing events or registration.installing being null.
     16
     17        * dom/ScriptExecutionContext.cpp:
     18        (WebCore::ScriptExecutionContext::activeServiceWorker const):
     19        (WebCore::ScriptExecutionContext::setActiveServiceWorker):
     20        * dom/ScriptExecutionContext.h:
     21        * loader/WorkerThreadableLoader.cpp:
     22        (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
     23        * loader/cache/CachedResourceLoader.cpp:
     24        (WebCore::CachedResourceLoader::prepareFetch):
     25        * workers/WorkerScriptLoader.cpp:
     26        (WebCore::WorkerScriptLoader::loadSynchronously):
     27        (WebCore::WorkerScriptLoader::loadAsynchronously):
     28        * workers/service/ServiceWorker.cpp:
     29        (WebCore::ServiceWorker::ServiceWorker):
     30        (WebCore::ServiceWorker::setState):
     31        * workers/service/ServiceWorker.h:
     32        * workers/service/ServiceWorkerContainer.cpp:
     33        (WebCore::ServiceWorkerContainer::controller const):
     34        (WebCore::ServiceWorkerContainer::jobResolvedWithRegistration):
     35        (WebCore::ServiceWorkerContainer::jobResolvedWithUnregistrationResult):
     36        * workers/service/ServiceWorkerContainer.h:
     37        * workers/service/ServiceWorkerRegistration.cpp:
     38        (WebCore::ServiceWorkerRegistration::ServiceWorkerRegistration):
     39        (WebCore::ServiceWorkerRegistration::~ServiceWorkerRegistration):
     40        (WebCore::ServiceWorkerRegistration::installing):
     41        (WebCore::ServiceWorkerRegistration::waiting):
     42        (WebCore::ServiceWorkerRegistration::active):
     43        * workers/service/ServiceWorkerRegistration.h:
     44        * workers/service/ServiceWorkerRegistrationData.cpp:
     45        (WebCore::ServiceWorkerRegistrationData::isolatedCopy const):
     46        * workers/service/ServiceWorkerRegistrationData.h:
     47        (WebCore::ServiceWorkerRegistrationData::encode const):
     48        (WebCore::ServiceWorkerRegistrationData::decode):
     49        * workers/service/server/SWClientConnection.cpp:
     50        (WebCore::SWClientConnection::postMessageToServiceWorkerClient):
     51        * workers/service/server/SWServerRegistration.cpp:
     52        (WebCore::SWServerRegistration::scriptContextStarted):
     53        (WebCore::SWServerRegistration::runRegisterJob):
     54        (WebCore::SWServerRegistration::data const):
     55        * workers/service/server/SWServerRegistration.h:
     56
    1572017-10-30  Fujii Hironori  <Hironori.Fujii@sony.com>
    258
  • trunk/Source/WebCore/dom/ScriptExecutionContext.cpp

    r224113 r224218  
    4545#include "ResourceRequest.h"
    4646#include "ScriptState.h"
     47#include "ServiceWorker.h"
    4748#include "Settings.h"
    4849#include "WorkerGlobalScope.h"
     
    529530
    530531#if ENABLE(SERVICE_WORKER)
     532
     533ServiceWorker* ScriptExecutionContext::activeServiceWorker() const
     534{
     535    return m_activeServiceWorker.get();
     536}
     537
     538void ScriptExecutionContext::setActiveServiceWorker(RefPtr<ServiceWorker>&& serviceWorker)
     539{
     540    m_activeServiceWorker = WTFMove(serviceWorker);
     541}
     542
    531543ServiceWorkerContainer* ScriptExecutionContext::serviceWorkerContainer()
    532544{
  • trunk/Source/WebCore/dom/ScriptExecutionContext.h

    r224113 r224218  
    7070
    7171#if ENABLE(SERVICE_WORKER)
     72class ServiceWorker;
    7273class ServiceWorkerContainer;
    7374#endif
     
    237238
    238239#if ENABLE(SERVICE_WORKER)
    239     uint64_t selectedServiceWorkerIdentifier() const { return m_serviceWorkerIdentifier; }
    240     void setSelectedServiceWorkerIdentifier(uint64_t identifier) { m_serviceWorkerIdentifier = identifier; }
     240    ServiceWorker* activeServiceWorker() const;
     241    void setActiveServiceWorker(RefPtr<ServiceWorker>&&);
    241242
    242243    ServiceWorkerContainer* serviceWorkerContainer();
     
    312313
    313314#if ENABLE(SERVICE_WORKER)
    314     uint64_t m_serviceWorkerIdentifier { 0 };
     315    RefPtr<ServiceWorker> m_activeServiceWorker;
    315316#endif
    316317};
  • trunk/Source/WebCore/loader/WorkerThreadableLoader.cpp

    r223718 r224218  
    4242#include "ResourceTiming.h"
    4343#include "SecurityOrigin.h"
     44#include "ServiceWorker.h"
    4445#include "ThreadableLoader.h"
    4546#include "WorkerGlobalScope.h"
     
    127128#if ENABLE(SERVICE_WORKER)
    128129    optionsCopy->options.serviceWorkersMode = globalScope.isServiceWorkerGlobalScope() ? ServiceWorkersMode::None : ServiceWorkersMode::All;
    129     optionsCopy->options.serviceWorkerIdentifier = globalScope.selectedServiceWorkerIdentifier();
     130    if (auto* activeServiceWorker = globalScope.activeServiceWorker())
     131        optionsCopy->options.serviceWorkerIdentifier = activeServiceWorker->identifier();
    130132#endif
    131133
  • trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp

    r224059 r224218  
    6868#include "SecurityOrigin.h"
    6969#include "SecurityPolicy.h"
     70#include "ServiceWorker.h"
    7071#include "Settings.h"
    7172#include "StyleSheetContents.h"
     
    693694            request.setOrigin(document->securityOrigin());
    694695#if ENABLE(SERVICE_WORKER)
    695         request.setSelectedServiceWorkerIdentifierIfNeeded(document->selectedServiceWorkerIdentifier());
     696        if (auto* activeServiceWorker = document->activeServiceWorker())
     697            request.setSelectedServiceWorkerIdentifierIfNeeded(activeServiceWorker->identifier());
    696698#endif
    697699    }
  • trunk/Source/WebCore/workers/WorkerScriptLoader.cpp

    r224070 r224218  
    3131#include "ResourceResponse.h"
    3232#include "ScriptExecutionContext.h"
     33#include "ServiceWorker.h"
    3334#include "TextResourceDecoder.h"
    3435#include "WorkerGlobalScope.h"
     
    6667#if ENABLE(SERVICE_WORKER)
    6768    options.serviceWorkersMode = workerGlobalScope.isServiceWorkerGlobalScope() ? ServiceWorkersMode::None : ServiceWorkersMode::All;
    68     options.serviceWorkerIdentifier = workerGlobalScope.selectedServiceWorkerIdentifier();
     69    if (auto* activeServiceWorker = workerGlobalScope.activeServiceWorker())
     70        options.serviceWorkerIdentifier = activeServiceWorker->identifier();
    6971#endif
    7072    WorkerThreadableLoader::loadResourceSynchronously(workerGlobalScope, WTFMove(*request), *this, options);
     
    9496#if ENABLE(SERVICE_WORKER)
    9597    options.serviceWorkersMode = m_client->isServiceWorkerClient() ? ServiceWorkersMode::None : ServiceWorkersMode::All;
    96     options.serviceWorkerIdentifier = scriptExecutionContext->selectedServiceWorkerIdentifier();
     98    if (auto* activeServiceWorker = scriptExecutionContext->activeServiceWorker())
     99        options.serviceWorkerIdentifier = activeServiceWorker->identifier();
    97100#endif
    98101    // During create, callbacks may happen which remove the last reference to this object.
  • trunk/Source/WebCore/workers/service/ServiceWorker.cpp

    r224113 r224218  
    2929#if ENABLE(SERVICE_WORKER)
    3030
     31#include "EventNames.h"
    3132#include "MessagePort.h"
    3233#include "SWClientConnection.h"
     
    3839namespace WebCore {
    3940
    40 ServiceWorker::ServiceWorker(ScriptExecutionContext& context, uint64_t serviceWorkerIdentifier)
     41ServiceWorker::ServiceWorker(ScriptExecutionContext& context, uint64_t serviceWorkerIdentifier, const URL& scriptURL)
    4142    : ContextDestructionObserver(&context)
    4243    , m_identifier(serviceWorkerIdentifier)
     44    , m_scriptURL(scriptURL)
    4345{
     46}
     47
     48void ServiceWorker::setState(State state)
     49{
     50    m_state = state;
     51    dispatchEvent(Event::create(eventNames().statechangeEvent, false, false));
    4452}
    4553
     
    7583}
    7684
    77 const String& ServiceWorker::scriptURL() const
    78 {
    79     return emptyString();
    80 }
    81 
    82 ServiceWorker::State ServiceWorker::state() const
    83 {
    84     return State::Activated;
    85 }
    86 
    8785EventTargetInterface ServiceWorker::eventTargetInterface() const
    8886{
  • trunk/Source/WebCore/workers/service/ServiceWorker.h

    r223922 r224218  
    3030#include "ContextDestructionObserver.h"
    3131#include "EventTarget.h"
     32#include "URL.h"
    3233#include <heap/Strong.h>
    3334#include <wtf/RefCounted.h>
     
    4344class ServiceWorker final : public RefCounted<ServiceWorker>, public EventTargetWithInlineData, public ContextDestructionObserver {
    4445public:
    45     static Ref<ServiceWorker> create(ScriptExecutionContext& context, uint64_t serviceWorkerIdentifier)
     46    static Ref<ServiceWorker> create(ScriptExecutionContext& context, uint64_t serviceWorkerIdentifier, const URL& scriptURL)
    4647    {
    47         return adoptRef(*new ServiceWorker(context, serviceWorkerIdentifier));
     48        return adoptRef(*new ServiceWorker(context, serviceWorkerIdentifier, scriptURL));
    4849    }
    4950
     
    5859    };
    5960
    60     const String& scriptURL() const;
    61     State state() const;
     61    const String& scriptURL() const { return m_scriptURL.string(); }
     62
     63    State state() const { return m_state; }
     64    void setState(State);
    6265
    6366    ExceptionOr<void> postMessage(ScriptExecutionContext&, JSC::JSValue message, Vector<JSC::Strong<JSC::JSObject>>&&);
     
    6972
    7073private:
    71     ServiceWorker(ScriptExecutionContext&, uint64_t serviceWorkerIdentifier);
     74    ServiceWorker(ScriptExecutionContext&, uint64_t serviceWorkerIdentifier, const URL& scriptURL);
    7275
    7376    virtual EventTargetInterface eventTargetInterface() const;
     
    7780
    7881    uint64_t m_identifier;
     82    URL m_scriptURL;
     83    State m_state { State::Installing };
    7984};
    8085
  • trunk/Source/WebCore/workers/service/ServiceWorkerContainer.cpp

    r224132 r224218  
    2929#if ENABLE(SERVICE_WORKER)
    3030
     31#include "EventNames.h"
    3132#include "Exception.h"
    3233#include "IDLTypes.h"
     
    3435#include "JSServiceWorkerRegistration.h"
    3536#include "Logging.h"
     37#include "Microtasks.h"
    3638#include "NavigatorBase.h"
    3739#include "ResourceError.h"
     
    7779{
    7880    auto* context = scriptExecutionContext();
    79     if (!context || !context->selectedServiceWorkerIdentifier()) {
    80         m_controller = nullptr;
    81         return nullptr;
    82     }
    83     if (!m_controller || m_controller->identifier() != context->selectedServiceWorkerIdentifier())
    84         m_controller = ServiceWorker::create(*context, context->selectedServiceWorkerIdentifier());
    85     return m_controller.get();
     81    return context ? context->activeServiceWorker() : nullptr;
    8682}
    8783
     
    204200}
    205201
     202class FakeServiceWorkerInstallMicrotask final : public Microtask {
     203    WTF_MAKE_FAST_ALLOCATED;
     204public:
     205    explicit FakeServiceWorkerInstallMicrotask(Ref<ServiceWorkerRegistration>&& registration)
     206        : m_registration(WTFMove(registration))
     207    {
     208    }
     209
     210private:
     211    Result run() final
     212    {
     213        // FIXME: We currently resolve the promise at the end of the install instead of the beginning so we need to fake
     214        // a few events to make it look like we are installing and activing the service worker.
     215        callOnMainThread([registration = WTFMove(m_registration)] () mutable {
     216            registration->dispatchEvent(Event::create(eventNames().updatefoundEvent, false, false));
     217            callOnMainThread([registration = WTFMove(registration)] () mutable {
     218                registration->installing()->setState(ServiceWorker::State::Installed);
     219                callOnMainThread([registration = WTFMove(registration)] () mutable {
     220                    registration->waiting()->setState(ServiceWorker::State::Activating);
     221                    callOnMainThread([registration = WTFMove(registration)] () mutable {
     222                        registration->active()->setState(ServiceWorker::State::Activated);
     223                    });
     224                });
     225            });
     226        });
     227        return Result::Done;
     228    }
     229
     230    Ref<ServiceWorkerRegistration> m_registration;
     231};
     232
    206233void ServiceWorkerContainer::jobResolvedWithRegistration(ServiceWorkerJob& job, ServiceWorkerRegistrationData&& data)
    207234{
     
    217244
    218245    // FIXME: Implement proper selection of service workers.
    219     context->setSelectedServiceWorkerIdentifier(data.identifier);
    220 
    221     auto registration = ServiceWorkerRegistration::create(*context, WTFMove(data));
     246    auto* activeServiceWorker = context->activeServiceWorker();
     247    if (!activeServiceWorker || activeServiceWorker->identifier() != data.identifier) {
     248        context->setActiveServiceWorker(ServiceWorker::create(*context, data.identifier, data.scriptURL));
     249        activeServiceWorker = context->activeServiceWorker();
     250    }
     251
     252    activeServiceWorker->setState(ServiceWorker::State::Installing);
     253    auto registration = ServiceWorkerRegistration::create(*context, WTFMove(data), *activeServiceWorker);
    222254    job.promise().resolve<IDLInterface<ServiceWorkerRegistration>>(registration.get());
     255
     256    // Use a microtask because we need to make sure this is executed after the promise above is resolved.
     257    MicrotaskQueue::mainThreadQueue().append(std::make_unique<FakeServiceWorkerInstallMicrotask>(WTFMove(registration)));
    223258}
    224259
     
    237272    // FIXME: Implement proper selection of service workers.
    238273    if (unregistrationResult)
    239         context->setSelectedServiceWorkerIdentifier(0);
     274        context->setActiveServiceWorker(nullptr);
    240275
    241276    job.promise().resolve<IDLBoolean>(unregistrationResult);
  • trunk/Source/WebCore/workers/service/ServiceWorkerContainer.h

    r224132 r224218  
    101101    RefPtr<SWClientConnection> m_swConnection;
    102102    HashMap<uint64_t, RefPtr<ServiceWorkerJob>> m_jobMap;
    103     mutable RefPtr<ServiceWorker> m_controller;
    104103
    105104#ifndef NDEBUG
  • trunk/Source/WebCore/workers/service/ServiceWorkerRegistration.cpp

    r224113 r224218  
    3030#include "DOMWindow.h"
    3131#include "Document.h"
     32#include "ServiceWorker.h"
    3233#include "ServiceWorkerContainer.h"
    3334#include "WorkerGlobalScope.h"
     
    3536namespace WebCore {
    3637
    37 ServiceWorkerRegistration::ServiceWorkerRegistration(ScriptExecutionContext& context, ServiceWorkerRegistrationData&& registrationData)
     38ServiceWorkerRegistration::ServiceWorkerRegistration(ScriptExecutionContext& context, ServiceWorkerRegistrationData&& registrationData, Ref<ServiceWorker>&& serviceWorker)
    3839    : ActiveDOMObject(&context)
    3940    , m_registrationData(WTFMove(registrationData))
     41    , m_serviceWorker(WTFMove(serviceWorker))
    4042{
    4143    suspendIfNeeded();
    4244}
    4345
     46ServiceWorkerRegistration::~ServiceWorkerRegistration()
     47{
     48}
     49
    4450ServiceWorker* ServiceWorkerRegistration::installing()
    4551{
    46     return nullptr;
     52    if (m_serviceWorker->state() != ServiceWorker::State::Installing)
     53        return nullptr;
     54    return m_serviceWorker.ptr();
    4755}
    4856
    4957ServiceWorker* ServiceWorkerRegistration::waiting()
    5058{
    51     return nullptr;
     59    if (m_serviceWorker->state() != ServiceWorker::State::Installed)
     60        return nullptr;
     61    return m_serviceWorker.ptr();
    5262}
    5363
    5464ServiceWorker* ServiceWorkerRegistration::active()
    5565{
    56     return nullptr;
     66    if (m_serviceWorker->state() != ServiceWorker::State::Activating && m_serviceWorker->state() != ServiceWorker::State::Activated)
     67        return nullptr;
     68    return m_serviceWorker.ptr();
    5769}
    5870
  • trunk/Source/WebCore/workers/service/ServiceWorkerRegistration.h

    r223652 r224218  
    4040class ServiceWorkerRegistration final : public RefCounted<ServiceWorkerRegistration>, public EventTargetWithInlineData, public ActiveDOMObject {
    4141public:
    42     static Ref<ServiceWorkerRegistration> create(ScriptExecutionContext& context, ServiceWorkerRegistrationData&& data)
     42    static Ref<ServiceWorkerRegistration> create(ScriptExecutionContext& context, ServiceWorkerRegistrationData&& data, Ref<ServiceWorker>&& serviceWorker)
    4343    {
    44         return adoptRef(*new ServiceWorkerRegistration(context, WTFMove(data)));
     44        return adoptRef(*new ServiceWorkerRegistration(context, WTFMove(data), WTFMove(serviceWorker)));
    4545    }
    4646
    47     virtual ~ServiceWorkerRegistration() = default;
     47    ~ServiceWorkerRegistration();
    4848
    4949    ServiceWorker* installing();
     
    6161
    6262private:
    63     ServiceWorkerRegistration(ScriptExecutionContext&, ServiceWorkerRegistrationData&&);
     63    ServiceWorkerRegistration(ScriptExecutionContext&, ServiceWorkerRegistrationData&&, Ref<ServiceWorker>&&);
    6464
    6565    EventTargetInterface eventTargetInterface() const final;
     
    7272
    7373    ServiceWorkerRegistrationData m_registrationData;
     74    Ref<ServiceWorker> m_serviceWorker;
    7475};
    7576
  • trunk/Source/WebCore/workers/service/ServiceWorkerRegistrationData.cpp

    r223652 r224218  
    3737        identifier,
    3838        scopeURL.isolatedCopy(),
     39        scriptURL.isolatedCopy(),
    3940        updateViaCache
    4041    };
  • trunk/Source/WebCore/workers/service/ServiceWorkerRegistrationData.h

    r223652 r224218  
    3838    uint64_t identifier;
    3939    URL scopeURL;
     40    URL scriptURL;
    4041    ServiceWorkerUpdateViaCache updateViaCache;
    4142
     
    5051void ServiceWorkerRegistrationData::encode(Encoder& encoder) const
    5152{
    52     encoder << key << identifier << scopeURL << updateViaCache;
     53    encoder << key << identifier << scopeURL << scriptURL << updateViaCache;
    5354}
    5455
     
    7172        return std::nullopt;
    7273
     74    std::optional<URL> scriptURL;
     75    decoder >> scriptURL;
     76    if (!scriptURL)
     77        return std::nullopt;
     78
    7379    std::optional<ServiceWorkerUpdateViaCache> updateViaCache;
    7480    decoder >> updateViaCache;
     
    7682        return std::nullopt;
    7783
    78     return { { WTFMove(*key), WTFMove(*identifier), WTFMove(*scopeURL), WTFMove(*updateViaCache) } };
     84    return { { WTFMove(*key), WTFMove(*identifier), WTFMove(*scopeURL), WTFMove(*scriptURL), WTFMove(*updateViaCache) } };
    7985}
    8086
  • trunk/Source/WebCore/workers/service/server/SWClientConnection.cpp

    r224113 r224218  
    125125
    126126    std::optional<MessageEventSource> source;
    127     if (destinationDocument->selectedServiceWorkerIdentifier() == sourceServiceWorkerIdentifier) {
    128         ASSERT(container->controller()->identifier() == sourceServiceWorkerIdentifier);
    129         source = MessageEventSource { RefPtr<ServiceWorker> { container->controller() } };
    130     } else
    131         source = MessageEventSource { RefPtr<ServiceWorker> { ServiceWorker::create(*destinationDocument, sourceServiceWorkerIdentifier) } };
     127    auto* activeServiceWorker = destinationDocument->activeServiceWorker();
     128    if (activeServiceWorker && activeServiceWorker->identifier() == sourceServiceWorkerIdentifier)
     129        source = MessageEventSource { RefPtr<ServiceWorker> { activeServiceWorker } };
     130    else {
     131        // FIXME: Pass in valid scriptURL.
     132        source = MessageEventSource { RefPtr<ServiceWorker> { ServiceWorker::create(*destinationDocument, sourceServiceWorkerIdentifier, URL()) } };
     133    }
    132134
    133135    // FIXME: We should pass in ports.
  • trunk/Source/WebCore/workers/service/server/SWServerRegistration.cpp

    r223964 r224218  
    9898{
    9999    UNUSED_PARAM(workerID);
    100     resolveCurrentRegistrationJob(ServiceWorkerRegistrationData { m_registrationKey, identifier, m_scopeURL, m_updateViaCache.value_or(ServiceWorkerUpdateViaCache::Imports) });
     100    resolveCurrentRegistrationJob(ServiceWorkerRegistrationData { m_registrationKey, identifier, m_scopeURL, m_scriptURL, m_updateViaCache.value_or(ServiceWorkerUpdateViaCache::Imports) });
    101101}
    102102
     
    171171        m_scopeURL = job.scopeURL.isolatedCopy();
    172172        m_scopeURL.removeFragmentIdentifier();
     173        m_scriptURL = job.scriptURL.isolatedCopy();
    173174        m_updateViaCache = job.registrationOptions.updateViaCache;
    174175    }
     
    294295ServiceWorkerRegistrationData SWServerRegistration::data() const
    295296{
    296     return { m_registrationKey, identifier(), m_scopeURL, m_updateViaCache.value_or(ServiceWorkerUpdateViaCache::Imports) };
     297    return { m_registrationKey, identifier(), m_scopeURL, m_scriptURL, m_updateViaCache.value_or(ServiceWorkerUpdateViaCache::Imports) };
    297298}
    298299
  • trunk/Source/WebCore/workers/service/server/SWServerRegistration.h

    r223964 r224218  
    8383    std::unique_ptr<SWServerWorker> m_activeWorker;
    8484    URL m_scopeURL;
     85    URL m_scriptURL;
    8586    std::optional<ServiceWorkerUpdateViaCache> m_updateViaCache;
    8687   
Note: See TracChangeset for help on using the changeset viewer.