Commit Graph

18525 Commits

Author SHA1 Message Date
Geoff Brown
b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Geoff Brown
dcb380399e Bug 1582785 - Enable some xpcshell tests on Android; r=geckoview-reviewers,agi
Most of these tests have been disabled for a long time; they run well
in the current test environment.

Differential Revision: https://phabricator.services.mozilla.com/D46642

--HG--
extra : moz-landing-system : lando
2019-09-23 22:43:55 +00:00
Ehsan Akhgari
5f56dea240 Bug 833723 - Part 2: Fix typo
Differential Revision: https://phabricator.services.mozilla.com/D46863

--HG--
extra : moz-landing-system : lando
2019-09-23 21:33:30 +00:00
Ehsan Akhgari
4382a07f0c Bug 833723 - Make test_bug455311.js pass locally on Linux by resolving symlinks; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46816

--HG--
extra : moz-landing-system : lando
2019-09-23 20:48:20 +00:00
Noemi Erli
519878e346 Backed out changeset 89552e3aa8be (bug 833723) for xpcshell failures in test_bug455311.js CLOSED TREE 2019-09-23 23:39:50 +03:00
Ehsan Akhgari
78123454f5 Bug 833723 - Make test_bug455311.js pass locally on Linux by resolving symlinks; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46816

--HG--
extra : moz-landing-system : lando
2019-09-23 19:08:39 +00:00
ffxbld
bdeece726d 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/D46777

--HG--
extra : moz-landing-system : lando
2019-09-23 13:09:04 +00:00
Jean-Yves Avenard
e3fc8f8970 Bug 1575744 - P8. Remove no longer necessary interface. r=mayhemer
Thanks to the promisifying of SendCrossProcessRedirect we no longer needs callback to DocumentChannelParent from nsHttpChannelParent. So we can remove the interface that allowed to do so.

Differential Revision: https://phabricator.services.mozilla.com/D46174

--HG--
rename : netwerk/base/nsICrossProcessSwitchChannel.idl => netwerk/base/nsIProcessSwitchRequestor.idl
extra : moz-landing-system : lando
2019-09-20 04:09:48 +00:00
Jean-Yves Avenard
7cdc8e0a68 Bug 1575744 - P7. Promisify SendCrossProcessRedirect to avoid needing PHttpChannel to get a response. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46163

--HG--
extra : moz-landing-system : lando
2019-09-21 11:14:49 +00:00
Jean-Yves Avenard
9d8eadbabe Bug 1575744 - P6. Remove unused nsIProcessSwitchRequestor implementation. r=mayhemer
nsViewSourceChannel will never trigger a change of process. So we can remove this interface from nsViewSourceChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46160

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:47 +00:00
Jean-Yves Avenard
abec029eac Bug 1575744 - P5. Implement process switch from DocumentChannelParent. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46020

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:47 +00:00
Jean-Yves Avenard
912b0df630 Bug 1575744 - P4. Add MozPromise::FromDomPromise. r=bholley
Similar to MozPromise::FromGeckoResult.

Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same.
It would be nice to be able to chain the two promise types, but it would be an additional effort.
MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult.

Differential Revision: https://phabricator.services.mozilla.com/D46017

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:46 +00:00
Jean-Yves Avenard
89412cad70 Bug 1575744 - P3. Make ContentProcessIdPromise exclusive. r=mayhemer
There's only one consumer of these promises. It doesn't need to be non-exclusive.

Differential Revision: https://phabricator.services.mozilla.com/D46016

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:46 +00:00
Jean-Yves Avenard
4986f63ec2 Bug 1575744 - P2. Add nsIProcessSwitchRequestor interface. r=mayhemer,nika
Will allow for SessionStore.jsm process switching to be used by other objects than nsHttpChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46015

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:46 +00:00
Jean-Yves Avenard
f985ff154a Bug 1575744 - P1. Only perform process switch once we have completed all redirects. r=mayhemer
This is a stepped transition ; as SessionStore currently only knows how to deal with nsHttpChannel we have to go through the redirect only if the current channel is a nsHttpChannel.
In a followup change we will allow SessionStore to directly deal with the DocumentParentProcess.

Differential Revision: https://phabricator.services.mozilla.com/D46014

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:46 +00:00
Michal Novotny
815ac794a5 Bug 1561944 - Implement nsINetworkLinkService.networkID for Android r=valentin
Patch changes nsAndroidNetworkLinkService so it uses NetlinkService for network ID calculation as well as for notifications about network changes.

