Honza Bambas
269532026a
Bug 1563538 - Propagate close reason through TLSFilterTransaction to allow tunnel stream reuse when possible + close the undelying tunnel stream when a tunneling connection is closed, r=dragana,kershaw+kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D37122
--HG--
extra : moz-landing-system : lando
2019-07-07 13:01:40 +00:00
Honza Bambas
b8829c6ba7
Bug 1556491 - Always close http transactions from nsHttpConnection::CloseTransaction even when the connection or its filter does not refer any, r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D37102
--HG--
extra : moz-landing-system : lando
2019-07-06 20:17:59 +00:00
Kershaw Chang
a53a39a584
Bug 1563824 - New error NS_ERROR_TOO_MANY_REQUESTS for 429 response r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D37140
--HG--
extra : moz-landing-system : lando
2019-07-06 21:46:00 +00:00
Sylvestre Ledru
2bf505b023
Bug 1562642 - Add missing MPL2 headers r=mhoye
...
Differential Revision: https://phabricator.services.mozilla.com/D37053
--HG--
extra : moz-landing-system : lando
2019-07-05 17:05:57 +00:00
Andrea Marchesini
ac791bf6a1
Bug 1558299 - Add a pref to treat File: URLs as unique origins, r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D36920
--HG--
extra : moz-landing-system : lando
2019-07-05 09:16:06 +00:00
Dragana Damjanovic
ba0a6b8b4d
Bug 1563695 - Do not close SpdyConnectTransaction in TLSFilterTransaction. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D37048
--HG--
extra : moz-landing-system : lando
2019-07-05 18:54:34 +00:00
Honza Bambas
436942424d
Bug 1563803 - Backout bug 1562315 for causing regressions, r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D37103
--HG--
extra : moz-landing-system : lando
2019-07-05 19:13:33 +00:00
Victor Porof
4bd76df603
Bug 1561435 - Fix linting errors for netwerk/, r=standard8
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35920
--HG--
extra : source : fd273b25480e88ff03e1009588f831de08e171f6
extra : intermediate-source : 34d49f0e83e16be8ddce2aba23a16eeb9f6751d1
2019-06-21 13:55:36 -07:00
Victor Porof
2c53a5dcd9
Bug 1561435 - Format netwerk/, a=automatic-formatting
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35919
--HG--
extra : source : afa5bd771feba466ba7670c58f3d93233a14e202
2019-07-05 10:55:23 +02:00
Razvan Maries
daed363fd7
Merge mozilla-inbound to mozilla-central a=merge
2019-07-05 00:40:17 +03:00
ffxbld
c3dff17808
No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
...
Differential Revision: https://phabricator.services.mozilla.com/D36908
--HG--
extra : moz-landing-system : lando
2019-07-04 13:06:12 +00:00
Andrea Marchesini
1cb27e6f3a
Bug 1561210 - Pass samesite-none-secure WPTs, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D35762
--HG--
extra : moz-landing-system : lando
2019-07-03 18:18:27 +00:00
arthur.iakab
7bc47eec9b
Backed out 2 changesets (bug 1552168) for causing mochitest crashes on test_menubar.xul CLOSED TREE
...
Backed out changeset 83590619ce06 (bug 1552168)
Backed out changeset 7ff83cc5d33a (bug 1552168)
2019-07-03 16:08:23 +03:00
Sebastian Streich
ce99ef5438
Bug 1552168 - Fix Tests that rely on data_uri.unique_opaque_origin r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35006
--HG--
extra : moz-landing-system : lando
2019-07-03 10:23:46 +00:00
Sebastian Streich
e7a3fe847e
Bug 1552168 - Remove Pref data_uri.unique_opaque_origin r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35005
--HG--
extra : moz-landing-system : lando
2019-07-03 10:23:29 +00:00
Kershaw Chang
c1a051b5ed
Bug 1559865 - No need to set offline flag in ChildDNSService r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D35212
--HG--
extra : moz-landing-system : lando
2019-06-28 06:44:03 +00:00
Arpit Bharti
3ac5afd32b
Bug 1083971 - Add an option to output a binary file for the PSL data r=leplatrem,erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D34364
--HG--
extra : moz-landing-system : lando
2019-07-02 12:28:48 +00:00
Kris Maglione
3e44c16cf9
Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
...
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.
Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.
Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.
However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.
Differential Revision: https://phabricator.services.mozilla.com/D35055
--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
Kris Maglione
f70e67ad2d
Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
...
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.
This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.
Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.
There should be follow-ups for test owners to fix the flakiness.
Differential Revision: https://phabricator.services.mozilla.com/D35054
--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Honza Bambas
d056f02e32
Bug 1562315 - Respect again=false indicated by http2 session when calling through TLSFilterTransaction, r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D36384
--HG--
extra : moz-landing-system : lando
2019-07-01 14:26:34 +00:00
Valentin Gosu
a09f77fb6b
Bug 1551601 - When performing a cross process redirect update the loadInfo to have the correct browsingContext r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D35839
--HG--
extra : moz-landing-system : lando
2019-06-30 20:20:51 +00:00
Narcis Beleuzu
dcc603a037
Backed out changeset 2719ba46ac12 (bug 1551601) for causing xpcshell failures. CLOSED TREE
2019-06-29 02:41:31 +03:00
Valentin Gosu
8c3c48e159
Bug 1551601 - When performing a cross process redirect update the loadInfo to have the correct browsingContext r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D35839
--HG--
extra : moz-landing-system : lando
2019-06-28 21:10:13 +00:00
Honza Bambas
b5a80ffb5e
Bug 1562233 - Add logging of CONNECT requests with headers, add possibility to disable authorization headers sanitization by a preference (default is sanitization enabled), r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D36336
--HG--
extra : moz-landing-system : lando
2019-06-28 17:50:43 +00:00
Christian Holler
229fde0285
Bug 1562288 - Properly close FTP stream when base stream was closed. r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D36367
--HG--
extra : moz-landing-system : lando
2019-06-28 19:02:17 +00:00
Valentin Gosu
7ab22ff110
Bug 1561005 - Add empty GetNetworkID impl for Android r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35883
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:05 +00:00
Valentin Gosu
49e0220e23
Bug 1561005 - Implement nsINetworkLinkService.networkID on mac r=michal
...
Depends on D35780
Differential Revision: https://phabricator.services.mozilla.com/D35781
--HG--
extra : moz-landing-system : lando
2019-06-28 12:41:27 +00:00
Valentin Gosu
c657dcfafe
Bug 1561005 - Implement nsINetworkLinkService.networkID on Linux r=michal
...
* calculateNetworkId is now called before sending each ChangeEvent
* mNetworkId is truncated when no IPv4/IPv6 IDs could be computed
Differential Revision: https://phabricator.services.mozilla.com/D35780
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:09 +00:00
Valentin Gosu
7aa44d1987
Bug 1561005 - Make windows networkID use the INetworkListManager API r=mayhemer,michal
...
Depends on D35683
Differential Revision: https://phabricator.services.mozilla.com/D35684
--HG--
extra : moz-landing-system : lando
2019-06-28 16:35:22 +00:00
Valentin Gosu
ce90534047
Bug 1561005 - Add nsINetworkLinkService.networkID r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35683
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:12 +00:00
Valentin Gosu
e19cd483fd
Bug 1395914 - Update histogram with two new values for IPv6 network-id changes r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34905
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:14 +00:00
Valentin Gosu
18173f21d2
Bug 1395914 - Figure out network id for IPv6 too (mac) r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34904
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:16 +00:00
Valentin Gosu
1fc5fb9a40
Bug 1395914 - Figure out network id for IPv6 too (Linux) r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34903
--HG--
extra : moz-landing-system : lando
2019-06-28 11:42:18 +00:00
Valentin Gosu
b6e7a0b743
Bug 1561089 - The resultPrincipalURI needs to be set on the loadInfo used for the redirect r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D36301
--HG--
extra : moz-landing-system : lando
2019-06-28 14:25:28 +00:00
Valentin Gosu
7f899f94dd
Bug 1559356 - Make sure dweb URLs have a proper host r=kershaw
...
We want dweb URLs to continue working as before bug 1536744 landed.
So we make sure to instantiate it as an nsStandardURL.
This is not a good long-term solution, as we don't want to hardcode
all the various schemes that we want to behave properly.
The fix would be to add a new spec-compliant nsIURI implementation,
based on RustURL and use it for all unknown schemes.
See bug 1561860 for a more complete solution.
Differential Revision: https://phabricator.services.mozilla.com/D36168
--HG--
extra : moz-landing-system : lando
2019-06-28 13:12:49 +00:00
Honza Bambas
ab204e49ee
Bug 1556491 - Close nsHttpConnection.mTLSFilter when transaction of that connection is being closed to correctly carry cancellation status and prevent calls on a closed ssl socket, r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D36111
--HG--
extra : moz-landing-system : lando
2019-06-28 12:45:49 +00:00
Mihai Alexandru Michis
ff9ddc0bc1
Backed out 8 changesets (bug 1395914, bug 1561005) for causing bustages in nsNetworkLinkService and nsNotifyAddrListener.cpp CLOSED TREE
...
Backed out changeset c552aeab0fbf (bug 1561005)
Backed out changeset 61cf9ae8abcf (bug 1561005)
Backed out changeset 5c33e521c0e8 (bug 1561005)
Backed out changeset 82eeb4c5e535 (bug 1561005)
Backed out changeset 6b3b29de9c78 (bug 1561005)
Backed out changeset 719b3b61b9a9 (bug 1395914)
Backed out changeset 2b23587aa5ff (bug 1395914)
Backed out changeset 47f2f3e8d5f9 (bug 1395914)
2019-06-28 14:37:13 +03:00
Valentin Gosu
8673cb0d40
Bug 1561005 - Add empty GetNetworkID impl for Android r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35883
--HG--
extra : moz-landing-system : lando
2019-06-27 09:03:28 +00:00
Valentin Gosu
1d08465e38
Bug 1561005 - Implement nsINetworkLinkService.networkID on mac r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35781
--HG--
extra : moz-landing-system : lando
2019-06-27 09:03:11 +00:00
Valentin Gosu
20a97e21d6
Bug 1561005 - Implement nsINetworkLinkService.networkID on Linux r=michal
...
* calculateNetworkId is now called before sending each ChangeEvent
* mNetworkId is truncated when no IPv4/IPv6 IDs could be computed
Differential Revision: https://phabricator.services.mozilla.com/D35780
--HG--
extra : moz-landing-system : lando
2019-06-27 09:02:59 +00:00
Valentin Gosu
6806c4f960
Bug 1561005 - Make windows networkID use the INetworkListManager API r=michal
...
Depends on D35683
Differential Revision: https://phabricator.services.mozilla.com/D35684
--HG--
extra : moz-landing-system : lando
2019-06-28 11:21:59 +00:00
Valentin Gosu
cc4af7a576
Bug 1561005 - Add nsINetworkLinkService.networkID r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35683
--HG--
extra : moz-landing-system : lando
2019-06-28 11:11:19 +00:00
Valentin Gosu
d36aaea3c9
Bug 1395914 - Update histogram with two new values for IPv6 network-id changes r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34905
--HG--
extra : moz-landing-system : lando
2019-06-27 09:02:13 +00:00
Valentin Gosu
b8945b8f06
Bug 1395914 - Figure out network id for IPv6 too (mac) r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34904
--HG--
extra : moz-landing-system : lando
2019-06-27 09:01:56 +00:00
Valentin Gosu
95534fc1ce
Bug 1395914 - Figure out network id for IPv6 too (Linux) r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D34903
--HG--
extra : moz-landing-system : lando
2019-06-27 09:19:57 +00:00
ffxbld
ab68b05adf
No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM
...
Differential Revision: https://phabricator.services.mozilla.com/D36187
--HG--
extra : moz-landing-system : lando
2019-06-27 12:57:42 +00:00
Nicholas Hurley
281d858112
Bug 1502555 - Match oppsec .wk format to rfc. r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D35136
--HG--
extra : moz-landing-system : lando
2019-06-26 11:44:36 +00:00
Julien Wajsberg
21a8eb399c
Bug 1546641 - Fix network markers in the redirection case r=mayhemer
...
Markers were either incorrect or missing when redirecting a request.
Differential Revision: https://phabricator.services.mozilla.com/D35768
--HG--
extra : moz-landing-system : lando
2019-06-25 14:17:53 +00:00
Valentin Gosu
8c623c2e91
Bug 1559340 - Make sure NetworkConnectivityService::Init() only gets called once r=michal
...
Differential Revision: https://phabricator.services.mozilla.com/D35000
--HG--
extra : moz-landing-system : lando
2019-06-24 21:56:50 +00:00
Valentin Gosu
11362784ca
Bug 1560703 - Make sure creating an FTP channel throws if FTP is disabled r=michal
...
Previously we would throw in nsFtpProtocolHandler::NewURI. Since that doesn't exist anymore, and creating FTP URLs always works, we need to make sure creating the FTP channel doesn't work anymore.
Differential Revision: https://phabricator.services.mozilla.com/D35642
--HG--
extra : moz-landing-system : lando
2019-06-24 10:20:16 +00:00