DescriptionServiceWorker: Early reject error if url is something wrong.
The openWindow() and navigate() don't allow the special urls[1]. The checking
logics for the urls are in chromium side currently but it's better to move them
to blink. In case of the special url, we can reject early in blink side using
protocolIsInHTTPFamily() method.
Also, current implementation resolves null if the request url is about:xxx but
we should reject TypeError as per the spec[2].
[1] e.g. about:blank, about:xxx, file:/// and so on.
[2] http://slightlyoff.github.io/ServiceWorker/spec/service_worker
BUG=none
TEST=existing tests
Patch Set 1 #
Total comments: 2
Messages
Total messages: 7 (4 generated)
|