Closed Bug 1921027 Opened 10 months ago Closed 10 months ago

[wpt-sync] Sync PR 48338 - [wpt] Fix `web-share/disabled...cross-origin...` when run with WebDriver

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 48338 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/48338
Details from upstream follow.

Jonathan Lee <jonathanjlee@google.com> wrote:

[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.

Bug: None
Change-Id: I34b159d13990c48ab9232267ae5e153e2a01187a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5889244
Auto-Submit: Jonathan Lee \<jonathanjlee@google.com>
Reviewed-by: Finnur Thorarinsson \<finnur@chromium.org>
Commit-Queue: Jonathan Lee \<jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1359968}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
FAIL: 6

Chrome

OK : 1
FAIL: 6

Safari

OK : 1
PASS: 6

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /web-share/disabled-by-permissions-policy-cross-origin.https.sub.html [wpt.fyi]
    • share() is disabled by default 'self' by permissions policy for cross-origin iframes: FAIL (Chrome: FAIL, Safari: PASS)
    • share() is disabled explicitly by permissions policy for cross-origin iframe: FAIL (Chrome: FAIL, Safari: PASS)
    • share() not allowed, as only allowed to share with self: FAIL (Chrome: FAIL, Safari: PASS)
    • canShare() not allowed to share by default permissions policy cross-origin: FAIL (Chrome: FAIL, Safari: PASS)
    • canShare() is allowed by permissions policy to share cross-origin on a particular origin: FAIL (Chrome: FAIL, Safari: PASS)
    • canShare() with self: FAIL (Chrome: FAIL, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba4da294eeba [wpt PR 48338] - [wpt] Fix `web-share/disabled...cross-origin...` when run with WebDriver, a=testonly https://hg.mozilla.org/integration/autoland/rev/e0c609eaf38f [wpt PR 48338] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.