Skip to content

Commit 02529ad

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Adds hasUAVisualTransition to PopStateEvent
PiperOrigin-RevId: 728405722
1 parent 86dbccd commit 02529ad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

externs/browser/html5.js

+10
Original file line numberDiff line numberDiff line change
@@ -3944,6 +3944,16 @@ PopStateEvent.prototype.state;
39443944
PopStateEvent.prototype.initPopStateEvent = function(
39453945
typeArg, canBubbleArg, cancelableArg, stateArg) {};
39463946

3947+
/**
3948+
* Returns true if the user agent performed a visual transition for this
3949+
* navigation before dispatching this event. iOS edge swipe back buttons are
3950+
* captured using this property.
3951+
* As of 2025-02-18, this is not fully supported by all Tier 1 browsers.
3952+
* See https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/hasUAVisualTransition
3953+
* @type {boolean}
3954+
*/
3955+
PopStateEvent.prototype.hasUAVisualTransition;
3956+
39473957
/**
39483958
* @see http://www.whatwg.org/specs/web-apps/current-work/#hashchangeevent
39493959
* @constructor

0 commit comments

Comments
 (0)