Bug 1473557 [wpt PR 11803] - [sensors] Check that sensor frame and focused frame of same origin, a=testonly
authorWanming Lin <wanming.lin@intel.com>
Sat, 07 Jul 2018 12:59:01 +0000
changeset 426186 515465766ea9bd73edfdd4db0f418838373697f3
parent 426185 f559f16c162b00367ea0ad90e4a0a93396857d91
child 426187 ab5ea3ec03f3400cd58218897e764dc4fc957f5d
push id34267
push userrgurzau@mozilla.com
push dateWed, 11 Jul 2018 22:05:21 +0000
treeherdermozilla-central@3aca103e4915 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1473557, 11803, 11426
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1473557 [wpt PR 11803] - [sensors] Check that sensor frame and focused frame of same origin, a=testonly Automatic update from web-platform-tests[sensors] Check that sensor frame and focused frame of same origin (#11803) #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 -- wpt-commits: c9c1a7d1b2306fada9bc3b469bf39ca31b4508cc wpt-pr: 11803
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html
testing/web-platform/tests/geolocation-sensor/GeolocationSensor-iframe-access.https.html
testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -312024,16 +312024,22 @@
     ]
    ],
    "ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html": [
     [
      "/ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html",
      {}
     ]
    ],
+   "ambient-light/AmbientLightSensor-iframe-access.https.html": [
+    [
+     "/ambient-light/AmbientLightSensor-iframe-access.https.html",
+     {}
+    ]
+   ],
    "ambient-light/AmbientLightSensor.https.html": [
     [
      "/ambient-light/AmbientLightSensor.https.html",
      {}
     ]
    ],
    "ambient-light/AmbientLightSensor_insecure_context.html": [
     [
@@ -340918,16 +340924,22 @@
     ]
    ],
    "geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html": [
     [
      "/geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html",
      {}
     ]
    ],
+   "geolocation-sensor/GeolocationSensor-iframe-access.https.html": [
+    [
+     "/geolocation-sensor/GeolocationSensor-iframe-access.https.html",
+     {}
+    ]
+   ],
    "geolocation-sensor/GeolocationSensor.https.html": [
     [
      "/geolocation-sensor/GeolocationSensor.https.html",
      {}
     ]
    ],
    "geolocation-sensor/GeolocationSensor_insecure_context.html": [
     [
@@ -367384,16 +367396,22 @@
     ]
    ],
    "priority-hints/link-attr.tentative.html": [
     [
      "/priority-hints/link-attr.tentative.html",
      {}
     ]
    ],
+   "proximity/ProximitySensor-iframe-access.https.html": [
+    [
+     "/proximity/ProximitySensor-iframe-access.https.html",
+     {}
+    ]
+   ],
    "proximity/ProximitySensor.https.html": [
     [
      "/proximity/ProximitySensor.https.html",
      {}
     ]
    ],
    "proximity/ProximitySensor_insecure_context.html": [
     [
@@ -417687,16 +417705,20 @@
   "ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html": [
    "ee5ca4f88396b954bf739e383ad5f81bc55054d2",
    "testharness"
   ],
   "ambient-light/AmbientLightSensor-enabled-on-self-origin-by-feature-policy.https.html.headers": [
    "9c9b554e33d34e1513dd315ecd6299f756d68b43",
    "support"
   ],
+  "ambient-light/AmbientLightSensor-iframe-access.https.html": [
+   "5896b8ba40dca9f7beeab66a7b355e2aab3d6841",
+   "testharness"
+  ],
   "ambient-light/AmbientLightSensor.https.html": [
    "b2811054c4835b22f3f2c9d8baa6f95921db67d8",
    "testharness"
   ],
   "ambient-light/AmbientLightSensor_insecure_context.html": [
    "f6d9e5bd6d1ce6705835f15498ddbb5a5b82fb88",
    "testharness"
   ],
@@ -573723,16 +573745,20 @@
   "geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html": [
    "5bb094322d0e11a114e5cbebf0c7c0c284b93e38",
    "testharness"
   ],
   "geolocation-sensor/GeolocationSensor-enabled-on-self-origin-by-feature-policy.https.html.headers": [
    "1c523e7cd5741e4a515119b129b041b11cbc92cc",
    "support"
   ],
+  "geolocation-sensor/GeolocationSensor-iframe-access.https.html": [
+   "d1e85d4c9197e35231555f82c4a3ece5f210b6f2",
+   "testharness"
+  ],
   "geolocation-sensor/GeolocationSensor.https.html": [
    "7409dc69d96e1bc694b137c908448896576a1769",
    "testharness"
   ],
   "geolocation-sensor/GeolocationSensor_insecure_context.html": [
    "58fd65d3a72e6734392381fe225e3fbd7007fc06",
    "testharness"
   ],
@@ -605899,16 +605925,20 @@
   "priority-hints/resources/stylesheet.css": [
    "bb230110dd1cf4647e020d7172bc375e972c7b41",
    "support"
   ],
   "proximity/META.yml": [
    "7645b3f88917eec4c54b28d41ed2a8941c198975",
    "support"
   ],
+  "proximity/ProximitySensor-iframe-access.https.html": [
+   "887d7bf1696f877e4a24c53a1ef32e5b2bef24a8",
+   "testharness"
+  ],
   "proximity/ProximitySensor.https.html": [
    "0fdcbda9b340af68a05f5e86294f311fdbb5c171",
    "testharness"
   ],
   "proximity/ProximitySensor_insecure_context.html": [
    "00b6ec75ae65d4ee7144e9362ccc89a3b3adb856",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/ambient-light/AmbientLightSensor-iframe-access.https.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/geolocation-sensor/GeolocationSensor-iframe-access.https.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/proximity/ProximitySensor-iframe-access.https.html
@@ -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>