Skip to content

Commit

Permalink
blink: Add a boolean to detect UA visual transitions on nav events.
Browse files Browse the repository at this point in the history
This implements whatwg/html#8782.

I2P: https://groups.google.com/a/chromium.org/g/blink-dev/c/UJMYZXoSQ4A/m/OkIvKVtlAAAJ

Change-Id: I171dff85faa86f47ee8678f412c8f13091b88214
  • Loading branch information
khushalsagar authored and chromium-wpt-export-bot committed Aug 4, 2023
1 parent 20bae55 commit 953e268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
assert_true(e instanceof PopStateEvent, "is PopStateEvent");
assert_false(e.bubbles, "bubbles");
assert_false(e.cancelable, "cancelable");
assert_not_equals(e.hasUAVisualTransition, undefined);

states.push(e.state);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
assert_equals(e.destination.index, 0);
assert_equals(e.formData, null);
assert_equals(e.info, "hi");
assert_not_equals(e.hasUAVisualTransition, undefined);
});
assert_true(navigation.canGoBack);
navigation.back({ info: "hi" });
Expand Down

0 comments on commit 953e268

Please sign in to comment.