github web-platform-tests/wpt merge_pr_48328

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
5 months ago

[wpt] Ignore testdriver messages in sandboxed_iframe.https.window.js

Fix two issues causing the test to fail spuriously upstream when run
with WebDriver 0:
a. testdriver.js uses regular postMessage()/onmessage to communicate
testdriver commands between the parent and child frames.
Unfortunately, until 1 is resolved, tests that use onmessage need
to be aware of this implementation detail and ignore the internal
messages.
b. The parent needs testdriver(-vendor).js too so that testdriver
commands from the child frame are correctly pumped out 2 to the
harness, which will send the WebDriver command.

Content shell currently passes the test because its testdriver is backed
by internal JS bindings that directly hook into the browser.

Bug: None
Change-Id: Iddb130f92c1877e389a46cb89a35c21bbfd1b625
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5888384
Reviewed-by: Jack Hsieh chengweih@chromium.org
Commit-Queue: Jonathan Lee jonathanjlee@google.com
Cr-Commit-Position: refs/heads/main@{#1359563}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.