Skip to content

Commit e4f24d9

Browse files
committed
update RWO algo to support additional origins with the same label
1 parent ebf03eb commit e4f24d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4130,9 +4130,10 @@ To validate the calling origin is an authorized related origin for a given cerem
41304130
1. Let |domain| be the [=effective domain=] of |url|. If that is null, [=continue=].
41314131
1. Remove any [=public suffix=] from the end of |domain|, including private registries and unknown registries. If |domain| is now empty, [=continue=].
41324132
1. Split |domain| into |labels| and let |label| be the right-most one.
4133+
1. If the [=set/size=] of |labelsSeen| is greater than or equal to |maxLabels| and |labelsSeen|does not [=contains|contain=] |label|, [=continue=].
41334134
1. If |callerOrigin| and |url| are [=same origin=], return [TRUE].
4134-
1. [=set/Append=] |label| to |labelsSeen|.
4135-
1. If the [=set/size=] of |labelsSeen| is greater than or equal to |maxLabels|, [=break=].
4135+
1. If |labelsSeen| [=contains=] |label|, [=continue=].
4136+
1. If the [=set/size=] of |labelsSeen| is less than |maxLabels|, [=set/Append=] |label| to |labelsSeen|.
41364137
1. Return [FALSE].
41374138

41384139
# WebAuthn <dfn>Authenticator Model</dfn> # {#sctn-authenticator-model}

0 commit comments

Comments
 (0)