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

20849 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 86017275d2 Bug 1642387: Prevent HTTPS-Only timeouts by sending http request in the background with a 3000ms delay. If that http request returns before the upgraded request, it's an indicator the https request will result in a timeout and we show the error... r=mattwoodrow,dragana,JulianWels
...page instead. r=dragana

Differential Revision: https://phabricator.services.mozilla.com/D85300
2020-08-12 12:57:22 +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
Dimi Lee fbc8bb1f4b Bug 1652244 - P3. Fix test_different_domain_in_hierarchy.html test failure r=timhuang
This test tests whether cookies can be set in the following frames:
top-level: http://example.org/tests/netwerk/test/mochitests/file_domain_hierarchy_inner.html
1st-level: http://example.com/tests/netwerk/test/mochitests/file_domain_hierarchy_inner_inner.html
2nd-level: http://example.org/tests/netwerk/test/mochitests/file_domain_hierarchy_inner_inner_inner.html

Before this patch, the 2nd-level iframes can't set a cookie.
After this patch, the 2nd-level is considered first-party and can set a cookie.

Differential Revision: https://phabricator.services.mozilla.com/D86716
2020-08-12 09:10:53 +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
undef1nd bb5ccdc8ff Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-12 07:07:33 +00:00
Brindusan Cristian d0499be492 Backed out 2 changesets (bug 1631722) for xpcshell failures at test_trr_cname_chain.js.
Backed out changeset 6c52fb84d5c3 (bug 1631722)
Backed out changeset 24560593473e (bug 1631722)
2020-08-12 06:18:26 +03:00
Valentin Gosu f901db3225 Bug 1657897 - Remove code that bypasses TRR when platform indications are triggered r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86367
2020-08-11 13:51:56 +00:00
undef1nd 26766daa23 Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-11 13:27:49 +00:00
Tarek Ziadé 2909efb662 Bug 1650363 - Performance testing of HTTP3 in Firefox using only xpcshell tests r=michal,sparky
Differential Revision: https://phabricator.services.mozilla.com/D84021
2020-08-10 06:26: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
Dan Glastonbury 787aa83bd7 Bug 1656925 - DocumentChannel: Don't add download loads to load group. r=mattwoodrow
Starting a load from a link click, to a link with the 'download' attribute
doesn't cancel any existing loads (since it's known to be just a download, not a
navigation, so doesn't need to replace the existing one). But then we have two
DocumentChannels alive at the same time, on the same loadgroup, the loadgroup
copies flags from the old one to the download one, since they're different, and
triggers the assert about setting LoadFlags.

The download one shouldn't really be added to the loadgroup; the progress of the
download should NOT block the 'load' event of the existing navigation.

Differential Revision: https://phabricator.services.mozilla.com/D85964
2020-08-10 15:10:31 +00:00
Razvan Maries b755f7fdb0 Backed out 2 changesets (bug 1642387) for perma failures on browser_errorpage_timeout.js. CLOSED TREE
Backed out changeset f09be3d0ab1b (bug 1642387)
Backed out changeset 5349b1df5595 (bug 1642387)
2020-08-10 21:04:03 +03:00
Christoph Kerschbaumer a91ff39f2f Bug 1642387: Prevent HTTPS-Only timeouts by sending http request in the background with a 500ms delay. If that http request returns before the upgraded request, it's an indicator the https request will result in a timeout and we show the error... r=mattwoodrow,dragana,JulianWels
...page instead. r=dragana

