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

20915 Коммитов

Автор SHA1 Сообщение Дата
Kershaw Chang d7d4941cf6 Bug 1662072 - Reduce one data copy in parent process when sending chunks to child process r=valentin
1. The data sent from `HttpBackgroundChannelParent` to `HttpBackgroundChannelChild` is using type `nsDependentCSubstring`, since I'd like to reduce one copy in parent process.
2. The data sent from `HttpTransactionChild` to `HttpTransactionParent` is using type `nsCString`. The main reason is that the data is actually captured in `HttpTransactionParent::RecvOnDataAvailable` [1] and put in channel event queue. If we use `nsDependentCSubstring` here, the data would be copied in parent process.
3.  In `HttpBackgroundChannelChild::RecvOnTransportAndData`, it's inevitable that the data is copied when assigning the data to a `nsCString`, since sometimes `HttpBackgroundChannelChild::RecvOnTransportAndData` needs to be queued and execute later.


[1] https://searchfox.org/mozilla-central/rev/969fc7fa6c3c7fc489f53b7b7f8c902028b5169f/netwerk/protocol/http/HttpTransactionParent.cpp#556

Differential Revision: https://phabricator.services.mozilla.com/D88781
2020-08-31 17:11:21 +00:00
Michal Novotny f67509ab41 Bug 1662012 - Remove filesystem reporting from the cache, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88740
2020-08-31 15:16:07 +00:00
Michal Novotny fe4555c51f Bug 1662011 - Remove hash stats code from the cache, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88739
2020-08-31 06:53:06 +00:00
ffxbld ef863a6fcc No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D88854
2020-08-31 14:18:05 +00:00
Valentin Gosu 8e8a6ed3eb Bug 1660975 - Move some TRR prefs to StaticPrefList.yaml r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D88123
2020-08-31 12:49:59 +00:00
Mihai Alexandru Michis f0475723ee Backed out changeset ad066d1a0def (bug 1626486) for causing wpt failures in header-parsing.https.html
CLOSED TREE
2020-08-31 15:43:47 +03:00
Valentin Gosu 85ab52a052 Bug 1626486 - Use structured field value parser for COOP and COEP r=kershaw,annevk,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88003
2020-08-25 14:27:34 +00:00
Anny Gakhokidze 46b53bc947 Bug 1589102 - Part 4: Allow (de)serialization of nested about: uris, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D85082
2020-08-28 17:20:43 +00:00
Anny Gakhokidze bd0938ed77 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-28 17:20:40 +00:00
Anny Gakhokidze 8b553ecfcf 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-28 17:20:30 +00:00
Michal Novotny d5c498788b Bug 1656128 - Remove probe NETWORK_PAC_URL_SCHEME in Firefox 82 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D85992
2020-08-12 17:16:33 +00:00
Michal Novotny a58fc4abae Bug 1645052 - Do not store number of bytes written to the cache in preferences, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D88488
2020-08-28 09:22:45 +00:00
Valentin Gosu 836481e674 Bug 1659699 - HTTPSSVC: Special handling of "." in TargetName r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D88286
2020-08-28 09:22:12 +00:00
Kershaw Chang 1bc13dd88d Bug 1660361 - Send data in chunks from WebSocketChannelParent to WebSocketChannelChild r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D88155
2020-08-28 08:04:15 +00:00
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
Matt Woodrow bf01cd84ee Bug 1638422 - Remove nsITraceableChannel from DocumentChannel. r=kmag,necko-reviewers
This isn't necessary any more, since we now attach StreamFilters directly to the 'real' channel when we replace DocumentChannel.

Differential Revision: https://phabricator.services.mozilla.com/D83594
2020-08-25 23:17:11 +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
Valentin Gosu 240eeaae88 Bug 1659132 - Get rid of NetAddrElement. Make mAddresses an array r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87090
2020-08-25 08:01:36 +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
Valentin Gosu 125efe18dd Bug 1659132 - Get rid of NetAddrElement. Make mAddresses an array r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87090
2020-08-24 11:38:01 +00:00
ffxbld 090583273a No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D88052
2020-08-24 18:34:41 +00:00
Peter Van der Beken 4a9e44592e Bug 1649131 - Stop marking SessionHistoryInfo as moveonly. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D87036
2020-08-20 12:58:40 +00:00
Chris Fronk 3b7a1daba2 Bug 1647536 - Support ref counted pointers in nsDeque r=froydnj
Adds a new specialization of nsDeque, nsRefPtrDeque for use with
reference counted pointers.

Differential Revision: https://phabricator.services.mozilla.com/D84766
2020-08-22 15:47:59 +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 1f6e1d5ca9 Bug 1652655 - P5: Test case for dispatching transaction with HTTPSSVC record, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85429
2020-08-21 18:59:22 +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
Kershaw Chang 2e10bf25d7 Bug 1652655 - P1: Sort HTTPSSVC records, r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85121
2020-08-21 18:59:03 +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
Gijs Kruitbosch 3bf91e4532 Bug 1440677 - accept spaces and tabs in Content-Disposition header filename parameters because all the other browsers do, r=annevk,valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87130
2020-08-19 16:10:20 +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
Dragana Damjanovic 2cb51f4e64 Bug 1659705 - Update neqo to version 0.4.10 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D87441
2020-08-18 13:22:00 +00: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
Nika Layzell 925fa584ff Bug 1614524 - Part 4: Clean up some GetDocumentBrowsingContext callers, r=mattwoodrow,kamidphish
These callers should likely also function with <object> and <embed> loads, so
switching them to GetLoadingBrowsingContext() should be correct.

Differential Revision: https://phabricator.services.mozilla.com/D86583
2020-08-18 16:49:48 +00:00
Nika Layzell c9967fb452 Bug 1614524 - Part 3: Add a fission.remoteObjectEmbed pref, r=mattwoodrow
With these changes, there are still a number of test failures when remote
object/embed is enabled, due to svg sizing and resource timing tests. In order
to land these changes before those features are fixed, it will be placed behind
a pref.

Differential Revision: https://phabricator.services.mozilla.com/D86582
2020-08-18 16:49:45 +00:00
Nika Layzell 482d731e3a Bug 1614524 - Part 1: Add support for process-switching object/embed loads, r=mattwoodrow,smaug,kamidphish
By passing a weak reference back to the DocumentChannelParent into
DocumentLoadListener for object loads, we are able to handle process switching
loads by asking the content process to create a BrowsingContext, and delaying
the real process switch until it becomes available.

The load then completes as it would before, acting as a normal process-switching
subframe load.

Differential Revision: https://phabricator.services.mozilla.com/D86580
2020-08-18 16:49:34 +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