You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you install them on the same scope, and they run in parallel, is the way registration works that it waits until that completes (and unregisters) before starting a new one?
Testing web-platform-tests at revision a35d820
Using browser at version BuildID 20170404100210; SourceStamp b5d8b27a753725c1de41ffae2e338798f3b5cacd
Starting 10 test iterations
All results were stable
Registering same scope as the script directory without the last slash
PASS
Registration scope outside the script directory
PASS
Registering scope outside domain
PASS
Registering script outside domain
PASS
Registering non-existent script
PASS
Registering invalid chunked encoding script
PASS
Registering invalid chunked encoding script with flush
PASS
Registering script with no MIME type
PASS
Registering script with bad MIME type
PASS
Registering script with good MIME type application/ecmascript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('application/ecmascript')."
Registering script that imports script with good MIME type application/ecmascript
PASS
Registering script with good MIME type application/javascript
PASS
Registering script that imports script with good MIME type application/javascript
PASS
Registering script with good MIME type application/x-ecmascript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('application/x-ecmascript')."
Registering script that imports script with good MIME type application/x-ecmascript
PASS
Registering script with good MIME type application/x-javascript
PASS
Registering script that imports script with good MIME type application/x-javascript
PASS
Registering script with good MIME type text/ecmascript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/ecmascript')."
Registering script that imports script with good MIME type text/ecmascript
PASS
Registering script with good MIME type text/javascript
PASS
Registering script that imports script with good MIME type text/javascript
PASS
Registering script with good MIME type text/javascript1.0
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.0')."
Registering script that imports script with good MIME type text/javascript1.0
PASS
Registering script with good MIME type text/javascript1.1
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.1')."
Registering script that imports script with good MIME type text/javascript1.1
PASS
Registering script with good MIME type text/javascript1.2
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.2')."
Registering script that imports script with good MIME type text/javascript1.2
PASS
Registering script with good MIME type text/javascript1.3
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.3')."
Registering script that imports script with good MIME type text/javascript1.3
PASS
Registering script with good MIME type text/javascript1.4
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.4')."
Registering script that imports script with good MIME type text/javascript1.4
PASS
Registering script with good MIME type text/javascript1.5
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/javascript1.5')."
Registering script that imports script with good MIME type text/javascript1.5
PASS
Registering script with good MIME type text/jscript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/jscript')."
Registering script that imports script with good MIME type text/jscript
PASS
Registering script with good MIME type text/livescript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/livescript')."
Registering script that imports script with good MIME type text/livescript
PASS
Registering script with good MIME type text/x-ecmascript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/x-ecmascript')."
Registering script that imports script with good MIME type text/x-ecmascript
PASS
Registering script with good MIME type text/x-javascript
FAIL
promise_test: Unhandled rejection with value: object "SecurityError: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/x-javascript')."
Registering script that imports script with good MIME type text/x-javascript
PASS
Registering script that imports script with no MIME type
FAIL
assert_unreached: Should have rejected: Registration of no MIME type imported script should fail. Reached unreachable code
Registering script that imports script with bad MIME type
FAIL
assert_unreached: Should have rejected: Registration of plain text imported script should fail. Reached unreachable code
Registering redirected script
PASS
Registering script including parse error
PASS
Registering script including undefined error
PASS
Registering script including uncaught exception
PASS
Registering script including caught exception
PASS
Registering script importing malformed script
PASS
Registering script importing non-existent script
PASS
Scope including URL-encoded multibyte characters
PASS
Scope including non-escaped multibyte characters
PASS
Script URL including URL-encoded slash
PASS
Script URL including uppercase URL-encoded slash
PASS
Scope including URL-encoded slash
PASS
Script URL including URL-encoded backslash
PASS
Script URL including uppercase URL-encoded backslash
PASS
Scope including URL-encoded backslash
PASS
Script URL including self-reference
PASS
Scope including self-reference
PASS
Script URL including parent-reference
PASS
Scope including parent-reference
PASS
Scope including parent-reference and not under the script directory
importScripts tests added. Interestingly both Firefox & Chrome don't apply mimetype checking to imported scripts here. Heading out of the office but will file bugs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is