[w3c/manifest] The name and icon from the web app manifest is not getting displayed when payment handler installed from an iframe which is in another domain. (#708)

The name and icon from the web app manifest is not getting displayed when payment handler installed from an iframe which is in another domain. It is displayed only when the payment handler is installed from the top-level context.

For instance, let's assume:
Top level page is in domain – http://www.xyz.com

Manifest json and service worker are in different domain: https://www.abc.com

Manifest json URL - https://www.abc.com/manifest.json

Service worker URL - https://www.abc.com/sw.js


Top level page includes the iframe to install service worker and the link tag for manifest json.
Eg: http://www.xyz.com/index.html

<!doctype html>
<meta charset="utf-8">
<title>Toplevel</title>
<link rel="manifest" href=" https://www.abc.com/manifest.json">
<head></head>
<body>
<iframe src=" https://www.abc .com/installer.html" allowpaymentrequest></iframe>
</body>

Manifest json file looks like:
{
  "name": "Payment ABC",
  "icons": [   {
      "src": "icon.png",
      "sizes": "600x600",
      "type": "image/png"   }  ],
  "serviceworker": {
    "src": " sw.js",
    "use_cache": false
  }
}

-- 
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/manifest/issues/708

Received on Monday, 20 August 2018 12:00:41 UTC