Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ Description of the changes...
<!-- List the pages that should be automatically tested as part of your custom metric changes. -->
**Test websites**:

- https://example.com/
- https://www.on.com/
- https://www.amazon.co.jp/
- https://www.libero.it/

7 changes: 7 additions & 0 deletions .github/workflows/wpt-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
WPT_API_KEY: ${{ secrets.HA_API_KEY }}
PR_BODY: ${{ github.event.pull_request.body }}

- name: Run WebPageTest for on.com
run: node tests/wpt.js
env:
WPT_SERVER: "on.com"
WPT_API_KEY: ${{ secrets.HA_API_KEY }}
PR_BODY: ${{ github.event.pull_request.body }}

- name: Add comment to PR
uses: mshick/add-pr-comment@v2
if: always()
Expand Down
18 changes: 17 additions & 1 deletion dist/well-known.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,23 @@ function parseResponseWithRedirects(url, parser) {

return Promise.all([
// ecommerce
parseResponse('/.well-known/assetlinks.json'),
parseResponse('/.well-known/assetlinks.json', r => {
return r.json().then(data => {
let hasDeepLinking = false;
let hasCredentialSharing = false;
data.forEach(statement => {
if (statement.relation === 'delegate_permission/common.handle_all_urls') {
hasDeepLinking = true;
} else if (statement.relation === 'delegate_permission/common.get_login_creds') {
hasCredentialSharing = true;
}
});
return {
deep_linking: hasDeepLinking,
credential_sharing: hasCredentialSharing
};
});
}),
parseResponse('/.well-known/apple-app-site-association'),
// privacy sandbox
parseResponse('/.well-known/related-website-set.json'), //Related Website Set
Expand Down
Loading