function isFirstParty(url) {
      const entityUrl = entityByUrl.get(url);
      return entityUrl === firstParty;
    }
Convenience function to check if a URL belongs to first party.
@param {string} url
@return {boolean}