mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
16 lines
418 B
HTML
16 lines
418 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script src='/resources/testharness.js'></script>
|
|
<script src='/resources/testharnessreport.js'></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
async_test(t => {
|
|
assert_false(document.featurePolicy.allowsFeature('geolocation'));
|
|
assert_true(document.featurePolicy.allowsFeature('camera'));
|
|
t.done();
|
|
}, "Origin-Policy-based Feature policy");
|
|
</script>
|
|
</body>
|
|
</html>
|