fune/testing/web-platform/tests/navigation-api/navigation-history-entry/opaque-origin-data-url.html
Domenic Denicola 2ebec6c61b Bug 1760217 [wpt PR 33184] - App history API to navigation API rename (3/n), a=testonly
Automatic update from web-platform-tests
App history API to navigation API rename (3/n)

See https://github.com/WICG/navigation-api/issues/83 and https://github.com/WICG/navigation-api/pull/203 for context.

This CL is scoped mostly to the third_party/blink/renderer/core/app_history directory. That directory itself has been renamed from app_history to navigation_api. Its contents also follow the new naming. Notably, this includes changing all the IDL interface names and their backing classes, which has minor web-exposed implications.

Code outside of that directory is mostly updated due to the change from blink::AppHistory to blink::NavigationApi. References to app history still exist in Blink outside of that directory, as well as within Chromium at large; those will be tackled in a future CL.

This also finishes the process of updating the web platform tests, by both updating the actual test code for the interface renames, and updating various test descriptions and comments.

Bug: 1300246
Change-Id: I244e5fbb5d7977e8d61edae1e59d7bbfb6bdc75c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3522964
Reviewed-by: Nate Chapin <japhet@chromium.org>
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#981804}

--

wpt-commits: 3f00a909b6e15e281fe3dbbac376542465cc5232
wpt-pr: 33184
2022-03-26 21:57:21 +00:00

17 lines
666 B
HTML

<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id="i" src="/common/blank.html"></iframe>
<script>
async_test(t => {
window.onload = t.step_func(() => {
window.onmessage = t.step_func_done(e => {
assert_equals(e.data.length, 0);
assert_true(e.data.currentIsNull);
});
i.src = "data:text/html,<script>top.postMessage({ length: navigation.entries().length, " +
"currentIsNull: navigation.currentEntry === null}, '*')</sc" +
"ript>";
});
}, "entries() and currentEntry after navigation to a data: URL (which has an opaque origin)");
</script>