Commit Graph

18993 Commits

Author SHA1 Message Date
Michal Novotny
a7fe3954fe Bug 1598321 - InputStreamShim::AsyncWait() and OutputStreamShim::AsyncWait() are not one-shot, r=dragana
InputStreamShim and OutputStreamShim now hold a strong reference to the callback and it's released after calling nsIInputStreamCallback::OnInputStreamReady() and nsIOutputStreamCallback::OnOutputStreamReady()

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

--HG--
extra : moz-landing-system : lando
2019-11-26 18:31:18 +00:00
Gurzau Raul
2e8639b3b4 Backed out 8 changesets (bug 1598516) for build bustage at ParentChannelListener.cpp on a CLOSED TREE.
Backed out changeset 7ac1b091aa5f (bug 1598516)
Backed out changeset b62c5b49b91c (bug 1598516)
Backed out changeset e48c0ce38498 (bug 1598516)
Backed out changeset cc2599921b5e (bug 1598516)
Backed out changeset 0a0f80b0b278 (bug 1598516)
Backed out changeset 1dc19a039cab (bug 1598516)
Backed out changeset b664c8af6e2d (bug 1598516)
Backed out changeset 943b440179b9 (bug 1598516)
2019-12-03 21:48:14 +02:00
Michal Novotny
b508e7721e Bug 1600811 - network ID: use hardcoded IP for route checking in nsNetworkLinkService on MacOS r=JuniorHsu
The preferences network.netlink.route.check.IPv4 and network.netlink.route.check.IPv6 were removed in bug 1593693 and the values are now hardcoded because they are used by Linux/Android implementation of nsNetworkLinkService for link status detection and they are not supposed to be changed by the user.

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

--HG--
extra : moz-landing-system : lando
2019-12-03 07:26:07 +00:00
Matt Woodrow
ab7f711e51 Bug 1598516 - Add DocumentChannel MOZ_LOGs. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D54250

--HG--
extra : moz-landing-system : lando
2019-12-03 06:20:23 +00:00
Matt Woodrow
15db260efa Bug 1598516 - Don't crash if NS_NewChannelInternal fails. r=mayhemer
Looks like this can sometimes fail with moz-extension URIs, so we shouldn't crash

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

--HG--
extra : moz-landing-system : lando
2019-12-03 06:20:11 +00:00
Matt Woodrow
9cc742b690 Bug 1598516 - Expose a RemoteWindowContext on ParentChannelListener. r=mayhemer,kmag
Without DocumentChannel, nsExtProtocolChannel::OpenURL calls into nsExternalHelperAppService::LoadURI in the content process.
We then manually forward this to the parent process over PContent, create a RemoteWindowContext around the browser parent, and then call LoadURI again.

With DocumemntChannel, the nsExtProtocolChannel already lives in the parent, so we just need to provide a RemoteWindowContext directly (that the code accesses via GetInterface on the callbacks).

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

--HG--
extra : moz-landing-system : lando
2019-12-03 06:19:35 +00:00
Ehsan Akhgari
d94f27a8d6 Bug 1595934 - Make nsICookieManager cookie enumerators return Array<nsICookie> instead of nsISimpleEnumerator; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D52761

--HG--
extra : moz-landing-system : lando
2019-12-03 17:08:25 +00:00
Tom Ritter
4f9313ba4e Bug 1582512 - Register a ScriptValidationCallback to examine script loads in the parent process r=Gijs,ckerschb
Additionally, we disable validation on PAC scripts.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 17:27:09 +00:00
Kershaw Chang
9c48606bb3 Bug 1596409 - P6: Add a pref for using socket process for network r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54174

--HG--
extra : moz-landing-system : lando
2019-12-03 13:46:04 +00:00
Kershaw Chang
e686a3ff31 Bug 1596409 - P5: Enable necessary XPCOM components for using nsHttpTransaction in socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54165

--HG--
extra : moz-landing-system : lando
2019-12-03 13:45:19 +00:00
Kershaw Chang
23e2261f84 Bug 1596409 - P4: Impl PHttpConnectionMgr IPC protocol r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54164

