diff --git a/source b/source index 6a8ff6c9eab..976bc1dbe60 100644 --- a/source +++ b/source @@ -4698,6 +4698,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • WebDriver BiDi user prompt opened
  • WebDriver BiDi file dialog opened
  • WebDriver BiDi emulated language
  • +
  • WebDriver BiDi scripting is enabled
  • @@ -115946,6 +115947,9 @@ document.querySelector("button").addEventListener("click", bound); associated Document's active sandboxing flag set does not have its sandboxed scripts browsing context flag set. + +
  • The result of WebDriver BiDi scripting is + enabled with settings is true.
  • @@ -117183,12 +117187,27 @@ document.querySelector("button").addEventListener("click", bound);
    Creating scripts
    +

    This standard refers to the following concepts defined there:

    + + +

    To create a classic script, given a string source, an environment settings object settings, a URL baseURL, a script fetch options - options, an optional boolean mutedErrors (default false), and an optional - URL-or-null sourceURLForWindowScripts (default null):

    + options, an optional boolean mutedErrors (default false), an optional + URL-or-null sourceURLForWindowScripts (default null), and an optional + boolean bypassDisabledScripting (default false):

    + +

    The bypassDisabledScripting parameter is intended to be used for + running scripts even if scripting is disabled. + This is required for some automation scenarios, e.g., for WebDriver BiDi command "script.evaluate". +

    1. @@ -117202,7 +117221,8 @@ document.querySelector("button").addEventListener("click", bound);
    2. If scripting is disabled for - settings, then set source to the empty string.

    3. + settings and bypassDisabledScripting is false, then set + source to the empty string.

    4. Let script be a new classic script that this algorithm will subsequently initialize.