Differential Revision: https://phabricator.services.mozilla.com/D43385

--HG--
extra : moz-landing-system : lando
2019-09-19 13:47:46 +00:00
Bogdan Tara
bee28f01d7 Backed out 8 changesets (bug 1575744) for HttpChannelParent related assertion failures
Backed out changeset af61675dd488 (bug 1575744)
Backed out changeset bf794b9373c8 (bug 1575744)
Backed out changeset 39ffb74d2e12 (bug 1575744)
Backed out changeset c1547b3df672 (bug 1575744)
Backed out changeset 382ee8672027 (bug 1575744)
Backed out changeset 5abb38484f11 (bug 1575744)
Backed out changeset d5244c1bbfe8 (bug 1575744)
Backed out changeset c74b81debf73 (bug 1575744)

--HG--
rename : netwerk/base/nsIProcessSwitchRequestor.idl => netwerk/base/nsICrossProcessSwitchChannel.idl
2019-09-20 06:58:44 +03:00
Jean-Yves Avenard
1c9ba44fc0 Bug 1575744 - P8. Remove no longer necessary interface. r=mayhemer
Thanks to the promisifying of SendCrossProcessRedirect we no longer needs callback to DocumentChannelParent from nsHttpChannelParent. So we can remove the interface that allowed to do so.

Differential Revision: https://phabricator.services.mozilla.com/D46174

--HG--
rename : netwerk/base/nsICrossProcessSwitchChannel.idl => netwerk/base/nsIProcessSwitchRequestor.idl
extra : moz-landing-system : lando
2019-09-18 13:17:05 +00:00
Jean-Yves Avenard
99df1db827 Bug 1575744 - P7. Promisify SendCrossProcessRedirect to avoid needing PHttpChannel to get a response. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46163

--HG--
extra : moz-landing-system : lando
2019-09-18 13:14:30 +00:00
Jean-Yves Avenard
7018b7cfca Bug 1575744 - P6. Remove unused nsIProcessSwitchRequestor implementation. r=mayhemer
nsViewSourceChannel will never trigger a change of process. So we can remove this interface from nsViewSourceChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46160

--HG--
extra : moz-landing-system : lando
2019-09-18 14:20:23 +00:00
Jean-Yves Avenard
91ca56d295 Bug 1575744 - P5. Implement process switch from DocumentChannelParent. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46020

--HG--
extra : moz-landing-system : lando
2019-09-20 01:08:02 +00:00
Jean-Yves Avenard
bafae6af97 Bug 1575744 - P4. Add MozPromise::FromDomPromise. r=bholley
Similar to MozPromise::FromGeckoResult.

Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same.
It would be nice to be able to chain the two promise types, but it would be an additional effort.
MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult.

Differential Revision: https://phabricator.services.mozilla.com/D46017

--HG--
extra : moz-landing-system : lando
2019-09-20 02:21:12 +00:00
Jean-Yves Avenard
3a157fb111 Bug 1575744 - P3. Make ContentProcessIdPromise exclusive. r=mayhemer
There's only one consumer of these promises. It doesn't need to be non-exclusive.

Differential Revision: https://phabricator.services.mozilla.com/D46016

--HG--
extra : moz-landing-system : lando
2019-09-16 18:08:16 +00:00
Jean-Yves Avenard
db9dcef811 Bug 1575744 - P2. Add nsIProcessSwitchRequestor interface. r=mayhemer,nika
Will allow for SessionStore.jsm process switching to be used by other objects than nsHttpChannel.

Differential Revision: https://phabricator.services.mozilla.com/D46015

--HG--
extra : moz-landing-system : lando
2019-09-18 23:49:51 +00:00
Jean-Yves Avenard
02d8a3d841 Bug 1575744 - P1. Only perform process switch once we have completed all redirects. r=mayhemer
This is a stepped transition ; as SessionStore currently only knows how to deal with nsHttpChannel we have to go through the redirect only if the current channel is a nsHttpChannel.
In a followup change we will allow SessionStore to directly deal with the DocumentParentProcess.

Differential Revision: https://phabricator.services.mozilla.com/D46014

--HG--
extra : moz-landing-system : lando
2019-09-17 02:51:11 +00:00
Zibi Braniecki
8c34ae8cc7 Bug 1581692 - Remove unused .properties from netwerk. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D46194