--HG--
extra : moz-landing-system : lando
2019-12-03 13:44:39 +00:00
Kershaw Chang
1c7dbad1ac Bug 1596409 - P3: Add HttpConnectionMgrShell r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54162

--HG--
extra : moz-landing-system : lando
2019-12-03 13:44:06 +00:00
Kershaw Chang
cb29d04cfa Bug 1596409 - P2: Seperate nsHttpConnectionMgr and AltSvcCache r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54161

--HG--
extra : moz-landing-system : lando
2019-12-03 13:43:29 +00:00
Kershaw Chang
750f73dbb2 Bug 1596409 - P1.2: Create PHttpTransaction IPC protocol r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54290

--HG--
extra : moz-landing-system : lando
2019-12-03 13:42:15 +00:00
Kershaw Chang
f3bddbd52b Bug 1596409 - P1.1: Make socket process support IPCStream r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D54289

--HG--
extra : moz-landing-system : lando
2019-12-03 13:41:58 +00:00
Kershaw Chang
a1a7f14884 Bug 1600678 - Use IPDL refcounted for DNSRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D55475

--HG--
extra : moz-landing-system : lando
2019-12-02 18:28:49 +00:00
Valentin Gosu
2fc5985a45 Bug 1598430 - Make sure that we record the NETWORK_ID_ONLINE telemetry at the right time r=michal
We perform this check in the first OnDataAvailable, instead of doing it in
OnStopRequest in case a network down event occurs after the data has arrived
but before we fire OnStopRequest. That would cause us to report a missing
networkID, even though it was not empty while receiving data.

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

--HG--
extra : moz-landing-system : lando
2019-12-03 07:35:11 +00:00
Ciure Andrei
e473bd5f57 Backed out 10 changesets (bug 1582512) for causing browser_preferences_usage.js to permafail CLOSED TREE
Backed out changeset a615a2c07523 (bug 1582512)
Backed out changeset 7dd0266da0a1 (bug 1582512)
Backed out changeset dfdefc6ede97 (bug 1582512)
Backed out changeset 59db30e1915f (bug 1582512)
Backed out changeset 1eb6f6b02149 (bug 1582512)
Backed out changeset 391ed11326fb (bug 1582512)
Backed out changeset 02865605c1c3 (bug 1582512)
Backed out changeset 017582048986 (bug 1582512)
Backed out changeset 1374c08302f9 (bug 1582512)
Backed out changeset 40dd63b6910a (bug 1582512)
2019-12-02 19:23:12 +02:00
Tom Ritter
40826aaf6c Bug 1582512 - Register a ScriptValidationCallback to examine script loads in the parent process r=Gijs,ckerschb
Additionally, we disable validation on PAC scripts.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 15:45:13 +00:00
Emilio Cobos Álvarez
74327c26b4 Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin
Stuff that's infallible and not virtual has no reason to return an nsresult.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 13:21:06 +00:00
Valentin Gosu
0848f9ba9a Bug 1590528 - Call CheckAdaptersAddresses at startup r=kershaw
The problem is that the suffix is not always computed when Firefox starts up.
This patch adds a pref `network.notify.initial_call` that controls whether
CheckAdaptersAddresses gets called imediately after.
This call is necessary in order to compute the suffix list, VPN status, etc.

This patch also ensures that OnDnsSuffixListUpdated gets called by
NetlinkService::ComputeDNSSuffixList on Android. This notification is
necessary for the TRRService to pick up the suffix list.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 09:34:14 +00:00
Jean-Yves Avenard
72d4a6a2a4 Bug 1599968 - Remove nsIChildProcessChannelListerner interface. r=farre
There's just no use for it, it was an unnecessary virtual interface, with a single concreate class and only ever used in C++.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 15:14:07 +00:00
Jean-Yves Avenard
1bd91d2d68 Bug 1597865 - Fix do_QueryInterface to a RefPtr in DocumentChannel. r=mattwoodrow,mayhemer.
Use QueryObject instead. Some variable renaming to make it clearer we are dealing with a http channel.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 12:43:44 +00:00
Christian Holler
fcad9f8bf9 Bug 1595692 - Handle missing base64 challenge in NegotiateAuth. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53989

