@@ -4697,6 +4697,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
46974697 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-user-prompt-closed">WebDriver BiDi user prompt closed</dfn></li>
46984698 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-user-prompt-opened">WebDriver BiDi user prompt opened</dfn></li>
46994699 <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-file-dialog-opened">WebDriver BiDi file dialog opened</dfn></li>
4700+ <li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-scripting-is-enabled">WebDriver BiDi scripting is enabled</dfn></li>
47004701 </ul>
47014702 </dd>
47024703
@@ -115945,6 +115946,9 @@ document.querySelector("button").addEventListener("click", bound);
115945115946 <span data-x="concept-document-window">associated <code>Document</code></span>'s <span>active
115946115947 sandboxing flag set</span> does not have its <span>sandboxed scripts browsing context flag</span>
115947115948 set.</li>
115949+
115950+ <li id="WebDriverBiDiScriptingIsEnabled">The result of <span>WebDriver BiDi scripting is
115951+ enabled</span> with <var>settings</var> is true.</li>
115948115952 </ul>
115949115953 </div>
115950115954
@@ -117186,8 +117190,15 @@ document.querySelector("button").addEventListener("click", bound);
117186117190 <p>To <dfn data-x="creating a classic script">create a classic script</dfn>, given a
117187117191 <span>string</span> <var>source</var>, an <span>environment settings object</span>
117188117192 <var>settings</var>, a <span>URL</span> <var>baseURL</var>, a <span>script fetch options</span>
117189- <var>options</var>, an optional boolean <var>mutedErrors</var> (default false), and an optional
117190- <span>URL</span>-or-null <var>sourceURLForWindowScripts</var> (default null):</p>
117193+ <var>options</var>, an optional boolean <var>mutedErrors</var> (default false), an optional
117194+ <span>URL</span>-or-null <var>sourceURLForWindowScripts</var> (default null) and an optional
117195+ boolean <var>bypassDisabledScripting</var> (default false):</p>
117196+
117197+ <p class="note">The <var>bypassDisabledScripting</var> parameter is intended to be used for
117198+ running scripts even if <span data-x="concept-environment-noscript">scripting is disabled</span>.
117199+ This is required for some automation scenarios, e.g. for WebDriver BiDi command <a
117200+ href="https://w3c.github.io/webdriver-bidi/#commands-scriptevaluate">"script.evaluate"</a>.
117201+ </p>
117191117202
117192117203 <ol>
117193117204 <li>
@@ -117201,7 +117212,8 @@ document.querySelector("button").addEventListener("click", bound);
117201117212 </li>
117202117213
117203117214 <li><p>If <span data-x="concept-environment-noscript">scripting is disabled</span> for
117204- <var>settings</var>, then set <var>source</var> to the empty string.</p></li>
117215+ <var>settings</var> and <var>bypassDisabledScripting</var> is false, then set
117216+ <var>source</var> to the empty string.</p></li>
117205117217
117206117218 <li><p>Let <var>script</var> be a new <span>classic script</span> that this algorithm will
117207117219 subsequently initialize.</p></li>
0 commit comments