Depends on D46193

--HG--
extra : histedit_source : 6604010dd875bfd0dba8e1a92842d5310fa989a7
2019-09-18 19:38:50 +03:00
ffxbld
959ff7f82f 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/D46469

--HG--
extra : moz-landing-system : lando
2019-09-19 14:37:28 +00:00
Nico Grunbaum
11d7e7febf Bug 1581023 - Expand DataChannel logging capabilities - r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D45800

--HG--
extra : moz-landing-system : lando
2019-09-19 14:50:57 +00:00
Doug Thayer
5920fc459e Bug 1554242 - Don't open file just to ftell it r=baku
In bug 1554242 we're noticing main thread file IO sending a PNG
thumbnail as a blob over IPC. The stack is roughly
IPCBlobInputStream::Close() -> nsFileInputStream::Close() ->
nsFileStreamBase::DoOpen(). The file in question is always a
deferred open file, and we didn't open it in append mode, so there
is no way for ftell to be anything other than 0 (?). This was
verified with an assertion on a try run.

Differential Revision: https://phabricator.services.mozilla.com/D46328

--HG--
extra : moz-landing-system : lando
2019-09-19 10:03:23 +00:00
Byron Campen [:bwc]
85cc5df79c Bug 1569183: Fix bugs where OnProxyAvailable would be called with a proxy info whose resolve flags did not match what was asked for. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46052

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:38 +00:00
Byron Campen [:bwc]
abf0777414 Bug 1569183: Create an ipdl struct called WebrtcProxyConfig, to cut down on the arg count on lots of functions. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45562

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:04 +00:00
Byron Campen [:bwc]
fec8b0d807 Bug 1569183: Stop doing a proxy lookup to determine whether we're configured to use a proxy (for the proxy_only_if_behind_proxy pref), and instead look at whether we loaded the doc using a proxy. r=mjf,mayhemer,jld
Differential Revision: https://phabricator.services.mozilla.com/D45289

--HG--
extra : moz-landing-system : lando
2019-09-18 14:27:42 +00:00
Byron Campen [:bwc]
fbfb9f6754 Bug 1569183: Make proxy config parameters optional in WebrtcTCPSocket to get the NAT simulator working again. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45104

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:37 +00:00
Byron Campen [:bwc]
ffa09cee72 Bug 1569183: Rename PWebrtcProxyChannel to PWebrtcTCPSocket. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45098

--HG--
rename : media/mtransport/WebrtcProxyChannelWrapper.cpp => media/mtransport/WebrtcTCPSocketWrapper.cpp
rename : media/mtransport/WebrtcProxyChannelWrapper.h => media/mtransport/WebrtcTCPSocketWrapper.h
rename : media/mtransport/ipc/PWebrtcProxyChannel.ipdl => media/mtransport/ipc/PWebrtcTCPSocket.ipdl
rename : media/mtransport/ipc/WebrtcProxyChannel.cpp => media/mtransport/ipc/WebrtcTCPSocket.cpp
rename : media/mtransport/ipc/WebrtcProxyChannel.h => media/mtransport/ipc/WebrtcTCPSocket.h
rename : media/mtransport/ipc/WebrtcProxyChannelCallback.h => media/mtransport/ipc/WebrtcTCPSocketCallback.h
rename : media/mtransport/ipc/WebrtcProxyChannelChild.cpp => media/mtransport/ipc/WebrtcTCPSocketChild.cpp
rename : media/mtransport/ipc/WebrtcProxyChannelChild.h => media/mtransport/ipc/WebrtcTCPSocketChild.h
rename : media/mtransport/ipc/WebrtcProxyLog.cpp => media/mtransport/ipc/WebrtcTCPSocketLog.cpp
rename : media/mtransport/ipc/WebrtcProxyLog.h => media/mtransport/ipc/WebrtcTCPSocketLog.h
rename : media/mtransport/ipc/WebrtcProxyChannelParent.cpp => media/mtransport/ipc/WebrtcTCPSocketParent.cpp
rename : media/mtransport/ipc/WebrtcProxyChannelParent.h => media/mtransport/ipc/WebrtcTCPSocketParent.h
extra : moz-landing-system : lando
2019-09-17 18:15:41 +00:00
Valentin Gosu
9be69aefcb Bug 1580750 - Enable more fission tests r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46175

