blob: 147206b26aeb8fe3f4813e4b1f68d7a59b658c46 [file] [log] [blame]
<html>
<body>
<script>
// This test checks if browser attaches the device-memory client hint in the
// HTTP request headers.
// echo-client-hints-received.py sets the response headers depending on the set
// of client hints it receives in the request headers.
fetch("/client-hints/accept-ch-stickiness/resources/echo-client-hints-received.py").then(r => {
if(r.status == 200 && !r.headers.has("device-memory-received")) {
window.top.opener.postMessage('PASS', '*');
}
else {
window.top.opener.postMessage('FAIL', '*');
}
});
</script>
</body>
</html>