You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3029,8 +3029,12 @@ A <dfn>download behavior struct</dfn> is a [=struct=] with:
3029
3029
* [=struct/item=] named <dfn id="download-behavior-struct-allowed" for="download-behavior-struct">allowed</dfn> which is a boolean;
3030
3030
* [=struct/item=] named <dfn id="download-behavior-struct-destination-folder" for="download-behavior-struct">destinationFolder</dfn> which is a string or null.
3031
3031
3032
-
A [=remote end=] has a <dfn>download behavior map</dfn> which is a weak map between
3033
-
[=user contexts=] or "<code>global</code>" and [=download behavior struct=] or null.
3032
+
A [=remote end=] has a <dfn>download behavior</dfn> which is a [=struct=] with an [=struct/item=]
3033
+
named <dfn for="download behavior">default download behavior</dfn>, which is a
3034
+
[=download behavior struct=] or null, and an [=struct/item=] named <dfn
3035
+
for="download behavior">user context download behavior</dfn>, which is a weak map between
3036
+
[=user contexts=] and [=download behavior struct=].
3037
+
3034
3038
3035
3039
The <dfn export for=commands>browser.setDownloadBehavior</dfn> command returns a
3036
3040
list of [=client window=]s.
@@ -3079,13 +3083,11 @@ To <dfn export>get download behavior</dfn> given |navigable|:
3079
3083
3080
3084
1. Let |user context| be |navigable|'s [=associated user context=].
3081
3085
3082
-
1. If [=download behavior map=][=map/contains=] |user context|, return
3083
-
[=download behavior map=][|user context|].
3084
-
3085
-
1. If [=download behavior map=][=map/contains=] "<code>global</code>", return
3086
-
[=download behavior map=]["<code>global</code>"].
3086
+
1. If [=download behavior=]'s [=download behavior/user context download behavior=][=map/contains=]
0 commit comments