Blocking:678905 Labels: Hotlist-GoodFirstBug Pri-3 Status: Available (was: Untriaged) Summary: [WPT] registration-script-url.https.html fails (was: [WPT] New failures introduced in external/wpt/service-workers by import https://crrev.com/c/1186549)
register('data://blah') should throw a TypeError instead of SecurityError.
Failing output:
FAIL Script URL is a data URL assert_throws: Data URLs should not be registered as service workers. function "function() { throw e }" threw object "SecurityError: Failed to register a ServiceWorker: The origin of the provided scriptURL ('null') does not match the current origin ('https://web-platform.test:8444')." ("SecurityError") expected object "TypeError" ("TypeError")
Relevant spec is:
"If scopeURL’s scheme is not one of "http" and "https", reject promise with a TypeError and abort these steps."
https://w3c.github.io/ServiceWorker/#start-register-algorithm
Comment 1 by falken@chromium.org
, Aug 24Labels: Hotlist-GoodFirstBug Pri-3
Status: Available (was: Untriaged)
Summary: [WPT] registration-script-url.https.html fails (was: [WPT] New failures introduced in external/wpt/service-workers by import https://crrev.com/c/1186549)
register('data://blah') should throw a TypeError instead of SecurityError. Failing output: FAIL Script URL is a data URL assert_throws: Data URLs should not be registered as service workers. function "function() { throw e }" threw object "SecurityError: Failed to register a ServiceWorker: The origin of the provided scriptURL ('null') does not match the current origin ('https://web-platform.test:8444')." ("SecurityError") expected object "TypeError" ("TypeError") Relevant spec is: "If scopeURL’s scheme is not one of "http" and "https", reject promise with a TypeError and abort these steps." https://w3c.github.io/ServiceWorker/#start-register-algorithm