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

8480 Коммитов

Автор SHA1 Сообщение Дата
Sean Feng 929537b45b Bug 1525025 - Always update domainLookup time in OnStopRequest r=valentin,necko-reviewers
Currently the domainLookup time is updated in OnLookupComplete, this
is problematic because since the DNS prefetch is racy, we are unable
to tell if it's a persistent connection, and we don't want to update
domainLookup if it's a persistent connection.

This patch stops updating it in OnLookupComplete to only update
it in OnStopRequest.

Differential Revision: https://phabricator.services.mozilla.com/D88070
2020-08-26 15:26:25 +00:00
Matt Woodrow 698bbf9bd5 Bug 1638422 - Handle attaching StreamFilters to multipart responses from the parent process, so that they see the unparsed single stream. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D83596
2020-08-25 23:17:38 +00:00
Matt Woodrow 228b3b0a58 Bug 1638422 - Add an option for nsITraceableChannel new listeners to request that content decoding be applied before they are called. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D83595
2020-08-25 23:17:35 +00:00
Kershaw Chang 370dc78dc8 Bug 1652667 - P2: Telemetry for whether a connection is succeeded by using an HTTPSSVC record r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D87857
2020-08-25 17:29:31 +00:00
Kershaw Chang a1c5730c9f Bug 1652667 - P1: Add telemetry for when an HTTPSSVC record is received r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D87844
2020-08-25 17:29:32 +00:00
Butkovits Atila cdf1ae5211 Backed out 2 changesets (bug 1659132) for failures at browser_cleanFlow.js. CLOSED TREE
Backed out changeset 7952fd59f59b (bug 1659132)
Backed out changeset fa8ce4af10a0 (bug 1659132)
2020-08-25 13:02:33 +03:00
Valentin Gosu b4b3279a00 Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers
Also adds constructors for NetAddr to avoid it being uninitialized.

Differential Revision: https://phabricator.services.mozilla.com/D87091
2020-08-25 08:02:22 +00:00
Butkovits Atila 73a14f1b36 Backed out 2 changesets (bug 1659132) for build bustage. CLOSED TREE
Backed out changeset 1caace74f89e (bug 1659132)
Backed out changeset 58fdbfbe05a1 (bug 1659132)
2020-08-25 09:43:01 +03:00
Valentin Gosu ec0be3efef Bug 1659132 - Make AddrInfo immutable r=dragana,necko-reviewers
Also adds constructors for NetAddr to avoid it being uninitialized.

Differential Revision: https://phabricator.services.mozilla.com/D87091
2020-08-24 12:23:06 +00:00
Kershaw Chang fcd994047a Bug 1652668 - Create a exclustion list for failed SvcDomainName, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D87625
2020-08-22 09:43:45 +00:00
Kershaw Chang 1f51da10c8 Bug 1652655 - P4: Fallback to origin connection info, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85869
2020-08-21 18:59:19 +00:00
Kershaw Chang 10d957aaa7 Bug 1652655 - P3: Dispatch the transaction based on HTTPSSVC record, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D85123
2020-08-21 18:59:15 +00:00
Kershaw Chang a841171067 Bug 1652655 - P2: Use HTTPSSVC record for the request without an AltSvc or a HSTS entry, r=dragana,necko-reviewers,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D85122
2020-08-21 18:59:07 +00:00
Simon Giesecke f77f8fd84c Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87419
2020-08-21 09:54:48 +00:00
Bogdan Tara a904137456 Backed out changeset 0327b662a05f (bug 1659674) for nsStorageStream related central bustage CLOSED TREE 2020-08-20 02:58:41 +03:00
Simon Giesecke cfd7d0ea9c Bug 1659923 - Avoid unnecessary copies around Base64Encode. r=xpcom-reviewers,necko-reviewers,froydnj,valentin
This also adds some more variants of Base64Encode and Base64EncodeAppend.

