From ca6f2fd28a8463c595daf5a6598c30836bf6f0fe Mon Sep 17 00:00:00 2001
From: Domenic Denicola User agents must throw a "SyntaxError
" DOMException
if
parsing the url argument relative to the
- entry settings object is not successful.NavigatorContentUtils
object is not
+ successful.
The resulting URL string would by definition not be a valid
URL as it would include the string "%s
" which is not a valid
@@ -91139,8 +91140,8 @@ interface NavigatorContentUtils {
User agents must throw a "SecurityError
" DOMException
if the resulting URL record has an origin
- that differs from the origin specified by the entry settings
- object.
NavigatorContentUtils
object.
This is forcibly the case if the %s
placeholder is in the
scheme, host, or port parts of the URL.
When the user agent uses this handler, it must replace the first occurrence of the exact
literal string "%s
" in the url argument with an
escaped version of the absolute URL of the content in question (as defined below),
- then parse the resulting URL, relative to the entry
- settings object at the time the parse the resulting URL, relative to the relevant
+ settings object of the
method was
invoked, and then navigate an appropriate browsing
context to the resulting URL.NavigatorContentUtils
object on which the registerContentHandler()
or registerProtocolHandler()
methods were
+ data-x="dom-navigator-registerProtocolHandler">registerProtocolHandler()
If the string does not contain the substring "%s
", abort these
steps. There's no matching handler.
Parse the string relative to the entry settings
- object. If this fails, then throw a "SyntaxError
"
- DOMException
.
Parse the string relative to the relevant settings
+ object of this NavigatorContentUtils
object. If this fails, then throw a
+ "SyntaxError
" DOMException
.
If the resulting URL record's origin
- is not the same origin as the origin specified by the entry
- settings object, throw a "SecurityError
"
- DOMException
.
NavigatorContentUtils
object, throw a
+ "SecurityError
" DOMException
.
Return the resulting URL string as the result of preprocessing the argument.