Re: [w3c/webpayments-payment-apps-api] Example 3 does not work (#82)

This example shouldn't be in the spec, specially the part that does:

```JS
const url = 'data:text/html;base64,' + btoa(body);
```
(that defeats the whole point of service workers: if you want to open the window at a URL, then open the URL and have the service worker serve the response form the cache)

There are also a bunch of other issues, like: 

```JS
throw new Error('No content type header.'); 
```

Will result in a corrupt content error being shown to the end-user. Same with the exception thrown at the end. Those should be 500 Error responses. 


-- 
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/webpayments-payment-apps-api/issues/82#issuecomment-275976677

Received on Monday, 30 January 2017 04:12:57 UTC