Skip to content

Commit

Permalink
Set the NavigationApi state object during commit, rather than after
Browse files Browse the repository at this point in the history
Spec: WICG/navigation-api#236

Bug: 1183545

Change-Id: I203419f45a3dfba1b4dab3dc2672146b2da92ce3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3688183
Commit-Queue: Nate Chapin <japhet@chromium.org>
Auto-Submit: Nate Chapin <japhet@chromium.org>
Reviewed-by: Domenic Denicola <domenic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1011166}
  • Loading branch information
natechapin authored and chromium-wpt-export-bot committed Jun 6, 2022
1 parent 30c171e commit 22b677b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
assert_equals(state2.statevar, "state");
assert_equals(state2.startvar2, "otherstate");

history.back();
navigation.back();
window.onpopstate = t.step_func_done(() => {
assert_equals(navigation.entries().length, 3);
let back_entry = navigation.currentEntry;
Expand Down

0 comments on commit 22b677b

Please sign in to comment.