static elideSameOrigin(url, fromRelativeUrl) {
    if (url.origin !== fromRelativeUrl.origin) return url.toString();
    return url.toString().replace(fromRelativeUrl.origin, '');
  }
@param {URL} url
@param {URL} fromRelativeUrl