Граф коммитов

9559 Коммитов

Автор SHA1 Сообщение Дата
Cristian Tuns c6409d2d11 Merge mozilla-central to autoland on a CLOSED TREE 2022-02-22 06:42:59 -05:00
Cristian Tuns a224eb8387 Backed out changeset a04a58abafff (bug 1675054) for causing multiple regressions a=backout 2022-02-22 06:31:20 -05:00
Dragana Damjanovic ccd00cf1aa Bug 1754737 - We do not need to keep info about the use of a tunnel in the state. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D138890
2022-02-22 11:21:39 +00:00
Dragana Damjanovic 0248b17c59 Bug 1754737 - Add some structure to nsHttpConnection: r=necko-reviewers,kershaw
- nsHttpConnection now has states. Currently only proxy setup phase is added to the states.
- The states are used in nsHttpConnection::OnSocketWritable tto make the code more understandable.
- Some pieces of selfcontained code are extracted from nsHttpConnection::OnHeadersAvailable, i.e. HandleTunnelResponse and HandleWebSocketResponse

Differential Revision: https://phabricator.services.mozilla.com/D138714
2022-02-22 11:21:38 +00:00
Valentin Gosu b5b5de4192 Bug 1675054 - Enable brotli encoding for trustworthy URLs, not just for https r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D95855
2022-02-20 21:20:50 +00:00
Peter Van der Beken 61f7e59993 Bug 1747033 - "Back" does not work correctly for pages with multipart/x-mixed-replace and history.replaceState. r=smaug,necko-reviewers,valentin
multipart/x-mixed-replace loads don't start a new load for parts other than the first,
they just call OnStartRequest/OnStopRequest for every part. The nsDocShell code was
trying to set the active entry to the loading entry for these loads, but because we
never started a new load after the first part, the loading entry would be null and we'd
just clear the active entry. history.replaceState would then try to replace the active
entry, but finding none it would just add a new one.

Differential Revision: https://phabricator.services.mozilla.com/D138464
2022-02-19 08:30:35 +00:00
Kershaw Chang fc9473085a Bug 1754491 - Introduce new error code - NS_ERROR_WEBSOCKET_CONNECTION_REFUSED, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D138891
2022-02-18 14:02:15 +00:00
Randell Jesup 0769f54cb7 Bug 1756010: Clean up HttpChannelChild r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139050
2022-02-18 12:50:44 +00:00
Kershaw Chang 45a4bb9143 Bug 1753703 - P2: Move HttpActivityDistributor to nsHttpHandler, r=necko-reviewers,dragana
Since both DnsAndConnectSocket and nsHttpTransaction use HttpActivityDistributor, let's refactor this a bit by moving some duplicate code to nsHttpHandler.
This patch also makes it possible to test ECH activity for Http3 case.

Differential Revision: https://phabricator.services.mozilla.com/D138893
2022-02-18 09:30:18 +00:00
Emilio Cobos Álvarez 685321b746 Bug 1755947 - Simplify nsIPrincipal.isSameOrigin(). r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D139030
2022-02-17 18:11:58 +00:00
Cristian Tuns 5b29184ccd Backed out 2 changesets (bug 1753703) for causing Bp-hybrid bustages on Http3Session.cpp CLOSED TREE
Backed out changeset 192cda8fb4dd (bug 1753703)
Backed out changeset 1c1324708e2c (bug 1753703)
2022-02-17 12:13:47 -05:00
Kershaw Chang 411a33e643 Bug 1753703 - P2: Move HttpActivityDistributor to nsHttpHandler, r=necko-reviewers,dragana
Since both DnsAndConnectSocket and nsHttpTransaction use HttpActivityDistributor, let's refactor this a bit by moving some duplicate code to nsHttpHandler.
This patch also makes it possible to test ECH activity for Http3 case.

Depends on D138892