--HG--
extra : moz-landing-system : lando
2019-11-22 21:17:10 +00:00
Michal Novotny
f67a1ec522 Bug 1587534 - nsHttpChannel can return invalid content length for alternative data, r=valentin
CacheEntry::GetAltDataSize() can throw an error if the size isn't known yet, i.e. when the output stream wasn't closed yet. nsHttpChannel::OpenCacheInputStream() doesn't check the return value and in case of failure uninitialized altDataSize is stored in mAltDataLength.

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

--HG--
extra : moz-landing-system : lando
2019-11-28 11:09:09 +00:00
Valentin Gosu
7996f8211b Bug 1582647 - Pref off the "public-suffix-list-updated" event r=Gijs
Updating the PSL while Firefox is running could cause principals to have
a different base domain before/after the update.
See bug 1582647 comment 30

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

--HG--
extra : moz-landing-system : lando
2019-11-28 12:16:19 +00:00
Sebastian Streich
a79df87bcc Bug 1589690 : Add isOnion API r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D49751

--HG--
extra : moz-landing-system : lando
2019-11-28 09:22:17 +00:00
Jean-Yves Avenard
06d164721b Bug 1599006 - P4. Properly carry history and frecency data when switching process. r=kmag,mayhemer.
This allows test toolkit/components/places/tests/browser/browser_multi_redirect_frecency.js and others to pass when fission is enabled.

The content process expects to know the chain of redirects encountered while opening a URI. The DocumentChannelParent gather that information and sends it to the new ContentChild which can then propagate the information to the new nsDocShell.

The data used to only be passed around during same-origin redirects when fission mode was enabled.

In order to allow for move semantics and preventing unnecessary copy of the DocumentChannelRedirect array, we make the nsIChildProcessChannelListener::onChannelReady property C++ only (noscript).
As we have only one concrete nsIChildProcessChannelListener class (ChildProcessListener) and that the unique OnChannelReady implementation is infallible; we really don't need for the method to return nsresult (so we declare it nostdcall). This helps simplify that call.

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

--HG--
extra : moz-landing-system : lando
2019-11-28 06:09:54 +00:00
Jean-Yves Avenard
3a1ad99868 Bug 1599006 - P3. Fix move semantics. r=mattwoodrow
A typo prevented for moves to actually occur. Fix other IPDL entry points while at it that could benefit from move semantics.

Depends on D54907

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

--HG--
extra : moz-landing-system : lando
2019-11-27 23:07:34 +00:00
Jean-Yves Avenard
1922c3d728 Bug 1599006 - P2. Fix namespace comment. r=mattwoodrow
Depends on D54454

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

--HG--
extra : moz-landing-system : lando
2019-11-27 23:00:57 +00:00
Emilio Cobos Álvarez
0c421267c6 Bug 1599843 - nsBaseChannel::Init does nothing. r=valentin
And is not virtual, so has no point in existing.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 20:06:41 +00:00
Ehsan Akhgari
6216893099 Bug 1599237 - Add a cookie manager API for deleting cookies by a time range, and use it in the clear data service; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D54646

--HG--
extra : moz-landing-system : lando
2019-11-27 11:01:45 +00:00
Andreea Pavel
c81fb53e77 Bug 1582318 - disable correct browser_sharedWorker.js test case on fission r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D54895

--HG--
extra : moz-landing-system : lando
2019-11-27 10:36:36 +00:00
Kershaw Chang
0e741f1658 Bug 1598676 - P2: Send dns suffix list updated event (Windows/Linux/Android) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54901

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Kershaw Chang
4c90c150c6 Bug 1598676 - P1: Send dns suffix list updated event (MacOS) r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D54782

--HG--
extra : moz-landing-system : lando
2019-11-27 11:14:44 +00:00
Matt Woodrow
4e9f06f73c Bug 1584031 - Allow non-http channels into on-may-change-process. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53893

