Bug 1757847 [wpt PR 33036] - Update wpt metadata, a=testonly
[gecko.git] / testing / web-platform / tests / app-history / navigate / reload-base-url.html
blob936ad75c832a13b3aff1f05d21fbf7e9a8f2f728
1 <!doctype html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <iframe id="i" src="resources/page-with-base-url-common.html"></iframe>
5 <script>
6 async_test(t => {
7 window.onload = t.step_func(() => {
8 const startingURL = new URL(i.src);
9 i.contentWindow.navigation.reload();
10 i.onload = t.step_func_done(() => {
11 const iframeURL = new URL(i.contentWindow.navigation.currentEntry.url);
12 assert_equals(iframeURL.pathname, startingURL.pathname);
13 });
14 });
15 }, "reload() must ignore the AppHistory object's base URL");
16 </script>