Open Bug 1685359 Opened 18 days ago Updated 2 days ago

Fix failing DOM:Web Authentication tests with cross-origin

Categories

(Core :: DOM: Web Authentication, defect)

defect

Tracking

()

Fission Milestone M7

People

(Reporter: neha, Unassigned)

References

(Blocks 1 open bug)

Details

The following tests fail with cross-origin enabled AND Fission disabled (they pass for Fission AND xorigin enabled). This is very suspicious and most likely, the test (or the feature itself) needs to be fixed for cross-origin behavior. It's also possible that by design, these tests (and features) are not expected to work cross-origin, and if that's the case, it should be noted in the .ini file(s).

dom/webauthn/tests/test_webauthn_abort_signal.html
dom/webauthn/tests/test_webauthn_attestation_conveyance.html
dom/webauthn/tests/test_webauthn_authenticator_selection.html
dom/webauthn/tests/test_webauthn_authenticator_transports.html
dom/webauthn/tests/test_webauthn_get_assertion.html
dom/webauthn/tests/test_webauthn_make_credential.html
dom/webauthn/tests/test_webauthn_store_credential.html

These are tracked for Fission mochitests work at https://docs.google.com/spreadsheets/d/16G5AZhHWWow3rBgim4QBHzWXMIIJiky2SzXYgDMTTKY/edit?skip_itp2_check=true&pli=1#gid=1354562828&range=20:27

Summary: Fix failing DOM:Web Authentication tests with Fission → Fix failing DOM:Web Authentication tests with cross-origin

Tracking these test failures for Fission M7 Beta. We need to investigate whether why these tests fail for xorigin && !fission but pass for xorigin && fission. This is probably a test bug.

Fission Milestone: --- → M7

The current list of Web Authentication tests that fail in xorigin mode:

https://searchfox.org/mozilla-central/rev/d5e98892f9553f9113e69c585308008e681e19c9/dom/webauthn/tests/mochitest.ini#10-25,28-31

Some always fail in xorigin mode and some unexpectedly pass when Fission is enabled, which is not good either:

[test_webauthn_abort_signal.html]
fail-if = (xorigin && !fission)
[test_webauthn_attestation_conveyance.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_authenticator_selection.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_authenticator_transports.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_loopback.html]
skip-if = xorigin # Hangs, JavaScript error: https://example.org/tests/SimpleTest/SimpleTest.js, line 76: DataCloneError: The object could not be cloned.
[test_webauthn_no_token.html]
skip-if = xorigin # JavaScript error: https://example.org/tests/SimpleTest/SimpleTest.js, line 76: DataCloneError: The object could not be cloned.
[test_webauthn_make_credential.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_get_assertion.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_store_credential.html]
fail-if = (xorigin && !fission) # NotAllowedError
[test_webauthn_sameorigin.html]
fail-if = xorigin # NotAllowedError
You need to log in before you can comment on or make changes to this bug.