Differential Revision: https://phabricator.services.mozilla.com/D138893
2022-02-17 13:28:18 +00:00
Cristian Tuns 3419e72275 Backed out 4 changesets (bug 1600309) for causing networking crashes CLOSED TREE
Backed out changeset ae7282e60012 (bug 1600309)
Backed out changeset 0d8b02a8db17 (bug 1600309)
Backed out changeset c7262d966a28 (bug 1600309)
Backed out changeset e5503a84beea (bug 1600309)
2022-02-12 05:00:04 -05:00
Marian-Vasile Laza 6730dca994 Bug 1749786 - lint fix r=fix CLOSED TREE 2022-02-11 19:41:54 +02:00
Randell Jesup 84be70e93b Bug 1749786 - websocketchannel cleanup r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135727
2022-02-11 17:14:07 +00:00
Kershaw Chang 769849b41a Bug 1600309 - P2: Don't use socket porcess when it crashes too many times, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D134904
2022-02-11 10:55:53 +00:00
Kershaw Chang 65317775b5 Bug 1600309 - P1: Restart socket proces after crash, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D134903
2022-02-11 10:55:53 +00:00
Nika Layzell dabb46c84d Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8
The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
2022-02-09 17:29:47 +00:00
Nika Layzell 91ec85c593 Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use {Parent,Child}Impl attributes, r=ipc-reviewers,media-playback-reviewers,alwu,mccr8
This is a mechanical change which was performed by a script based on the
contents of direct_call.py, and then manually checked over to fix
various rewriting bugs caused by my glorified sed script. See the
previous part for more context on the change.

Differential Revision: https://phabricator.services.mozilla.com/D137227
2022-02-09 17:29:46 +00:00
Kershaw Chang 3d0ac481f0 Bug 1753440 - Ensure mTargetThread is locked, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D138003
2022-02-09 08:43:14 +00:00
Chris Peterson a0c975962b Bug 1753805 - Add pref for enterprise users to override the User-Agent string's Firefox version. r=necko-reviewers,valentin
Firefox version 100 will ship on 2022-05-03. The Webcompat team can use Firefox's site interventions to spoof a version 99 UA for individual sites broken by a three-digit version number. But Firefox’s site interventions can’t override the UA for enterprise intranet sites we don't know about.

This patch adds a new "network.http.useragent.forceVersion" pref that enterprise admins can set to a known-good UA version (like 99) in an enterprise policy file. If the pref has a non-zero value, then override the User-Agent string's Firefox version. The value 0 means use the default Firefox version.

We can remove this pref in Firefox 103 after the next ESR is branched (version 102 on 2022-06-28). Enterprise users can use ESR 102 with forceVersion pref = 99 until the next ESR in mid-2023. Hopefully they can fix their broken intranet sites by that time.

Differential Revision: https://phabricator.services.mozilla.com/D137929
2022-02-08 05:03:10 +00:00
Kershaw Chang 7578361b62 Bug 1750413 - Make it possible to test DnsAndConnectSocket, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D137266
2022-02-04 12:11:45 +00:00
Kershaw Chang 382ed5aa31 Bug 1750413 - Make speculative connection use ech, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D137140
2022-02-04 12:11:44 +00:00
Kershaw Chang 38dd45cdd7 Bug 1750413 - Give http3 and http2 more priority when selecting alpn, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D137139
2022-02-04 12:11:44 +00:00
Manuel Bucher 09804348ad Bug 1730852 - Fix classOfService information being lost when redirecting to InterceptedHttpChannel r=necko-reviewers,valentin
`nsCOMPtr<nsIClassOfService> cos(do_QueryInterface(newChannel));`[1] was
previously returning a nullptr for objects of the class InterceptedHttpChannel.
Therefore the classOfService flags weren't set after the redirect to the
InterceptedChannel[2].

[1]: https://searchfox.org/mozilla-central/rev/66e59131c1c76fe486424dc37f0a8a399ca874d4/netwerk/protocol/http/HttpBaseChannel.cpp#4186
[2]: https://searchfox.org/mozilla-central/rev/66e59131c1c76fe486424dc37f0a8a399ca874d4/netwerk/protocol/http/nsHttpChannel.cpp#714

