tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

construct-in-detached-frame.window.js (493B)


      1 // This is a regression test for Chromium issue https://crbug.com/1427266.
      2 test(() => {
      3  const iframe = document.createElement('iframe');
      4  document.body.append(iframe);
      5  const otherRequest = iframe.contentWindow.Request;
      6  iframe.remove();
      7  const r1 = new otherRequest('resource', { method: 'POST', body: 'string' });
      8  const r2 = new otherRequest(r1);
      9  assert_true(r1.bodyUsed);
     10  assert_false(r2.bodyUsed);
     11 }, 'creating a request from another request in a detached realm should work');