--HG--
extra : moz-landing-system : lando
2019-09-17 19:35:00 +00:00
Valentin Gosu
ed3cd6651f Bug 1581655 - left shift of negative value -1 r=JuniorHsu
We should use ~0uL << x instead of ~0L << x because we are working with uint32_t

Differential Revision: https://phabricator.services.mozilla.com/D46213

--HG--
extra : moz-landing-system : lando
2019-09-17 20:24:42 +00:00
Henri Sivonen
c193518677 Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D43957

--HG--
extra : moz-landing-system : lando
2019-09-18 08:26:34 +00:00
Jeremy Lempereur
c3d1703996 Bug 1580157 - Add tests to network attributes sorting. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45893

--HG--
extra : moz-landing-system : lando
2019-09-17 18:58:39 +00:00
Gerald Squelart
dc8ac83ba6 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435

--HG--
extra : moz-landing-system : lando
2019-09-18 01:22:12 +00:00
Dragana Damjanovic
a8b9f215c0 Bug 1580557 - Remove nsISSLSocketControl.serverRootCertIsBuiltInRoot. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D45988

--HG--
extra : moz-landing-system : lando
2019-09-16 18:22:20 +00:00
Valentin Gosu
54d27f2b21 Bug 1576386 - Set a 2 second timeout when shutting down the Link Monitor thread r=mayhemer
The thread calls into some windows APIs that may sometimes block for a long time. Since we're shutting down anyway, it is OK to sometimes leak this thread, similar to what we do for DNS resolver threads.

The patch converts nsNotifyAddrListener::mThread to a nsIThreadPool (with a max of 1 thread) so that we may call shutdownWithTimeout on it.

Differential Revision: https://phabricator.services.mozilla.com/D46002

--HG--
extra : moz-landing-system : lando
2019-09-17 11:38:49 +00:00
Valentin Gosu
eb53fa62d3 Bug 1580130 - Add telemetry to record presence of the networkID when the connectivity check has completed r=dragana
When the IPv4 check is completed, we get the network ID and report to telemetry if it was empty or not. This allows us to more accurately determine if we always have a networkID.

Depends on D45331

Differential Revision: https://phabricator.services.mozilla.com/D45332

--HG--
extra : moz-landing-system : lando
2019-09-13 06:41:38 +00:00
Valentin Gosu
03918d82cc Bug 1580130 - Call calculateNetworkId() after every CheckAdaptersAddresses r=dragana
Since we sometimes coalesce SendEvents, calling it from there is not actually correct, and sometimes we fail to recompute the networkID when network changes happen.

Differential Revision: https://phabricator.services.mozilla.com/D45331

--HG--
extra : moz-landing-system : lando
2019-09-13 06:41:37 +00:00
Bogdan Tara
361c83c1a9 Backed out 21 changesets (bug 1578327, bug 1575448, bug 1580091, bug 1576554, bug 1581049, bug 1576551, bug 1578329, bug 1576555) for platform.cpp related bustage CLOSED TREE
Backed out changeset 27afea20c396 (bug 1581049)
Backed out changeset be1ec4577d37 (bug 1581049)
Backed out changeset b4b6bbb18cc1 (bug 1581049)
Backed out changeset b30942f9db54 (bug 1581049)
Backed out changeset 473c431866f7 (bug 1578329)
Backed out changeset ac492dc3df20 (bug 1578329)
Backed out changeset f51875652f6f (bug 1578327)
Backed out changeset 512b7cbd18f6 (bug 1576555)
Backed out changeset 2d63a9934c00 (bug 1576555)
Backed out changeset ff73f648ab6c (bug 1576555)
Backed out changeset 49f49079bbb5 (bug 1576555)
Backed out changeset e8323157c6f3 (bug 1575448)
Backed out changeset 3b0d726f2dd6 (bug 1575448)
Backed out changeset 5924790abc4b (bug 1576554)
Backed out changeset a14ac9bb5338 (bug 1576554)
Backed out changeset b6d73f5042a7 (bug 1576551)
Backed out changeset 366030bd2d84 (bug 1576551)
Backed out changeset d7ee4148aad9 (bug 1576551)
Backed out changeset ec72dfc7301e (bug 1576551)
Backed out changeset 79b29286f906 (bug 1580091)
Backed out changeset 6f34c2e57ccf (bug 1580091)
2019-09-17 10:16:14 +03:00
Gerald Squelart
6b49069f3e Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