Differential Revision: https://phabricator.services.mozilla.com/D87559
2020-08-19 17:45:16 +00:00
Simon Giesecke 9352526320 Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87419
2020-08-19 14:39:03 +00:00
Csoregi Natalia ff0a68004d Backed out changeset 7cad986c81a5 (bug 1605305) for failures on test_trr.js. CLOSED TREE 2020-08-18 23:38:17 +03:00
Akihiko Odaki 7f71e11e00 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-08-18 16:32:43 +00:00
Razvan Maries 44ae0cd57e Backed out changeset 1047cef8519b (bug 1605305) for perma failures on test_trr.js. CLOSED TREE 2020-08-18 17:39:29 +03:00
Akihiko Odaki 77429bc942 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-08-18 13:15:27 +00:00
Kris Maglione 3af8c4138c Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-08-17 20:20:50 +00:00
julianwels c2daadfdc6 Bug 1658594: Simplified HTTPS-Only checks for CORS and mixed content r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D86820
2020-08-17 16:35:09 +00:00
Mihai Alexandru Michis 96d8ee8908 Backed out changeset 6b495a62f535 (bug 1658594) for causing failures in test_cors_mixedcontent.html
CLOSED TREE
2020-08-14 18:43:43 +03:00
julianwels e1d3e25de2 Bug 1658594: Simplified HTTPS-Only checks for CORS and mixed content r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D86820
2020-08-14 14:49:02 +00:00
Dragana Damjanovic f553ed2172 Bug 1653179 - Handle STOPSENDING on a http3 stream. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D86813
2020-08-13 19:21:53 +00:00
Razvan Maries 8e33fdd15e Backed out changeset f6038d6a0bb1 (bug 1653179) for build bustages on Http3Session.cpp. CLOSED TREE 2020-08-13 19:51:15 +03:00
Dragana Damjanovic 666d322268 Bug 1653179 - Handle STOPSENDING on a http3 stream. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D86813
2020-08-13 15:46:50 +00:00
Dragana Damjanovic ef7dd9d933 Bug 1658362 - Add a pref to set alt-svc mapping artificially for testing. r=JuniorHsu,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86589
2020-08-13 12:12:49 +00:00
Butkovits Atila 3bac4b3e76 Backed out changeset d5bcf55ffab1 (bug 1658362) for failure at browser_networkIsolation.js. CLOSED TREE 2020-08-12 22:38:00 +03:00
Dragana Damjanovic 0f735857f4 Bug 1658362 - Add a pref to set alt-svc mapping artificially for testing. r=JuniorHsu,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86589
2020-08-12 18:23:13 +00:00
Bogdan Tara d7f1417ce1 Backed out changeset 475139fa091b (bug 1658362) for test_altsvc_pref.js failures CLOSED TREE 2020-08-12 14:36:12 +03:00
Valentin Gosu 06b00d0bf4 Bug 1657582 - Add nsIDNSAddrRecord interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,dragana
This interface extends nsIDNSRecord and makes the DNS code more extensible
by allowing us to support more record types.
This change does require the consumer to be aware of the type they requested
and to QueryInterface to either nsIDNSAddrRecord for regular IP lookups,
or to nsIDNSByTypeRecord for other kinds of lookups.

Differential Revision: https://phabricator.services.mozilla.com/D86177
2020-08-12 10:49:39 +00:00
Valentin Gosu e1f98ce23a Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 08:25:14 +00:00
Dragana Damjanovic 32c60292ff Bug 1658362 - Add a pref to set alt-svc mapping artificially for testing. r=JuniorHsu,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86589
2020-08-12 10:11:43 +00:00
Bogdan Tara 694b77183c Backed out 2 changesets (bug 1657582) for test_DNSLookup.js failures CLOSED TREE
Backed out changeset 784122a5f5ab (bug 1657582)
Backed out changeset 0f17312b01ad (bug 1657582)
2020-08-12 11:18:06 +03:00
Valentin Gosu 5eeaf52395 Bug 1657582 - Add nsIDNSAddrRecord interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,dragana
This interface extends nsIDNSRecord and makes the DNS code more extensible
by allowing us to support more record types.
This change does require the consumer to be aware of the type they requested
and to QueryInterface to either nsIDNSAddrRecord for regular IP lookups,
or to nsIDNSByTypeRecord for other kinds of lookups.

