testing/web-platform/tests/feature-policy/reporting/camera-reporting.https.html
author Brindusan Cristian <cbrindusan@mozilla.com>
Tue, 20 Nov 2018 20:37:05 +0200
changeset 503769 46ad93280b0678c2bf9db3c3f8dcd3613b0ec9ab
parent 503729 0475d6073c309df4fb00aa1f2adad320d6f0a276
child 503984 91431840cca377524058fdd4715986ae537e67a8
permissions -rw-r--r--
Backed out 53 changesets (bug 1505878, bug 1507080, bug 1505638, bug 1507345, bug 1507122, bug 1507341, bug 1506769, bug 1497436, bug 1507796, bug 1506775, bug 1506697, bug 1507089, bug 1507908, bug 1504801, bug 1507063, bug 1507917, bug 1506089, bug 1506919, bug 1507805, bug 1507374, bug 1507421, bug 1507426, bug 1506886, bug 1488424, bug 1507558, bug 1507600, bug 1507977, bug 1507549, bug 1507526, bug 1507064, bug 1507586, bug 1508031, bug 1507472, bug 1507239, bug 1507250, bug 1507532, bug 1507519, bug 1508354, bug 1507660, bug 1506716, bug 1508014, bug 1506994) for wpt failures on grid-container-scrollbar-vertical-lr-001.html. CLOSED TREE Backed out changeset 584f730e1865 (bug 1508354) Backed out changeset 3bdcf979b1a2 (bug 1507532) Backed out changeset f36221255331 (bug 1506769) Backed out changeset d8ba2f11effc (bug 1506769) Backed out changeset c4430fdd1d22 (bug 1508031) Backed out changeset b4d49ed8873e (bug 1507796) Backed out changeset f380f6a8f5c0 (bug 1508014) Backed out changeset d94695f27915 (bug 1507421) Backed out changeset 2b4e8d165519 (bug 1505638) Backed out changeset a96795d1de3f (bug 1505638) Backed out changeset 6e08180c8ba3 (bug 1507977) Backed out changeset e758e29e8a1a (bug 1507908) Backed out changeset 380cb8a671e9 (bug 1507917) Backed out changeset 77f172246b2d (bug 1507519) Backed out changeset 61abe5c39ab5 (bug 1504801) Backed out changeset c750807ac5c4 (bug 1504801) Backed out changeset b49e6067e4bc (bug 1507472) Backed out changeset bb03633ea79a (bug 1507472) Backed out changeset f73f87484839 (bug 1507805) Backed out changeset ab97e60ed777 (bug 1507586) Backed out changeset d4129dccff17 (bug 1506089) Backed out changeset bcb5a5eebc6c (bug 1488424) Backed out changeset d76dc6e3bbaa (bug 1507064) Backed out changeset 30d8f48aab99 (bug 1507080) Backed out changeset e6d88d9f73af (bug 1507080) Backed out changeset ee38ad38e9a1 (bug 1507549) Backed out changeset 0b2f80185614 (bug 1506919) Backed out changeset 0143d49ed65b (bug 1507660) Backed out changeset 2c739b93be1e (bug 1506716) Backed out changeset 0a4f3d45b0c5 (bug 1506716) Backed out changeset 81e2dcf84fb1 (bug 1506886) Backed out changeset 22f64d38d9c8 (bug 1505878) Backed out changeset 0475d6073c30 (bug 1505878) Backed out changeset 956ed95b791e (bug 1507374) Backed out changeset ac8170415338 (bug 1507600) Backed out changeset d7e0ada61934 (bug 1507345) Backed out changeset 6a730fb5a7e4 (bug 1507250) Backed out changeset 1e351d1c2022 (bug 1507250) Backed out changeset 031385cb5558 (bug 1507239) Backed out changeset 2fa696969cc2 (bug 1507239) Backed out changeset 9d55c7b68552 (bug 1507558) Backed out changeset 7385eaebb8e9 (bug 1507526) Backed out changeset d2ac36f03ef5 (bug 1506775) Backed out changeset b6ebdb6e8bf9 (bug 1507426) Backed out changeset 29ca75ba2433 (bug 1507341) Backed out changeset b5aa3737ca29 (bug 1497436) Backed out changeset f3cb0265f0c1 (bug 1497436) Backed out changeset f3f2d714b4eb (bug 1506994) Backed out changeset aa35cce4fb76 (bug 1507089) Backed out changeset 43cfc59879d2 (bug 1507089) Backed out changeset 8e13752959d6 (bug 1507122) Backed out changeset dfbc81d5e518 (bug 1507063) Backed out changeset 378d0c633eae (bug 1506697)

<!DOCTYPE html>
<html>
  <head>
    <script src='/resources/testharness.js'></script>
    <script src='/resources/testharnessreport.js'></script>
  </head>
  <body>
    <script>
var t = async_test("Camera Report Format");

var check_report_format = (reports, observer) => {
  let report = reports[0];
  assert_equals(report.type, "feature-policy-violation");
  assert_equals(report.url, document.location.href);
  assert_equals(report.body.featureId, "camera");
  assert_equals(report.body.sourceFile, document.location.href);
  assert_equals(typeof report.body.lineNumber, "number");
  assert_equals(typeof report.body.columnNumber, "number");
  assert_equals(report.body.disposition, "enforce");
};

new ReportingObserver(t.step_func_done(check_report_format),
                      {types: ['feature-policy-violation']}).observe();

navigator.mediaDevices.getUserMedia({video: true}).then(
  t.unreached_func("UserMedia camera access should not be allowed in this document.")
).catch(() => {});
    </script>
  </body>
</html>