static getChromeExtensionOrigin(url) {
    const parsedUrl = new URL(url);
    return parsedUrl.protocol + '//' + parsedUrl.host;
  }
Returns the origin portion of a Chrome extension URL.
@param {string} url
@return {string}