Implement a method to disable HTTP/2 for individual sites

ASSIGNED
Assigned to

Status

Web Compatibility Tools
Go Faster
ASSIGNED
4 months ago
4 months ago

People

(Reporter: denschub, Assigned: denschub)

Tracking

(Blocks: 1 bug)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 months ago
Created attachment 8892913 [details] [diff] [review]
PoC of disabling HTTP/2 on demand for specific domains/urls

As a follow-up for bug 1385358, we want to have a mechanism for disabling http2 for individual sites/requests. Ideally, the rules would look similar to the ones we use for overriding UAs, so that maintenance is easy for everyone.

We do have a PoC at [0] (also attaching the patch to this bug since the link will not work forever), but this needs some more work:

* Tests are missing.
* There is no way to skip disabling http2 for testing purposes.
* The method of setting `allowSpdy` in that noficiation observer might actually be racy, since, in theory, it should also work with `http-on-modify-request`. We should do some investigation first to check that we don't create something that may break sometimes.
* The Necko people offered their help to get parts of this patch supported by some C++ source in Necko to make it faster, so we should ping them (possible :jduell) when we have something that's good with us to see how we can collaborate.

[0]: https://github.com/mozilla/webcompat-addon/compare/master...denschub:bug1385358-http2-disabler
Blocks: 1386807
You need to log in before you can comment on or make changes to this bug.