Bug 1514504 [wpt PR 14543] - Update test to match IDL change, a=testonly
authorAutomat af Gränssnitt <auto@foolip.org>
Thu, 31 Jan 2019 12:13:11 +0000
changeset 457759 22810cc045ffe8d7f68c63c49074ea64e5748aeb
parent 457758 f073c5f45936a7108b642f75385afeae5d2ad705
child 457760 6550bd651682d8ffacbecc4319b0b50f06c5bcd0
push id35518
push useropoprus@mozilla.com
push dateFri, 08 Feb 2019 09:55:14 +0000
treeherdermozilla-central@3a3e393396f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1514504, 14543
milestone67.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 1514504 [wpt PR 14543] - Update test to match IDL change, a=testonly Automatic update from web-platform-tests Update interfaces/feature-policy.idl Source: https://github.com/tidoust/reffy-reports/blob/a990a0a/whatwg/idl/feature-policy.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/468318854 -- Update test to match IDL change -- wpt-commits: a9df0c40844563f949fddada84160e717135895f, 9a6dabb8d4d5d20aa92313fddc84f8870340f193 wpt-pr: 14543
testing/web-platform/tests/feature-policy/idlharness.window.js
testing/web-platform/tests/interfaces/feature-policy.idl
--- a/testing/web-platform/tests/feature-policy/idlharness.window.js
+++ b/testing/web-platform/tests/feature-policy/idlharness.window.js
@@ -7,12 +7,12 @@
 
 idl_test(
   ['feature-policy'],
   ['reporting', 'html', 'dom'],
   idl_array => {
     idl_array.add_objects({
       Document: ['document'],
       HTMLIframeElement: ['document.createElement("iframe")'],
-      Policy: ['document.policy'],
+      FeaturePolicy: ['document.featurePolicy'],
     })
   }
 );
--- a/testing/web-platform/tests/interfaces/feature-policy.idl
+++ b/testing/web-platform/tests/interfaces/feature-policy.idl
@@ -1,26 +1,27 @@
 // GENERATED CONTENT - DO NOT EDIT
 // Content was automatically extracted by Reffy into reffy-reports
 // (https://github.com/tidoust/reffy-reports)
 // Source: Feature Policy (https://wicg.github.io/feature-policy/)
 
 [NoInterfaceObject]
-interface Policy {
+interface FeaturePolicy {
   boolean allowsFeature(DOMString feature, optional DOMString origin);
+  sequence<DOMString> features();
   sequence<DOMString> allowedFeatures();
   sequence<DOMString> getAllowlistForFeature(DOMString feature);
 };
 
 partial interface Document {
-    [SameObject] readonly attribute Policy policy;
+    [SameObject] readonly attribute FeaturePolicy featurePolicy;
 };
 
 partial interface HTMLIFrameElement {
-    [SameObject] readonly attribute Policy policy;
+    [SameObject] readonly attribute FeaturePolicy featurePolicy;
 };
 interface FeaturePolicyViolationReportBody : ReportBody {
   readonly attribute DOMString featureId;
   readonly attribute DOMString? sourceFile;
   readonly attribute long? lineNumber;
   readonly attribute long? columnNumber;
   readonly attribute DOMString disposition;
 };