--HG--
extra : moz-landing-system : lando
2019-11-27 02:19:17 +00:00
Narcis Beleuzu
7d30f98797 Backed out changeset 4c50773d59a2 (bug 1594004) for mochitest failures on test_postMessage_solidus.html . CLOSED TREE 2019-11-27 02:01:58 +02:00
Alex Catarineu
5f0e03d3bf Bug 1598647 - Set Origin to null with network.http.referer.hideOnionSource r=JuniorHsu
Fix comment.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 17:56:14 +00:00
Sebastian Streich
a3be2f9036 Bug 1594004 - Enable CacheSplit in nightly r=ckerschb,annevk
***
Fix Cache-Split related Tests

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

--HG--
extra : moz-landing-system : lando
2019-11-26 15:38:53 +00:00
Sylvestre Ledru
8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Michal Novotny
f155107d8c Bug 1528850 - ws-over-h2 receive seems unreliable, r=dragana
The patch changes InputStreamShim::AsyncWait() so it checks the buffer state and if there is some data available the callback is immediately notified. Without this check the callback would be notified only when new data is delivered from the network.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 08:20:59 +00:00
Brindusan Cristian
6c34625fa0 Backed out 4 changesets (bug 1584031) for crashtest failures at crashtests/914521.html.
Backed out changeset 48a289c7226f (bug 1584031)
Backed out changeset cac72426ac2a (bug 1584031)
Backed out changeset bfb6286d68b6 (bug 1584031)
Backed out changeset c94a216693c5 (bug 1584031)
2019-11-26 06:42:14 +02:00
Matt Woodrow
c5ae95e1b1 Bug 1584031 - Allow non-http channels into on-may-change-process. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53893

--HG--
extra : moz-landing-system : lando
2019-11-26 03:18:26 +00:00
Jean-Yves Avenard
7198477b2c Bug 1596665 - P5. Pass last site information from the parent and remove DCC's nsHashPropertyBag inheritance. r=mayhemer,kmag
The previous site URI is now only written on the parent and sent back to the child once all redirects have completed.

In a follow up we will also transfer this information when a process switch occur as it's currently broken.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 01:47:48 +00:00
Jean-Yves Avenard
6f3787fd8c Bug 1596665 - P4. Expose some nsDocShell utility methods. r=kmag
And use the new methods where we can.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 01:24:42 +00:00
Jean-Yves Avenard
9d62b283ad Bug 1596665 - P3. Copy property bag from parent to child. r=kmag,mayhemer
Rather that setting the property bag on both the child and parent from the docshell; we first set it on the parent instead, and once the redirect (or process switch) has completed we carry that bag across.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 01:24:34 +00:00
Jean-Yves Avenard
cc5f1886ed Bug 1596665 - P2. Add ability to copy all property bag contents to another. r=mattwoodrow
Add static CopyFrom method which is to be used in a follow-up patch. The static method takes a nsIWritablePropertyBag so that we don't need to cast to the concrete class.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 01:49:28 +00:00
Coroiu Cristina
b55f6bda39 Backed out 6 changesets (bug 1598516) for Mn and pgo failures on a CLOSED TREE
Backed out changeset 63a84cdfd937 (bug 1598516)
Backed out changeset 894aaa4bc62e (bug 1598516)
Backed out changeset e19ada9e8b30 (bug 1598516)
Backed out changeset 72f2256ae171 (bug 1598516)
Backed out changeset 6ba74ff735ba (bug 1598516)
Backed out changeset b235cf22b0e4 (bug 1598516)
2019-11-26 04:40:35 +02:00
Matt Woodrow
e6d9c278a0 Bug 1598516 - Add DocumentChannel MOZ_LOGs. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D54250

--HG--
extra : moz-landing-system : lando
2019-11-25 20:23:27 +00:00
Matt Woodrow
9631fb7196 Bug 1598516 - Don't crash if NS_NewChannelInternal fails. r=mayhemer
Looks like this can sometimes fail with moz-extension URIs, so we shouldn't crash

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