Differential Revision: https://phabricator.services.mozilla.com/D85300
2020-08-10 16:34:39 +00:00
ffxbld 0d46e87486 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D86553
2020-08-10 14:20:05 +00:00
Valentin Gosu 5e3e1f6296 Bug 1651672 - Clear and remove DataStorageClass::TRRBlacklist r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86520
2020-08-10 09:46:32 +00:00
Kershaw Chang cb8dd8e93e Bug 1640105 - Skip failed tests, r=dragana,remote-protocol-reviewers,necko-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D86224
2020-08-10 09:20:35 +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
Christoph Kerschbaumer e99c9c8e77 Bug 1657583: Simplify TestSitePermission within nsHTTPSOnlyUtils r=necko-reviewers,JulianWels,dragana
Differential Revision: https://phabricator.services.mozilla.com/D86178
2020-08-10 08:51:44 +00:00
Bogdan Tara 492ec9ba2f Backed out changeset c20c383af4db (bug 1657583) for http related failures CLOSED TREE 2020-08-07 17:13:37 +03:00
Bogdan Tara 9b65c93d6a Backed out 2 changesets (bug 1631722) for windows bpgo failures CLOSED TREE
Backed out changeset 580b7fe5c831 (bug 1631722)
Backed out changeset e635eff6171b (bug 1631722)
2020-08-07 16:37:42 +03:00
Christoph Kerschbaumer 080bd94e56 Bug 1657583: Simplify TestSitePermission within nsHTTPSOnlyUtils r=necko-reviewers,JulianWels,dragana
Differential Revision: https://phabricator.services.mozilla.com/D86178
2020-08-07 12:50:31 +00:00
undef1nd a0eda6935a Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-06 18:50:11 +00:00
Bogdan Tara 3bc4fa6d50 Backed out changeset 5a2241b01c82 (bug 1657583) for DocumentLoadListener.cpp related bustage CLOSED TREE 2020-08-07 14:58:47 +03:00
Christoph Kerschbaumer b6387305a4 Bug 1657583: Simplify TestSitePermission within nsHTTPSOnlyUtils r=necko-reviewers,JulianWels,dragana
Differential Revision: https://phabricator.services.mozilla.com/D86178
2020-08-07 11:27:56 +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
Andy Grover dce9a42b82 Bug 1657466 - Update to Neqo 0.4.9 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86087
2020-08-06 04:54:05 +00:00
Cosmin Sabou 200c98a9ca Backed out 2 changesets (bug 1631722) for causing build bustages. CLOSED TREE
Backed out changeset b0b1c0fa93f9 (bug 1631722)
Backed out changeset ed318dc1f3ae (bug 1631722)
2020-08-06 18:29:19 +03:00
Csoregi Natalia 8fa5e9e957 Backed out 3 changesets (bug 1648887, bug 1611961) for assertion failures on WindowContext.cpp. CLOSED TREE
Backed out changeset 3719f7db339d (bug 1648887)
Backed out changeset b7c7fcb5df37 (bug 1648887)
Backed out changeset ab82a9c613f8 (bug 1611961)
2020-08-06 17:43:51 +03:00
undef1nd f914e7976e Bug 1631722 - Add wrapper for structured-headers crate,r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D81127
2020-08-06 12:53:26 +00:00
ffxbld 06d4ceb48a No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D86217
2020-08-06 14:22:37 +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
Edgar Chen d2c2f39bd2 Bug 1611961 - Move UserActivationState from BrowsingContext to WindowContext; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D83126
2020-08-06 10:25:00 +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
ssengupta 6198ecf772 Bug 1619953 - P8 - Test `browser_blob-channelname.js` converted to xpcshell-test and updated to work with asynchronous input streams r=baku,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81783
2020-08-05 17:06:11 +00: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
Anny Gakhokidze 1f4b006e42 Bug 1589102 - Part 3: Enable about:blank loads to take place via DocumentChannel, r=mattwoodrow
In process selection logic, ensure that we don't use the original URI for
about:blank and instead use the result principal. If the about:blank load has a
null principal, then revert to using the original URI.

Also, remove an extra about:blank load when an nsFrameLoaderOwner is changing
remoteness to prevent races.

Differential Revision: https://phabricator.services.mozilla.com/D85081
2020-08-05 16:44:11 +00:00
Anny Gakhokidze e903c66d34 Bug 1589102 - Part 1: Enable about:srcdoc loads via DocumentChannel, r=mattwoodrow
This patch enables sandboxed srcdoc loads to take place via DocumentChannel,
and adds mechanisms for enabling unsandboxed ones.

Both unsandboxed srcdoc, and in subsequent patches, about:blank, loads require
that the triggering principal and the principal to inherit point to the same
instance if the load takes place in the same process as where we are inheriting
those principals from. We save those principals on a target browsing context before
we load the URI, and later, when we are deserializing LoadInfoArgs into
LoadInfo in the content process, we retrieve the saved principals if the
current load identifier of the target BC matches the load identifier saved
along with the principals.

We also need to make sure that during a process switch for about:srcdoc load,
we don't use the original URI for about:srcdoc to determine the remote type and
instead we use channel's result principal.

Differential Revision: https://phabricator.services.mozilla.com/D85079
2020-08-05 16:44:01 +00:00
Valentin Gosu c61967c799 Bug 1652106 - Add support for the mandatory SvcParamKey r=kershaw,necko-reviewers
6.5 A ServiceMode RR is considered "compatible" with a client if the
client implements support for all its mandatory keys.  If the SVCB
RRSet contains no compatible RRs, the client will generally act as if
the RRSet is empty.

Differential Revision: https://phabricator.services.mozilla.com/D85838
2020-08-05 13:40:33 +00:00
Valentin Gosu 098b049d81 Bug 1652106 - Reject RR if SvcParamKeys are not in strictly increasing numeric order r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85837
2020-08-05 13:57:06 +00:00