Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4697,6 +4697,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-user-prompt-closed">WebDriver BiDi user prompt closed</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-user-prompt-opened">WebDriver BiDi user prompt opened</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-file-dialog-opened">WebDriver BiDi file dialog opened</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/webdriver-bidi/#webdriver-bidi-scripting-is-enabled">WebDriver BiDi scripting is enabled</dfn></li>
</ul>
</dd>

Expand Down Expand Up @@ -115945,6 +115946,9 @@ document.querySelector("button").addEventListener("click", bound);
<span data-x="concept-document-window">associated <code>Document</code></span>'s <span>active
sandboxing flag set</span> does not have its <span>sandboxed scripts browsing context flag</span>
set.</li>

<li id="WebDriverBiDiScriptingIsEnabled">The result of <span>WebDriver BiDi scripting is
enabled</span> with <var>settings</var> is true.</li>
</ul>
</div>

Expand Down Expand Up @@ -117186,8 +117190,15 @@ document.querySelector("button").addEventListener("click", bound);
<p>To <dfn data-x="creating a classic script">create a classic script</dfn>, given a
<span>string</span> <var>source</var>, an <span>environment settings object</span>
<var>settings</var>, a <span>URL</span> <var>baseURL</var>, a <span>script fetch options</span>
<var>options</var>, an optional boolean <var>mutedErrors</var> (default false), and an optional
<span>URL</span>-or-null <var>sourceURLForWindowScripts</var> (default null):</p>
<var>options</var>, an optional boolean <var>mutedErrors</var> (default false), an optional
<span>URL</span>-or-null <var>sourceURLForWindowScripts</var> (default null) and an optional
boolean <var>bypassDisabledScripting</var> (default false):</p>

<p class="note">The <var>bypassDisabledScripting</var> parameter is intended to be used for
running scripts even if <span data-x="concept-environment-noscript">scripting is disabled</span>.
This is required for some automation scenarios, e.g. for WebDriver BiDi command <a
href="https://w3c.github.io/webdriver-bidi/#commands-scriptevaluate">"script.evaluate"</a>.
</p>

<ol>
<li>
Expand All @@ -117201,7 +117212,8 @@ document.querySelector("button").addEventListener("click", bound);
</li>

<li><p>If <span data-x="concept-environment-noscript">scripting is disabled</span> for
<var>settings</var>, then set <var>source</var> to the empty string.</p></li>
<var>settings</var> and <var>bypassDisabledScripting</var> is false, then set
<var>source</var> to the empty string.</p></li>

<li><p>Let <var>script</var> be a new <span>classic script</span> that this algorithm will
subsequently initialize.</p></li>
Expand Down