Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox support #166

Open
cBournhonesque opened this issue Apr 18, 2024 · 4 comments
Open

Firefox support #166

cBournhonesque opened this issue Apr 18, 2024 · 4 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@cBournhonesque
Copy link

Hi, I was wondering if there were any caveats/special handling that is needed for Firefox support.

I've had an issue where WebTransport connections get rejected on Firefox.
It doesn't seem to be certificate-related, since the exact same code/certificate works on google chrome.

@MOZGIII suggested that it might be on the server side.
I quote:

This is actually most likely the issue with the server-side
Firefox requires some special response from the server, I don't recall exactly - but please report this to wtransport

Maybe you have more information?

@MOZGIII
Copy link
Contributor

MOZGIII commented Apr 18, 2024

Context on why I think so:

if !user_agent.contains("firefox") {
response.add("sec-webtransport-http3-draft", "draft02");
}

Maybe latest FF needs something else...

@BiagioFesta
Copy link
Owner

I was able to connect with firefox 123.0.2 (linux) to wtransport/full.rs.

image

Of course, as already mentioned in the parent issue, Firefox does not support serverCertificateHashes yet. That means you will need a trusted certificate to make it work.


I understand OP says Google Chrome works with the same certificate, did they set the correct anchors on FF?

Would it be possible to have wtransport server logs?
For example, I'd expect something like

INFO Connection{id=0}: full::webtransport: Result: Err(connection aborted by peer: the cryptographic handshake failed: error 42)

@MOZGIII
Copy link
Contributor

MOZGIII commented Apr 20, 2024

Yes, on the second thought, this is most likely due to the lack of the trust to server certificate by FF. It works when set up properly without the serverCertificateHashes.

@MOZGIII
Copy link
Contributor

MOZGIII commented Apr 22, 2024

Actually, Firefox should support serverCertificateHashes - as they have had patches for it in 125a. For me it still doesn't work though...

See the meta bug at their tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=1709355

Here's the (second) fix for the serverCertificateHashes: https://bugzilla.mozilla.org/show_bug.cgi?id=1873263

Apparently the still didn't get it right

@BiagioFesta BiagioFesta added invalid This doesn't seem right question Further information is requested labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants