forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sensors] Check that sensor frame and focused frame of same origin (w…
…eb-platform-tests#11803) web-platform-tests#11426 introduced new tests for mitigation stragegy defined in [1] for partial concrete sensors. This PR add the same tests for remain concrete sensors: Ambient Light Sensor, Geolocation Sensor, and Proximity. [1] https://www.w3.org/TR/generic-sensor/#focused-area
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>AmbientLightSensor iframe test</title> | ||
<link rel="author" title="Intel" href="http://www.intel.com"> | ||
<link rel="help" href="https://w3c.github.io/ambient-light/"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/generic-sensor/generic-sensor-tests.js"></script> | ||
<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script> | ||
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script> | ||
<div id="log"></div> | ||
<script> | ||
run_generic_sensor_iframe_tests('AmbientLightSensor'); | ||
</script> |
14 changes: 14 additions & 0 deletions
14
geolocation-sensor/GeolocationSensor-iframe-access.https.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>GeolocationSensor iframe test</title> | ||
<link rel="author" title="Intel" href="http://www.intel.com"> | ||
<link rel="help" href="https://wicg.github.io/geolocation-sensor/"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/generic-sensor/generic-sensor-tests.js"></script> | ||
<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script> | ||
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script> | ||
<div id="log"></div> | ||
<script> | ||
run_generic_sensor_iframe_tests('GeolocationSensor'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>ProximitySensor iframe test</title> | ||
<link rel="author" title="Intel" href="http://www.intel.com"> | ||
<link rel="help" href="https://w3c.github.io/proximity/"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/generic-sensor/generic-sensor-tests.js"></script> | ||
<script src="/generic-sensor/generic-sensor-iframe-tests.sub.js"></script> | ||
<script src="/generic-sensor/generic-sensor-feature-policy-test.sub.js"></script> | ||
<div id="log"></div> | ||
<script> | ||
run_generic_sensor_iframe_tests('ProximitySensor'); | ||
</script> |