diff --git a/source b/source index 3a0d3fcc078..99b9f8e02f9 100644 --- a/source +++ b/source @@ -4697,6 +4697,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Document's active
sandboxing flag set does not have its sandboxed scripts browsing context flag
set.
+
+ 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". +
If scripting is disabled for - settings, then set source to the empty string.
Let script be a new classic script that this algorithm will subsequently initialize.