From 35ecb88a7404ec8bd3bd8f94abafb718d34c88c9 Mon Sep 17 00:00:00 2001 From: Tomoyuki SHIMIZU Date: Mon, 12 Mar 2018 18:49:07 +0900 Subject: [PATCH 1/2] Address #446 - Discard a URL with an unsupported scheme in constructing a PresentationRequest --- index.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 655b3b7..cf419a2 100644 --- a/index.html +++ b/index.html @@ -422,6 +422,11 @@

"https://www.w3.org/TR/html51/browsers.html#parse-the-sandboxing-directive"> parse a sandboxing directive +
  • + parse a + URL +
  • queue a @@ -1182,13 +1187,19 @@

    1. Resolve U relative to the API base URL specified by the current settings object, and add the resulting - absolute URL (if any) to presentationUrls. + absolute URL (if any, and if the resulting scheme is supported + by the controlling user agent) to + presentationUrls.
    2. -
    3. If the resolve a URL algorithm failed, then throw a - SyntaxError exception and abort all remaining steps. +
    4. If the parse a URL algorithm failed, then + throw a SyntaxError exception and abort all + remaining steps.

  • +
  • If presentationUrls is an empty list, then throw a + NotSupportedError and abort all remaining steps. +
  • If any member of presentationUrls is not an a priori authenticated URL, then throw a SecurityError and abort these steps. From cca5eb272d0d9d21dfff0fe5673aa4b853a24e99 Mon Sep 17 00:00:00 2001 From: Tomoyuki Shimizu Date: Fri, 23 Mar 2018 19:16:03 +0900 Subject: [PATCH 2/2] minor revision --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index cf419a2..3b0829f 100644 --- a/index.html +++ b/index.html @@ -1185,16 +1185,17 @@

  • For each URL U in urls:
      -
    1. Resolve U relative to the API base URL specified - by the current settings object, and add the resulting - absolute URL (if any, and if the resulting scheme is supported - by the controlling user agent) to - presentationUrls. +
    2. let A be an absolute URL that is the result of + parsing U relative to the API base URL specified by + the current settings object.
    3. If the parse a URL algorithm failed, then throw a SyntaxError exception and abort all remaining steps.
    4. +
    5. If A's scheme is supported by the controlling + user agent, add A to presentationUrls. +
  • If presentationUrls is an empty list, then throw a