Closed Bug 1667023 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 25755 - Web Share: restrict URL scheme to http and https

Categories

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

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

b'Eric Willigers <ericwilligers@chromium.org>' wrote:

Web Share: restrict URL scheme to http and https

We now follow the recent spec change limiting the permitted scheme
for shared urls to http and https - see
https://github.com/w3c/web-share/issues/173
https://github.com/w3c/web-share/pull/174
https://github.com/w3c/web-share/pull/177

We make an exception if the page performing the share it itself loaded
from a different scheme (e.g. file) - in that case we allow the same
scheme to be used for the shared url.

Bug: 1131755
Change-Id: I6abf0f9acd40ef79ec49379314e2ef3a81d3467e

Reviewed-on: https://chromium-review.googlesource.com/2425977
WPT-Export-Revision: 00601b33397c0e974ca88ca1a4b4aff5741549de

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

CI Results

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

Total 1 tests and 17 subtests

Status Summary

Firefox

OK : 1
FAIL: 17

Chrome

OK : 1
FAIL: 17

Safari

OK : 1
PASS: 16
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/web-share/canShare.tentative.https.html
canShare with no arguments (same as empty dictionary): FAIL (Chrome: FAIL, Safari: PASS)
canShare with an empty dictionary: FAIL (Chrome: FAIL, Safari: PASS)
canShare with a undefined argument (same as empty dictionary): FAIL (Chrome: FAIL, Safari: PASS)
canShare with a null argument (same as empty dictionary): FAIL (Chrome: FAIL, Safari: PASS)
canShare with a dictionary containing only surplus fields: FAIL (Chrome: FAIL, Safari: PASS)
canShare with an invalid URL: FAIL (Chrome: FAIL, Safari: PASS)
canShare with data URL: FAIL (Chrome: FAIL, Safari: FAIL)
canShare with attribute undefined is equivalent to omitting the attribute: FAIL (Chrome: FAIL, Safari: PASS)
canShare with title: FAIL (Chrome: FAIL, Safari: PASS)
canShare with text: FAIL (Chrome: FAIL, Safari: PASS)
canShare with URL: FAIL (Chrome: FAIL, Safari: PASS)
canShare with null attribute: FAIL (Chrome: FAIL, Safari: PASS)
canShare with number: FAIL (Chrome: FAIL, Safari: PASS)
canShare with object: FAIL (Chrome: FAIL, Safari: PASS)
canShare with unexpected field: FAIL (Chrome: FAIL, Safari: PASS)
canShare with empty URL: FAIL (Chrome: FAIL, Safari: PASS)
canShare with URL having no scheme: FAIL (Chrome: FAIL, Safari: PASS)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/527027b78337
[wpt PR 25755] - Web Share: restrict URL scheme to http and https, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.