summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/resources/automatic-beacon-unfenced-page.html
blob: 4ce7e0d78a5b2252ba58eeb8d20fd1eb1917b0ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>Page navigated to by an _unfencedTop navigation</title>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="utils.js"></script>
<script src="/common/get-host-info.sub.js"></script>

<body>
<script>
  promise_test(async(t) => {
    // This page is navigated to from an '_unfencedTop' navigation by
    // '../automatic-beacon-unfenced-top.https.html'. An automatic beacon will
    // have been sent as a result of the navigation.
    const beacon_data = "This is the beacon data!";
    const beacon_initiator_origin = await nextAutomaticBeacon(
        "reserved.top_navigation_commit", beacon_data);
    assert_equals(beacon_initiator_origin, get_host_info().HTTPS_ORIGIN);
  });
</script>
</body>