Skip to content

Commit ed19972

Browse files
committed
Run "Prepare to run script" to initialize the JS for screencast recording in the specification execution environment.
1 parent eae5706 commit ed19972

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.bs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5191,10 +5191,15 @@ The [=remote end steps=] with |command parameters| are:
51915191
1. If the implementation is unable to record a screencast of |navigable| for any
51925192
reason then return [=error=] with [=error code=] [=unsupported operation=].
51935193

5194+
1. Let |environment settings| be the [=environment settings object=] representing
5195+
a specification execution environment.
5196+
5197+
1. [=Prepare to run script=] with |environment settings|.
5198+
51945199
1. Let |promise| be the result of [=trying=] to [=capture a browsing context viewport=] with
51955200
|navigable| and |command parameters|["<code>streamOptions</code>"].
51965201

5197-
1. [=React=] to promise:
5202+
1. [=React=] to |promise|:
51985203

51995204
1. If |promise| was rejected, return [=error=] with [=error code=] [=unknown error=].
52005205

@@ -5235,6 +5240,8 @@ The [=remote end steps=] with |command parameters| are:
52355240

52365241
1. [=Call=]({{MediaRecorder/start}}, |media recorder|, |command parameters|["<code>timeslice</code>"]).
52375242

5243+
1. [=Clean up after running script=] with |environment settings|.
5244+
52385245
1. Set [=screencast recordings map=][|screencast|] to |recording|.
52395246

52405247
1. Return a new [=/map=] matching the <code>browsingContext.StartScreencastResult</code>

0 commit comments

Comments
 (0)