Differential Revision: https://phabricator.services.mozilla.com/D137175
2022-02-02 09:06:47 +00:00
Dragana Damjanovic 85327ac928 Bug 1751170 - Rename http3.enabled pref r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D137192
2022-02-01 12:04:40 +00:00
Kershaw Chang f73fac8381 Bug 1752100 - Make sure nsWSAdmissionManager::ConnectNext is called on main thread, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D137267
2022-01-31 11:11:53 +00:00
Chris Peterson ee7c342835 Bug 1748798 - Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
Monitor Firefox 100 experiment enrollment in the parent process. If the user gets enrolled in the experiment, the parent process will set the forceVersion100 pref in other processes. The forceVersion100 pref can also be set by the "Firefox 100" option in the Nightly Experiments settings.

Chrome has a similar chrome://flags/#force-major-version-to-100 flag for testing a Chrome 100 UA.

Differential Revision: https://phabricator.services.mozilla.com/D135315
2022-01-30 00:38:31 +00:00
Cristian Tuns abf42b1167 Backed out 2 changesets (bug 1748798) for causing mochitest failures on browser_navigator.js CLOSED TREE
Backed out changeset 15922d565b29 (bug 1748798)
Backed out changeset 4a90f3296ec3 (bug 1748798)
2022-01-28 05:29:38 -05:00
Chris Peterson 717e9cba2b Bug 1748798 - Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
Monitor Firefox 100 experiment enrollment in the parent process. If the user gets enrolled in the experiment, the parent process will set the forceVersion100 pref in other processes. The forceVersion100 pref can also be set by the "Firefox 100" option in the Nightly Experiments settings.

Chrome has a similar chrome://flags/#force-major-version-to-100 flag for testing a Chrome 100 UA.

Differential Revision: https://phabricator.services.mozilla.com/D135315
2022-01-28 08:02:02 +00:00
Chris Peterson e9aaeb0ede Bug 1748798 - Hard code experiment version 100 and add Android UA. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D136704
2022-01-28 08:01:41 +00:00
Dragana Damjanovic 8050c41154 Bug 1750587 - Make sure that Content-Length header contains the correct number of bytes that will be sent using Http/3. r=necko-reviewers,valentin
The patch adds a diagnostic assertion into Http3SStream code.

Differential Revision: https://phabricator.services.mozilla.com/D136217
2022-01-27 15:11:53 +00:00
Dragana Damjanovic 3591301920 Bug 1740689 - Rename EarlyHintsPreloader into EarlyHintsService r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D134409
2022-01-27 12:23:03 +00:00
Marian-Vasile Laza de6784986f Backed out 3 changesets (bug 1748798) for causing bc test failures on browser_navigator.js. a=backout
Backed out changeset 98b4a50ae8a2 (bug 1748798)
Backed out changeset 509c128c5d15 (bug 1748798)
Backed out changeset b95bd8f3f5d4 (bug 1748798)
2022-01-27 15:09:03 +02:00
Chris Peterson 6eafb4aa46 Bug 1748798 - Add 'forceVersion100' pref to make user testing of Firefox 100 UA string easier. r=preferences-reviewers,necko-reviewers,Gijs,valentin
Monitor Firefox 100 experiment enrollment in the parent process. If the user gets enrolled in the experiment, the parent process will set the forceVersion100 pref in other processes. The forceVersion100 pref can also be set by the "Firefox 100" option in the Nightly Experiments settings.

Chrome has a similar chrome://flags/#force-major-version-to-100 flag for testing a Chrome 100 UA.

Differential Revision: https://phabricator.services.mozilla.com/D135315
2022-01-27 06:03:24 +00:00
Chris Peterson b961228463 Bug 1748798 - Hard code experiment version 100 and add Android UA. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D136704
2022-01-27 06:03:10 +00:00
Julien Wajsberg e1f9445a89 Bug 1639716 - [profiler, network markers] Add information about private browsing in network markers r=valentin,gerald,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129819
2022-01-26 17:26:24 +00:00
Nika Layzell 09d88e5fd2 Bug 1749059 - Remove Quantum DOM support from IPDL, r=ipc-reviewers,mccr8
This is no longer necessary as the Quantum DOM project is no longer
happening, and removing support simplifies various components inside of
IPDL.

