forked from mirrors/gecko-dev
Bug 1882388 [wpt PR 44818] - view-transition: Fix bugs with pre-render integration., a=testonly
Automatic update from web-platform-tests view-transition: Fix bugs with pre-render integration. This change fixes the following issues for ViewTransition + pre-render: 1. Explicitly track when we're running commit deferring conditions for a pre-render. This is to allow using the tentative origin for same-origin checks. 2. If the pre-render is cancelled after running commit deferring conditions, disable ViewTransition for this navigation. Finally add an assert to ensure that if we're sending the ViewTransition state, the navigation *must* be same-origin. Fixed: 326265171 Change-Id: I8b0e901318426f3e696e9f43a14921e985fe1cca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5329047 Commit-Queue: Khushal Sagar <khushalsagar@chromium.org> Auto-Submit: Khushal Sagar <khushalsagar@chromium.org> Reviewed-by: David Bokan <bokan@chromium.org> Reviewed-by: Rakina Zata Amni <rakina@chromium.org> Cr-Commit-Position: refs/heads/main@{#1266420} -- wpt-commits: b207ae46e9a1e413f368b62b1b6db2579e811065 wpt-pr: 44818
This commit is contained in:
parent
9f83f36cde
commit
03df2dd19e
1 changed files with 1 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ function startPrerendering(url, rule_extras = {}) {
|
|||
script.text = JSON.stringify(
|
||||
{prerender: [{source: 'list', urls: [url], ...rule_extras}]});
|
||||
document.head.appendChild(script);
|
||||
return script;
|
||||
}
|
||||
|
||||
class PrerenderChannel extends EventTarget {
|
||||
|
|
|
|||
Loading…
Reference in a new issue