Skip to content

Commit 19a7921

Browse files
lutienjgraham
authored andcommitted
Serialize a cookie before trying to match it to filter.
1 parent a0d50b0 commit 19a7921

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

index.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9551,7 +9551,10 @@ To <dfn>match cookie</dfn> given |stored cookie| and |filter|:
95519551
1. Let |field name| be the field name corresponding to the JSON key |name| in
95529552
the [=table for cookie conversion=].
95539553

9554-
1. If |stored cookie|[|field name|] does not equal |value|:
9554+
1. If |field name| is "<code>value</code>", set |store cookie value| to [=deserialize protocol bytes=] with |stored cookie|["value"],
9555+
Otherwise let |store cookie value| be |stored cookie|[|field name|].
9556+
9557+
1. If |store cookie value| does not equal |value|:
95559558

95569559
1. Return false.
95579560

@@ -9566,9 +9569,11 @@ To <dfn>get matching cookies</dfn> given |cookie store| and |filter|:
95669569

95679570
1. For each |stored cookie| in |cookie store|:
95689571

9569-
1. If [=match cookie=] with |stored cookie| and |filter| is true:
9572+
1. Let |serialized cookie| be the result of [=serialize cookie=] given |stored cookie|.
9573+
9574+
1. If [=match cookie=] with |serialized cookie| and |filter| is true:
95709575

9571-
1. Append the result of [=serialize cookie=] given |stored cookie| to |cookies|.
9576+
1. Append |serialized cookie| to |cookies|.
95729577

95739578
1. Return |cookies|.
95749579

0 commit comments

Comments
 (0)