As some code used the support to get a `nsISerialEventTarget` for an
actor's worker thread, that method was replaced with a method which
instead pulls the nsISerialEventTarget from the MessageChannel and
should work on all actors.

Differential Revision: https://phabricator.services.mozilla.com/D135411
2022-01-25 20:29:46 +00:00
Dragana Damjanovic c23217aa80 Bug 1750587 - Use a different way to determine the end of the upload stream. r=necko-reviewers,valentin
This is similar to the nsHttpConnection approach.

Differential Revision: https://phabricator.services.mozilla.com/D136156
2022-01-21 10:48:36 +00:00
Kershaw Chang dc14e099c8 Bug 1750688 - Use a lock to protect WebSocketChannel::mCancelable, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D136208
2022-01-21 04:19:12 +00:00
Manuel Bucher 7e49e3bacf Bug 1750165 - Remove unused InterceptedChannelBase class r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D136467
2022-01-20 11:59:49 +00:00
Dana Keeler b543bb3a2a Bug 1750089 - remove weak certificate signature error console message r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135943
2022-01-19 21:24:47 +00:00
Dragana Damjanovic 009ebf8f04 Bug 1750211 - Return an error in unexpected state. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D136005
2022-01-19 16:29:39 +00:00
Iulian Moraru d8fce573b5 Backed out 2 changesets (bug 1750089) for causing mochitest failures on browser_webconsole_certificate_messages.js.
Backed out changeset 7ebb345a9293 (bug 1750089)
Backed out changeset 40bd1975208d (bug 1750089)
2022-01-19 04:07:44 +02:00
Dana Keeler e8ae7a370c Bug 1750089 - remove weak certificate signature error console message r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135943
2022-01-18 23:54:12 +00:00
Kershaw Chang d5e510bc94 Bug 1733724 - Skip HTTPS RR check for subrource loads from non https load, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D136123
2022-01-18 06:38:47 +00:00
Valentin Gosu b99ed5a027 Bug 1735595 - Do not cache 408 responses r=necko-reviewers,kershaw
Facebook responds with 408 when a HTTP/3 connection has been idle for too
long. This is problematic since there are no caching headers added to the
response and it causes application errors if the response is loaded from
the cache.

Differential Revision: https://phabricator.services.mozilla.com/D136116
2022-01-17 15:24:56 +00:00
Emilio Cobos Álvarez 3c6daa4dca Bug 1749957 - Fix parsing of content-length http3 header. r=dragana,necko-reviewers,kershaw
HTTP headers are case insensitive.

Differential Revision: https://phabricator.services.mozilla.com/D135871
2022-01-13 18:04:17 +00:00
Manuel Bucher 9706eeb9cc Bug 1749437 - Fix spelling of priorization r=necko-reviewers,kershaw
Change spelling in both network.http.http3.priorization and
network.http.http3.send_background_tabs_deprioritization config option

Differential Revision: https://phabricator.services.mozilla.com/D135689
2022-01-13 08:30:42 +00:00
Randell Jesup 1b7409dffb Bug 1749214: nsHttpConnectionMgr cleanup r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135459
2022-01-12 14:01:28 +00:00
criss 910b8a876f Backed out changeset fac26885b741 (bug 1749214) for causing build bustages on nsHttpConnectionMgr. CLOSED TREE 2022-01-12 15:15:50 +02:00
Randell Jesup 78fb39305d Bug 1749214: nsHttpConnectionMgr cleanup r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135459
2022-01-12 12:49:11 +00:00
Manuel Bucher 39e3f10ce8 Bug 1738150 - clear preflight cache between private mode sessions r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D133196
2022-01-06 12:05:46 +00:00
Kershaw Chang 9e17b3c244 Bug 1746637 - Don't StartSpdy until a transaction is available, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D134463
2022-01-04 01:22:22 +00:00
Eden Chuang 8903e1520e Bug 1747445 - Do not record time stamps for InterceptedHttpChannel if AsyncOpen() is never called. r=dom-worker-reviewers,smaug
It  is an edge case that InterceptedHttpChannel::Cancel() could be called before calling AsyncOpenInternal().
In the case, mTimeStamp status would be Created and we should not record any time stamp for InterceptedHttpChannel.

