Two origins, A and B, are said to be same site if the following returns true:
- Let siteA be the result of obtaining a site from A.
- Let siteB be the result of obtaining a site from B.
- Return true if siteA equals siteB.
Two origins, A and B, are said to be schemelessly-same site if the following returns true:
- Let siteA be the result of obtaining a site from A.
- Let siteB be the result of obtaining a site from B.
- Return true if either siteA and siteB are both the same opaque origin, or siteA[1] equals siteB[1].