--HG--
extra : moz-landing-system : lando
2019-11-25 20:23:14 +00:00
Matt Woodrow
f1d25c550d Bug 1598516 - Expose a RemoteWindowContext on ParentChannelListener. r=mayhemer,kmag
Without DocumentChannel, nsExtProtocolChannel::OpenURL calls into nsExternalHelperAppService::LoadURI in the content process.
We then manually forward this to the parent process over PContent, create a RemoteWindowContext around the browser parent, and then call LoadURI again.

With DocumemntChannel, the nsExtProtocolChannel already lives in the parent, so we just need to provide a RemoteWindowContext directly (that the code accesses via GetInterface on the callbacks).

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

--HG--
extra : moz-landing-system : lando
2019-11-25 23:43:06 +00:00
Andrew McCreight
e1cddbb815 Bug 1599180 - Fix some trivial "browing" typos. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D54570

--HG--
extra : moz-landing-system : lando
2019-11-25 18:32:35 +00:00
Valentin Gosu
2f9d597c56 Bug 1598635 - nsHttpChannel::ComputeCOOPMismatch should not crash in xpcshell-tests r=ttung
Not having a responseHead or browsingContext should not cause a crash or exception

In xpcshell-tests we don't really have a browsingContext, so we want to make
sure we don't crash when that happens.

If the channel failed, we may not have a response head. In that case we don't
want the call to ComputeCrossOriginOpenerPolicyMismatch to be what throws
an exception.

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

--HG--
extra : moz-landing-system : lando
2019-11-25 09:52:51 +00:00
Alex Catarineu
31723548da Bug 1598647 - Set Origin to null with network.http.referer.hideOnionSource r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D54303

--HG--
extra : moz-landing-system : lando
2019-11-25 13:29:47 +00:00
Valentin Gosu
43afef29e7 Bug 1565022 - TRR: Check for NRPT on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54093

--HG--
extra : moz-landing-system : lando
2019-11-24 14:33:26 +00:00
Valentin Gosu
0e928af6c3 Bug 1565008 - TRR: Check for Proxy on Windows to use platform DNS r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D54092

--HG--
extra : moz-landing-system : lando
2019-11-24 14:54:02 +00:00
Liang-Heng Chen
6bedbf81f5 Bug 1593083 - Ensure mTopWindowURI & mContentBlockingAllowListPrincipal are set correctly during HTTP redirects; r=mayhemer,Ehsan
There are 2 redirections happened on the tracking resource:
`nsHttpChannel` -> `InterceptedHttpChannel` -> `nsHttpChannel`.

`mTopWindowURI` is not copied to during the first redirection because it checks if the target channel is a `nsHttpChannel`.

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

--HG--
extra : moz-landing-system : lando
2019-11-23 22:45:35 +00:00
Kershaw Chang
b6831f6f80 Bug 1579049 - Part2: Expose proxy response error code in nsIProxiedChannel.idl r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D51143

--HG--
extra : moz-landing-system : lando
2019-11-21 16:02:47 +00:00
Kershaw Chang
60f6486027 Bug 1579049 - P1: Map Http error response codes to gecko error codes r=mayhemer,valentin
Differential Revision: https://phabricator.services.mozilla.com/D49903

--HG--
extra : moz-landing-system : lando
2019-11-21 14:24:36 +00:00
Mathieu Leplatre
280083669e Bug 1597337 - Report download errors in uptake telemetry r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53783

--HG--
extra : moz-landing-system : lando
2019-11-22 08:35:30 +00:00
Kershaw Chang
0074c17ca8 Bug 1587686 - Cancel post-redirect channel if pre-redirect channel is already canceled r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52546

--HG--
extra : moz-landing-system : lando
2019-11-21 16:17:55 +00:00
ffxbld
533132c23d 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/D54125

--HG--
extra : moz-landing-system : lando
2019-11-21 15:29:52 +00:00
Daniel Varga
f12c40c242 Backed out changeset afe80b4ff889 (bug 1595934) Requested by ehsan to see if it fixex bug 1597915. On a CLOSED TREE 2019-11-22 02:01:51 +02:00
Jean-Yves Avenard
81120e5898 Bug 1595637 - P0. Remove use of NS_IF_ADDREF macro. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53380