Differential Revision: https://phabricator.services.mozilla.com/D134775
2021-12-30 05:54:39 +00:00
Mike Hommey fce6eb7d83 Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-23 20:29:07 +00:00
Shane Caraveo 83c1783d55 Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-12-23 18:48:09 +00:00
Butkovits Atila 408d492613 Backed out 2 changesets (bug 1733481, bug 1738345) for causing failures at test_remote_settings_utils_telemetry.js. CLOSED TREE
Backed out changeset 48dc0b288686 (bug 1738345)
Backed out changeset a23df06197e1 (bug 1733481)
2021-12-23 20:29:41 +02:00
Shane Caraveo 2bc8c36515 Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-12-23 17:32:53 +00:00
Cristian Tuns e1e31e01f2 Backed out 2 changesets (bug 1747165) for causing nightly blockers(bustages) a=backout
Backed out changeset 4b1ab0915c94 (bug 1747165)
Backed out changeset 96043d814772 (bug 1747165)
2021-12-23 08:00:54 -05:00
Mike Hommey b55194a16f Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-22 23:56:24 +00:00
Nihanth Subramanya 76bc98ae3c Bug 1745870 - Increment networking_trr_connection_cycle_count as a keyed scalar. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D134410
2021-12-22 14:12:25 +00:00
Kershaw Chang abe78f498d Bug 1734609 - Remove the diagnostic check to avoid crashing, r=necko-reviewers,dragana
We've already had enough information to analysis, so remove this check.

Differential Revision: https://phabricator.services.mozilla.com/D134165
2021-12-22 00:08:37 +00:00
Marco Bonardo eb4556e469 Bug 1742558 - Add a Places Previews module. r=Standard8
Add a PlacesPReviews.jsm module that offers an alternative long term storage of
thumbnails or images. Previews are stored using md5 hash of the page url, in WebP format.
Removals happen using the moz_previews_tombstones table, orphans removal happens
on Places weekly maintenance.
The same moz-page-thumb: protocol that is currently used for volatile thumbnails,
can be used with Places previews, by using "places-previews" as host.
All the feature is behind the places.previews.enabled pref, not enabled yet.

Differential Revision: https://phabricator.services.mozilla.com/D131916
2021-12-21 10:53:45 +00:00
Sandor Molnar c397865a11 Backed out 2 changesets (bug 1742558) for causing build bustages in PageThumbProtocolHandler.
Backed out changeset 7fa69b62b226 (bug 1742558)
Backed out changeset 22241a8445f9 (bug 1742558)
2021-12-20 17:38:16 +02:00
Marco Bonardo 7a7e49b72a Bug 1742558 - Add a Places Previews module. r=Standard8
Add a PlacesPReviews.jsm module that offers an alternative long term storage of
thumbnails or images. Previews are stored using md5 hash of the page url, in WebP format.
Removals happen using the moz_previews_tombstones table, orphans removal happens
on Places weekly maintenance.
The same moz-page-thumb: protocol that is currently used for volatile thumbnails,
can be used with Places previews, by using "places-previews" as host.
All the feature is behind the places.previews.enabled pref, not enabled yet.

Differential Revision: https://phabricator.services.mozilla.com/D131916
2021-12-20 15:15:55 +00:00
Patrick ab5ce94360 Bug 1743102 Added color-scheme meta tag to remaining about: pages r=Gijs,necko-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D133743
2021-12-17 00:42:23 +00:00
Butkovits Atila c408716df0 Backed out changeset f2f23757c34f (bug 1743102) for causing node failures. CLOSED TREE 2021-12-16 19:23:43 +02:00
Patrick 7aeecb4714 Bug 1743102 Added color-scheme meta tag to remaining about: pages r=Gijs,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133743
2021-12-16 16:30:30 +00:00
Dragana Damjanovic b1a6c7853b Bug 1743630 - Add EarlyHints telemetry r=necko-reviewers,valentin
EH_TIME_TO_FINAL_RESPONSE - This will collect time duration between receiving a 103 response and the final response. This is only collected for 2xx response and only if at least one 103 has been received.
EH_NUM_OF_HINTS_PER_PAGE - number of 103 responses received for a page load. 0 will mean that a page has not received a 103 response. This is only collected for 2xx response.
EH_FINAL_RESPONSE - whether the final response was 2xx or any other code. This is only collected if at least one 103 has been received.