Differential Revision: https://phabricator.services.mozilla.com/D44435

--HG--
extra : moz-landing-system : lando
2019-09-17 01:53:56 +00:00
Brindusan Cristian
c2ee78aa6f Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE 2019-09-17 01:03:46 +03:00
Ehsan Akhgari
3bd685e0df Bug 1581160 - Part 2: Do not prevent the local database from being checked in UrlClassifierSkipListService.jsm; r=johannh,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D46029

--HG--
extra : moz-landing-system : lando
2019-09-16 21:48:26 +00:00
Jonathan Kingston
bd229a5c73 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-16 17:24:39 +00:00
arthur.iakab
be0104c954 Backed out changeset 92ed48a0afb3 (bug 1581160) for causing xpcshell failures on test_http2-proxy.js CLOSED TREE
test_http2-proxy.js
2019-09-16 19:49:30 +03:00
Valentin Gosu
b27c4726d0 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

Differential Revision: https://phabricator.services.mozilla.com/D14751

--HG--
extra : moz-landing-system : lando
2019-09-16 15:21:36 +00:00
Valentin Gosu
44d8431a8c Bug 1513574 - Remove UAOverridesBootstrapper r=michal
Differential Revision: https://phabricator.services.mozilla.com/D14750

--HG--
extra : moz-landing-system : lando
2019-09-16 15:21:18 +00:00
Ehsan Akhgari
e8e4f4ae9c Bug 1581160 - Part 2: Do not prevent the local database from being checked in UrlClassifierSkipListService.jsm; r=johannh,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D46029

--HG--
extra : moz-landing-system : lando
2019-09-16 15:02:06 +00:00
Cosmin Sabou
b1cfe7b829 Backed out 4 changesets (bug 1513574) for causing several browser chrome failures. CLOSED TREE
Backed out changeset 7d950fc452fb (bug 1513574)
Backed out changeset 11f015a3e739 (bug 1513574)
Backed out changeset be6959a563f6 (bug 1513574)
Backed out changeset ce51efd054b8 (bug 1513574)

--HG--
extra : histedit_source : a7bc0055925ac352826572f96730f3d90815bda0
2019-09-16 12:40:40 +03:00
Valentin Gosu
f9ed039670 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

Differential Revision: https://phabricator.services.mozilla.com/D14751

--HG--
extra : moz-landing-system : lando
2019-09-16 08:38:24 +00:00
Valentin Gosu
949993a39a Bug 1513574 - Remove UAOverridesBootstrapper r=michal
Differential Revision: https://phabricator.services.mozilla.com/D14750

--HG--
extra : moz-landing-system : lando
2019-09-16 08:38:06 +00:00
Matt Woodrow
097e29a589 Bug 1579765 - Don't overwrite redirect timings when we convert DocumentChannel to a real channel. r=mayhemer
DocumentChannel doesn't use the REDIRECT_INTERNAL flag when replacing itself with a real channel if there has been a real redirect handled in the parent.
This is so that the docshell knows about the URI change, and to add history entries.
The timing data however always wanted to be treated as an internal redirect, so that we don't record a new 'redirectEnd' at the time of the switch.
This adds a new parameter to ConfigureReplacementChannel so that we can more accurately describe the behaviour we need.

Differential Revision: https://phabricator.services.mozilla.com/D45150

--HG--
extra : moz-landing-system : lando
2019-09-16 07:22:32 +00:00
Matt Woodrow
b6167f6c16 Bug 1579765 - Early exit from NS_GetReferrerFromChannel if we had the internalReferrer property. r=mayhemer,smaug
If the docshell explicitly set this property with a nullptr value, then we should just return that.
This fixes a warning where we try QI a DocumentChannelChild to nsIHttpChannel when looking for the referrer.

Differential Revision: https://phabricator.services.mozilla.com/D45149

--HG--
extra : moz-landing-system : lando
2019-09-16 07:22:17 +00:00
Matt Woodrow
ff552dee87 Bug 1579765 - Move upload stream handling into ReplacementChannelConfig so that it gets applied to DocumentChannel as well as normal HTTP redirects. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45146

--HG--
extra : moz-landing-system : lando
2019-09-16 07:25:18 +00:00
Valentin Gosu
37f85c0b87 Bug 1580750 - Enable some necko mochitests in fission r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D45640

