Changeset 224250 in webkit


Ignore:
Timestamp:
Oct 31, 2017 3:11:45 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

rwt should allow service worker to load localhost HTTPS resources with any certificate
https://bugs.webkit.org/show_bug.cgi?id=179018

Patch by Youenn Fablet <youenn@apple.com> on 2017-10-31
Reviewed by Chris Dumez.

Source/WebKit:

Allowing ServiceWorkerProcessProxy to handle authentication challenge.
Temporarily adding a boolean flag through WebProcessPool to lower the SSL certificate verifications for service workers.
This allows reducing flakiness in our layout tests for rwt.
Future work should be done to expose a correct API for the application level to handle authentication challenges properly.

  • UIProcess/API/C/WKContext.cpp:

(WKContextSetAllowsAnySSLCertificateForServiceWorkerTesting):

  • UIProcess/API/C/WKContextPrivate.h:
  • UIProcess/API/Cocoa/WKProcessPool.mm:

(-[WKProcessPool _setAllowsAnySSLCertificateForServiceWorker:]):

  • UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
  • UIProcess/Network/NetworkProcessProxy.cpp:

(WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
(WebKit::NetworkProcessProxy::canAuthenticateAgainstProtectionSpace):

  • UIProcess/ServiceWorkerProcessProxy.cpp:

(WebKit::ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge):

  • UIProcess/ServiceWorkerProcessProxy.h:
  • UIProcess/WebProcessPool.h:

Tools:

  • WebKitTestRunner/TestController.cpp:

(WTR::TestController::resetStateToConsistentValues): allowing any SSL certificate for service workers.

LayoutTests:

  • TestExpectations:
  • http/tests/workers/service/service-worker-fetch-expected.txt: Removed.
  • http/tests/workers/service/service-worker-fetch.https-expected.txt: Added.
  • http/tests/workers/service/service-worker-fetch.https.html: Renamed from LayoutTests/http/tests/workers/service/service-worker-fetch.html.
Location:
trunk
Files:
1 added
1 deleted
76 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r224247 r224250  
     12017-10-31  Youenn Fablet  <youenn@apple.com>
     2
     3        rwt should allow service worker to load localhost HTTPS resources with any certificate
     4        https://bugs.webkit.org/show_bug.cgi?id=179018
     5
     6        Reviewed by Chris Dumez.
     7
     8        * TestExpectations:
     9        * http/tests/workers/service/service-worker-fetch-expected.txt: Removed.
     10        * http/tests/workers/service/service-worker-fetch.https-expected.txt: Added.
     11        * http/tests/workers/service/service-worker-fetch.https.html: Renamed from LayoutTests/http/tests/workers/service/service-worker-fetch.html.
     12
    1132017-10-31  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/LayoutTests/TestExpectations

    r224247 r224250  
    138138
    139139# Skip service worker tests that are timing out.
    140 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-add.https.html [ Skip ]
    141 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-delete.https.html [ Skip ]
    142 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-keys.https.html [ Skip ]
    143 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-match.https.html [ Skip ]
    144 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-matchAll.https.html [ Skip ]
    145 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https.html [ Skip ]
    146 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-keys.https.html [ Skip ]
    147 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https.html [ Skip ]
    148 imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage.https.html [ Skip ]
    149140imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https.html [ Skip ]
    150141imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event-constructor.https.html [ Skip ]
     
    159150imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-network-error.https.html [ Skip ]
    160151imported/w3c/web-platform-tests/service-workers/service-worker/fetch-event-respond-with-argument.https.html [ Skip ]
    161 imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-inscope.https.html [ Skip ]
    162 imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-outscope.https.html [ Skip ]
    163152imported/w3c/web-platform-tests/service-workers/service-worker/fetch-response-taint.https.html [ Skip ]
    164153imported/w3c/web-platform-tests/service-workers/service-worker/foreign-fetch-basics.https.html [ Skip ]
     
    179168imported/w3c/web-platform-tests/service-workers/service-worker/navigation-preload/redirect.https.html [ Skip ]
    180169imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-to-http.https.html [ Skip ]
    181 imported/w3c/web-platform-tests/service-workers/service-worker/performance-timeline.https.html [ Skip ]
    182170imported/w3c/web-platform-tests/service-workers/service-worker/postmessage.https.html [ Skip ]
    183171imported/w3c/web-platform-tests/service-workers/service-worker/register-foreign-fetch-errors.https.html [ Skip ]
    184172imported/w3c/web-platform-tests/service-workers/service-worker/registration-service-worker-attributes.https.html [ Skip ]
    185 imported/w3c/web-platform-tests/service-workers/service-worker/registration-updateviacache.https.html [ Skip ]
    186 imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-connect.https.html [ Skip ]
    187 imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-default.https.html [ Skip ]
    188 imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-script.https.html [ Skip ]
    189173imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting-without-client.https.html [ Skip ]
    190 imported/w3c/web-platform-tests/service-workers/service-worker/uncontrolled-page.https.html [ Skip ]
    191174imported/w3c/web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https.html [ Skip ]
    192175imported/w3c/web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https.html [ Skip ]
    193176imported/w3c/web-platform-tests/service-workers/service-worker/update-after-oneday.https.html [ Skip ]
    194 imported/w3c/web-platform-tests/service-workers/service-worker/update-bytecheck.https.html [ Skip ]
    195 
    196177imported/w3c/web-platform-tests/fetch/api/abort/general-serviceworker.https.html [ Skip ]
    197 imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html [ Skip ]
    198 imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-service-worker.https.html [ Skip ]
    199 imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https.html [ Skip ]
    200 imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html [ Skip ]
    201 imported/w3c/web-platform-tests/FileAPI/historical.https.html [ Skip ]
    202 imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/canblock-serviceworker.https.html [ Skip ]
    203 imported/w3c/web-platform-tests/streams/byte-length-queuing-strategy.serviceworker.https.html [ Skip ]
    204 imported/w3c/web-platform-tests/streams/count-queuing-strategy.serviceworker.https.html [ Skip ]
    205 imported/w3c/web-platform-tests/streams/piping/close-propagation-backward.serviceworker.https.html [ Skip ]
    206 imported/w3c/web-platform-tests/streams/piping/close-propagation-forward.serviceworker.https.html [ Skip ]
    207 imported/w3c/web-platform-tests/streams/piping/error-propagation-backward.serviceworker.https.html [ Skip ]
    208 imported/w3c/web-platform-tests/streams/piping/error-propagation-forward.serviceworker.https.html [ Skip ]
    209 imported/w3c/web-platform-tests/streams/piping/flow-control.serviceworker.https.html [ Skip ]
    210 imported/w3c/web-platform-tests/streams/piping/general.serviceworker.https.html [ Skip ]
    211 imported/w3c/web-platform-tests/streams/piping/multiple-propagation.serviceworker.https.html [ Skip ]
    212 imported/w3c/web-platform-tests/streams/piping/pipe-through.serviceworker.https.html [ Skip ]
    213 imported/w3c/web-platform-tests/streams/piping/transform-streams.serviceworker.https.html [ Skip ]
    214 imported/w3c/web-platform-tests/streams/readable-byte-streams/brand-checks.serviceworker.https.html [ Skip ]
    215 imported/w3c/web-platform-tests/streams/readable-byte-streams/detached-buffers.serviceworker.https.html [ Skip ]
    216 imported/w3c/web-platform-tests/streams/readable-byte-streams/general.serviceworker.https.html [ Skip ]
    217 imported/w3c/web-platform-tests/streams/readable-byte-streams/properties.serviceworker.https.html [ Skip ]
    218 imported/w3c/web-platform-tests/streams/readable-streams/bad-strategies.serviceworker.https.html [ Skip ]
    219 imported/w3c/web-platform-tests/streams/readable-streams/bad-underlying-sources.serviceworker.https.html [ Skip ]
    220 imported/w3c/web-platform-tests/streams/readable-streams/brand-checks.serviceworker.https.html [ Skip ]
    221 imported/w3c/web-platform-tests/streams/readable-streams/cancel.serviceworker.https.html [ Skip ]
    222 imported/w3c/web-platform-tests/streams/readable-streams/count-queuing-strategy-integration.serviceworker.https.html [ Skip ]
    223 imported/w3c/web-platform-tests/streams/readable-streams/default-reader.serviceworker.https.html [ Skip ]
    224 imported/w3c/web-platform-tests/streams/readable-streams/floating-point-total-queue-size.serviceworker.https.html [ Skip ]
    225 imported/w3c/web-platform-tests/streams/readable-streams/garbage-collection.serviceworker.https.html [ Skip ]
    226 imported/w3c/web-platform-tests/streams/readable-streams/general.serviceworker.https.html [ Skip ]
    227 imported/w3c/web-platform-tests/streams/readable-streams/readable-stream-reader.serviceworker.https.html [ Skip ]
    228 imported/w3c/web-platform-tests/streams/readable-streams/tee.serviceworker.https.html [ Skip ]
    229 imported/w3c/web-platform-tests/streams/readable-streams/templated.serviceworker.https.html [ Skip ]
    230 
     178
     179imported/w3c/web-platform-tests/service-workers/service-worker/performance-timeline.https.html [ Pass Failure ]
    231180imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-redirect.https.html [ Pass Failure ]
    232181imported/w3c/web-platform-tests/service-workers/service-worker/websocket.https.html [ Pass Failure ]
  • trunk/LayoutTests/imported/w3c/web-platform-tests/FileAPI/historical.https-expected.txt

    r220924 r224250  
    77PASS createFor method should not be supported
    88PASS Blob.close() should not be supported
    9 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     9PASS Service worker test setup
     10FAIL "FileReaderSync" should not be supported in service workers assert_false: expected false got true
    1011
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Fetch in service worker: referrer with no-referrer policy assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Fetch in service worker: referrer with no-referrer policy
     3PASS Request's referrer is empty
    34
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-service-worker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Fetch in service worker: referrer with no-referrer policy assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Fetch in service worker: referrer with no-referrer policy
     3FAIL Request's referrer is origin assert_equals: request's referrer is https://localhost:9443/ expected "https://localhost:9443/" but got "https://localhost:9443/fetch/api/policies/referrer-origin.js?pipe=sub"
     4FAIL Cross-origin referrer is overridden by client origin promise_test: Unhandled rejection with value: object "TypeError: Referrer is not same-origin."
    35
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Fetch in service worker: referrer with origin-when-cross-origin policy assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Fetch in service worker: referrer with origin-when-cross-origin policy
     3FAIL Request's referrer is origin promise_test: Unhandled rejection with value: object "TypeError: A server with the specified hostname could not be found."
    34
  • trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Fetch in worker: referrer with unsafe-url policy assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Fetch in worker: referrer with unsafe-url policy
     3PASS Request's referrer is the full url of current document/worker
    34
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/integration-with-the-javascript-agent-formalism/canblock-serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL [[CanBlock]] in a ServiceWorkerGlobalScope assert_throws: function "() => {
     4    Atomics.wait(ta, 0, 0, 10);
     5  }" did not throw
    36
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-add.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.add and Cache.addAll
     3PASS Cache.add called with no arguments
     4PASS Cache.add called with relative URL specified as a string
     5PASS Cache.add called with non-HTTP/HTTPS URL
     6PASS Cache.add called with Request object
     7PASS Cache.add called with POST request
     8PASS Cache.add called twice with the same Request object
     9PASS Cache.add with request with null body (not consumed)
     10PASS Cache.add with 206 response
     11PASS Cache.addAll with 206 response
     12PASS Cache.add with request that results in a status of 404
     13PASS Cache.add with request that results in a status of 500
     14PASS Cache.addAll with no arguments
     15PASS Cache.addAll with a mix of valid and undefined arguments
     16PASS Cache.addAll with an empty array
     17PASS Cache.addAll with string URL arguments
     18PASS Cache.addAll with Request arguments
     19PASS Cache.addAll with a mix of succeeding and failing requests
     20PASS Cache.addAll called with the same Request object specified twice
    321
    4 TIMEOUT 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

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.delete
     3PASS Cache.delete with no arguments
     4PASS Cache.delete called with a string URL
     5PASS Cache.delete called with a Request object
     6PASS Cache.delete called with a HEAD request
     7PASS Cache.delete supports ignoreVary
     8PASS Cache.delete with a non-existent entry
     9PASS Cache.delete with ignoreSearch option (request with search parameters)
     10PASS Cache.delete with ignoreSearch option (when it is specified as false)
    311
    4 TIMEOUT Cache.delete Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-keys.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.keys
     3PASS Cache.keys() called on an empty cache
     4PASS Cache.keys with no matching entries
     5PASS Cache.keys with URL
     6PASS Cache.keys with Request
     7PASS Cache.keys with new Request
     8PASS Cache.keys with ignoreSearch option (request with no search parameters)
     9PASS Cache.keys with ignoreSearch option (request with search parameters)
     10PASS Cache.keys supports ignoreMethod
     11PASS Cache.keys supports ignoreVary
     12PASS Cache.keys with URL containing fragment
     13PASS Cache.keys with string fragment "http" as query
     14PASS Cache.keys without parameters
     15PASS Cache.keys with a HEAD Request
    316
    4 TIMEOUT Cache.keys Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-match.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.match
     3PASS Cache.match with no matching entries
     4PASS Cache.match with URL
     5PASS Cache.match with Request
     6PASS Cache.match with multiple cache hits
     7PASS Cache.match with new Request
     8PASS Cache.match with HEAD
     9PASS Cache.match with ignoreSearch option (request with no search parameters)
     10PASS Cache.match with ignoreSearch option (request with search parameter)
     11PASS Cache.match supports ignoreMethod
     12PASS Cache.match supports ignoreVary
     13PASS Cache.match with URL containing fragment
     14PASS Cache.match with string fragment "http" as query
     15PASS Cache.match with responses containing "Vary" header
     16PASS Cache.match with Request and Response objects with different URLs
     17PASS Cache.match invoked multiple times for the same Request/Response
     18PASS Cache.match blob should be sliceable
     19PASS Cache.match with POST Request
     20PASS Cache.match with a non-2xx Response
     21PASS Cache.match with a network error Response
     22PASS Cache produces large Responses that can be cloned and read correctly.
    323
    4 TIMEOUT Cache.match Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-matchAll.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.matchAll
     3PASS Cache.matchAll with no matching entries
     4PASS Cache.matchAll with URL
     5PASS Cache.matchAll with Request
     6PASS Cache.matchAll with new Request
     7PASS Cache.matchAll with HEAD
     8PASS Cache.matchAll with ignoreSearch option (request with no search parameters)
     9PASS Cache.matchAll with ignoreSearch option (request with search parameters)
     10PASS Cache.matchAll supports ignoreMethod
     11PASS Cache.matchAll supports ignoreVary
     12PASS Cache.matchAll with URL containing fragment
     13PASS Cache.matchAll with string fragment "http" as query
     14PASS Cache.matchAll without parameters
     15PASS Cache.matchAll with responses containing "Vary" header
     16PASS Cache.matchAll with multiple vary pairs
    317
    4 TIMEOUT Cache.matchAll Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-put.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Cache.put
     3PASS Cache.put called with simple Request and Response
     4PASS Cache.put called with Request and Response from fetch()
     5PASS Cache.put with Request without a body
     6PASS Cache.put with Response without a body
     7PASS Cache.put with a Response containing an empty URL
     8PASS Cache.put with an empty response body
     9PASS Cache.put with synthetic 206 response
     10PASS Cache.put with HTTP 206 response
     11PASS Cache.put with HTTP 500 response
     12PASS Cache.put called twice with matching Requests and different Responses
     13PASS Cache.put called twice with request URLs that differ only by a fragment
     14PASS Cache.put with a string request
     15PASS Cache.put with an invalid response
     16PASS Cache.put with a non-HTTP/HTTPS request
     17PASS Cache.put with a relative URL
     18PASS Cache.put with a non-GET request
     19PASS Cache.put with a null response
     20PASS Cache.put with a POST request
     21PASS Cache.put with a used response body
     22PASS getReader() after Cache.put
     23PASS Cache.put with a VARY:* Response
     24PASS Cache.put with an embedded VARY:* Response
     25PASS Cache.put should store Response.redirect() correctly
    326
    4 TIMEOUT Cache.put Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-keys.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CacheStorage.keys
     3PASS CacheStorage keys
    34
    4 TIMEOUT CacheStorage.keys Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage-match.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CacheStorage.match
     3PASS CacheStorageMatch with no cache name provided
     4PASS CacheStorageMatch from one of many caches
     5PASS CacheStorageMatch from one of many caches by name
     6PASS CacheStorageMatch a string request
     7PASS CacheStorageMatch a HEAD request
     8PASS CacheStorageMatch with no cached entry
     9PASS CacheStorageMatch with no caches available but name provided
     10PASS CacheStorageMatch with empty cache name provided
     11PASS CacheStorageMatch supports ignoreSearch
     12PASS Cache.match supports ignoreMethod
     13PASS CacheStorageMatch supports ignoreVary
    314
    4 TIMEOUT CacheStorage.match Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/cache-storage/serviceworker/cache-storage.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CacheStorage
     3PASS CacheStorage.open
     4PASS CacheStorage.delete dooms, but does not delete immediately
     5PASS CacheStorage.open with an empty name
     6PASS CacheStorage.open with no arguments
     7PASS CacheStorage.has with existing cache
     8PASS CacheStorage.has with nonexistent cache
     9PASS CacheStorage.open with existing cache
     10PASS CacheStorage.delete with existing cache
     11PASS CacheStorage.delete with nonexistent cache
     12PASS CacheStorage names are DOMStrings not USVStrings
    313
    4 TIMEOUT CacheStorage Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/close.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS ServiceWorkerGlobalScope: close operation
     3FAIL ServiceWorkerGlobalScope close operation assert_false: expected false got true
    34
    4 TIMEOUT ServiceWorkerGlobalScope: close operation Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/ServiceWorkerGlobalScope/extendable-message-event-constructor.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS ServiceWorkerGlobalScope: ExtendableMessageEvent Constructor
     3PASS no initializer specified
     4PASS `bubbles` is specified
     5PASS `cancelable` is specified
     6FAIL `data` is specified assert_equals: expected object "[object Object]" but got object "[object Object]"
     7PASS `origin` is specified
     8PASS `lastEventId` is specified
     9FAIL `source` is specified assert_equals: expected object "[object MessagePort]" but got null
     10FAIL `ports` is specified assert_throws: function "function () {
     11      createEvent({ get ports() { throw { name: 'Error' }; } }); }" threw object "TypeError: Value is not a sequence" ("TypeError") expected object "[object Object]" ("Error")
     12FAIL all initial values are specified assert_equals: expected object "[object Object]" but got object "[object Object]"
    313
    4 TIMEOUT ServiceWorkerGlobalScope: ExtendableMessageEvent Constructor Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-inscope.https-expected.txt

    r224218 r224250  
    11
    22
    3 Harness Error (TIMEOUT), message = null
     3FAIL Verify Mixed content of fetch() in a Service Worker assert_equals: expected "finish" but got "FAIL(1)FAIL(2)finish"
    44
    5 TIMEOUT Verify Mixed content of fetch() in a Service Worker Test timed out
    6 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-mixed-content-to-outscope.https-expected.txt

    r224218 r224250  
     1CONSOLE MESSAGE: line 25: The page at https://localhost:9443/service-workers/service-worker/fetch-mixed-content-to-outscope.https.html was allowed to display insecure content from http://localhost:8800/service-workers/service-worker/resources/fetch-access-control.py?PNGIMAGE.
     2
     3CONSOLE MESSAGE: line 39: The page at https://localhost:9443/service-workers/service-worker/fetch-mixed-content-to-outscope.https.html was allowed to display insecure content from http://127.0.0.1:8800/service-workers/service-worker/resources/fetch-access-control.py?PNGIMAGE.
    14
    25
    3 Harness Error (TIMEOUT), message = null
    46
    5 TIMEOUT Verify Mixed content of fetch() in a Service Worker Test timed out
     7FAIL Verify Mixed content of fetch() in a Service Worker assert_equals: expected "finish" but got "FAIL(3)FAIL(4)FAIL(5)finish"
    68
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/fetch-request-redirect.https-expected.txt

    r224218 r224250  
    33FAIL 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"
    44FAIL 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."
    5 FAIL 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"
     5FAIL Verify redirected of Response(Fetch API), Cache 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."
    66
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/foreign-fetch-event.https-expected.txt

    r224218 r224250  
    22Harness Error (TIMEOUT), message = null
    33
    4 TIMEOUT ForeignFetchEvent constructor Test timed out
     4PASS ForeignFetchEvent constructor
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/interfaces-sw.https-expected.txt

    r224218 r224250  
    22Harness Error (TIMEOUT), message = null
    33
    4 TIMEOUT Interfaces and attributes in ServiceWorkerGlobalScope Test timed out
     4PASS Interfaces and attributes in ServiceWorkerGlobalScope
     5TIMEOUT test setup (cache creation) Test timed out
     6FAIL Event constructors assert_equals: Default FetchEvent.clientId should be null expected (object) null but got (string) ""
     7PASS ServiceWorkerGlobalScope interface: existence and properties of interface object
     8PASS ServiceWorkerGlobalScope interface object length
     9PASS ServiceWorkerGlobalScope interface object name
     10PASS ServiceWorkerGlobalScope interface: existence and properties of interface prototype object
     11TIMEOUT ServiceWorkerGlobalScope interface: internal [[SetPrototypeOf]] method of interface prototype object - setting to a new value via Object.setPrototypeOf should throw a TypeError Test timed out
    512
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/navigation-redirect-to-http.https-expected.txt

    r224218 r224250  
     1CONSOLE MESSAGE: [blocked] The page at about:blank was not allowed to display insecure content from http://example.com/.
     2
    13
    24Harness Error (TIMEOUT), message = null
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/performance-timeline.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
    32
    4 TIMEOUT Test Performance Timeline API in Service Worker Test timed out
    5 NOTRUN empty service worker fetch event included in performance timings
     3PASS Test Performance Timeline API in Service Worker
     4FAIL empty service worker fetch event included in performance timings assert_greater_than: Slow service worker request should measure increased delay. expected a number greater than 1152.1 but got 151.59999999999997
     5FAIL User Timing promise_test: Unhandled rejection with value: object "TypeError: performance.mark is not a function. (In 'performance.mark('startMark')', 'performance.mark' is undefined)"
     6FAIL Resource Timing promise_test: Unhandled rejection with value: object "TypeError: performance.getEntriesByType is not a function. (In 'performance.getEntriesByType('resource')', 'performance.getEntriesByType' is undefined)"
    67
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/register-foreign-fetch-errors.https-expected.txt

    r224218 r224250  
    22Harness Error (TIMEOUT), message = null
    33
    4 TIMEOUT foreign fetch registration Test timed out
     4PASS foreign fetch registration
    55
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/registration-updateviacache.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2FAIL register-via-api-updateViaCache-undefined promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     3FAIL register-via-api-updateViaCache-imports promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     4FAIL register-via-api-updateViaCache-all assert_equals: reg.updateViaCache expected "all" but got "imports"
     5FAIL register-via-api-updateViaCache-none assert_equals: reg.updateViaCache expected "none" but got "imports"
     6FAIL register-via-link-element-updateViaCache-undefined promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     7FAIL register-via-link-element-updateViaCache-imports promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     8FAIL register-via-link-element-updateViaCache-all promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     9FAIL register-via-link-element-updateViaCache-none promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     10FAIL register-via-link-header-updateViaCache-undefined promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     11FAIL register-via-link-header-updateViaCache-imports promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     12FAIL register-via-link-header-updateViaCache-all promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     13FAIL register-via-link-header-updateViaCache-none promise_test: Unhandled rejection with value: object "Error: link rel=serviceworker not supported"
     14PASS register-with-updateViaCache-undefined-then-undefined
     15PASS register-with-updateViaCache-undefined-then-imports
     16FAIL register-with-updateViaCache-undefined-then-all assert_equals: reg.updateViaCache updated expected "all" but got "imports"
     17FAIL register-with-updateViaCache-undefined-then-none assert_equals: reg.updateViaCache updated expected "none" but got "imports"
     18PASS register-with-updateViaCache-imports-then-undefined
     19PASS register-with-updateViaCache-imports-then-imports
     20FAIL register-with-updateViaCache-imports-then-all assert_equals: reg.updateViaCache updated expected "all" but got "imports"
     21FAIL register-with-updateViaCache-imports-then-none assert_equals: reg.updateViaCache updated expected "none" but got "imports"
     22FAIL register-with-updateViaCache-all-then-undefined assert_true: New worker installing expected true got false
     23FAIL register-with-updateViaCache-all-then-imports assert_true: New worker installing expected true got false
     24FAIL register-with-updateViaCache-all-then-all assert_equals: reg.updateViaCache updated expected "all" but got "imports"
     25FAIL register-with-updateViaCache-all-then-none assert_equals: reg.updateViaCache updated expected "none" but got "imports"
     26FAIL register-with-updateViaCache-none-then-undefined assert_true: New worker installing expected true got false
     27FAIL register-with-updateViaCache-none-then-imports assert_true: New worker installing expected true got false
     28FAIL register-with-updateViaCache-none-then-all assert_equals: reg.updateViaCache updated expected "all" but got "imports"
     29FAIL register-with-updateViaCache-none-then-none assert_equals: reg.updateViaCache updated expected "none" but got "imports"
    330
    4 TIMEOUT register-via-api-updateViaCache-undefined Test timed out
    5 NOTRUN register-via-api-updateViaCache-imports
    6 NOTRUN register-via-api-updateViaCache-all
    7 NOTRUN register-via-api-updateViaCache-none
    8 NOTRUN register-via-link-element-updateViaCache-undefined
    9 NOTRUN register-via-link-element-updateViaCache-imports
    10 NOTRUN register-via-link-element-updateViaCache-all
    11 NOTRUN register-via-link-element-updateViaCache-none
    12 NOTRUN register-via-link-header-updateViaCache-undefined
    13 NOTRUN register-via-link-header-updateViaCache-imports
    14 NOTRUN register-via-link-header-updateViaCache-all
    15 NOTRUN register-via-link-header-updateViaCache-none
    16 NOTRUN register-with-updateViaCache-undefined-then-undefined
    17 NOTRUN register-with-updateViaCache-undefined-then-imports
    18 NOTRUN register-with-updateViaCache-undefined-then-all
    19 NOTRUN register-with-updateViaCache-undefined-then-none
    20 NOTRUN register-with-updateViaCache-imports-then-undefined
    21 NOTRUN register-with-updateViaCache-imports-then-imports
    22 NOTRUN register-with-updateViaCache-imports-then-all
    23 NOTRUN register-with-updateViaCache-imports-then-none
    24 NOTRUN register-with-updateViaCache-all-then-undefined
    25 NOTRUN register-with-updateViaCache-all-then-imports
    26 NOTRUN register-with-updateViaCache-all-then-all
    27 NOTRUN register-with-updateViaCache-all-then-none
    28 NOTRUN register-with-updateViaCache-none-then-undefined
    29 NOTRUN register-with-updateViaCache-none-then-imports
    30 NOTRUN register-with-updateViaCache-none-then-all
    31 NOTRUN register-with-updateViaCache-none-then-none
    32 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-connect.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CSP test for connect-src in ServiceWorkerGlobalScope
     3FAIL importScripts test for connect-src assert_false: Importing the other origins script should not fail. expected false got true
     4FAIL Fetch test for connect-src assert_unreached: unexpected rejection: assert_unreached: fetch should fail. Reached unreachable code Reached unreachable code
     5FAIL Redirected fetch test for connect-src assert_unreached: unexpected rejection: assert_unreached: Redirected fetch should fail. Reached unreachable code Reached unreachable code
    36
    4 TIMEOUT CSP test for connect-src in ServiceWorkerGlobalScope Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-default.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CSP test for default-src in ServiceWorkerGlobalScope
     3PASS importScripts test for default-src
     4FAIL Fetch test for default-src assert_unreached: unexpected rejection: assert_unreached: fetch should fail. Reached unreachable code Reached unreachable code
     5FAIL Redirected fetch test for default-src assert_unreached: unexpected rejection: assert_unreached: Redirected fetch should fail. Reached unreachable code Reached unreachable code
    36
    4 TIMEOUT CSP test for default-src in ServiceWorkerGlobalScope Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/service-worker-csp-script.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS CSP test for script-src in ServiceWorkerGlobalScope
     3PASS importScripts test for script-src
     4PASS Fetch test for script-src
     5PASS Redirected fetch test for script-src
    36
    4 TIMEOUT CSP test for script-src in ServiceWorkerGlobalScope Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/skip-waiting-without-client.https-expected.txt

    r224218 r224250  
    22Harness Error (TIMEOUT), message = null
    33
    4 TIMEOUT Test single skipWaiting() when no client attached Test timed out
     4PASS Test single skipWaiting() when no client attached
     5TIMEOUT skipWaiting Test timed out
    56
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/uncontrolled-page.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2FAIL Fetch events should not go through uncontrolled page. assert_unreached: assert_equals: expected "a simple text file\n" but got "ERROR" Reached unreachable code
    33
    4 TIMEOUT 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

    r224218 r224250  
    22
    33FAIL 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
    4 PASS Unregister prevents control of subsequent navigations
     4FAIL Unregister prevents control of subsequent navigations assert_unreached: unexpected rejection: assert_equals: requests should not be intercepted expected "a simple text file\n" but got "ERROR" Reached unreachable code
    55PASS Unregister prevents new controllee even if registration is still in use
    66
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/unregister-then-register-new-script.https-expected.txt

    r224218 r224250  
     1
    12
    23Harness Error (TIMEOUT), message = null
    34
    4 TIMEOUT Registering a new script URL while an unregistered registration is in use Test timed out
    5 TIMEOUT Registering a new script URL that 404s does not resurrect an unregistered registration Test timed out
     5FAIL Registering a new script URL while an unregistered registration is in use assert_unreached: unexpected rejection: null is not an object (evaluating 'registration.installing.scriptURL') Reached unreachable code
     6FAIL Registering a new script URL that 404s does not resurrect an unregistered registration assert_unreached: unexpected rejection: assert_unreached: register should reject the promise Reached unreachable code Reached unreachable code
    67TIMEOUT Registering a new script URL that fails to install does not resurrect an unregistered registration Test timed out
    78
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-after-navigation-fetch-event.https-expected.txt

    r224218 r224250  
     1
    12
    23Harness Error (TIMEOUT), message = null
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-after-oneday.https-expected.txt

    r224218 r224250  
     1
    12
    23Harness Error (TIMEOUT), message = null
  • trunk/LayoutTests/imported/w3c/web-platform-tests/service-workers/service-worker/update-bytecheck.https-expected.txt

    r224218 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2FAIL Test(cors: false, main: default, imported: default) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     3FAIL Test(cors: false, main: default, imported: time) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     4FAIL Test(cors: false, main: time, imported: default) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     5FAIL Test(cors: false, main: time, imported: time) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     6FAIL Test(cors: true, main: default, imported: default) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     7FAIL Test(cors: true, main: default, imported: time) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     8FAIL Test(cors: true, main: time, imported: default) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
     9FAIL Test(cors: true, main: time, imported: time) promise_test: Unhandled rejection with value: object "NotSupportedError: ServiceWorkerRegistration::update not yet implemented"
    310
    4 TIMEOUT Test(cors: false, main: default, imported: default) Test timed out
    5 NOTRUN Test(cors: false, main: default, imported: time)
    6 NOTRUN Test(cors: false, main: time, imported: default)
    7 NOTRUN Test(cors: false, main: time, imported: time)
    8 NOTRUN Test(cors: true, main: default, imported: default)
    9 NOTRUN Test(cors: true, main: default, imported: time)
    10 NOTRUN Test(cors: true, main: time, imported: default)
    11 NOTRUN Test(cors: true, main: time, imported: time)
    12 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/byte-length-queuing-strategy.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can construct a ByteLengthQueuingStrategy with a valid high water mark
     4PASS Can construct a ByteLengthQueuingStrategy with any value as its high water mark
     5PASS ByteLengthQueuingStrategy constructor behaves as expected with strange arguments
     6PASS ByteLengthQueuingStrategy size behaves as expected with strange arguments
     7PASS ByteLengthQueuingStrategy.prototype.size should work generically on its this and its arguments
     8PASS ByteLengthQueuingStrategy instances have the correct properties
     9PASS ByteLengthQueuingStrategy's highWaterMark property can be set to anything
     10PASS ByteLengthQueuingStrategy.name is correct
    311
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/count-queuing-strategy.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can construct a CountQueuingStrategy with a valid high water mark
     4PASS Can construct a CountQueuingStrategy with any value as its high water mark
     5PASS CountQueuingStrategy constructor behaves as expected with strange arguments
     6PASS CountQueuingStrategy.prototype.size should work generically on its this and its arguments
     7PASS CountQueuingStrategy size behaves as expected with strange arguments
     8PASS CountQueuingStrategy instances have the correct properties
     9PASS CountQueuingStrategy's highWaterMark property can be set to anything
     10PASS CountQueuingStrategy.name is correct
    311
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/close-propagation-backward.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Closing must be propagated backward: starts closed; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     4FAIL Closing must be propagated backward: starts closed; preventCancel omitted; rejected cancel promise Can't find variable: WritableStream
     5FAIL Closing must be propagated backward: starts closed; preventCancel = undefined (falsy); fulfilled cancel promise Can't find variable: WritableStream
     6FAIL Closing must be propagated backward: starts closed; preventCancel = null (falsy); fulfilled cancel promise Can't find variable: WritableStream
     7FAIL Closing must be propagated backward: starts closed; preventCancel = false (falsy); fulfilled cancel promise Can't find variable: WritableStream
     8FAIL Closing must be propagated backward: starts closed; preventCancel = 0 (falsy); fulfilled cancel promise Can't find variable: WritableStream
     9FAIL Closing must be propagated backward: starts closed; preventCancel = -0 (falsy); fulfilled cancel promise Can't find variable: WritableStream
     10FAIL Closing must be propagated backward: starts closed; preventCancel = NaN (falsy); fulfilled cancel promise Can't find variable: WritableStream
     11FAIL Closing must be propagated backward: starts closed; preventCancel =  (falsy); fulfilled cancel promise Can't find variable: WritableStream
     12FAIL Closing must be propagated backward: starts closed; preventCancel = true (truthy) Can't find variable: WritableStream
     13FAIL Closing must be propagated backward: starts closed; preventCancel = a (truthy) Can't find variable: WritableStream
     14FAIL Closing must be propagated backward: starts closed; preventCancel = 1 (truthy) Can't find variable: WritableStream
     15FAIL Closing must be propagated backward: starts closed; preventCancel = Symbol() (truthy) Can't find variable: WritableStream
     16FAIL Closing must be propagated backward: starts closed; preventCancel = [object Object] (truthy) Can't find variable: WritableStream
     17FAIL Closing must be propagated backward: starts closed; preventCancel = true, preventAbort = true Can't find variable: WritableStream
     18FAIL Closing must be propagated backward: starts closed; preventCancel = true, preventAbort = true, preventClose = true Can't find variable: WritableStream
    319
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/close-propagation-forward.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Closing must be propagated forward: starts closed; preventClose omitted; fulfilled close promise Can't find variable: WritableStream
     4FAIL Closing must be propagated forward: starts closed; preventClose omitted; rejected close promise Can't find variable: WritableStream
     5FAIL Closing must be propagated forward: starts closed; preventClose = undefined (falsy); fulfilled close promise Can't find variable: WritableStream
     6FAIL Closing must be propagated forward: starts closed; preventClose = null (falsy); fulfilled close promise Can't find variable: WritableStream
     7FAIL Closing must be propagated forward: starts closed; preventClose = false (falsy); fulfilled close promise Can't find variable: WritableStream
     8FAIL Closing must be propagated forward: starts closed; preventClose = 0 (falsy); fulfilled close promise Can't find variable: WritableStream
     9FAIL Closing must be propagated forward: starts closed; preventClose = -0 (falsy); fulfilled close promise Can't find variable: WritableStream
     10FAIL Closing must be propagated forward: starts closed; preventClose = NaN (falsy); fulfilled close promise Can't find variable: WritableStream
     11FAIL Closing must be propagated forward: starts closed; preventClose =  (falsy); fulfilled close promise Can't find variable: WritableStream
     12FAIL Closing must be propagated forward: starts closed; preventClose = true (truthy) Can't find variable: WritableStream
     13FAIL Closing must be propagated forward: starts closed; preventClose = a (truthy) Can't find variable: WritableStream
     14FAIL Closing must be propagated forward: starts closed; preventClose = 1 (truthy) Can't find variable: WritableStream
     15FAIL Closing must be propagated forward: starts closed; preventClose = Symbol() (truthy) Can't find variable: WritableStream
     16FAIL Closing must be propagated forward: starts closed; preventClose = [object Object] (truthy) Can't find variable: WritableStream
     17FAIL Closing must be propagated forward: starts closed; preventClose = true, preventAbort = true Can't find variable: WritableStream
     18FAIL Closing must be propagated forward: starts closed; preventClose = true, preventAbort = true, preventCancel = true Can't find variable: WritableStream
     19FAIL Closing must be propagated forward: becomes closed asynchronously; preventClose omitted; fulfilled close promise Can't find variable: WritableStream
     20FAIL Closing must be propagated forward: becomes closed asynchronously; preventClose omitted; rejected close promise Can't find variable: WritableStream
     21FAIL Closing must be propagated forward: becomes closed asynchronously; preventClose = true Can't find variable: WritableStream
     22FAIL Closing must be propagated forward: becomes closed asynchronously; dest never desires chunks; preventClose omitted; fulfilled close promise Can't find variable: WritableStream
     23FAIL Closing must be propagated forward: becomes closed asynchronously; dest never desires chunks; preventClose omitted; rejected close promise Can't find variable: WritableStream
     24FAIL Closing must be propagated forward: becomes closed asynchronously; dest never desires chunks; preventClose = true Can't find variable: WritableStream
     25FAIL Closing must be propagated forward: becomes closed after one chunk; preventClose omitted; fulfilled close promise Can't find variable: WritableStream
     26FAIL Closing must be propagated forward: becomes closed after one chunk; preventClose omitted; rejected close promise Can't find variable: WritableStream
     27FAIL Closing must be propagated forward: becomes closed after one chunk; preventClose = true Can't find variable: WritableStream
     28FAIL Closing must be propagated forward: shutdown must not occur until the final write completes Can't find variable: WritableStream
     29FAIL Closing must be propagated forward: shutdown must not occur until the final write completes; preventClose = true Can't find variable: WritableStream
    330
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/error-propagation-backward.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Errors must be propagated backward: starts errored; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     4FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     5FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel omitted; rejected cancel promise Can't find variable: WritableStream
     6FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = undefined (falsy); fulfilled cancel promise Can't find variable: WritableStream
     7FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = null (falsy); fulfilled cancel promise Can't find variable: WritableStream
     8FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = false (falsy); fulfilled cancel promise Can't find variable: WritableStream
     9FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = 0 (falsy); fulfilled cancel promise Can't find variable: WritableStream
     10FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = -0 (falsy); fulfilled cancel promise Can't find variable: WritableStream
     11FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = NaN (falsy); fulfilled cancel promise Can't find variable: WritableStream
     12FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel =  (falsy); fulfilled cancel promise Can't find variable: WritableStream
     13FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = true (truthy) Can't find variable: WritableStream
     14FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = a (truthy) Can't find variable: WritableStream
     15FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = 1 (truthy) Can't find variable: WritableStream
     16FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = Symbol() (truthy) Can't find variable: WritableStream
     17FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = [object Object] (truthy) Can't find variable: WritableStream
     18FAIL Errors must be propagated backward: becomes errored before piping due to write, preventCancel = true; preventAbort = true Can't find variable: WritableStream
     19FAIL Errors must be propagated backward: becomes errored before piping due to write; preventCancel = true, preventAbort = true, preventClose = true Can't find variable: WritableStream
     20FAIL Errors must be propagated backward: becomes errored during piping due to write; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     21FAIL Errors must be propagated backward: becomes errored during piping due to write; preventCancel omitted; rejected cancel promise Can't find variable: WritableStream
     22FAIL Errors must be propagated backward: becomes errored during piping due to write; preventCancel = true Can't find variable: WritableStream
     23FAIL Errors must be propagated backward: becomes errored during piping due to write, but async; preventCancel = false; fulfilled cancel promise Can't find variable: WritableStream
     24FAIL Errors must be propagated backward: becomes errored during piping due to write, but async; preventCancel = false; rejected cancel promise Can't find variable: WritableStream
     25FAIL Errors must be propagated backward: becomes errored during piping due to write, but async; preventCancel = true Can't find variable: WritableStream
     26FAIL Errors must be propagated backward: becomes errored after piping; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     27FAIL Errors must be propagated backward: becomes errored after piping; preventCancel omitted; rejected cancel promise Can't find variable: WritableStream
     28FAIL Errors must be propagated backward: becomes errored after piping; preventCancel = true Can't find variable: WritableStream
     29FAIL Errors must be propagated backward: becomes errored after piping due to last write; source is closed; preventCancel omitted (but cancel is never called) Can't find variable: WritableStream
     30FAIL Errors must be propagated backward: becomes errored after piping due to last write; source is closed; preventCancel = true Can't find variable: WritableStream
     31FAIL Errors must be propagated backward: becomes errored after piping; dest never desires chunks; preventCancel = false; fulfilled cancel promise Can't find variable: WritableStream
     32FAIL Errors must be propagated backward: becomes errored after piping; dest never desires chunks; preventCancel = false; rejected cancel promise Can't find variable: WritableStream
     33FAIL Errors must be propagated backward: becomes errored after piping; dest never desires chunks; preventCancel = true Can't find variable: WritableStream
     34FAIL Errors must be propagated backward: becomes errored before piping via abort; preventCancel omitted; fulfilled cancel promise Can't find variable: WritableStream
     35FAIL Errors must be propagated backward: becomes errored before piping via abort; preventCancel omitted; rejected cancel promise Can't find variable: WritableStream
     36FAIL Errors must be propagated backward: becomes errored before piping via abort; preventCancel = true Can't find variable: WritableStream
     37FAIL Errors must be propagated backward: erroring via the controller errors once pending write completes Can't find variable: WritableStream
    338
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/error-propagation-forward.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Errors must be propagated forward: starts errored; preventAbort = false; fulfilled abort promise Can't find variable: WritableStream
     4FAIL Errors must be propagated forward: starts errored; preventAbort = false; rejected abort promise Can't find variable: WritableStream
     5FAIL Errors must be propagated forward: starts errored; preventAbort = undefined (falsy); fulfilled abort promise Can't find variable: WritableStream
     6FAIL Errors must be propagated forward: starts errored; preventAbort = null (falsy); fulfilled abort promise Can't find variable: WritableStream
     7FAIL Errors must be propagated forward: starts errored; preventAbort = false (falsy); fulfilled abort promise Can't find variable: WritableStream
     8FAIL Errors must be propagated forward: starts errored; preventAbort = 0 (falsy); fulfilled abort promise Can't find variable: WritableStream
     9FAIL Errors must be propagated forward: starts errored; preventAbort = -0 (falsy); fulfilled abort promise Can't find variable: WritableStream
     10FAIL Errors must be propagated forward: starts errored; preventAbort = NaN (falsy); fulfilled abort promise Can't find variable: WritableStream
     11FAIL Errors must be propagated forward: starts errored; preventAbort =  (falsy); fulfilled abort promise Can't find variable: WritableStream
     12FAIL Errors must be propagated forward: starts errored; preventAbort = true (truthy) Can't find variable: WritableStream
     13FAIL Errors must be propagated forward: starts errored; preventAbort = a (truthy) Can't find variable: WritableStream
     14FAIL Errors must be propagated forward: starts errored; preventAbort = 1 (truthy) Can't find variable: WritableStream
     15FAIL Errors must be propagated forward: starts errored; preventAbort = Symbol() (truthy) Can't find variable: WritableStream
     16FAIL Errors must be propagated forward: starts errored; preventAbort = [object Object] (truthy) Can't find variable: WritableStream
     17FAIL Errors must be propagated forward: starts errored; preventAbort = true, preventCancel = true Can't find variable: WritableStream
     18FAIL Errors must be propagated forward: starts errored; preventAbort = true, preventCancel = true, preventClose = true Can't find variable: WritableStream
     19FAIL Errors must be propagated forward: becomes errored while empty; preventAbort = false; fulfilled abort promise Can't find variable: WritableStream
     20FAIL Errors must be propagated forward: becomes errored while empty; preventAbort = false; rejected abort promise Can't find variable: WritableStream
     21FAIL Errors must be propagated forward: becomes errored while empty; preventAbort = true Can't find variable: WritableStream
     22FAIL Errors must be propagated forward: becomes errored while empty; dest never desires chunks; preventAbort = false; fulfilled abort promise Can't find variable: WritableStream
     23FAIL Errors must be propagated forward: becomes errored while empty; dest never desires chunks; preventAbort = false; rejected abort promise Can't find variable: WritableStream
     24FAIL Errors must be propagated forward: becomes errored while empty; dest never desires chunks; preventAbort = true Can't find variable: WritableStream
     25FAIL Errors must be propagated forward: becomes errored after one chunk; preventAbort = false; fulfilled abort promise Can't find variable: WritableStream
     26FAIL Errors must be propagated forward: becomes errored after one chunk; preventAbort = false; rejected abort promise Can't find variable: WritableStream
     27FAIL Errors must be propagated forward: becomes errored after one chunk; preventAbort = true Can't find variable: WritableStream
     28FAIL Errors must be propagated forward: becomes errored after one chunk; dest never desires chunks; preventAbort = false; fulfilled abort promise Can't find variable: WritableStream
     29FAIL Errors must be propagated forward: becomes errored after one chunk; dest never desires chunks; preventAbort = false; rejected abort promise Can't find variable: WritableStream
     30FAIL Errors must be propagated forward: becomes errored after one chunk; dest never desires chunks; preventAbort = true Can't find variable: WritableStream
     31FAIL Errors must be propagated forward: shutdown must not occur until the final write completes Can't find variable: WritableStream
    332
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/flow-control.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Piping from a non-empty ReadableStream into a WritableStream that does not desire chunks Can't find variable: WritableStream
     4FAIL Piping from a non-empty ReadableStream into a WritableStream that does not desire chunks, but then does Can't find variable: WritableStream
     5FAIL Piping from an empty ReadableStream into a WritableStream that does not desire chunks, but then the readable stream becomes non-empty and the writable stream starts desiring chunks Can't find variable: WritableStream
     6FAIL Piping from a ReadableStream to a WritableStream that desires more chunks before finishing with previous ones Can't find variable: WritableStream
     7FAIL Piping to a WritableStream that does not consume the writes fast enough exerts backpressure on the ReadableStream Can't find variable: WritableStream
    38
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/general.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Piping must lock both the ReadableStream and WritableStream Can't find variable: WritableStream
     4FAIL Piping finishing must unlock both the ReadableStream and WritableStream Can't find variable: WritableStream
     5FAIL pipeTo must check the brand of its ReadableStream this value Can't find variable: WritableStream
     6FAIL pipeTo must check the brand of its WritableStream argument Can't find variable: WritableStream
     7FAIL pipeTo must fail if the ReadableStream is locked, and not lock the WritableStream Can't find variable: WritableStream
     8FAIL pipeTo must fail if the WritableStream is locked, and not lock the ReadableStream Can't find variable: WritableStream
     9FAIL Piping from a ReadableStream from which lots of chunks are synchronously readable Can't find variable: WritableStream
     10FAIL Piping from a ReadableStream for which a chunk becomes asynchronously readable after the pipeTo Can't find variable: WritableStream
     11FAIL an undefined rejection from pull should cause pipeTo() to reject when preventAbort is true Can't find variable: WritableStream
     12FAIL an undefined rejection from pull should cause pipeTo() to reject when preventAbort is false Can't find variable: WritableStream
     13FAIL an undefined rejection from write should cause pipeTo() to reject when preventCancel is true Can't find variable: WritableStream
     14FAIL an undefined rejection from write should cause pipeTo() to reject when preventCancel is false Can't find variable: WritableStream
    315
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/multiple-propagation.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Piping from an errored readable stream to an errored writable stream Can't find variable: WritableStream
     4FAIL Piping from an errored readable stream to an errored writable stream; preventAbort = true Can't find variable: WritableStream
     5FAIL Piping from an errored readable stream to a closing writable stream Can't find variable: WritableStream
     6FAIL Piping from an errored readable stream to a closed writable stream Can't find variable: WritableStream
     7FAIL Piping from a closed readable stream to an errored writable stream Can't find variable: WritableStream
     8FAIL Piping from a closed readable stream to a closed writable stream Can't find variable: WritableStream
    39
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/pipe-through.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Piping through a duck-typed pass-through transform stream should work Can't find variable: WritableStream
     4FAIL Piping through a transform errored on the writable end does not cause an unhandled promise rejection Can't find variable: WritableStream
     5PASS pipeThrough generically calls pipeTo with the appropriate args
     6FAIL pipeThrough can handle calling a pipeTo that returns a non-promise object Can't find variable: WritableStream
     7FAIL pipeThrough can handle calling a pipeTo that returns a non-promise thenable object Can't find variable: WritableStream
     8FAIL pipeThrough should mark a real promise from a fake readable as handled Can't find variable: WritableStream
     9FAIL pipeThrough should not be fooled by an object whose instanceof Promise returns true Can't find variable: WritableStream
     10PASS undefined readable or writable arguments should cause pipeThrough to throw
     11FAIL invalid but not undefined arguments should not cause pipeThrough to throw Can't find variable: WritableStream
     12PASS pipeThrough should throw when its first argument is not convertible to an object
     13PASS pipeThrough should throw when "this" has no pipeTo method
     14PASS pipeThrough should rethrow errors from accessing pipeTo, readable, or writable
     15PASS pipeThrough should work with no options argument
    316
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/piping/transform-streams.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Piping through an identity transform stream should close the destination when the source closes Can't find variable: TransformStream
    34
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/brand-checks.serviceworker.https-expected.txt

    r222307 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Can get the ReadableStreamBYOBReader constructor indirectly ReadableByteStreamController is not implemented
     4FAIL Can get the ReadableByteStreamController constructor indirectly ReadableByteStreamController is not implemented
     5PASS ReadableStreamBYOBReader enforces a brand check on its argument
     6FAIL ReadableStreamBYOBReader.prototype.closed enforces a brand check undefined is not an object (evaluating 'ReadableStreamBYOBReader.prototype')
     7FAIL ReadableStreamBYOBReader.prototype.cancel enforces a brand check undefined is not an object (evaluating 'ReadableStreamBYOBReader.prototype')
     8FAIL ReadableStreamBYOBReader.prototype.read enforces a brand check undefined is not an object (evaluating 'ReadableStreamBYOBReader.prototype')
     9FAIL ReadableStreamBYOBReader.prototype.releaseLock enforces a brand check undefined is not an object (evaluating 'ReadableStreamBYOBReader.prototype')
     10PASS ReadableByteStreamController enforces a brand check on its arguments
     11PASS ReadableByteStreamController can't be given a fully-constructed ReadableStream
     12FAIL ReadableByteStreamController.prototype.byobRequest enforces a brand check undefined is not an object (evaluating 'ReadableByteStreamController.prototype')
     13FAIL ReadableByteStreamController.prototype.close enforces a brand check undefined is not an object (evaluating 'ReadableByteStreamController.prototype')
     14FAIL ReadableByteStreamController.prototype.enqueue enforces a brand check undefined is not an object (evaluating 'ReadableByteStreamController.prototype')
     15FAIL ReadableByteStreamController.prototype.error enforces a brand check undefined is not an object (evaluating 'ReadableByteStreamController.prototype')
     16FAIL ReadableStreamBYOBRequest enforces brand checks ReadableByteStreamController is not implemented
    317
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/detached-buffers.serviceworker.https-expected.txt

    r224166 r224250  
    11
    2 Harness Error (TIMEOUT), message = null
     2PASS Service worker test setup
     3FAIL ReadableStream with byte source: read()ing from a closed stream still transfers the buffer ReadableByteStreamController is not implemented
     4FAIL ReadableStream with byte source: read()ing from a stream with queued chunks still transfers the buffer ReadableByteStreamController is not implemented
     5FAIL ReadableStream with byte source: enqueuing an already-detached buffer throws ReadableByteStreamController is not implemented
     6FAIL ReadableStream with byte source: reading into an already-detached buffer rejects ReadableByteStreamController is not implemented
     7FAIL ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the readable state) ReadableByteStreamController is not implemented
     8FAIL ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the closed state) ReadableByteStreamController is not implemented
     9FAIL ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the readable state) ReadableByteStreamController is not implemented
     10FAIL ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the closed state) ReadableByteStreamController is not implemented
    311
    4 TIMEOUT Service worker test setup Test timed out
    5 
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/general.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS getReader({mode: "byob"}) throws on non-bytes streams
     4FAIL ReadableStream with byte source can be constructed with no errors ReadableByteStreamController is not implemented
     5FAIL getReader({mode}) must perform ToString() ReadableByteStreamController is not implemented
     6FAIL ReadableStream with byte source: Construct and expect start and pull being called ReadableByteStreamController is not implemented
     7FAIL ReadableStream with byte source: No automatic pull call if start doesn't finish ReadableByteStreamController is not implemented
     8FAIL ReadableStream with byte source: Construct with highWaterMark of 0 ReadableByteStreamController is not implemented
     9FAIL ReadableStream with byte source: desiredSize when closed ReadableByteStreamController is not implemented
     10FAIL ReadableStream with byte source: desiredSize when errored ReadableByteStreamController is not implemented
     11FAIL ReadableStream with byte source: getReader(), then releaseLock() ReadableByteStreamController is not implemented
     12FAIL ReadableStream with byte source: getReader() with mode set to byob, then releaseLock() ReadableByteStreamController is not implemented
     13FAIL ReadableStream with byte source: Test that closing a stream does not release a reader automatically ReadableByteStreamController is not implemented
     14FAIL ReadableStream with byte source: Test that closing a stream does not release a BYOB reader automatically ReadableByteStreamController is not implemented
     15FAIL ReadableStream with byte source: Test that erroring a stream does not release a reader automatically ReadableByteStreamController is not implemented
     16FAIL ReadableStream with byte source: Test that erroring a stream does not release a BYOB reader automatically ReadableByteStreamController is not implemented
     17FAIL ReadableStream with byte source: releaseLock() on ReadableStreamReader with pending read() must throw ReadableByteStreamController is not implemented
     18FAIL ReadableStream with byte source: Automatic pull() after start() ReadableByteStreamController is not implemented
     19FAIL ReadableStream with byte source: Automatic pull() after start() and read() ReadableByteStreamController is not implemented
     20FAIL ReadableStream with byte source: autoAllocateChunkSize ReadableByteStreamController is not implemented
     21FAIL ReadableStream with byte source: Mix of auto allocate and BYOB ReadableByteStreamController is not implemented
     22FAIL ReadableStream with byte source: Automatic pull() after start() and read(view) ReadableByteStreamController is not implemented
     23FAIL ReadableStream with byte source: enqueue(), getReader(), then read() ReadableByteStreamController is not implemented
     24FAIL ReadableStream with byte source: Push source that doesn't understand pull signal ReadableByteStreamController is not implemented
     25FAIL ReadableStream with byte source: read(), but pull() function is not callable ReadableByteStreamController is not implemented
     26FAIL ReadableStream with byte source: read(view), but pull() function is not callable ReadableByteStreamController is not implemented
     27FAIL ReadableStream with byte source: enqueue() with Uint16Array, getReader(), then read() ReadableByteStreamController is not implemented
     28FAIL ReadableStream with byte source: enqueue(), read(view) partially, then read() ReadableByteStreamController is not implemented
     29FAIL ReadableStream with byte source: getReader(), enqueue(), close(), then read() ReadableByteStreamController is not implemented
     30FAIL ReadableStream with byte source: enqueue(), close(), getReader(), then read() ReadableByteStreamController is not implemented
     31FAIL ReadableStream with byte source: Respond to pull() by enqueue() ReadableByteStreamController is not implemented
     32FAIL ReadableStream with byte source: Respond to pull() by enqueue() asynchronously ReadableByteStreamController is not implemented
     33FAIL ReadableStream with byte source: read(view), then respond() ReadableByteStreamController is not implemented
     34FAIL ReadableStream with byte source: read(view), then respond() with a transferred ArrayBuffer ReadableByteStreamController is not implemented
     35FAIL ReadableStream with byte source: read(view), then respond() with too big value ReadableByteStreamController is not implemented
     36FAIL ReadableStream with byte source: respond(3) to read(view) with 2 element Uint16Array enqueues the 1 byte remainder ReadableByteStreamController is not implemented
     37FAIL ReadableStream with byte source: enqueue(), getReader(), then read(view) ReadableByteStreamController is not implemented
     38FAIL ReadableStream with byte source: enqueue(), getReader(), then cancel() (mode = not BYOB) ReadableByteStreamController is not implemented
     39FAIL ReadableStream with byte source: enqueue(), getReader(), then cancel() (mode = BYOB) ReadableByteStreamController is not implemented
     40FAIL ReadableStream with byte source: getReader(), read(view), then cancel() ReadableByteStreamController is not implemented
     41FAIL ReadableStream with byte source: cancel() with partially filled pending pull() request ReadableByteStreamController is not implemented
     42FAIL ReadableStream with byte source: enqueue(), getReader(), then read(view) where view.buffer is not fully covered by view ReadableByteStreamController is not implemented
     43FAIL ReadableStream with byte source: Multiple enqueue(), getReader(), then read(view) ReadableByteStreamController is not implemented
     44FAIL ReadableStream with byte source: enqueue(), getReader(), then read(view) with a bigger view ReadableByteStreamController is not implemented
     45FAIL ReadableStream with byte source: enqueue(), getReader(), then read(view) with a smaller views ReadableByteStreamController is not implemented
     46FAIL ReadableStream with byte source: enqueue() 1 byte, getReader(), then read(view) with Uint16Array ReadableByteStreamController is not implemented
     47FAIL ReadableStream with byte source: enqueue() 3 byte, getReader(), then read(view) with 2-element Uint16Array ReadableByteStreamController is not implemented
     48FAIL ReadableStream with byte source: read(view) with Uint16Array on close()-d stream with 1 byte enqueue()-d must fail ReadableByteStreamController is not implemented
     49FAIL ReadableStream with byte source: A stream must be errored if close()-d before fulfilling read(view) with Uint16Array ReadableByteStreamController is not implemented
     50FAIL ReadableStream with byte source: Throw if close()-ed more than once ReadableByteStreamController is not implemented
     51FAIL ReadableStream with byte source: Throw on enqueue() after close() ReadableByteStreamController is not implemented
     52FAIL ReadableStream with byte source: read(view), then respond() and close() in pull() ReadableByteStreamController is not implemented
     53FAIL ReadableStream with byte source: read(view) with Uint32Array, then fill it by multiple respond() calls ReadableByteStreamController is not implemented
     54FAIL ReadableStream with byte source: read() twice, then enqueue() twice ReadableByteStreamController is not implemented
     55FAIL ReadableStream with byte source: Multiple read(view), close() and respond() ReadableByteStreamController is not implemented
     56FAIL ReadableStream with byte source: Multiple read(view), big enqueue() ReadableByteStreamController is not implemented
     57FAIL ReadableStream with byte source: Multiple read(view) and multiple enqueue() ReadableByteStreamController is not implemented
     58FAIL ReadableStream with byte source: read(view) with passing undefined as view must fail ReadableByteStreamController is not implemented
     59FAIL ReadableStream with byte source: read(view) with zero-length view must fail ReadableByteStreamController is not implemented
     60FAIL ReadableStream with byte source: read(view) with passing an empty object as view must fail ReadableByteStreamController is not implemented
     61FAIL ReadableStream with byte source: Even read(view) with passing ArrayBufferView like object as view must fail ReadableByteStreamController is not implemented
     62FAIL ReadableStream with byte source: read() on an errored stream ReadableByteStreamController is not implemented
     63FAIL ReadableStream with byte source: read(), then error() ReadableByteStreamController is not implemented
     64FAIL ReadableStream with byte source: read(view) on an errored stream ReadableByteStreamController is not implemented
     65FAIL ReadableStream with byte source: read(view), then error() ReadableByteStreamController is not implemented
     66FAIL ReadableStream with byte source: Throwing in pull function must error the stream ReadableByteStreamController is not implemented
     67FAIL ReadableStream with byte source: Throwing in pull in response to read() must be ignored if the stream is errored in it ReadableByteStreamController is not implemented
     68FAIL ReadableStream with byte source: Throwing in pull in response to read(view) function must error the stream ReadableByteStreamController is not implemented
     69FAIL ReadableStream with byte source: Throwing in pull in response to read(view) must be ignored if the stream is errored in it ReadableByteStreamController is not implemented
     70FAIL ReadableStream with byte source: default reader + autoAllocateChunkSize + byobRequest interaction ReadableByteStreamController is not implemented
     71FAIL ReadableStreamBYOBReader can be constructed directly ReadableByteStreamController is not implemented
     72FAIL ReadableStreamBYOBReader constructor requires a ReadableStream argument ReadableByteStreamController is not implemented
     73FAIL ReadableStreamBYOBReader constructor requires an unlocked ReadableStream ReadableByteStreamController is not implemented
     74FAIL ReadableStreamBYOBReader constructor requires a ReadableStream with type "bytes" ReadableByteStreamController is not implemented
    375
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/properties.serviceworker.https-expected.txt

    r222307 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3FAIL Can get the ReadableStreamBYOBReader constructor indirectly ReadableByteStreamController is not implemented
     4PASS ReadableStreamBYOBReader constructor should get a ReadableStream object as argument
     5FAIL ReadableStreamBYOBReader instances should have the correct list of properties ReadableByteStreamController is not implemented
     6FAIL ReadableStreamBYOBRequest instances should have the correct list of properties ReadableByteStreamController is not implemented
     7FAIL ReadableByteStreamController instances should have the correct list of properties ReadableByteStreamController is not implemented
    38
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/bad-strategies.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Readable stream: throwing strategy.size getter
     4PASS Readable stream: strategy.size errors the stream and then throws
     5PASS Readable stream: strategy.size errors the stream and then returns Infinity
     6PASS Readable stream: throwing strategy.size method
     7PASS Readable stream: throwing strategy.highWaterMark getter
     8PASS Readable stream: invalid strategy.highWaterMark
     9PASS Readable stream: invalid strategy.size return value
    310
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/bad-underlying-sources.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Underlying source start: throwing getter
     4PASS Underlying source start: throwing method
     5PASS Underlying source: throwing pull getter (initial pull)
     6PASS Underlying source: throwing pull method (initial pull)
     7PASS Underlying source pull: throwing getter (second pull)
     8PASS Underlying source pull: throwing method (second pull)
     9PASS Underlying source cancel: throwing getter
     10PASS Underlying source cancel: throwing method
     11PASS Underlying source: calling enqueue on an empty canceled stream should throw
     12PASS Underlying source: calling enqueue on a non-empty canceled stream should throw
     13PASS Underlying source: calling enqueue on a closed stream should throw
     14PASS Underlying source: calling enqueue on an errored stream should throw
     15PASS Underlying source: calling close twice on an empty stream should throw the second time
     16PASS Underlying source: calling close twice on a non-empty stream should throw the second time
     17PASS Underlying source: calling close on an empty canceled stream should throw
     18PASS Underlying source: calling close on a non-empty canceled stream should throw
     19PASS Underlying source: calling close after error should throw
     20PASS Underlying source: calling error twice should throw the second time
     21PASS Underlying source: calling error after close should throw
     22PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
     23PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
     24PASS read should not error if it dequeues and pull() throws
    325
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/brand-checks.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can get the ReadableStreamDefaultReader constructor indirectly
     4PASS Can get the ReadableStreamDefaultController constructor indirectly
     5PASS ReadableStream.prototype.cancel enforces a brand check
     6PASS ReadableStream.prototype.getReader enforces a brand check
     7PASS ReadableStream.prototype.tee enforces a brand check
     8PASS ReadableStreamDefaultReader enforces a brand check on its argument
     9PASS ReadableStreamDefaultReader.prototype.closed enforces a brand check
     10PASS ReadableStreamDefaultReader.prototype.cancel enforces a brand check
     11PASS ReadableStreamDefaultReader.prototype.read enforces a brand check
     12PASS ReadableStreamDefaultReader.prototype.releaseLock enforces a brand check
     13PASS ReadableStreamDefaultController enforces a brand check on its argument
     14PASS ReadableStreamDefaultController can't be given a fully-constructed ReadableStream
     15PASS ReadableStreamDefaultController.prototype.close enforces a brand check
     16PASS ReadableStreamDefaultController.prototype.enqueue enforces a brand check
     17PASS ReadableStreamDefaultController.prototype.error enforces a brand check
    318
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/cancel.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS ReadableStream cancellation: integration test on an infinite stream derived from a random push source
     4PASS ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source
     5PASS ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel
     6PASS ReadableStream cancellation: should fulfill promise when cancel callback went fine
     7PASS ReadableStream cancellation: returning a value from the underlying source's cancel should not affect the fulfillment value of the promise returned by the stream's cancel
     8PASS ReadableStream cancellation: should reject promise when cancel callback raises an exception
     9PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (1)
     10PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (2)
     11PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should reject when that one does
     12PASS ReadableStream cancellation: cancelling before start finishes should prevent pull() from being called
    313
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/count-queuing-strategy-integration.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can construct a readable stream with a valid CountQueuingStrategy
     4PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 0)
     5PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 1)
     6PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 4)
    37
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/default-reader.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can get the ReadableStreamDefaultReader constructor indirectly
     4PASS ReadableStreamDefaultReader constructor should get a ReadableStream object as argument
     5PASS ReadableStreamDefaultReader instances should have the correct list of properties
     6PASS ReadableStreamDefaultReader closed should always return the same promise object
     7PASS Constructing a ReadableStreamDefaultReader directly should fail if the stream is already locked (via direct construction)
     8PASS Getting a ReadableStreamDefaultReader via getReader should fail if the stream is already locked (via direct construction)
     9PASS Constructing a ReadableStreamDefaultReader directly should fail if the stream is already locked (via getReader)
     10PASS Getting a ReadableStreamDefaultReader via getReader should fail if the stream is already locked (via getReader)
     11PASS Constructing a ReadableStreamDefaultReader directly should be OK if the stream is closed
     12PASS Constructing a ReadableStreamDefaultReader directly should be OK if the stream is errored
     13PASS Reading from a reader for an empty stream will wait until a chunk is available
     14PASS cancel() on a reader does not release the reader
     15PASS closed should be fulfilled after stream is closed (.closed access before acquiring)
     16PASS closed should be rejected after reader releases its lock (multiple stream locks)
     17PASS Multiple readers can access the stream in sequence
     18PASS Cannot use an already-released reader to unlock a stream again
     19PASS cancel() on a released reader is a no-op and does not pass through
     20PASS Getting a second reader after erroring the stream and releasing the reader should succeed
     21PASS ReadableStreamDefaultReader closed promise should be rejected with undefined if that is the error
     22PASS ReadableStreamDefaultReader: if start rejects with no parameter, it should error the stream with an undefined error
     23PASS Erroring a ReadableStream after checking closed should reject ReadableStreamDefaultReader closed promise
     24PASS Erroring a ReadableStream before checking closed should reject ReadableStreamDefaultReader closed promise
     25PASS Reading twice on a stream that gets closed
     26PASS Reading twice on a closed stream
     27PASS Reading twice on an errored stream
     28PASS Reading twice on a stream that gets errored
    329
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/floating-point-total-queue-size.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Floating point arithmetic must manifest near NUMBER.MAX_SAFE_INTEGER (total ends up positive)
     4PASS Floating point arithmetic must manifest near 0 (total ends up positive, but clamped)
     5PASS Floating point arithmetic must manifest near 0 (total ends up positive, and not clamped)
     6PASS Floating point arithmetic must manifest near 0 (total ends up zero)
    37
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/garbage-collection.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream
     4PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
     5PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
     6PASS Garbage-collecting a ReadableStreamDefaultReader should not unlock its stream
    37
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/general.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS ReadableStream can be constructed with no errors
     4PASS ReadableStream can't be constructed with garbage
     5PASS ReadableStream can't be constructed with an invalid type
     6FAIL ReadableStream instances should have the correct list of properties assert_equals: getReader should have no parameters expected 0 but got 1
     7PASS ReadableStream constructor should throw for non-function start arguments
     8PASS ReadableStream constructor can get initial garbage as cancel argument
     9PASS ReadableStream constructor can get initial garbage as pull argument
     10PASS ReadableStream start should be called with the proper parameters
     11PASS ReadableStream start controller parameter should be extensible
     12PASS default ReadableStream getReader() should only accept mode:undefined
     13PASS ReadableStream should be able to call start method within prototype chain of its source
     14PASS ReadableStream start should be able to return a promise
     15PASS ReadableStream start should be able to return a promise and reject it
     16PASS ReadableStream should be able to enqueue different objects.
     17PASS ReadableStream: if pull rejects, it should error the stream
     18PASS ReadableStream: should only call pull once upon starting the stream
     19PASS ReadableStream: should call pull when trying to read from a started, empty stream
     20PASS ReadableStream: should only call pull once on a non-empty stream read from before start fulfills
     21PASS ReadableStream: should only call pull once on a non-empty stream read from after start fulfills
     22PASS ReadableStream: should call pull in reaction to read()ing the last chunk, if not draining
     23PASS ReadableStream: should not call pull() in reaction to read()ing the last chunk, if draining
     24PASS ReadableStream: should not call pull until the previous pull call's promise fulfills
     25PASS ReadableStream: should pull after start, and after every read
     26PASS ReadableStream: should not call pull after start if the stream is now closed
     27PASS ReadableStream: should call pull after enqueueing from inside pull (with no read requests), if strategy allows
     28PASS ReadableStream pull should be able to close a stream.
     29PASS ReadableStream pull should be able to error a stream.
     30PASS ReadableStream pull should be able to error a stream and throw.
     31PASS ReadableStream: enqueue should throw when the stream is readable but draining
     32PASS ReadableStream: enqueue should throw when the stream is closed
     33PASS ReadableStream: should call underlying source methods as methods
     34PASS ReadableStream: desiredSize when closed
     35PASS ReadableStream: desiredSize when errored
     36PASS ReadableStream strategies: the default strategy should give desiredSize of 1 to start, decreasing by 1 per enqueue
     37PASS ReadableStream strategies: the default strategy should continue giving desiredSize of 1 if the chunks are read immediately
     38PASS ReadableStream integration test: adapting a random push source
     39PASS ReadableStream integration test: adapting a sync pull source
     40PASS ReadableStream integration test: adapting an async pull source
    341
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/readable-stream-reader.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Can get the ReadableStreamReader constructor indirectly
     4PASS ReadableStreamReader constructor should get a ReadableStream object as argument
     5PASS ReadableStreamReader instances should have the correct list of properties
     6PASS ReadableStreamReader closed should always return the same promise object
     7PASS Constructing a ReadableStreamReader directly should fail if the stream is already locked (via direct construction)
     8PASS Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via direct construction)
     9PASS Constructing a ReadableStreamReader directly should fail if the stream is already locked (via getReader)
     10PASS Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via getReader)
     11PASS Constructing a ReadableStreamReader directly should be OK if the stream is closed
     12PASS Constructing a ReadableStreamReader directly should be OK if the stream is errored
     13PASS Reading from a reader for an empty stream will wait until a chunk is available
     14PASS cancel() on a reader does not release the reader
     15PASS closed should be fulfilled after stream is closed (.closed access before acquiring)
     16PASS closed should be rejected after reader releases its lock (multiple stream locks)
     17PASS Multiple readers can access the stream in sequence
     18PASS Cannot use an already-released reader to unlock a stream again
     19PASS cancel() on a released reader is a no-op and does not pass through
     20PASS Getting a second reader after erroring the stream and releasing the reader should succeed
     21PASS ReadableStreamReader closed promise should be rejected with undefined if that is the error
     22PASS ReadableStreamReader: if start rejects with no parameter, it should error the stream with an undefined error
     23PASS Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise
     24PASS Erroring a ReadableStream before checking closed should reject ReadableStreamReader closed promise
     25PASS Reading twice on a stream that gets closed
     26PASS Reading twice on a closed stream
     27PASS Reading twice on an errored stream
     28PASS Reading twice on a stream that gets errored
    329
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/tee.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS ReadableStream teeing: rs.tee() returns an array of two ReadableStreams
     4PASS ReadableStream teeing: should be able to read one branch to the end without affecting the other
     5PASS ReadableStream teeing: values should be equal across each branch
     6PASS ReadableStream teeing: errors in the source should propagate to both branches
     7PASS ReadableStream teeing: canceling branch1 should not impact branch2
     8PASS ReadableStream teeing: canceling branch2 should not impact branch2
     9PASS ReadableStream teeing: canceling both branches should aggregate the cancel reasons into an array
     10PASS ReadableStream teeing: failing to cancel the original stream should cause cancel() to reject on branches
     11PASS ReadableStream teeing: closing the original should immediately close the branches
     12PASS ReadableStream teeing: erroring the original should immediately error the branches
    313
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/templated.serviceworker.https-expected.txt

    r220924 r224250  
    11
    2 FAIL Service worker test setup assert_unreached: unregister should not fail: serviceWorker.getRegistration() is not yet implemented Reached unreachable code
     2PASS Service worker test setup
     3PASS Running templatedRSEmpty with ReadableStream (empty)
     4PASS ReadableStream (empty): instances have the correct methods and properties
     5PASS ReadableStream (empty): calling getReader with invalid arguments should throw appropriate errors
     6PASS Running templatedRSEmptyReader with ReadableStream (empty) reader
     7PASS ReadableStream (empty) reader: instances have the correct methods and properties
     8PASS ReadableStream (empty) reader: locked should be true
     9PASS ReadableStream (empty) reader: read() should never settle
     10PASS ReadableStream (empty) reader: two read()s should both never settle
     11PASS ReadableStream (empty) reader: read() should return distinct promises each time
     12PASS ReadableStream (empty) reader: getReader() again on the stream should fail
     13PASS ReadableStream (empty) reader: releasing the lock with pending read requests should throw but the read requests should stay pending
     14PASS ReadableStream (empty) reader: releasing the lock should cause further read() calls to reject with a TypeError
     15PASS ReadableStream (empty) reader: releasing the lock should cause closed calls to reject with a TypeError
     16PASS ReadableStream (empty) reader: releasing the lock should cause locked to become false
     17PASS ReadableStream (empty) reader: canceling via the reader should cause the reader to act closed
     18PASS ReadableStream (empty) reader: canceling via the stream should fail
     19PASS Running templatedRSClosed with ReadableStream (closed via call in start)
     20PASS ReadableStream (closed via call in start): cancel() should return a distinct fulfilled promise each time
     21PASS ReadableStream (closed via call in start): locked should be false
     22PASS ReadableStream (closed via call in start): getReader() should be OK
     23PASS ReadableStream (closed via call in start): should be able to acquire multiple readers if they are released in succession
     24PASS ReadableStream (closed via call in start): should not be able to acquire a second reader if we don't release the first one
     25PASS Running templatedRSClosedReader with ReadableStream reader (closed before getting reader)
     26PASS ReadableStream reader (closed before getting reader): read() should fulfill with { value: undefined, done: true }
     27PASS ReadableStream reader (closed before getting reader): read() multiple times should fulfill with { value: undefined, done: true }
     28PASS ReadableStream reader (closed before getting reader): read() should work when used within another read() fulfill callback
     29PASS ReadableStream reader (closed before getting reader): closed should fulfill with undefined
     30PASS ReadableStream reader (closed before getting reader): releasing the lock should cause closed to reject and change identity
     31PASS ReadableStream reader (closed before getting reader): cancel() should return a distinct fulfilled promise each time
     32PASS Running templatedRSClosedReader with ReadableStream reader (closed after getting reader)
     33PASS ReadableStream reader (closed after getting reader): read() should fulfill with { value: undefined, done: true }
     34PASS ReadableStream reader (closed after getting reader): read() multiple times should fulfill with { value: undefined, done: true }
     35PASS ReadableStream reader (closed after getting reader): read() should work when used within another read() fulfill callback
     36PASS ReadableStream reader (closed after getting reader): closed should fulfill with undefined
     37PASS ReadableStream reader (closed after getting reader): releasing the lock should cause closed to reject and change identity
     38PASS ReadableStream reader (closed after getting reader): cancel() should return a distinct fulfilled promise each time
     39PASS Running templatedRSClosed with ReadableStream (closed via cancel)
     40PASS ReadableStream (closed via cancel): cancel() should return a distinct fulfilled promise each time
     41PASS ReadableStream (closed via cancel): locked should be false
     42PASS ReadableStream (closed via cancel): getReader() should be OK
     43PASS ReadableStream (closed via cancel): should be able to acquire multiple readers if they are released in succession
     44PASS ReadableStream (closed via cancel): should not be able to acquire a second reader if we don't release the first one
     45PASS Running templatedRSClosedReader with ReadableStream reader (closed via cancel after getting reader)
     46PASS ReadableStream reader (closed via cancel after getting reader): read() should fulfill with { value: undefined, done: true }
     47PASS ReadableStream reader (closed via cancel after getting reader): read() multiple times should fulfill with { value: undefined, done: true }
     48PASS ReadableStream reader (closed via cancel after getting reader): read() should work when used within another read() fulfill callback
     49PASS ReadableStream reader (closed via cancel after getting reader): closed should fulfill with undefined
     50PASS ReadableStream reader (closed via cancel after getting reader): releasing the lock should cause closed to reject and change identity
     51PASS ReadableStream reader (closed via cancel after getting reader): cancel() should return a distinct fulfilled promise each time
     52PASS Running templatedRSErrored with ReadableStream (errored via call in start)
     53PASS ReadableStream (errored via call in start): getReader() should return a reader that acts errored
     54PASS ReadableStream (errored via call in start): read() twice should give the error each time
     55PASS ReadableStream (errored via call in start): locked should be false
     56PASS Running templatedRSErroredSyncOnly with ReadableStream (errored via call in start)
     57PASS ReadableStream (errored via call in start): should be able to obtain a second reader, with the correct closed promise
     58PASS ReadableStream (errored via call in start): should not be able to obtain additional readers if we don't release the first lock
     59PASS ReadableStream (errored via call in start): cancel() should return a distinct rejected promise each time
     60PASS ReadableStream (errored via call in start): reader cancel() should return a distinct rejected promise each time
     61PASS Running templatedRSErrored with ReadableStream (errored via returning a rejected promise in start)
     62PASS ReadableStream (errored via returning a rejected promise in start): getReader() should return a reader that acts errored
     63PASS ReadableStream (errored via returning a rejected promise in start): read() twice should give the error each time
     64PASS ReadableStream (errored via returning a rejected promise in start): locked should be false
     65PASS Running templatedRSErroredReader with ReadableStream (errored via returning a rejected promise in start) reader
     66PASS ReadableStream (errored via returning a rejected promise in start) reader: closed should reject with the error
     67PASS ReadableStream (errored via returning a rejected promise in start) reader: releasing the lock should cause closed to reject and change identity
     68PASS ReadableStream (errored via returning a rejected promise in start) reader: read() should reject with the error
     69PASS Running templatedRSErroredReader with ReadableStream reader (errored before getting reader)
     70PASS ReadableStream reader (errored before getting reader): closed should reject with the error
     71PASS ReadableStream reader (errored before getting reader): releasing the lock should cause closed to reject and change identity
     72PASS ReadableStream reader (errored before getting reader): read() should reject with the error
     73PASS Running templatedRSErroredReader with ReadableStream reader (errored after getting reader)
     74PASS ReadableStream reader (errored after getting reader): closed should reject with the error
     75PASS ReadableStream reader (errored after getting reader): releasing the lock should cause closed to reject and change identity
     76PASS ReadableStream reader (errored after getting reader): read() should reject with the error
     77PASS Running templatedRSTwoChunksOpenReader with ReadableStream (two chunks enqueued, still open) reader
     78PASS ReadableStream (two chunks enqueued, still open) reader: calling read() twice without waiting will eventually give both chunks (sequential)
     79PASS ReadableStream (two chunks enqueued, still open) reader: calling read() twice without waiting will eventually give both chunks (nested)
     80PASS ReadableStream (two chunks enqueued, still open) reader: read() should return distinct promises each time
     81PASS ReadableStream (two chunks enqueued, still open) reader: cancel() after a read() should still give that single read result
     82PASS Running templatedRSTwoChunksClosedReader with ReadableStream (two chunks enqueued, then closed) reader
     83PASS ReadableStream (two chunks enqueued, then closed) reader: third read(), without waiting, should give { value: undefined, done: true } (sequential)
     84PASS ReadableStream (two chunks enqueued, then closed) reader: third read(), without waiting, should give { value: undefined, done: true } (nested)
     85PASS ReadableStream (two chunks enqueued, then closed) reader: draining the stream via read() should cause the reader closed promise to fulfill, but locked stays true
     86PASS ReadableStream (two chunks enqueued, then closed) reader: releasing the lock after the stream is closed should cause locked to become false
     87PASS ReadableStream (two chunks enqueued, then closed) reader: releasing the lock should cause further read() calls to reject with a TypeError
     88PASS ReadableStream (two chunks enqueued, then closed) reader: reader's closed property always returns the same promise
    389
  • trunk/Source/WebKit/ChangeLog

    r224249 r224250  
     12017-10-31  Youenn Fablet  <youenn@apple.com>
     2
     3        rwt should allow service worker to load localhost HTTPS resources with any certificate
     4        https://bugs.webkit.org/show_bug.cgi?id=179018
     5
     6        Reviewed by Chris Dumez.
     7
     8        Allowing ServiceWorkerProcessProxy to handle authentication challenge.
     9        Temporarily adding a boolean flag through WebProcessPool to lower the SSL certificate verifications for service workers.
     10        This allows reducing flakiness in our layout tests for rwt.
     11        Future work should be done to expose a correct API for the application level to handle authentication challenges properly.
     12
     13        * UIProcess/API/C/WKContext.cpp:
     14        (WKContextSetAllowsAnySSLCertificateForServiceWorkerTesting):
     15        * UIProcess/API/C/WKContextPrivate.h:
     16        * UIProcess/API/Cocoa/WKProcessPool.mm:
     17        (-[WKProcessPool _setAllowsAnySSLCertificateForServiceWorker:]):
     18        * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
     19        * UIProcess/Network/NetworkProcessProxy.cpp:
     20        (WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
     21        (WebKit::NetworkProcessProxy::canAuthenticateAgainstProtectionSpace):
     22        * UIProcess/ServiceWorkerProcessProxy.cpp:
     23        (WebKit::ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge):
     24        * UIProcess/ServiceWorkerProcessProxy.h:
     25        * UIProcess/WebProcessPool.h:
     26
    1272017-10-31  Joseph Pecoraro  <pecoraro@apple.com>
    228
  • trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp

    r223730 r224250  
    557557}
    558558
     559void WKContextSetAllowsAnySSLCertificateForServiceWorkerTesting(WKContextRef context, bool allows)
     560{
     561#if ENABLE(SERVICE_WORKER)
     562    toImpl(context)->setAllowsAnySSLCertificateForServiceWorker(allows);
     563#endif
     564}
     565
    559566void WKContextClearCachedCredentials(WKContextRef context)
    560567{
  • trunk/Source/WebKit/UIProcess/API/C/WKContextPrivate.h

    r222613 r224250  
    9292
    9393WK_EXPORT void WKContextSetAllowsAnySSLCertificateForWebSocketTesting(WKContextRef, bool);
    94    
     94WK_EXPORT void WKContextSetAllowsAnySSLCertificateForServiceWorkerTesting(WKContextRef, bool);
     95
    9596// Test only. Should be called before any secondary processes are started.
    9697WK_EXPORT void WKContextUseTestingNetworkSession(WKContextRef context);
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm

    r224023 r224250  
    447447}
    448448
     449- (void)_setAllowsAnySSLCertificateForServiceWorker:(BOOL) allows
     450{
     451#if ENABLE(SERVICE_WORKER)
     452    _processPool->setAllowsAnySSLCertificateForServiceWorker(allows);
     453#endif
     454}
     455
    449456#if PLATFORM(IOS)
    450457- (id <_WKGeolocationCoreLocationProvider>)_coreLocationProvider
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKProcessPoolPrivate.h

    r222613 r224250  
    9090- (void)_preconnectToServer:(NSURL *)serverURL WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
    9191
     92// Test only.
     93- (void)_setAllowsAnySSLCertificateForServiceWorker:(BOOL)allows WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
     94
    9295@property (nonatomic, getter=_isCookieStoragePartitioningEnabled, setter=_setCookieStoragePartitioningEnabled:) BOOL _cookieStoragePartitioningEnabled WK_API_AVAILABLE(macosx(10.12.3), ios(10.3));
    9396
  • trunk/Source/WebKit/UIProcess/Network/NetworkProcessProxy.cpp

    r222183 r224250  
    265265void NetworkProcessProxy::didReceiveAuthenticationChallenge(uint64_t pageID, uint64_t frameID, const WebCore::AuthenticationChallenge& coreChallenge, uint64_t challengeID)
    266266{
     267#if ENABLE(SERVICE_WORKER)
     268    if (m_processPool.isServiceWorker(pageID)) {
     269        auto authenticationChallenge = AuthenticationChallengeProxy::create(coreChallenge, challengeID, connection());
     270        m_processPool.serviceWorkerProxy()->didReceiveAuthenticationChallenge(pageID, frameID, WTFMove(authenticationChallenge));
     271        return;
     272    }
     273#endif
     274
    267275    WebPageProxy* page = WebProcessProxy::webPage(pageID);
    268276    MESSAGE_CHECK(page);
     
    375383            return;
    376384        }
    377     }
    378    
     385#if ENABLE(SERVICE_WORKER)
     386    } else if (m_processPool.isServiceWorker(pageID)) {
     387        send(Messages::NetworkProcess::ContinueCanAuthenticateAgainstProtectionSpace(loaderID, true), 0);
     388        return;
     389#endif
     390    }
    379391    // In the case where we will not be able to reply to this message with a client reply,
    380392    // we should message back a default to the Networking process.
  • trunk/Source/WebKit/UIProcess/ServiceWorkerProcessProxy.cpp

    r223981 r224250  
    2727#include "ServiceWorkerProcessProxy.h"
    2828
     29#include "AuthenticationChallengeProxy.h"
     30#include "WebCredential.h"
    2931#include "WebPreferencesStore.h"
    3032#include "WebProcessMessages.h"
     33#include "WebProcessPool.h"
     34#include <WebCore/NotImplemented.h>
    3135
    3236namespace WebKit {
     
    4751}
    4852
     53void ServiceWorkerProcessProxy::didReceiveAuthenticationChallenge(uint64_t pageID, uint64_t frameID, Ref<AuthenticationChallengeProxy>&& challenge)
     54{
     55    UNUSED_PARAM(pageID);
     56    UNUSED_PARAM(frameID);
     57
     58    // FIXME: Expose an API to delegate the actual decision to the application layer.
     59    auto& protectionSpace = challenge->core().protectionSpace();
     60    if (protectionSpace.authenticationScheme() == WebCore::ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested && processPool().allowsAnySSLCertificateForServiceWorker()) {
     61        auto credential = WebCore::Credential(ASCIILiteral("accept server trust"), emptyString(), WebCore::CredentialPersistenceNone);
     62        challenge->useCredential(WebCredential::create(credential).ptr());
     63        return;
     64    }
     65    notImplemented();
     66    challenge->performDefaultHandling();
     67}
     68
    4969} // namespace WebKit
  • trunk/Source/WebKit/UIProcess/ServiceWorkerProcessProxy.h

    r223981 r224250  
    2929
    3030namespace WebKit {
     31class AuthenticationChallengeProxy;
    3132struct WebPreferencesStore;
    3233
     
    3940    ~ServiceWorkerProcessProxy();
    4041
     42    void didReceiveAuthenticationChallenge(uint64_t pageID, uint64_t frameID, Ref<AuthenticationChallengeProxy>&&);
     43
    4144    void start(const WebPreferencesStore&);
     45    uint64_t pageID() const { return m_serviceWorkerPageID; }
    4246
    4347private:
  • trunk/Source/WebKit/UIProcess/WebProcessPool.h

    r223981 r224250  
    3939#include "PluginInfoStore.h"
    4040#include "ProcessThrottler.h"
     41#include "ServiceWorkerProcessProxy.h"
    4142#include "StatisticsRequest.h"
    4243#include "StorageProcessProxy.h"
     
    323324#if ENABLE(SERVICE_WORKER)
    324325    void getWorkerContextProcessConnection(StorageProcessProxy&);
     326    bool isServiceWorker(uint64_t pageID) const { return m_serviceWorkerProcess && m_serviceWorkerProcess->pageID() == pageID; }
     327    ServiceWorkerProcessProxy* serviceWorkerProxy() const { return m_serviceWorkerProcess; }
     328    void setAllowsAnySSLCertificateForServiceWorker(bool allows) { m_allowsAnySSLCertificateForServiceWorker = allows; }
     329    bool allowsAnySSLCertificateForServiceWorker() const { return m_allowsAnySSLCertificateForServiceWorker; }
    325330#endif
    326331
     
    489494    ServiceWorkerProcessProxy* m_serviceWorkerProcess { nullptr };
    490495    bool m_waitingForWorkerContextProcessConnection { false };
     496    bool m_allowsAnySSLCertificateForServiceWorker { false };
    491497#endif
    492498
  • trunk/Tools/ChangeLog

    r224238 r224250  
     12017-10-31  Youenn Fablet  <youenn@apple.com>
     2
     3        rwt should allow service worker to load localhost HTTPS resources with any certificate
     4        https://bugs.webkit.org/show_bug.cgi?id=179018
     5
     6        Reviewed by Chris Dumez.
     7
     8        * WebKitTestRunner/TestController.cpp:
     9        (WTR::TestController::resetStateToConsistentValues): allowing any SSL certificate for service workers.
     10
    1112017-10-31  Wenson Hsieh  <wenson_hsieh@apple.com>
    212
  • trunk/Tools/WebKitTestRunner/TestController.cpp

    r224198 r224250  
    783783    clearDOMCaches();
    784784
     785    WKContextSetAllowsAnySSLCertificateForServiceWorkerTesting(platformContext(), true);
     786
    785787    // FIXME: This function should also ensure that there is only one page open.
    786788
Note: See TracChangeset for help on using the changeset viewer.