--HG--
extra : moz-landing-system : lando
2019-11-21 10:57:54 +00:00
Jean-Yves Avenard
aabcbaf2bd Bug 1595637 - P6. Remove depency on ChannelEventQueue and NeckoTargetHolder from DocumentChannelChild. r=mayhemer
There was no need for the ChannelEventQueue and GetNeckoTarget() was always retuning the main thread anyway.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 11:00:04 +00:00
Jean-Yves Avenard
7939f75703 Bug 1595637 - P5. Remove Suspend/Resume methods from PDocumentChannel. r=mattwoodrow
They are no longer used.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:31 +00:00
Jean-Yves Avenard
140a44a824 Bug 1595637 - P4. Assert that DCC non-functional methods are never called. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52786

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:23 +00:00
Jean-Yves Avenard
901cb4a89a Bug 1595637 - P2. Remove nsIIdentChannel from nsBaseChannel. r=mayhemer
It was only needed when used with DocumentChannelChild.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:11 +00:00
Jean-Yves Avenard
e4fca7200e Bug 1595637 - P1. Don't have DocumentChannelChild inherit from nsBaseChannel. r=mayhemer
This expose that some methods aren't doing anything. We will address those in a follow-up change.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:58:02 +00:00
Valentin Gosu
50ab46ba6c Bug 1565004 - Make sure we skip TRR when there's an active VPN r=mayhemer
- Adds the `network.trr.enable_when_vpn_detected` defaulting to false. This means detecting a PPP adapter will make IsExcludedFromTRR always return true - it does not affect the `network.trr.mode` pref.
- Adds a test that when nsINetworkLinkService.vpnDetected is true we skip all TRR requests
- Makes it so we update the excludedDomains list and VPN detected status for TRR on any network:link-status-changed observer notification that is received.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:48 +00:00
Valentin Gosu
13590a1c98 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Valentin Gosu
8cbd335488 Bug 1597137 - Make sure that variables touched from IsExcludedFromTRR are locked r=dragana
- Since IsExcludedFromTRR may be called from multiple threads we should make sure that the member variables it uses are either atomic or locked.
- Makes IsTRRBlacklisted call IsExcludedFromTRR instead of querying variables again.
- Removes hardcoded checks for localhost and .local, since these are included in network.trr.builtin-excluded-domains

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:43:02 +00:00
Valentin Gosu
8750aabfa9 Bug 1597137 - Don't load TRR entries from the cache if they are part of the excluded list. r=dragana
This patch fixes two issues where we may mistakenly load a TRR record even though the host is part of the excluded-domains list:
1. If a.com is part of the excluded domains, but b.com is not, then when we first resolve b.com using TRR, the server may also push the record for a.com; Previously we didn't check if the pushed record is also excluded, which could lead us to load it from the TRR cache.
2. If b.com is resolved using TRR, but later b.com is added to the excluded-domains list, we may mistakenly load b.com from the TRR cache, even though we should use platform DNS for it.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:02:33 +00:00
Honza Bambas
50f49afa20 Bug 1592628 - Propagate network.http.proxy.respect-be-conservative to the http connection manager at startup properly, r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D54002

--HG--
extra : moz-landing-system : lando
2019-11-20 18:22:08 +00:00
Matt Woodrow
ecff1d58fe Bug 1597015 - Split DocumentChannelParent into two separate classes (DocumentLoadListener and DocumentChannelParent). r=mayhemer,jya
Currently DocumentChannelParent serves two fairly separate functions.

    It acts as a logic controller for a connecting load (ultimately on behalf of a CanonicalBrowsingContext), that creates a channel and once it gets a response, figures out the right thing to do with it (send to the originating process, send to a new process, handle as a download etc).

    It's the parent-side IPDL actor for an nsIChannel implementation that we hold in the docshell as a placeholder while the above happens. This is largely a backwards compatibility hack since docshell expects to have a channel when a load has been initiated (but in the future we could do loads more directly through BrowsingContext and rewrite docshell to understand waiting on that).

