Import wpt@7da2733a353ab217838b02e9338d053bc6287582

Using wpt-import in Chromium 9fec0cb9a48e9d9268ebe65fb47f0f3e02575d79.
With Chromium commits locally applied on WPT:
ff4c2a0b44 "[webdriver] Add Get All/Named Cookie Command"
279fa6d966 "[bfcache] Do not reset notRestoredReasons upon successful bfcache navigation"
920765787f "[Fixit] Clean up redundant executor HTML files."
1703e84185 "Navigation rewrite: Add WPT for initiator origin in document state"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
jfernandez@igalia.com:
  external/wpt/css/css-align

NOAUTOREVERT=true
R=rubber-stamper@appspot.gserviceaccount.com

No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-input-fyi-rel,linux-blink-rel
Change-Id: I7d866402fd06661ed11f7f79883301f812121c91
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3943471
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1057250}
diff --git a/third_party/blink/web_tests/TestExpectations b/third_party/blink/web_tests/TestExpectations
index c8aa54a..28b45a7 100644
--- a/third_party/blink/web_tests/TestExpectations
+++ b/third_party/blink/web_tests/TestExpectations
@@ -152,7 +152,6 @@
 crbug.com/1339293 crbug.com/1347321 fast/frames/frame-scrolling-attribute.html [ Failure Pass ]
 crbug.com/1339293 [ Linux ] media/controls/rotated-video-has-right-panel-width.html [ Failure Pass ]
 crbug.com/1339293 [ Linux ] media/media-controls-overflow-hidden.html [ Failure Pass ]
-crbug.com/1339293 [ Linux ] external/wpt/html/semantics/scripting-1/the-script-element/execution-timing/029.html [ Failure Pass ]
 crbug.com/1351106 [ Linux ] fast/frames/invalid-cols-rows-value.html [ Failure Pass ]
 
 # ====== Timed HTML parser budget tests to here ========================
diff --git a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
index b7042a8..43ee3bb 100644
--- a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
+++ b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
@@ -72537,6 +72537,32 @@
         {}
        ]
       ],
+      "inline-table-inline-block-baseline-vert-rl.html": [
+       "c0a6e2f12cb3cb51368416f5e79bd305cfe6a8a2",
+       [
+        null,
+        [
+         [
+          "/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl-ref.html",
+          "=="
+         ]
+        ],
+        {}
+       ]
+      ],
+      "inline-table-inline-block-baseline.html": [
+       "be9acc58cd548ab75f036df5e11c2299122c76ac",
+       [
+        null,
+        [
+         [
+          "/css/css-align/baseline-rules/inline-table-inline-block-baseline-ref.html",
+          "=="
+         ]
+        ],
+        {}
+       ]
+      ],
       "synthesized-baseline-table-cell-001.html": [
        "a7119b8dc556a77a6ec2f133053c123f4a3a75f4",
        [
@@ -266616,6 +266642,14 @@
        "e6d2786c5ef471e56b76ae5042c07dc9d0e1c05f",
        []
       ],
+      "inline-table-inline-block-baseline-ref.html": [
+       "a255bee30f4c8006f4a689b5f7abb4aa00a5ba12",
+       []
+      ],
+      "inline-table-inline-block-baseline-vert-rl-ref.html": [
+       "37abf9d4af25d22f2cda05d59ddd03e9a69a3d0b",
+       []
+      ],
       "synthesized-baseline-table-cell-001-ref.html": [
        "a63d2c9d685292a7fb6f54b4fb380a246a0ff46a",
        []
@@ -345887,6 +345921,10 @@
       "b9a0ceefae22a7becb4552e0aadc7e9bfc24cd24",
       []
      ],
+     "HTMLScriptElement-internal-slot-support.js": [
+      "7d574a6a1387a9e7bdaaf596f46e9d616ca94988",
+      []
+     ],
      "WorkerGlobalScope-eval.https.js": [
       "be0a4300e1a69b3a0f846ed2c8d31826e5ac739c",
       []
@@ -458031,6 +458069,13 @@
          {}
         ]
        ],
+       "javascript-url-task-queuing.html": [
+        "1bb05bfb190d2e69576a13dcd8cbddd8f3903037",
+        [
+         null,
+         {}
+        ]
+       ],
        "multiple-globals": {
         "context-for-location-assign.html": [
          "cb2984d4093286fd44fd8ff85f039a1002ea4814",
@@ -497795,13 +497840,6 @@
           {}
          ]
         ],
