Commit Graph

20555 Commits

Author SHA1 Message Date
Kershaw Chang
bfef77cb06 Bug 1607426 - Add a mutex to protect nsPACMan::mLoader r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D73286
2020-07-03 12:31:31 +00:00
Honza Bambas
3bd96223fe Bug 1609410 - Allow restart of an HTTP transaction with 421 HTTP end-server response made through a newly authenticated NTLM proxy connection by unsticking the connection, r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81886
2020-07-02 08:31:18 +00:00
Honza Bambas
a14447a33a Bug 1642602 - Make about:cache show all entries, remove the no longer usable context switch UI, r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81885
2020-07-03 11:41:53 +00:00
Jean-Yves Avenard
8fd158d479 Bug 1649684 - Use the current nsISerialEventTarget with the various process hosts. r=nika
In all those cases, the current nsISerialEventTarget is either the main thread or the MessageChannel's nsISerialEventTarget (since bug 1634846)

Differential Revision: https://phabricator.services.mozilla.com/D81966
2020-07-02 22:59:24 +00:00
Michal Novotny
ae7b241f26 Bug 1649410 - [socket-process] test_version_fallback() in netwerk/test/unit/test_http3.js fails r=necko-reviewers,kershaw
Propagate Alt-Used request header set in socket process to parent process.

Differential Revision: https://phabricator.services.mozilla.com/D81714
2020-07-02 16:54:34 +00:00
Csoregi Natalia
4dcffa68cd Backed out 9 changesets (bug 1619953) for causing leaks. CLOSED TREE
Backed out changeset 9f610c8c44de (bug 1619953)
Backed out changeset 4e66983a4f00 (bug 1619953)
Backed out changeset 38aac5691967 (bug 1619953)
Backed out changeset 062c0c9b132f (bug 1619953)
Backed out changeset 830eb658d70e (bug 1619953)
Backed out changeset fccda4625d51 (bug 1619953)
Backed out changeset 4668c99560de (bug 1619953)
Backed out changeset 77c24528c8c2 (bug 1619953)
Backed out changeset b79dc688bfc9 (bug 1619953)
2020-07-02 17:58:57 +03:00
ffxbld
079e757071 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D82025
2020-07-02 14:34:09 +00:00
ssengupta
2b0a9341fb Bug 1619953 - P8 - Test browser_blob-channelname.js converted to xpcshell-test and updated to work with asynchronous input streams r=baku,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81783
2020-07-02 13:38:48 +00:00
Noemi Erli
d60357a61d Backed out changeset 3e349b00a1e4 (bug 1649349) for causing failures in browser_CORS-console-warnings.js 2020-07-02 14:01:25 +03:00
Kershaw Chang
555ff876d1 Bug 1648008 - Don't report DNS error if the socket is closed by client side r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D81469
2020-06-29 09:09:21 +00:00
Noemi Erli
6d5eb18b6a Backed out 4 changesets (bug 1437626) for causing ES lint failure CLOSED TREE
Backed out changeset c9a432ac1964 (bug 1437626)
Backed out changeset 905916b5ee1a (bug 1437626)
Backed out changeset c692ce0d363a (bug 1437626)
Backed out changeset fcd023c403bc (bug 1437626)
2020-07-02 11:05:40 +03:00
Dimi Lee
4f69aa8fa0 Bug 1437626 - P3. Use global tracking Protection pref when a channel doesn't have a loadcontext r=baku
Channels loaded by service worker don't have loadcontext, so we don't
apply tracking protection on them.

Depends on D80183

Differential Revision: https://phabricator.services.mozilla.com/D80184
2020-07-02 07:20:52 +00:00
Dimi Lee
f334f91266 Bug 1437626 - P2. Get top-level URI from ClientInfo when a channel is initiated by ShareWorker or ServiceWorker r=baku
When a channel is initiated from sharedworker or service worker, we use
worker's origin as the top-level uri.

Depends on D80182

Differential Revision: https://phabricator.services.mozilla.com/D80183
2020-07-02 07:20:44 +00:00
Dimi Lee
ae27794ca2 Bug 1437626 - P1. Use TYPE_DOCUMENT to determin whether a channel is a top-level load. r=baku
We use whether channel->GetTopWindowURI returns a failure to determin
if the channel is a top-level load. However, channels loaded by service
worker or appcache don't have top-level window.

This patch use TYPE_DOCUMENT to determin whether it is a top-level load.
This patch also adds UrlClassifierCommon::GetTopWindowURI to print debug message
because nsIChannel::GetTopWindowURI is not fission-compatible.