The change also introduced the class EarlyHintsPreloader that will be extended to perform all EarlyHints tasks.

Differential Revision: https://phabricator.services.mozilla.com/D132556
2021-12-15 22:41:17 +00:00
Dragana Damjanovic 6e83386ee0 Bug 1741423 - Propagate 1xx response from HTTP/3 layer. r=nhnt11
The Http3Stream’s received side has one state, i.e. READING_INTERIM_HEADERS. The stream transitions into this state when 1xx response is received and it transitions back to BEFORE_HEADERS  as new headers are expected. As with the final headers the 1xx headers are stored into mFlatResponseHeaders and they are picked up by the HttpTransaction from there.

neqo makes sure that response headers and data are received in the right order, e.g. 1xx cannot be received after a non-1xx response, fin cannot follow 1xx response, etc.

Differential Revision: https://phabricator.services.mozilla.com/D132831
2021-12-15 09:18:17 +00:00
Horst fd10e741c8 Bug 1503350 - fix compile error when using --disable-negotiateauth r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D107131
2021-12-15 01:13:11 +00:00
Norisz Fay 947ce3f0b7 Backed out changeset 8c24d308cf66 (bug 1743630) for causing mochitest failures on browser_103_telemetry.js 2021-12-14 13:19:57 +02:00
Dragana Damjanovic c12524e1f7 Bug 1743630 - Add EarlyHints telemetry r=necko-reviewers,valentin
EH_TIME_TO_FINAL_RESPONSE - This will collect time duration between receiving a 103 response and the final response. This is only collected for 2xx response and only if at least one 103 has been received.
EH_NUM_OF_HINTS_PER_PAGE - number of 103 responses received for a page load. 0 will mean that a page has not received a 103 response. This is only collected for 2xx response.
EH_FINAL_RESPONSE - whether the final response was 2xx or any other code. This is only collected if at least one 103 has been received.

The change also introduced the class EarlyHintsPreloader that will be extended to perform all EarlyHints tasks.

Differential Revision: https://phabricator.services.mozilla.com/D132556
2021-12-14 10:03:54 +00:00
Nika Layzell 7b2e6d4996 Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D131422
2021-12-13 21:47:56 +00:00
Ryan VanderMeulen 6207bc5c67 Backed out changeset 56ae8059453e (bug 1738984) to see if it fixes bug 1745043. a=me 2021-12-13 14:52:08 -05:00
Ryan VanderMeulen 4350026566 Backed out changeset 256af2be176e (bug 1744940) because the patch it depends on is being backed out. 2021-12-13 14:51:49 -05:00
Kershaw Chang 4d69d5fbbf Bug 1745046 - Use OpaqueResponseBlockedReason to decide whether to send data for sniffinf, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D133278
2021-12-10 15:31:08 +00:00
Valentin Gosu b984c37dc7 Bug 1744940 - Prevent leak when nsHttpHandler::NewProxiedChannel is called during shutdown r=necko-reviewers,kershaw
In 1738984 we added this early return when the method is called during
shutdown to prevent NSS from being initialized and to fail things
as early as possible.
However, this check belongs at the top of the method, not after the
allocation.

