mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests
RestrictDeviceSensorEventsToSecureContexts by default.
Turn on the flag by default to restrict Device{Orientation|Motion}Events
to secure origins.
Intent to remove: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/5yqfAXibz1I
Bug: 932078
Change-Id: I8f46a90a12375b734ba3d9a89b835c754960ef48
Reviewed-on: https://chromium-review.googlesource.com/c/1486091
Commit-Queue: Balazs Engedy <engedy@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635954}
--
wpt-commits: 78b3d93dec577480b0ac4aaae26dbf55555e4709
wpt-pr: 15563
--HG--
rename : testing/web-platform/tests/dom/nodes/Document-createEvent.html => testing/web-platform/tests/dom/nodes/Document-createEvent.https.html
rename : testing/web-platform/tests/orientation-event/idlharness.window.js => testing/web-platform/tests/orientation-event/idlharness.https.window.js
23 lines
801 B
JavaScript
23 lines
801 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://w3c.github.io/deviceorientation/spec-source-orientation.html
|
|
|
|
'use strict';
|
|
|
|
promise_test(async () => {
|
|
const idl = await fetch('/interfaces/orientation-event.idl').then(r => r.text());
|
|
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
|
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
|
|
|
var idl_array = new IdlArray();
|
|
idl_array.add_idls(idl);
|
|
idl_array.add_dependency_idls(html);
|
|
idl_array.add_dependency_idls(dom);
|
|
idl_array.add_objects({
|
|
Window: ['window'],
|
|
DeviceOrientationEvent: ['new DeviceOrientationEvent("foo")'],
|
|
DeviceMotionEvent: ['new DeviceMotionEvent("foo")'],
|
|
});
|
|
idl_array.test();
|
|
}, 'orientation-event interfaces');
|