Differential Revision: https://phabricator.services.mozilla.com/D80182
2020-07-02 07:20:42 +00:00
Matt Woodrow
2ffa50a0da Bug 1649349 - Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D81648
2020-07-02 07:12:23 +00:00
Mihai Alexandru Michis
9a29f7817f Backed out changeset 28298106459d (bug 1649349) for causing multiple mochitest failures.
CLOSED TREE
2020-07-02 05:18:07 +03:00
Junior Hsu
33eb15b30e Bug 1648035 - remove the false alarm assertion given mChild could be destroied by ActorDestory, r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81625
2020-07-02 01:07:34 +00:00
Matt Woodrow
ff289259d3 Bug 1649349 - Don't delay rejecting DocumentLoadListener's Open promise when we switch process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D81648
2020-06-30 19:19:59 +00:00
Honza Bambas
3e4d7a2df9 Bug 1615121 - Keep CacheEntry.mLock when reading its mState to prevent a race, r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D62773
2020-07-01 17:55:46 +00:00
Dragana Damjanovic
7ab47f85ba Bug 1648553 - Improve Http3Stream sending states. r=michal,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81396
2020-07-01 11:23:46 +00:00
Valentin Gosu
d65a630d7b Bug 1618271 - Fail DNS requests when proxy is in use r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80889
2020-07-01 16:49:19 +00:00
Valentin Gosu
722b5f1b24 Bug 1618271 - Move network.proxy.type to StaticPrefList.yaml r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80888
2020-07-01 16:49:05 +00:00
Andy Grover
05abb6839b Bug 1649512 - Update to Neqo 0.4.5 r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81763
2020-07-01 08:11:35 +00:00
Andreas Farre
91413414ea Bug 1645781 - Part 2: Make nsMIMEInputStream always be serializable. r=baku,necko-reviewers
nsMIMEInputStream was conditionally serializable depending on the
wrapped stream. In general when a stream needs to be sent over IPC, if
it isn't serializable we send it using
InputStreamHelper::SerializeInputStreamAsPipe. There is no reason to
not branch on the wrapped stream when serializing nsMIMEInputStream
and use that, instead of sending the nsMIMEInputStream itself over a
pipe.

Differential Revision: https://phabricator.services.mozilla.com/D80890
2020-07-01 14:20:06 +00:00
Valentin Gosu
c5c364d39b Bug 1649417 - Don't perform unnecessary DoH CNAME requests r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81721
2020-07-01 12:34:15 +00:00
Valentin Gosu
b6daaa1aa8 Bug 1649401 - Default initializer for TRR constructors r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81674
2020-07-01 12:34:03 +00:00
Valentin Gosu
6e82d17bea Bug 1649401 - Remove unused mStartTime r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81673
2020-07-01 12:34:56 +00:00
Simon Giesecke
9364b353d4 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke
e3c223da3e Bug 1648010 - Fix uses of NS_LITERAL_STRING with C string literals. r=geckoview-reviewers,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80861
2020-07-01 08:34:12 +00:00
Simon Giesecke
cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Tim Huang
986aadbbd4 Bug 1644738 - Propagate the IsOnContentBlockingAllowList in CookieJarSettings to the script generated document. r=baku
We also need to propagate the IsOnContentBlockingAllowList to the script
generated document. For this kind of document, it won't have the
CookieJarSettings at the first place. It will generate its
CookieJarSettings when someone requests it. And we need to propagate the
flag when generating the CookieJarSettings in this case. Or the script
generated document will have a wrong IsOnContentBlockingAllowList flag.

Differential Revision: https://phabricator.services.mozilla.com/D81727
2020-07-01 05:57:16 +00:00
Honza Bambas
9dc053c421 Bug 1632215 - Make nsHttpChannel::mAuthRetryPending atomic to fix a bit field race, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81729
2020-06-30 19:03:51 +00:00
Junior Hsu
426527907a Bug 1578230 - do not process transactions blocked on tunnel before a final response, r=mayhemer,necko-reviewers
Depends on D80261

Differential Revision: https://phabricator.services.mozilla.com/D81620
2020-06-30 18:37:28 +00:00
Junior Hsu
65da3adae8 Bug 1578230 - skip 1xx pre-response for H2 CONNECT proxy, r=mayhemer,necko-reviewers
We already able to allow more headers after 1xx for H2.
https://searchfox.org/mozilla-central/rev/5e6c7717255ca9638b2856c2b2058919aec1d21d/netwerk/protocol/http/Http2Session.cpp#1547-1550

What we need to do is a special handle in H2 Tunneling:
Create the transport shims and decide if we need secondary TLS when we have a final response.

Differential Revision: https://phabricator.services.mozilla.com/D80261
2020-06-29 23:33:44 +00:00
Butkovits Atila
b75fb2d3e0 Backed out 4 changesets (bug 1646592) for xpcshell failures on test_ext_webRequest_filterResponseData.js CLOSED TREE
Backed out changeset cc60e258290e (bug 1646592)
Backed out changeset 3a514b227127 (bug 1646592)
Backed out changeset de9ba1eaded1 (bug 1646592)
Backed out changeset 31aab78792d8 (bug 1646592)
2020-06-30 21:50:45 +03:00
Butkovits Atila
146ad267af Backed out 6 changesets (bug 1599579) for bc failures at test_chrome_ext_contentscript_data_uri.html.
Backed out changeset b767f26b10ed (bug 1599579)
Backed out changeset c5bc0ea42193 (bug 1599579)
Backed out changeset cfdd8d5973d4 (bug 1599579)
Backed out changeset 73f6c956fc30 (bug 1599579)
Backed out changeset 14698ab42ee4 (bug 1599579)
Backed out changeset b4bdd8759433 (bug 1599579)
2020-06-30 21:41:27 +03:00
Nika Layzell
4977d4d393 Bug 1599579 - Part 3: Load toplevel extension frames into a per-extension BrowsingContextGroup, r=kmag
This is done by tracking a specific BrowsingContextGroup ID on the
WebExtensionPolicy in the parent process. Whenever a load is done with that
policy, the browsing context is replaced to ensure it is loaded in the correct
BrowsingContextGroup.