Differential Revision: https://phabricator.services.mozilla.com/D133335
2021-12-09 10:54:19 +00:00
Valentin Gosu 2b555ca6ac Bug 1738984 - Prevent NSS initialization and channel creation during shutdown r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D133065
2021-12-07 22:52:20 +00:00
Valentin Gosu 5e575d631e Bug 1742334 - Make sure to null out ChannelEventQueue::mOwner when object is released r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D131896
2021-12-07 21:32:03 +00:00
Kershaw Chang 1f071598fd Bug 1740274 - Avoid accessing Http2Session through raw pointer, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D132684
2021-12-07 19:45:15 +00:00
Nika Layzell 4dbe2d8fe1 Bug 1740303 - Remove unnecessary mChildProcessId fields, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132994
2021-12-07 18:20:35 +00:00
Kershaw Chang f36e9a10dc Bug 1734573 - Add a new activity type to report proxy response header, r=necko-reviewers,valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D127824
2021-12-07 11:45:38 +00:00
Valentin Gosu 01b728719b Bug 650091 - Sort authentication challenges by safety rating r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D132499
2021-12-07 11:30:50 +00:00
Dragana Damjanovic 06c90cba6d Bug 1743378 - Adapt mozilla-central to the new neqo API r=necko-reviewers,kershaw
Most important changes:
 - Neqo API now only use StreamId instead of u64 for the stream  ids
 - The server side API has send_headers, send_data and stream_close_send  instead of a single set_response. Important change is also that send_data does not accept more data than the flow control allows. Set_response used to accept all data unconditionally. Therefore now we need to listen to DataWritable events.

Differential Revision: https://phabricator.services.mozilla.com/D132594
2021-12-03 13:13:09 +00:00
Randell Jesup 08f296ee63 Bug 1743895: Add names to all TaskQueues, remove no-name constructor r=nika,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132638
2021-12-03 03:16:15 +00:00
criss 3c9369510c Backed out changeset 766458123a64 (bug 1743630) for causing mochitest failures on browser_103_telemetry.js. CLOSED TREE 2021-12-02 18:05:19 +02:00
Nihanth Subramanya 61eae307cd Bug 1737198 - Part 4: Add telemetry probes. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132109
2021-12-02 13:21:54 +00:00
Nihanth Subramanya 232120db57 Bug 1737198 - Part 1: Cycle DoH connection and retry upon lookup failure. r=necko-reviewers,valentin,dragana
1. When we see a failed TRR lookup in nsHostResolver::CompleteLookup, we trigger
a Confirmation and retry the lookup.
2. When triggering Confirmation, we set LOAD_FRESH_CONNECTION on the TRR channel,
which will then tell the connection manager to clear out the current TRR conneection.
This will cause us to use a new connection for the Confirmation and subsequent
lookups.

Differential Revision: https://phabricator.services.mozilla.com/D129227
2021-12-02 13:21:53 +00:00
criss 37ba052114 Backed out 2 changesets (bug 1743378) for causing xpcshell failures on test_http3_direct_proxy.js. CLOSED TREE
Backed out changeset 3661673e2577 (bug 1743378)
Backed out changeset a6eab1b75981 (bug 1743378)
2021-12-02 14:58:40 +02:00
Noemi Erli 56a43f9e9e Backed out 9 changesets (bug 1743122, bug 1737198) for causing assertion failure in TRRServiceChild.cpp CLOSED TREE
Backed out changeset 044390f37a8f (bug 1743122)
Backed out changeset d742fcfb8fad (bug 1737198)
Backed out changeset 9e4b52c06e3c (bug 1737198)
Backed out changeset 546b0f714a4d (bug 1737198)
Backed out changeset 189ed6145945 (bug 1737198)
Backed out changeset 3bab6f5b5b6b (bug 1737198)
Backed out changeset cdc9de540f2f (bug 1737198)
Backed out changeset e981d9e9c11c (bug 1737198)
Backed out changeset 04a75a837de9 (bug 1737198)
2021-12-02 13:40:57 +02:00
Dragana Damjanovic b78a0db6da Bug 1743630 - Add EarlyHints telemetry r=necko-reviewers,valentin
EH_TIME_TO_FINAL_RESPONSE - This will collect time duration between receiving a 103 response and the final response. This is only collected for 2xx response and only if at least one 103 has been received.
EH_NUM_OF_HINTS_PER_PAGE - number of 103 responses received for a page load. 0 will mean that a page has not received a 103 response. This is only collected for 2xx response.
EH_FINAL_RESPONSE - whether the final response was 2xx or any other code. This is only collected if at least one 103 has been received.

