| <html> |
| <body> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/common/get-host-info.sub.js"></script> |
| <script src="resources/feature-policy-navigation.js"></script> |
| <script> |
| (async () => { |
| await test_frame( |
| "HTTPS_REMOTE_ORIGIN", |
| "sec-ch-device-memory=true&device-memory=true&sec-ch-dpr=false&dpr=false&sec-ch-viewport-width=false&viewport-width=false&sec-ch-ua=false&sec-ch-ua-mobile=false", |
| "", |
| "Client hints loaded on cross-origin iframe request with feature policy."); |
| await test_frame( |
| "HTTPS_ORIGIN", |
| "sec-ch-device-memory=true&device-memory=true&sec-ch-dpr=false&dpr=false&sec-ch-viewport-width=true&viewport-width=true&sec-ch-ua=true&sec-ch-ua-mobile=false", |
| "", |
| "Client hints loaded on same-origin iframe request with feature policy."); |
| await test_frame( |
| "HTTPS_REMOTE_ORIGIN", |
| "sec-ch-device-memory=true&device-memory=true&sec-ch-dpr=false&dpr=false&sec-ch-viewport-width=false&viewport-width=false&sec-ch-ua=false&sec-ch-ua-mobile=false", |
| "", |
| "Client hints loaded on cross-origin iframe request with feature policy after attempting to set independently."); |
| })(); |
| |
| </script> |
| </body> |
| </html> |