Skip to content

Commit 1627c90

Browse files
Closure Teamcopybara-github
authored andcommitted
Add new prerendering web API definitions.
PiperOrigin-RevId: 514438458
1 parent 6586c32 commit 1627c90

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

externs/browser/html5.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4655,6 +4655,12 @@ Document.prototype.fonts;
46554655
*/
46564656
Document.prototype.currentScript;
46574657

4658+
/**
4659+
* @see https://wicg.github.io/nav-speculation/prerendering.html#dom-document-prerendering
4660+
* @type {boolean}
4661+
*/
4662+
Document.prototype.prerendering;
4663+
46584664
/**
46594665
* Definition of ShadowRoot interface,
46604666
* @see http://www.w3.org/TR/shadow-dom/#api-shadow-root

externs/browser/w3c_navigation_timing.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ function PerformanceNavigationTiming() {}
122122
/** @type {number} */ PerformanceNavigationTiming.prototype.loadEventEnd;
123123
/** @type {NavigationType} */ PerformanceNavigationTiming.prototype.type;
124124
/** @type {number} */ PerformanceNavigationTiming.prototype.redirectCount;
125+
// https://wicg.github.io/nav-speculation/prerendering.html#performance-navigation-timing-extension
126+
/** @type {number} */ PerformanceNavigationTiming.prototype.activationStart;
125127

126128
/**
127129
* https://w3c.github.io/paint-timing/#sec-PerformancePaintTiming

0 commit comments

Comments
 (0)