--HG--
extra : moz-landing-system : lando
2019-09-12 14:34:32 +00:00
Bas Schouten
7b4d55d375 Bug 1548373: Report Open stacks for XHR responses. r=mayhemer,julienw
Differential Revision: https://phabricator.services.mozilla.com/D42831

--HG--
extra : moz-landing-system : lando
2019-09-11 15:33:00 +00:00
Cosmin Sabou
1aeb602d5e Backed out 4 changesets (bug 1513574) for Android build bustage and browser chrome failures. CLOSED TREE
Backed out changeset f155c449e516 (bug 1513574)
Backed out changeset 1f2bbbe0f781 (bug 1513574)
Backed out changeset 5f8b5f72a4ea (bug 1513574)
Backed out changeset 0e4cababccc7 (bug 1513574)
2019-09-13 21:38:18 +03:00
Valentin Gosu
ef68d827d8 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

Differential Revision: https://phabricator.services.mozilla.com/D14751

--HG--
extra : moz-landing-system : lando
2019-09-13 17:19:40 +00:00
Valentin Gosu
3373450337 Bug 1513574 - Remove UAOverridesBootstrapper r=michal
Differential Revision: https://phabricator.services.mozilla.com/D14750

--HG--
extra : moz-landing-system : lando
2019-09-13 17:19:26 +00:00
Ehsan Akhgari
32b3e361da Bug 1580273 - Add the needed head files to support-files; r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D45409

--HG--
extra : moz-landing-system : lando
2019-09-13 09:55:59 +00:00
Valentin Gosu
4e6807391a Bug 1558310 - Remove main thread check in nsStandardURL::nsStandardURL() r=dragana
Removing this check would allow us to see leaked URIs created off main thread.
This is OK because we already use a mutex to guard the linkedList

Differential Revision: https://phabricator.services.mozilla.com/D45156

--HG--
extra : moz-landing-system : lando
2019-09-12 16:50:25 +00:00
Kershaw Chang
7ded6772fc Bug 1579874 - Use the correct process type for socket process r=jld
Differential Revision: https://phabricator.services.mozilla.com/D45633

--HG--
extra : moz-landing-system : lando
2019-09-12 20:34:58 +00:00
Kershaw Chang
bfea62cf48 Bug 1576171 - Send ftp channel status via OnStartRequest r=valentin
In FtpChannelParent, we didn't propagate the channel status to FtpChannelChild. This could make child start to do diversion on a failed channel.
Like what we did in http channel, we should send the channel status to child via OnStartRequest message.

Differential Revision: https://phabricator.services.mozilla.com/D45648

--HG--
extra : moz-landing-system : lando
2019-09-12 16:24:43 +00:00
Noemi Erli
b3c9dabce5 Merge inbound to mozilla-central. a=merge 2019-09-13 00:53:27 +03:00
Csoregi Natalia
2ee3e5109e Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-09-12 18:28:36 +03:00
Sebastian Streich
8695d9d7c2 Bug 1579179 - Use nsIChannel for noSniff checks r=ckerschb
Reviewers: ckerschb, bzbarsky

Reviewed By: ckerschb, bzbarsky

Subscribers: evilpie, bzbarsky, mayhemer

Bug #: 1579179

Differential Revision: https://phabricator.services.mozilla.com/D45351

--HG--
extra : rebase_source : 1c5bfdd073fd9b68227a376526bbdf118fb3fb77
extra : histedit_source : c0e66d1fa9033542b7bc7d425227ebd6627f3e85
2019-09-12 14:22:21 +03:00
Valentin Gosu
96689a4a96 Bug 1579331 - URL constructor fails when input is a data URL without a comma r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45372

--HG--
extra : moz-landing-system : lando
2019-09-12 09:24:23 +00:00
Kershaw Chang
de860c0a83 Bug 1580046 - Introduce new trr pref: builtin-excluded-domains r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D45518

--HG--
extra : moz-landing-system : lando
2019-09-12 12:44:16 +00:00
ffxbld
5af1f73d04 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/D45662

--HG--
extra : moz-landing-system : lando
2019-09-12 13:37:51 +00:00
Christian Holler
94e642e603 Bug 1579475 - HTTP fuzzing target should call RemoveRequestContext. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45035

--HG--
extra : moz-landing-system : lando
2019-09-09 17:17:22 +00:00
Ehsan Akhgari
d11436d012 Bug 1575302 - Remove OptionalPrincipalInfo; r=barret
Differential Revision: https://phabricator.services.mozilla.com/D45565

