diff --git a/components/script/dom/webidls/VR.webidl b/components/script/dom/webidls/VR.webidl index af256286523..a1092cdb734 100644 --- a/components/script/dom/webidls/VR.webidl +++ b/components/script/dom/webidls/VR.webidl @@ -5,6 +5,7 @@ // https://w3c.github.io/webvr/#interface-navigator [NoInterfaceObject] interface VR { + [Pref="dom.webvr.enabled"] Promise> getDisplays(); //readonly attribute FrozenArray activeVRDisplays; }; diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index 9daccd9d3f0..ecc822918a6 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -103,6 +103,8 @@ skip: true skip: false [webgl] skip: false +[webvr] + skip: false [WebIDL] skip: false [websockets] diff --git a/tests/wpt/metadata/custom-elements/parser/parser-sets-attributes-and-children.html.ini b/tests/wpt/metadata/custom-elements/parser/parser-sets-attributes-and-children.html.ini index 24282dc421e..775fd656cf1 100644 --- a/tests/wpt/metadata/custom-elements/parser/parser-sets-attributes-and-children.html.ini +++ b/tests/wpt/metadata/custom-elements/parser/parser-sets-attributes-and-children.html.ini @@ -1,4 +1,4 @@ [parser-sets-attributes-and-children.html] expected: if os == "mac": TIMEOUT - if os == "linux": TIMEOUT + if os == "linux": CRASH diff --git a/tests/wpt/metadata/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html.ini b/tests/wpt/metadata/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html.ini index 160398681b4..0d9db9d707d 100644 --- a/tests/wpt/metadata/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html.ini +++ b/tests/wpt/metadata/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html.ini @@ -1,8 +1,3 @@ -[wbr-element.html] - type: reftest - reftype: != - refurl: /html/semantics/text-level-semantics/the-wbr-element/wbr-element-notref.html - [wbr-element.html] type: reftest reftype: == diff --git a/tests/wpt/metadata/webvr/__dir__.ini b/tests/wpt/metadata/webvr/__dir__.ini new file mode 100644 index 00000000000..da93113793b --- /dev/null +++ b/tests/wpt/metadata/webvr/__dir__.ini @@ -0,0 +1 @@ +prefs: ["dom.webvr.enabled:true"] diff --git a/tests/wpt/metadata/webvr/idlharness.https.html.ini b/tests/wpt/metadata/webvr/idlharness.https.html.ini new file mode 100644 index 00000000000..74bf11b2015 --- /dev/null +++ b/tests/wpt/metadata/webvr/idlharness.https.html.ini @@ -0,0 +1,22 @@ +[idlharness.https.html] + [Navigator interface: operation getVRDisplays()] + expected: FAIL + + [Navigator interface: attribute activeVRDisplays] + expected: FAIL + + [Navigator interface: attribute vrEnabled] + expected: FAIL + + [HTMLIFrameElement interface: attribute allowvr] + expected: FAIL + + [Gamepad interface: attribute displayId] + expected: FAIL + + [VRDisplay interface: operation requestPresent([object Object\])] + expected: FAIL + + [VRDisplay interface: operation exitPresent()] + expected: FAIL + diff --git a/tests/wpt/metadata/webvr/webvr-disabled-by-feature-policy.https.sub.html.ini b/tests/wpt/metadata/webvr/webvr-disabled-by-feature-policy.https.sub.html.ini new file mode 100644 index 00000000000..a55dd4fa48d --- /dev/null +++ b/tests/wpt/metadata/webvr/webvr-disabled-by-feature-policy.https.sub.html.ini @@ -0,0 +1,11 @@ +[webvr-disabled-by-feature-policy.https.sub.html] + expected: TIMEOUT + [Feature-Policy header vr "none" disallows the top-level document.] + expected: FAIL + + [Feature-Policy header vr "none" disallows same-origin iframes.] + expected: TIMEOUT + + [Feature-Policy header vr "none" disallows cross-origin iframes.] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini new file mode 100644 index 00000000000..f62af3274ab --- /dev/null +++ b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html.ini @@ -0,0 +1,7 @@ +[webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html] + [Feature-Policy allow="vr" attribute allows same-origin relocation] + expected: FAIL + + [Feature-Policy allow="vr" attribute disallows cross-origin relocation] + expected: FAIL + diff --git a/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute.https.sub.html.ini b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute.https.sub.html.ini new file mode 100644 index 00000000000..eefc44081c1 --- /dev/null +++ b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy-attribute.https.sub.html.ini @@ -0,0 +1,7 @@ +[webvr-enabled-by-feature-policy-attribute.https.sub.html] + [Feature-Policy allow="vr" attribute allows same-origin iframe] + expected: FAIL + + [Feature-Policy allow="vr" attribute allows cross-origin iframe] + expected: FAIL + diff --git a/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy.https.sub.html.ini b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy.https.sub.html.ini new file mode 100644 index 00000000000..8a363f316bd --- /dev/null +++ b/tests/wpt/metadata/webvr/webvr-enabled-by-feature-policy.https.sub.html.ini @@ -0,0 +1,8 @@ +[webvr-enabled-by-feature-policy.https.sub.html] + expected: TIMEOUT + [Feature-Policy header vr * allows same-origin iframes.] + expected: TIMEOUT + + [Feature-Policy header vr * allows cross-origin iframes.] + expected: TIMEOUT + diff --git a/tests/wpt/metadata/webvr/webvr-enabled-on-self-origin-by-feature-policy.https.sub.html.ini b/tests/wpt/metadata/webvr/webvr-enabled-on-self-origin-by-feature-policy.https.sub.html.ini new file mode 100644 index 00000000000..bb968ef6d8d --- /dev/null +++ b/tests/wpt/metadata/webvr/webvr-enabled-on-self-origin-by-feature-policy.https.sub.html.ini @@ -0,0 +1,8 @@ +[webvr-enabled-on-self-origin-by-feature-policy.https.sub.html] + expected: TIMEOUT + [Feature-Policy header vr "self" allows same-origin iframes.] + expected: TIMEOUT + + [Feature-Policy header vr "self" disallows cross-origin iframes.] + expected: TIMEOUT + diff --git a/tests/wpt/mozilla/meta/css/border_radius_elliptical_a.html.ini b/tests/wpt/mozilla/meta/css/border_radius_elliptical_a.html.ini deleted file mode 100644 index 030543a5009..00000000000 --- a/tests/wpt/mozilla/meta/css/border_radius_elliptical_a.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[border_radius_elliptical_a.html] - bug: https://github.com/servo/servo/issues/19271 - expected: FAIL diff --git a/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini b/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini deleted file mode 100644 index dbea4f293ad..00000000000 --- a/tests/wpt/mozilla/meta/css/transition_calc_implicit.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[transition_calc_implicit.html] - expected: TIMEOUT