Skip to content

Commit fb9e9ee

Browse files
committed
Define cleanup of remote end state
1 parent d6213b3 commit fb9e9ee

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.bs

+16
Original file line numberDiff line numberDiff line change
@@ -1435,10 +1435,23 @@ To <dfn>cleanup the session</dfn> given |session|:
14351435

14361436
1. [=Close the WebSocket connections=] with |session|.
14371437

1438+
1. If [=active sessions=] is [=list/empty=], [=cleanup remote end state=].
1439+
14381440
1. Perform any implementation-specific cleanup steps.
14391441

14401442
</div>
14411443

1444+
<div algorithm>
1445+
To <dfn>cleanup remote end state</dfn>.
1446+
1447+
1. [=map/Clear=] the [=before request sent map=].
1448+
1449+
1. Set the [=default cache bypass=] to false.
1450+
1451+
1. [=set/Empty=] the [=navigable cache bypass set=].
1452+
1453+
</div>
1454+
14421455
<div algorithm>
14431456
To <dfn>update the event map</dfn>, given
14441457
|session|, |requested event names|, |browsing contexts|, and |enabled|:
@@ -2324,6 +2337,9 @@ BrowsingContextEvent = (
23242337
A [=remote end=] has a <dfn>device pixel ratio overrides</dfn> which is a weak map
23252338
between [=navigables=] and device pixel ratio overrides. It is initially empty.
23262339

2340+
Note: this map is not cleared when the final session ends i.e. device pixel
2341+
ratio overrides outlive any WebDriver session.
2342+
23272343
### Types ### {#module-browsingcontext-types}
23282344

23292345
#### The browsingContext.BrowsingContext Type #### {#type-browsingContext-Browsingcontext}

0 commit comments

Comments
 (0)