You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose new algorithms to create a Feature Policy before document is c… (#324)
* Expose new algorithms to create a Feature Policy before document is created.
Adjust algorithms so that the HTML spec will be able to create a feature
policy before the document is created. Instead of creating the document
first and then applying it afterwards. The document based algorithms
will remain until the HTML spec is changed.
<li>Let <var>policy</var> be the result of running <a>Create a Feature Policy for a browsing
922
+
context</a> given <var>document</var>'s <a>browsing context</a>, and <var>document</var>'s
923
+
<a>origin</a>.</li>
912
924
<li>
913
925
Set <var>document</var>’s <a href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-feature-policy">feature policy</a> to <var>policy</var>.
<p>Given a [=response=] (<var>response</var>) and a <a>Document</a>
957
+
(<var>document</var>), this algorithm populates <var>document</var>'s
958
+
<a>Feature Policy</a></p>
959
+
<ol>
960
+
<li>Let <var>policy</var> be the result of running <a>Create a Feature Policy for a browsing
961
+
context from response</a> given <var>document</var>'s <a>browsing context</a>, <var>document</var>'s
962
+
<a>origin</a>, and <var>response</var>.</li>
944
963
<li>
945
964
Set <var>document</var>’s <a href="https://html.spec.whatwg.org/multipage/dom.html#concept-document-feature-policy">feature policy</a> to <var>policy</var>.
946
965
</li>
947
966
</ol>
948
967
</section>
949
968
<section>
950
-
<h3 id="algo-define-inherited-policy"><dfn>Define an inherited policy for
951
-
<var>feature</var> in <var>document</var></dfn></h3>
952
-
<p>Given a feature (<var>feature</var>) and a <a>Document</a>
953
-
(<var>document</var>), this algorithm returns the<a>inherited policy</a>
954
-
for that feature.</p>
969
+
<h3 id="algo-define-inherited-policy"><dfn id="define-inherited-policy">Define an inherited policy for
970
+
<var>feature</var> in <a>browsing context</a></dfn></h3>
971
+
<p>Given a feature (<var>feature</var>), an <a>origin</a> (<var>origin</var>), and
972
+
a <a>browsing context</a>(<var>browsingContext</var>), this algorithm returns the
973
+
<a>inherited policy</a>for that feature.</p>
955
974
<ol>
956
-
<li>Let <var>context</var> be <var>document</var>'s <a>browsing
957
-
context</a>.</li>
958
-
<li>If <var>context</var> is the [=nested browsing context=] of a
975
+
<li>If <var>browsingContext</var> is the [=nested browsing context=] of a
959
976
[=browsing context container=]<var>element</var>, return the result of
960
977
executing <a>Define an inherited policy for feature in container at
961
-
origin</a> for <var>feature</var> in <var>context</var>'s <a>browsing
962
-
context container</a> at <var>document</var>'s
963
-
<a>origin</a>.</li>
978
+
origin</a> for <var>feature</var> in <var>browsingContext</var>'s <a>browsing
0 commit comments