summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/resources/create-popup.html
blob: a6cd81ec14fe909aac89a7b8b262059d328bd889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<script src="utils.js"></script>
<title>Nested frames in a Fenced Frame tree creating popups</title>
<script>
  // It is the document that `popup-noopener-inner.html` loads in a nested
  // iframe/fenced frame.
  // It's expected that the opener/openee references should be null, and
  // window.name should be the empty string.
  const [popup_noopener_key, popup_openee_key, popup_name_key] = parseKeylist();
  const src_popup = generateURL(`popup-noopener-destination.html`,
      [popup_noopener_key, popup_name_key]);
  const popup = window.open(src_popup, "foo");
  if (popup) {
    writeValueToServer(popup_openee_key, "FAIL");
  } else {
    writeValueToServer(popup_openee_key, "PASS");
  }
</script>