Skip to content

Commit

Permalink
Add new prerendering web API definitions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 514438458
  • Loading branch information
Closure Team authored and copybara-github committed Mar 6, 2023
1 parent 6586c32 commit 1627c90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions externs/browser/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -4655,6 +4655,12 @@ Document.prototype.fonts;
*/
Document.prototype.currentScript;

/**
* @see https://wicg.github.io/nav-speculation/prerendering.html#dom-document-prerendering
* @type {boolean}
*/
Document.prototype.prerendering;

/**
* Definition of ShadowRoot interface,
* @see http://www.w3.org/TR/shadow-dom/#api-shadow-root
Expand Down
2 changes: 2 additions & 0 deletions externs/browser/w3c_navigation_timing.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ function PerformanceNavigationTiming() {}
/** @type {number} */ PerformanceNavigationTiming.prototype.loadEventEnd;
/** @type {NavigationType} */ PerformanceNavigationTiming.prototype.type;
/** @type {number} */ PerformanceNavigationTiming.prototype.redirectCount;
// https://wicg.github.io/nav-speculation/prerendering.html#performance-navigation-timing-extension
/** @type {number} */ PerformanceNavigationTiming.prototype.activationStart;

/**
* https://w3c.github.io/paint-timing/#sec-PerformancePaintTiming
Expand Down

0 comments on commit 1627c90

Please sign in to comment.