--HG--
extra : moz-landing-system : lando
2019-09-11 20:36:06 +00:00
Kevin Jacobs
4bf9806ed6 Bug 1562773 - Propagate Delegated Credential flag to nsITransportSecurityInfo r=keeler,jcj
This patch adds a new `mIsDelegatedCredential` parameter to nsITransportSecurityInfo, indicating whether or not a delegated credential keypair was used in the TLS handshake (see: https://tools.ietf.org/html/draft-ietf-tls-subcerts-03) .

This functionality is only available if _security.tls.enable_delegated_credentials_ is set to true.

Differential Revision: https://phabricator.services.mozilla.com/D39807

--HG--
extra : moz-landing-system : lando
2019-09-11 15:19:57 +00:00
Brian Hackett
5b83776c8a Bug 1580104 Part 2 - Don't treat middleman processes as websocket child processes, r=mayhemer.
Depends on D45464

Differential Revision: https://phabricator.services.mozilla.com/D45465

--HG--
extra : moz-landing-system : lando
2019-09-11 16:07:46 +00:00
Noemi Erli
ba2490c251 Backed out changeset d0fb6559c22e (bug 1579331) for failing in browser_contextmenu.js CLOSED TREE 2019-09-11 19:05:35 +03:00
Valentin Gosu
c2c959abc7 Bug 1579331 - URL constructor fails when input is a data URL without a comma r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45372

--HG--
extra : moz-landing-system : lando
2019-09-11 14:03:40 +00:00
Valentin Gosu
078dddfc0a Bug 1576386 - Don't recompute the networkId during shutdown r=michal
Calling the windows APIs may block shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D45161

--HG--
extra : moz-landing-system : lando
2019-09-11 14:38:52 +00:00
Ehsan Akhgari
7e6d000cd3 Bug 1579552 - Update the cookie path matching algorithm per RFC6265; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45427

--HG--
extra : moz-landing-system : lando
2019-09-11 11:07:12 +00:00
Ehsan Akhgari
ebf23e7983 Bug 1580284 - Remove the nsIPrivateModeCallback unused interface; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45410

--HG--
extra : moz-landing-system : lando
2019-09-11 11:02:29 +00:00
Dragana Damjanovic
9cd449c033 Bug 1579047 - _NS_NEXT_TOKEN in the wrong place. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D44816

--HG--
extra : moz-landing-system : lando
2019-09-09 16:13:42 +00:00
Razvan Maries
2fb41871a9 Backed out 2 changesets (bug 1562773) for build bustages. CLOSED TREE
Backed out changeset 154b23d4a214 (bug 1562773)
Backed out changeset f32f7a644981 (bug 1562773)
2019-09-11 04:40:29 +03:00
J.C. Jones
a54604ea14 Bug 1562773 - Propagate Delegated Credential flag to nsITransportSecurityInfo r=keeler
This patch adds a new `mIsDelegatedCredential` parameter to nsITransportSecurityInfo, indicating whether or not a delegated credential keypair was used in the TLS handshake (see: https://tools.ietf.org/html/draft-ietf-tls-subcerts-03) .

This functionality is only available if _security.tls.enable_delegated_credentials_ is set to true.

Differential Revision: https://phabricator.services.mozilla.com/D39807

--HG--
extra : moz-landing-system : lando
2019-09-10 19:55:46 +00:00
Perry Jiang
d31ca19e4d Bug 1580363 - propagate "apply conversion" flag when synthesized response creates a redirect channel r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45472

--HG--
extra : moz-landing-system : lando
2019-09-10 23:55:21 +00:00
Junior Hsu
047f47caa2 Bug 1556037 - Re-enable test_http2-proxy.js test r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D41053

--HG--
extra : moz-landing-system : lando
2019-09-10 21:21:53 +00:00
Paul Zuehlcke
00119452fc Bug 1574480 - Updated browser.js and OfflineAppsChild.jsm to use PermissionManager principal methods. r=johannh,smaug
Differential Revision: https://phabricator.services.mozilla.com/D42620

--HG--
extra : moz-landing-system : lando
2019-09-10 10:57:07 +00:00
Jeremy Lempereur
28fa1df24e Bug 1562386 - Sort network attributes before hashing them to get a networkID r=mayhemer,michal,valentin
Differential Revision: https://phabricator.services.mozilla.com/D38418

--HG--
extra : moz-landing-system : lando
2019-09-10 11:02:25 +00:00
Johann Hofmann
a95351130d Bug 1571234 - Change RemoveCookiesFromRootDomain to RemoveCookiesFromExactHost. r=baku
This will change RemoveCookiesFromRootDomain to not remove cookies from all sub-domains but instead
only remove the single host that is passed. This is necessary to support removing all sub-domain
cookie data in ForgetAboutSite without compromising on the cookie permissions that are supported by
Sanitizer.jsm

As a side effect, this also fixes the issues described in https://bugzilla.mozilla.org/show_bug.cgi?id=1515913#c24
(which were caused by deleting sub-domains without checking their permission).

Sanitizer.jsm should retain its functionality even with this change, because it already collects
all the principals we have to delete individually and tries to delete them (so it would consider
mozilla.org and support.mozilla.org separately).

Differential Revision: https://phabricator.services.mozilla.com/D45012

--HG--
extra : moz-landing-system : lando
2019-09-09 13:58:06 +00:00
Kershaw Chang
487ae96c4a Bug 1546816 - Part 1-1: Remove MITM_OK flag and bypassAuthentication r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D45019

--HG--
extra : moz-landing-system : lando
2019-09-09 13:46:45 +00:00
Brindusan Cristian
41e89721b3 Backed out changeset 566627a48370 (bug 1562386) for bustages on nsNotifyAddrListener.cpp:222:21. CLOSED TREE
--HG--
extra : histedit_source : d26c75e2ded633ed92ce294faf94e2c9ec259c74
2019-09-09 14:28:10 +03:00
Jeremy Lempereur
d70444d071 Bug 1562386 - Sort network attributes before hashing them to get a networkID r=mayhemer,michal
Differential Revision: https://phabricator.services.mozilla.com/D38418

--HG--
extra : moz-landing-system : lando
2019-09-06 10:12:51 +00:00
Daisuke Akatsuka
a65bd31ef9 Bug 1572933: Introduce an attribute to raise the cache priority. r=pbro,mayhemer
For now, when we turn on `disable cache` switch in DevTools[1], web page loads
the contents without using the cache. Furthermore, DevTools as well comes to
load the contents DevTools inspects without using the cache. And, if the loaded
contents from the web page and DevTools was different, becomes impossible to
inspect the content correctly.
Thus, in order to make DevTools refer the same content the web page loaded,
makes DevTools load the contents inspecting from the cache at first, no matter
if disables the switch or not.

When turns on disable cache in DevTools, `LOAD_BYPASS_CACHE` flag is set into
`loadFlags` in the `docshell`.[2] The other hand, the content DevTools inspects
is loaded from a channel DevTools creates with `LOAD_FROM_CACHE` flag.[3]
However, because this channel is belong to same `loadGroup` of the `docshell`,
`LOAD_BYPASS_CACHE` is inherited and is choosen even if `LOAD_FROM_CACHE` is set.
Thus, in this patch, we introduce an attribute `preferCacheLoadOverBypass`
which raises the priority for `LOAD_FROM_CACHE` above `LOAD_BYPASS_CACHE` and
`LOAD_BYPASS_LOCAL_CACHE`.

[1] https://developer.mozilla.org/en-US/docs/Tools/Settings#Advanced_settings
[2] https://searchfox.org/mozilla-central/source/devtools/server/actors/targets/browsing-context.js#1227
[3] https://searchfox.org/mozilla-central/source/devtools/shared/DevToolsUtils.js#542-544

Differential Revision: https://phabricator.services.mozilla.com/D44626

--HG--
extra : moz-landing-system : lando
2019-09-09 00:57:05 +00:00
Gurzau Raul
812644ff5f Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html 2019-09-07 14:32:37 +03:00
Jonathan Kingston
64f59b042f Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-07 07:45:30 +00:00
Christian Holler
c87d1c6975 Bug 1579466 - Check GetEsniUsed return value in nsHttpConnection. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45032

--HG--
extra : moz-landing-system : lando
2019-09-06 17:56:16 +00:00
Cosmin Sabou
732b97195a Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE 2019-09-06 19:10:20 +03:00
Jonathan Kingston
a8f4386427 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-06 15:02:34 +00:00
Ting-Yu Lin
b8fee8f71c Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

Differential Revision: https://phabricator.services.mozilla.com/D44870

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00