Bug 1661174 - restrict schemes supported by Web Share API r=edgar
commitd7901374c5d35a03d381cff94da1d5245d88ecf0
authorMarcos Cáceres <mcaceres@mozilla.com>
Wed, 2 Sep 2020 11:52:16 +0000 (2 11:52 +0000)
committerMarcos Cáceres <mcaceres@mozilla.com>
Wed, 2 Sep 2020 11:52:16 +0000 (2 11:52 +0000)
tree42f517b45f38369dadff98da6a1bd80851d63fc6
parentac142717cc067d875e83e4b1316f004f6e063a46
Bug 1661174 - restrict schemes supported by Web Share API r=edgar

Restrict to "loadable" URLs. Also exclude blob URLs.

Edgar,

This includes Marcos' fix.  Apparently I can push revisions without commandeering it, so the last few are mine alone.  What appears to have happened is that the fix bounced due to Windows builders not being configured to support sharing (I ran these locally and they pass).  Including these as expected failures on Windows seems to work (I ran this on try, and missed a test, as you can see from history).

Try run here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3ebecf71d5732d4dc0438f4d7b714f94b881353a (I since added wss to the expected failures).

Differential Revision: https://phabricator.services.mozilla.com/D88371
dom/base/Navigator.cpp
testing/web-platform/meta/web-share/share-url-invalid.https.html.ini
testing/web-platform/tests/web-share/share-url-invalid.https.html