DescriptionServiceWorker: Should throw TypeError instead of Unknown/SecurityError.
If navigate() or openWindow() faces errors during navigation, we should throw
TypeError instead of UnknownError or SecurityError. They aren't defined anywhere
in the spec[1] as well as, especially UnknownError is only used in IndexedDB[2].
To match the spec, this change adds ErrorTypeNavigation and then process it
via NavigateClientCallback instead of CallbackPromiseAdapter.
[1] http://slightlyoff.github.io/ServiceWorker/spec/service_worker
[2] http://www.w3.org/TR/IndexedDB/#h-exceptions
BUG=500911, 540503
Committed: https://crrev.com/fea1cbc16107faa81a589b070ff857d64a0f56e3
Cr-Commit-Position: refs/heads/master@{#363435}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 4
Patch Set 3 : #Patch Set 4 : #Messages
Total messages: 38 (18 generated)
|