From a19eaaf167389a79c8971fbd25c557965541bdfd Mon Sep 17 00:00:00 2001 From: Jonathan Lee Date: Wed, 25 Sep 2024 09:14:18 -0700 Subject: [PATCH] [wpt] Fix `web-share/disabled...cross-origin...` when run with WebDriver Same fix as https://crrev.com/c/5888751: * The testharness.js context should also load `testdriver(-vendor).js`. * The child iframe should `set_test_context(parent)` to send its testdriver actions to the testharness context [0]. [0]: https://web-platform-tests.org/writing-tests/testdriver.html#using-test-driver-in-other-browsing-contexts Bug: None Change-Id: I34b159d13990c48ab9232267ae5e153e2a01187a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5889244 Auto-Submit: Jonathan Lee Reviewed-by: Finnur Thorarinsson Commit-Queue: Jonathan Lee Cr-Commit-Position: refs/heads/main@{#1359968} --- .../disabled-by-permissions-policy-cross-origin.https.sub.html | 2 ++ web-share/resources/post-message.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html b/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html index 773da84c0c5bdd..fe56502845c3c4 100644 --- a/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html +++ b/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html @@ -9,6 +9,8 @@ /> + +