The change also introduced the class EarlyHintsPreloader that will be extended to perform all EarlyHints tasks.

Differential Revision: https://phabricator.services.mozilla.com/D132556
2021-12-02 10:59:33 +00:00
Nihanth Subramanya a0745cfed7 Bug 1737198 - Part 4: Add telemetry probes. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132109
2021-12-02 10:13:34 +00:00
Nihanth Subramanya 0fc7da72e9 Bug 1737198 - Part 1: Cycle DoH connection and retry upon lookup failure. r=necko-reviewers,valentin,dragana
1. When we see a failed TRR lookup in nsHostResolver::CompleteLookup, we trigger
a Confirmation and retry the lookup.
2. When triggering Confirmation, we set LOAD_FRESH_CONNECTION on the TRR channel,
which will then tell the connection manager to clear out the current TRR conneection.
This will cause us to use a new connection for the Confirmation and subsequent
lookups.

Differential Revision: https://phabricator.services.mozilla.com/D129227
2021-12-02 10:13:33 +00:00
criss a587690d98 Backed out 9 changesets (bug 1737198, bug 1743122) by dev request. CLOSED TREE
Backed out changeset 8ea0830f0ebc (bug 1743122)
Backed out changeset 5d68e2b664cc (bug 1737198)
Backed out changeset c43e8d579121 (bug 1737198)
Backed out changeset 7c257276a971 (bug 1737198)
Backed out changeset 05e67f464ee1 (bug 1737198)
Backed out changeset 04bae7f14cec (bug 1737198)
Backed out changeset b703cf81d197 (bug 1737198)
Backed out changeset 6f1e88c3daf3 (bug 1737198)
Backed out changeset 960ecb376a56 (bug 1737198)
2021-12-02 11:57:08 +02:00
Nihanth Subramanya f20cc129c3 Bug 1737198 - Part 4: Add telemetry probes. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D132109
2021-12-02 09:40:52 +00:00
Nihanth Subramanya 66fb0a17d5 Bug 1737198 - Part 1: Cycle DoH connection and retry upon lookup failure. r=necko-reviewers,valentin,dragana
1. When we see a failed TRR lookup in nsHostResolver::CompleteLookup, we trigger
a Confirmation and retry the lookup.
2. When triggering Confirmation, we set LOAD_FRESH_CONNECTION on the TRR channel,
which will then tell the connection manager to clear out the current TRR conneection.
This will cause us to use a new connection for the Confirmation and subsequent
lookups.

Differential Revision: https://phabricator.services.mozilla.com/D129227
2021-12-02 09:40:51 +00:00
Dragana Damjanovic e672920cb2 Bug 1743378 - Adapt mozilla-central to the new neqo API r=necko-reviewers,kershaw
Most important changes:
 - Neqo API now only use StreamId instead of u64 for the stream  ids
 - The server side API has send_headers, send_data and stream_close_send  instead of a single set_response. Important change is also that send_data does not accept more data than the flow control allows. Set_response used to accept all data unconditionally. Therefore now we need to listen to DataWritable events.

Differential Revision: https://phabricator.services.mozilla.com/D132594
2021-12-02 08:23:20 +00:00
Alexandru Michis 045fc2e5f4 Backed out 8 changesets (bug 1737198, bug 1743122) for causing xpcshell failures in unit/test_trr.js
CLOSED TREE

Backed out changeset 525922fbae63 (bug 1743122)
Backed out changeset f370d8070271 (bug 1737198)
Backed out changeset 84a05e5b5e8d (bug 1737198)
Backed out changeset f7eeff0744f4 (bug 1737198)
Backed out changeset ae860da29fd4 (bug 1737198)
Backed out changeset 827456b1b2e8 (bug 1737198)
Backed out changeset 2ebd361d8512 (bug 1737198)
Backed out changeset c3b726205642 (bug 1737198)
2021-12-01 20:31:09 +02:00