-        "029.html": [
-         "33548e566ac67823f9c19af7785a13e394c4964b",
-         [
-          null,
-          {}
-         ]
-        ],
         "030.html": [
          "f01c257e0d1adddadacb8672a3546f7258ab4a69",
          [
@@ -559203,7 +559241,7 @@
      ]
     ],
     "HTMLElement-generic.tentative.html": [
-     "3ec6cfa60da6d86e6be2e3ce68ae227441e6c5bb",
+     "8e54fa9c570fa9ff15002f38460ebb8565311abf",
      [
       null,
       {}
@@ -559217,7 +559255,7 @@
      ]
     ],
     "HTMLScriptElement-internal-slot.tentative.html": [
-     "4f523bb4e4eec2c048d44b1beeab2a94b9e7bd31",
+     "3a4b905f462f3f19f8d22424e80d01ea1e702b58",
      [
       null,
       {}
diff --git a/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-ref.html b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-ref.html
new file mode 100644
index 0000000..a255bee3
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-ref.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<html>
+<title>CSS Box Alignment Test: inline-block and inline-table baselines</title>
+<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
+<link rel="help" href="https://www.w3.org/TR/css-align-3/#baseline-export">
+<style>
+.container {
+    border: solid 1px black;
+}
+.block {
+    display: inline-block;
+    background: aqua;
+}
+.table {
+    display: inline-table;
+    font-size: 40px;
+    background: tan;
+}
+.margin {
+    margin-block-start: 50px;
+}
+</style>
+<body>
+<div class="container">
+<div class="margin">
+    <div class="block">aaa</div>
+    <table class="table" cellspacing="0" cellpadding="0"><td>bbb</table>
+</div>
+</div>
+
+</body>
+</html>
diff --git a/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl-ref.html b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl-ref.html
new file mode 100644
index 0000000..37abf9d
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl-ref.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<html>
+<title>CSS Box Alignment Test: inline-block and inline-table baseline synthesis</title>
+<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
+<link rel="help" href="https://www.w3.org/TR/css-align-3/#baseline-export">
+<style>
+.container {
+    border: solid 1px black;
+    writing-mode: vertical-rl;
+}
+.block {
+    display: inline-block;
+    background: aqua;
+}
+.table {
+    display: inline-table;
+    font-size: 40px;
+    background: tan;
+}
+.margin {
+    margin-block-start: 50px;
+}
+</style>
+<body>
+<div class="container">
+<div class="margin">
+    <div class="block">aaa</div>
+    <table class="table" cellspacing="0" cellpadding="0"><td>bbb</table>
+</div>
+</div>
+</body>
+</html>
diff --git a/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl.html b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl.html
new file mode 100644
index 0000000..c0a6e2f1
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline-vert-rl.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<html>
+<title>CSS Box Alignment Test: inline-block and inline-table baseline synthesis</title>
+<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
+<link rel="help" href="https://www.w3.org/TR/css-align-3/#baseline-export">
+<link rel="match" href="inline-table-inline-block-baseline-vert-rl-ref.html">
+<style>
+.container {
+    border: solid 1px black;
+    writing-mode: vertical-rl;
+}
+.block {
+    display: inline-block;
+    background: aqua;
+}
+.table {
+    display: inline-table;
+    font-size: 40px;
+    background: tan;
+    margin-block-start: 50px;
+}
+</style>
+<body>
+<div class="container">
+    <div class="block">aaa</div>
+    <table class="table" cellspacing="0" cellpadding="0"><td>bbb</table>
+</div>
+</body>
+</html>
diff --git a/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline.html b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline.html
new file mode 100644
index 0000000..be9acc5
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/css-align/baseline-rules/inline-table-inline-block-baseline.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<html>
+<title>CSS Box Alignment Test: inline-block and inline-table baselines</title>
+<link rel="author" title="Sammy Gill" href="sammy.gill@apple.com">
+<link rel="help" href="https://www.w3.org/TR/css-align-3/#baseline-export">
+<link rel="match" href="inline-table-inline-block-baseline-ref.html">
+<style>
+.container {
+    border: solid 1px black;
+}
+.block {
+    display: inline-block;
+    background: aqua;
+}
+.table {
+    display: inline-table;
+    font-size: 40px;
+    background: tan;
+    margin-block-start: 50px;
+}
+</style>
+<body>
+<div class="container">
+    <div class="block">aaa</div>
+    <table class="table" cellspacing="0" cellpadding="0"><td>bbb</table>
+</div>
+</body>
+</html>
diff --git a/third_party/blink/web_tests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/javascript-url-task-queuing.html b/third_party/blink/web_tests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/javascript-url-task-queuing.html
new file mode 100644
index 0000000..1bb05bf
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/html/browsers/browsing-the-web/navigating-across-documents/javascript-url-task-queuing.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>javascript: URL task queuing</title>
+<link rel="help" href="https://github.com/whatwg/html/issues/3730">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<body>
+<script>
+"use strict";
+
+testIsAsync(() => {
+  const iframe = document.createElement("iframe");
+  document.body.append(iframe);
+  iframe.contentWindow.location.href = "javascript:window.top.javascriptURLRan = true; window.top.resolveTestPromise();";
+}, `Navigating an iframe via location.href to a javascript: URL must queue a task`);
+
+testIsAsync(() => {
+  const iframe = document.createElement("iframe");
+  iframe.src = "javascript:window.top.javascriptURLRan = true; window.top.resolveTestPromise();";
+  document.body.append(iframe);
+}, `Navigating an iframe via src="" to a javascript: URL before insertion must queue a task`);
+
+testIsAsync(() => {
+  const iframe = document.createElement("iframe");
+  document.body.append(iframe);
+  iframe.src = "javascript:window.top.javascriptURLRan = true; window.top.resolveTestPromise();";
+}, `Navigating an iframe via src="" to a javascript: URL after insertion must queue a task`);
+
+testIsAsync(() => {
+  const w = window.open();
+  w.location.href = "javascript:window.opener.javascriptURLRan = true; window.opener.resolveTestPromise();";
+}, `Navigating an opened window via location.href to a javascript: URL must queue a task`);
+
+testIsAsync(() => {
+  window.open("javascript:window.opener.javascriptURLRan = true; window.opener.resolveTestPromise();");
+}, `Navigating an opened window as part of creation to a javascript: URL must queue a task`);
+
+function testIsAsync(setupFunc, description) {
+  promise_test(async t => {
+    t.add_cleanup(() => {
+      delete window.resolveTestPromise;
+      delete window.javascriptURLRan;
+    });
+
+    const ranPromise = new Promise(resolve => {
+      window.resolveTestPromise = resolve;
+    });
+
+    setupFunc();
+
+    assert_equals(window.javascriptURLRan, undefined, "Must not run sync");
+
+    // Ensure that we do actually run the code, though.
+    await ranPromise;
+  }, description);
+}
+</script>
diff --git a/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/execution-timing/029.html b/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/execution-timing/029.html
deleted file mode 100644
index 33548e5..0000000
--- a/third_party/blink/web_tests/external/wpt/html/semantics/scripting-1/the-script-element/execution-timing/029.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html><head>
-        <title> scheduler: javascript: URL in HREF</title>
-        <script src="/resources/testharness.js"></script>
-        <script src="/resources/testharnessreport.js"></script>
-        <script src="testlib/testlib.js"></script>
-</head>
-<body>
-
-        <div id="log">FAILED (This TC requires JavaScript enabled)</div>
-        <p><a href="javascript:log('JS URL')"></a></p>
-        <script>log('inline script #1');
-                window.addEventListener("beforeunload", function( event ) {
-                        log('beforeunload event');
-                });
-                if(document.links[0].click){
-                        document.links[0].click();
-                }else{
-                        var evt = document.createEvent("MouseEvents");
-                        evt.initMouseEvent("click", true, true, window,
-                        0, 0, 0, 0, 0, false, false, false, false, 0, null);
-                        document.links[0].dispatchEvent(evt);
-                }
-                log('end script #1');
-        </script>
-
-        <script type="text/javascript">
-        log( 'inline script #2' );
-        var t = async_test()
-
-        function final_test() {
-                // The JS URL part is required to run in an additional task,
-                // altough that is not fully consistently implemented,
-                // see https://github.com/whatwg/html/issues/3730#issuecomment-492071447
-                assert_any(assert_array_equals, eventOrder, [
-                  ['inline script #1', 'end script #1', 'beforeunload event', 'inline script #2', 'JS URL'],
-                  ['inline script #1', 'end script #1', 'inline script #2', 'beforeunload event', 'JS URL']]);
-                t.done();
-        }
-
-        function test_on_load() {
-                // When the page loads, a task to run the navigate steps
-                // previously enqueued as part of following-hyperlinks,
-                // should have run, and have enqueued another task to execute the JS URL.
-                assert_any(assert_array_equals, eventOrder, [
-                  ['inline script #1', 'end script #1', 'beforeunload event', 'inline script #2'],
-                  ['inline script #1', 'end script #1', 'inline script #2', 'beforeunload event']]);
-                t.step_timeout(final_test, 1000)
-        }
-        onload = t.step_func(test_on_load);
-        </script>
-
-</body></html>