This patch also ensures that extension iframes are always loaded in the same
process as their embedder document, even if the frame was previously remote.

Differential Revision: https://phabricator.services.mozilla.com/D80256
2020-06-30 15:55:43 +00:00
Nika Layzell
c42a21e44a Bug 1599579 - Part 2: Reorganize RemoteType logic in MaybeTriggerProcessSwitch, r=mattwoodrow,necko-reviewers,valentin
The goal with this is to avoid having multiple booleans and other values
computed in arbitrary places and used around the method, and instead pre-compute
common shared information, and group each remoteType special-case together.

Hopefully, this should make it easier to extend the behaviour in
MaybeTriggerProcessSwitch in the future.

Differential Revision: https://phabricator.services.mozilla.com/D80255
2020-06-30 15:55:35 +00:00
Nika Layzell
824c8da580 Bug 1599579 - Part 1: Add the ability to specify a specific BrowsingContextGroup during process switch, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D80254
2020-06-30 16:52:53 +00:00
Junior Hsu
cf2bd325c2 Bug 1646592 - P4 Remove the depedency between OnStartRequestSent and AttachStreamFilter, r=mayhemer,necko-reviewers
We're shorter the name!

Differential Revision: https://phabricator.services.mozilla.com/D81275
2020-06-30 00:35:22 +00:00
Junior Hsu
b5d505b9d7 Bug 1646592 - P3 Sending endpoint of stream filter via PHttpBackgroundChannel, r=mayhemer,necko-reviewers
Endpoint would be passed by a series of std::move via
nsHttpChannel -> HttpChannelParent -> HttpBackgroundChannelParent ---> HttpBackgroundChannelChild -> HttpChannelChild
												|
												|
   Resolve promise after successfully send IPC<-/

Differential Revision: https://phabricator.services.mozilla.com/D81274
2020-06-30 00:35:12 +00:00
Junior Hsu
97eade221b Bug 1646592 - P2 remove NeckoTargetChannelEvent which could not be specialized for HttpChannelChild, r=mayhemer,necko-reviewers
NeckoTargetChannelEvent uses a protected member function, which couldn't compile with instantiation of HttpChannelChild
https://searchfox.org/mozilla-central/rev/cfaa250d14e344834932de4c2eed0061701654da/netwerk/ipc/ChannelEventQueue.h#64

Differential Revision: https://phabricator.services.mozilla.com/D81273
2020-06-30 00:34:54 +00:00
Junior Hsu
2a27443b11 Bug 1646592 - P1 Use nsISerialEventTarget for HttpBackgroundChannelParent, r=valentin,necko-reviewers
Like bug 1647133, we need this to be nsISerialEventTarget for the InvokeAsync

Differential Revision: https://phabricator.services.mozilla.com/D81272
2020-06-30 00:34:47 +00:00
Nika Layzell
c47eae6143 Bug 1647557 - Fix toolchain bustage caused by unused variable. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D81722
2020-06-30 16:01:46 +00:00
Michal Novotny
a4cc2eb134 Bug 1627910 - Enable test netwerk/test/unit/test_http3.js r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D81053
2020-06-30 12:25:02 +00:00
Valentin Gosu
da614ff256 Bug 1641222 - Follow CNAME/AliasForm chains r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D79264
2020-06-30 12:27:09 +00:00
Jean-Yves Avenard
735a4b5c2c Bug 1648898 - Fix data race on STS loop start. r=mayhemer
The STS dispatched the first event before setting mThread member. It was possible that the STS::Run() task got started before mThread was set and causing one of the nsISerialEventTarget methods to read mThread/mInitialised/mShuttingDown value as null or zero and they would have returned an error.

We rewrite and simplify the access to mThread such that it's a lockless operation.

ApplyPortRemapPreference assert that it's running on the taskqueue; however if called before initialization, it would have been run on whatever thread called ApplyPortRemap.

Differential Revision: https://phabricator.services.mozilla.com/D81334
2020-06-30 11:06:31 +00:00
Honza Bambas
f1604cee10 Bug 1649003 - Log JS stacks from inside HTTP channel suspend() and resume() methods, r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81570
2020-06-30 07:15:33 +00:00
Narcis Beleuzu
b151157eee Backed out changeset f16199c7d45e (bug 1648898) for causing Bug 1649333 . CLOSED TREE 2020-06-30 09:57:42 +03:00
Matt Woodrow
7d65de1298 Bug 1647557 - Add preffed-off code for controlling document loads directly from CanonicalBrowsingContext. r=nika,jya,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D70629
2020-06-30 01:19:15 +00:00