-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
A-constellationInvolves the constellationInvolves the constellationA-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-manual-testcaseC-has-patch
Description
a1.html
<script>
onpageshow = () => console.log('a1 pageshow! ' + location.href);
</script>
<a href="a2.html">a2</a>
<button onclick="history.forward()">forward</button>
<button onclick="history.back()">back</button>a2.html
<script>
onpageshow = () => console.log('a2 pageshow! ' + location.href);
</script>
<a href="a1.html">a1</a>
<button onclick="history.forward()">forward</button>
<button onclick="history.back()">back</button>./mach run http://localhost:8000/a1.html, then press the a2 link, then press back, then press forward.
Expected:
a1 pageshow http://localhost:8000/a1.html
a2 pageshow http://localhost:8000/a2html
a1 pageshow http://localhost:8000/a1.html
a2 pageshow http://localhost:8000/a2html
Actual:
a1 pageshow http://localhost:8000/a1.html
a2 pageshow http://localhost:8000/a2html
a1 pageshow http://localhost:8000/a1.html
Any further history traversals in any direction do not trigger pageshow events.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-constellationInvolves the constellationInvolves the constellationA-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentC-has-manual-testcaseC-has-patch