[w3c/payment-handler] Improve open window algorithm. (#171)

This change is fixing the following things:
  - Early reject SecurityError if the input url's origin is not the same as the
    service worker's origin associated with the payment handler.
  - Check whether already opened window exists before navigation.

This change is related to #163, #168, #169.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/payment-handler/pull/171

-- Commit Summary --

  * Rename PaymentAppResponse with PaymentHandlerResponse.
  * Improve open window algorithm.

-- File Changes --

    M index.html (82)

-- Patch Links --

https://github.com/w3c/payment-handler/pull/171.patch
https://github.com/w3c/payment-handler/pull/171.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/pull/171

Received on Tuesday, 6 June 2017 17:16:45 UTC