Open Bug 1511013 Opened 3 years ago Updated 1 year ago

[wpt-sync] Sync PR 14294 - [html] Add more protocol handlers tests

Categories

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

enhancement

Tracking

()

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Keywords: leave-open, Whiteboard: [wptsync downstream][stockwell disabled])

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

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

Wanming Lin <wanming.lin@intel.com> wrote:
>  [html] Add more protocol handlers tests
>  
>    - Imported and merged protocol handler tests from chromium(https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/web_tests/http/tests/navigatorcontentutils)
>    - Fixed bug that it should throw SecurityError with invaild schemes
>    - Did some code optimization
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 1 tests and 178 subtests
OK     : 1
PASS   : 88
FAIL   : 90

New tests that have failures or other problems:
/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html
    registerProtocolHandler: Invalid URL "http://example.com" should throw SYNTAX_ERR.: FAIL
    the unregisterProtocolHandler method should exist on the navigator object: FAIL
    unregisterProtocolHandler: Attempting to override the "about" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "attachment" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "blob" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "chrome" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "cid" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "data" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "file" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "ftp" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "http" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "http://" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "https" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "javascript" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "livescript" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "magnet:+" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mailto" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mailto
" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mailto:" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mailto://" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mailtoo" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mid" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mocha" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "mаilto" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "opera" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "operamail" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "res" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "resource" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "shttp" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "ssh:/" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "tcl" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "tel:sip" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "unrecognized" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "vbscript" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "view-source" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "web+" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "ws" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "wss" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Attempting to override the "wyciwyg" protocol should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "%S" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://%s.com" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://%s.example.com" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://[v8.:::]//url=%s" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://example.com" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://example.com/%s" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "http://foobar.example.com/%s" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "https://example.com/%s" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%a" should throw SYNTAX_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "mailto:%s" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Invalid URL "mailto:%s@example.com" should throw SECURITY_ERR.: FAIL
    unregisterProtocolHandler: Valid URL "%s" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html#%s" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%s" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%s/bar/baz/" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%s/bar/baz/?foo=1337&bar#baz" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html/%s/foo/%s/" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html?foo=%s" should work.: FAIL
    unregisterProtocolHandler: Valid URL "https://web-platform.test:8443/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.https.html?foo=%s&bar" should work.: FAIL
    unregisterProtocolHandler: overriding the "BitcoIn" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "Irc" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "MagneT" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "SmsTo" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "TEL" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "WTAI" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "WebCAL" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "bitcoin" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "geo" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "im" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "irc" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "ircs" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "magnet" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "mailto" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "mms" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "news" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "nntp" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "openpgp4fpr" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "sip" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "sms" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "smsto" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "ssh" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "teL" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "tel" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "urn" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "web+myprotocol" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "webcal" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "wtai" protocol should work: FAIL
    unregisterProtocolHandler: overriding the "xmpp" protocol should work: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/73a59b523e68
[wpt PR 14294] - [html] Add more protocol handlers tests, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/3b5a780e75de
[wpt PR 14294] - Update wpt metadata, a=testonly
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/466d0030af6d
[wpt PR 14294] - [html] Add more protocol handlers tests: update test expectations. r=jgraham-on-IRC
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4666c210aa93
[wpt PR 14294] - [html] Add more protocol handlers tests: properly escape brackets.
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/02c769f96a92
[wpt PR 14294] - Attempting to disable the test in order to green up the wpt. r=wpt-fix
[protocol.https.html] was disabled by the above comment so I'm setting this with disabled and leave-open tag
Keywords: leave-open
Whiteboard: [wptsync downstream] → [wptsync downstream][stockwell disabled]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.