Skip to content

Commit

Permalink
update RWO algo to support additional origins with the same label
Browse files Browse the repository at this point in the history
  • Loading branch information
timcappalli committed Jun 26, 2024
1 parent ebf03eb commit e4f24d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4130,9 +4130,10 @@ To validate the calling origin is an authorized related origin for a given cerem
1. Let |domain| be the [=effective domain=] of |url|. If that is null, [=continue=].
1. Remove any [=public suffix=] from the end of |domain|, including private registries and unknown registries. If |domain| is now empty, [=continue=].
1. Split |domain| into |labels| and let |label| be the right-most one.
1. If the [=set/size=] of |labelsSeen| is greater than or equal to |maxLabels| and |labelsSeen|does not [=contains|contain=] |label|, [=continue=].
1. If |callerOrigin| and |url| are [=same origin=], return [TRUE].
1. [=set/Append=] |label| to |labelsSeen|.
1. If the [=set/size=] of |labelsSeen| is greater than or equal to |maxLabels|, [=break=].
1. If |labelsSeen| [=contains=] |label|, [=continue=].
1. If the [=set/size=] of |labelsSeen| is less than |maxLabels|, [=set/Append=] |label| to |labelsSeen|.
1. Return [FALSE].

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

0 comments on commit e4f24d9

Please sign in to comment.