async function openTabWithUrlData(data, url_, windowName) {
  const url = new URL(url_);
  const gzip = Boolean(window.CompressionStream);
  url.hash = await TextEncoding.toBase64(JSON.stringify(data), {
    gzip,
  });
  if (gzip) url.searchParams.set('gzip', '1');
  window.open(url.toString(), windowName);
}
Opens a new tab to an external page and sends data via base64 encoded url params.
@param {{lhr: LH.Result} | LH.Treemap.Options} data
@param {string} url_
@param {string} windowName
@protected