This patch splits this into two separate classes (and adds more documentation explaining exactly what each one does). It shouldn't affect any behaviour.

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

--HG--
rename : netwerk/ipc/DocumentChannelParent.cpp => netwerk/ipc/DocumentLoadListener.cpp
extra : moz-landing-system : lando
2019-11-20 03:29:25 +00:00
Cosmin Sabou
3a4c7de3a6 Backed out changeset 1e9b8d8d2c8f (bug 1595833) for causing linux tsan build bustages. CLOSED TREE
--HG--
extra : amend_source : 5cd314ae4ddb281fd5f5c35477994883c9e3e45f
2019-11-20 18:57:29 +02:00
Cosmin Sabou
be84eb7037 Backed out 11 changesets (bug 1582512) for causing valgrind bustages.
Backed out changeset 8b850fd66bf5 (bug 1582512)
Backed out changeset 07d3631e609a (bug 1582512)
Backed out changeset fa91b085eb59 (bug 1582512)
Backed out changeset 232d5735d404 (bug 1582512)
Backed out changeset 47045fa2ffd2 (bug 1582512)
Backed out changeset 40a0f6c6cd61 (bug 1582512)
Backed out changeset 5fb3e489c31f (bug 1582512)
Backed out changeset 379318a35b20 (bug 1582512)
Backed out changeset bf81985c33b7 (bug 1582512)
Backed out changeset 1e0dd57b8041 (bug 1582512)
Backed out changeset 2787043f1fab (bug 1582512)
2019-11-20 18:44:45 +02:00
Cosmin Sabou
4e76fd5665 Backed out 2 changesets (bug 1565004) for xpc failures on netwerk/test/unit/test_trr.js.
Backed out changeset 3d6d67621349 (bug 1565004)
Backed out changeset ef016d00ec9b (bug 1565004)
2019-11-20 18:40:16 +02:00
Honza Bambas
070175d563 Bug 1595833 - Send http preferences correctly to the http connection manager to take actual affect, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D52700

--HG--
extra : moz-landing-system : lando
2019-11-20 15:58:36 +00:00
Tom Ritter
e7037fe85f Bug 1582512 - Register a ScriptValidationCallback to examine script loads in the parent process r=Gijs,ckerschb
Additionally, we disable validation on PAC scripts.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 13:04:00 +00:00
Valentin Gosu
2bdc8b2de9 Bug 1565004 - Make sure we skip TRR when there's an active VPN r=mayhemer
- Adds the `network.trr.enable_when_vpn_detected` defaulting to false. This means detecting a PPP adapter will make IsExcludedFromTRR always return true - it does not affect the `network.trr.mode` pref.
- Adds a test that when nsINetworkLinkService.vpnDetected is true we skip all TRR requests
- Makes it so we update the excludedDomains list and VPN detected status for TRR on any network:link-status-changed observer notification that is received.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 14:33:33 +00:00
Valentin Gosu
eb905c9af5 Bug 1565004 - Add nsINetworkLinkService.vpnDetected r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D52168

--HG--
extra : moz-landing-system : lando
2019-11-20 14:33:11 +00:00
Valentin Gosu
d7cadb0bc8 Bug 1597683 - Parse DNS suffix list from the windows registry r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D53814

--HG--
extra : moz-landing-system : lando
2019-11-20 12:54:29 +00:00
Michal Novotny
c42d0ce790 Bug 1596419 - Network change event can be hidden by coalescing period on Linux/Android r=valentin
This patch makes network change event different from network ID change event on Linux and Android. Network change event is now also sent when any address has been added, removed or changed.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 11:56:13 +00:00
Andreea Pavel
5c654c5a3f Backed out changeset 7e8755b2ddce (bug 1594004) for failing xpcshell at test_http2.js on a CLOSED TREE 2019-11-20 06:13:50 +02:00
Andreea Pavel
03a2c54d6f Backed out 3 changesets (bug 1595154) for failing bc at browser_autocomplete_marked_detached_tab.js on a CLOSED TREE
Backed out changeset f512953534ac (bug 1595154)
Backed out changeset 803a2dfdda82 (bug 1595154)
Backed out changeset ddd336d5bf1a (bug 1595154)

