chromium/third_party/blink/web_tests/external/wpt/navigation-api/updateCurrentEntry-method/resources/opaque-origin-page.html

<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<!-- Put this page in a sandbox to give it an opaque origin -->

<script>
test(t => {
  assert_throws_dom("InvalidStateError", () => {
    navigation.updateCurrentEntry({ state: 1 });
  });
}, "navigation.updateCurrentEntry() in an opaque origin iframe");
</script>