Index: LayoutTests/http/tests/serviceworker/chromium/url-limits.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/url-limits.html b/LayoutTests/http/tests/serviceworker/chromium/url-limits.html |
index a487b6be19b83f4097e5699abe414fce1739d7ac..a1a1147813b1bf84cdfe6e0915df604750cc0549 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/url-limits.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/url-limits.html |
@@ -36,4 +36,13 @@ async_test(function(t) { |
})); |
}, 'Exceedingly long scope URLs are rejected by unregister()'); |
+async_test(function(t) { |
+ navigator.serviceWorker.getRegistration(long_url). |
+ then(t.unreached_func('getRegistration with a long url should fail')). |
+ catch(t.step_func(function(reason) { |
+ assert_equals(reason.name, 'SecurityError'); |
+ t.done(); |
+ })); |
+}, 'Exceedingly long document URLs are rejected by getRegistration()'); |
+ |
</script> |