--HG--
rename : browser/extensions/formautofill/FormAutofillChild.jsm => browser/extensions/formautofill/content/FormAutofillFrameScript.js
2019-11-20 05:03:37 +02:00
Sebastian Streich
2b934a4f1a Bug 1594004 - Enable CacheSplit on default r=ckerschb,annevk
***
Fix Cache-Split related Tests

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

--HG--
extra : moz-landing-system : lando
2019-11-19 15:27:20 +00:00
Matt Woodrow
a439f13b34 Bug 1597014 - Unify same-process and cross-process redirect to real channel functions to avoid needed separate promise handlers. r=mayhemer
These two functions both have a large number of arguments that are largely identical (and ones missing from the PContent one are mostly oversights).
Unifying both to take a single argument and return the same result means we can unify the serialization and return value (promise) handling.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 01:48:32 +00:00
Neil Deakin
a6095ebaf4 Bug 1595154, replace the frame script FormAutofillFrameScript.js with an actor and fix up setTimeout calls in places that were relying on Timer.jsm being loaded in that frame script, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D52721

--HG--
rename : browser/extensions/formautofill/content/FormAutofillFrameScript.js => browser/extensions/formautofill/FormAutofillChild.jsm
extra : moz-landing-system : lando
2019-11-20 01:25:20 +00:00
Sean Feng
f8ddb7e6f1 Bug 1580316 - Update signatureInfo to Array of Array of nsIX509Cert(in raw bytes) r=keeler,dimi
The signatureInfo that has been used in ExternalHelperAppService and
ReputationService has been stored Array of nsIX509CertList, which
isn't necessary because only the raw bytes of the certs are required.
This patch intends to remove the usage of nsIX509CertList and store
the raw bytes directly.

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

--HG--
extra : moz-landing-system : lando
2019-11-19 19:51:44 +00:00
Andrew McCreight
3906df9ebd Bug 1597804 - Fix "pricnipal" typos in some comments. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D53882

--HG--
extra : moz-landing-system : lando
2019-11-19 23:07:54 +00:00
Valentin Gosu
8cf9e7e128 Bug 1589446 - Send the network id notification on networkID change (OSX) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53363

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:43 +00:00
Valentin Gosu
8c6c95e80d Bug 1589446 - Send the network id notification on networkID change (Android) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53362

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:30 +00:00
Valentin Gosu
0f34f53efd Bug 1589446 - Send the network id notification on networkID change (Linux) r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D53361

--HG--
extra : moz-landing-system : lando
2019-11-19 10:33:17 +00:00
Valentin Gosu
b28d9ca7fc Bug 1589446 - Add network id change event (Windows) r=kershaw,michal
- removes nsNotifyAddrListener::ChangeEvent in favour of NS_NewRunnableFunction
- adds new topic for network ID change notification

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

--HG--
extra : moz-landing-system : lando
2019-11-19 11:41:43 +00:00
Valentin Gosu
9503c7faab Bug 1585106 - Use mutex in PACResolver when accessing mRequest from multiple threads r=michal
Differential Revision: https://phabricator.services.mozilla.com/D52488

--HG--
extra : moz-landing-system : lando
2019-11-18 21:29:07 +00:00
Bogdan Tara
031ed92876 Merge mozilla-central to autoland. a=merge 2019-11-19 00:49:39 +02:00
Csoregi Natalia
cfc85b20d9 Merge autoland to mozilla-central. a=merge 2019-11-18 23:29:08 +02:00
shindli
9e0a61f0bb Merge autoland to mozilla-central. a=merge 2019-11-18 18:16:42 +02:00
Bogdan Tara
c8e279768f Backed out 2 changesets (bug 1405971) on evilpies's request
Backed out changeset dd473ab6821e (bug 1405971)
Backed out changeset 3b42f1a5097a (bug 1405971)
2019-11-18 23:08:21 +02:00