[wpt] Fix payment-extension-allowed-...
when run with WebDriver
When the browsing context that loads testharness.js is cross-origin with
the one that uses testdriver.js,
a. Both must include testdriver(-vendor).js
.
b. Before using test_driver
, the non-testharness context should
set_test_context()
so that actions are sent to the right window
0. The actions are currently dropped, causing a timeout 1.
Content shell happened to pass this test anyway because its testdriver
implementation hooks directly into the browser via internal JS bindings.
Bug: None
Change-Id: I38b7f97507e02f2c16769f7e8e66f83c9f8953f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5888751
Reviewed-by: Ari Chivukula arichiv@chromium.org
Commit-Queue: Jonathan Lee jonathanjlee@google.com
Cr-Commit-Position: refs/heads/main@{#1359666}