Differential Revision: https://phabricator.services.mozilla.com/D86177
2020-08-12 01:35:10 +00:00
Valentin Gosu fc1bf09e47 Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 01:00:39 +00:00
Michael Hoffmann 6de2904eeb Bug 1553421 - Add request method to network markers r=necko-reviewers,gerald,valentin
Differential Revision: https://phabricator.services.mozilla.com/D85878
2020-08-10 06:33:22 +00:00
Frederik Braun 7c16ddcc54 Bug 1655714 - Add TYPE_INTERNAL_FRAME_MESSAGEMANAGER_SCRIPT and use in TryCacheLoadAndCompileScript(), r=kmag
The main point of this change is to not use TYPE_OTHER in `TryCacheLoadAndCompileScript()`,
for extra clarity, we're not using a catch-all TYPE_INTERNAL_SCRIPT.
This is why the changeset introduces a new type TYPE_INTERNAL_FRAME_MESSAGEMANAGER_SCRIPT
which in itself adds lots of changes to various files.

Differential Revision: https://phabricator.services.mozilla.com/D85977
2020-08-10 09:04:37 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Honza Bambas 141e8f5d72 Bug 1609410 - Clear used proxy identity in nsHttpChannelAuthProvider to prevent authentication prompt pop-up on transaction internal restart, r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D84533
2020-08-03 18:31:36 +00:00
Platon Pronko 299c1ddce1 Bug 1640745 - fix NewChannelId so that ids fit into safe JS integer range r=necko-reviewers,valentin
On Linux PID_MAX_LIMIT is 2^22. By default pid_max was set to 2^15, but
systemd since version 243 sets it to 2^22.
nsHttpHandler::NewChannelId uses PID shifted by 32 bits to generate
channelId, and that results in values greater than 2^53.
Such values are fine for uint64_t, but when we pass channelId to
devtools it gets converted to JavaScript floats, and values greater
than 2^53 get errors in lower two bits. This in turn leads to much
sorrow, like request id collisions or "no headers for this request".

This patch shifts the PID by one bit less, resulting in channelIds
that always fit into safe JavaScript integer range for all PIDs.

Differential Revision: https://phabricator.services.mozilla.com/D85990
2020-08-06 07:25:06 +00:00
Dragana Damjanovic 7c336961ad Bug 1655843 - Prefer HTTP3 connections in the connection pool. r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85843
2020-08-04 12:41:54 +00:00
Dragana Damjanovic 1c2de69532 Bug 1655843 - Call ProcessPendingQ wheen a Http3 connection has been connected. r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85201
2020-08-03 14:13:33 +00:00
Butkovits Atila 3bd0e5497c Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE
Backed out changeset 0d22ad297b19 (bug 1589102)
Backed out changeset 14bcaf2a452c (bug 1589102)
Backed out changeset 20905f91e2bb (bug 1589102)
Backed out changeset 29ee0fbe855f (bug 1589102)
Backed out changeset d1f6185030af (bug 1589102)
Backed out changeset 31949872cc1d (bug 1589102)
Backed out changeset ec04e1a20597 (bug 1589102)
Backed out changeset ffe8da473b91 (bug 1589102)
Backed out changeset 3b92f7306c64 (bug 1589102)
Backed out changeset b187548e258f (bug 1589102)
2020-08-05 21:47:50 +03:00
Kershaw Chang 3cffce8fe4 Bug 1497249 - Don't release WebSocketChannel in nsWebSocketConnection::Close, r=michal,necko-reviewers
Depends on D30624

Differential Revision: https://phabricator.services.mozilla.com/D85735
2020-08-03 11:33:23 +00:00
Kershaw Chang 158c55ad89 Bug 1497249 - P2: ipdl for nsIWebSocketConnection r=michal
Differential Revision: https://phabricator.services.mozilla.com/D30624
2020-08-05 15:17:38 +00:00
Kershaw Chang 5e0e9fbbfb Bug 1497249 - P1: Introduce nsWebSocketConnection interface for separating socket manipulation r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D30023
2020-08-03 10:03:08 +00:00
Anny Gakhokidze 6c0bc76392 Bug 1589102 - Part 4: Allow (de)serialization of nested about: uris, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D85082
2020-08-05 16:45:57 +00:00