pub fn same_site(site: &str, origin: &str) -> boolExpand description
Whether a login’s saved site names the page origin origin: the one comparison every matcher of a login to a page
uses (a form fill, an HTTP prompt, a share, a sign-up), so they cannot disagree. It compares origins, not strings:
scheme, host in any case and port (the scheme’s default when absent) must be the same; a trailing slash, a path, a
query or user information in either is ignored, and none of them widens a match to another host, port or scheme.