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

58 Коммитов

Автор SHA1 Сообщение Дата
Tarek Ziadé 2420a8ebb9 Bug 1502917 - Adding ChromeUtils.RequestProcInfo() - r=Ehsan,mstange,kershaw,mhowell
This patch introduces a new module in widget that implements a simple API to
retrieve system information about a process and its threads.

This function is wrapped into ChromeUtils.RequestProcInfo to return information
about processes started by Firefox.

The use case for this API is to monitor Firefox resources usage in projects
like the battery usage done by the data science team.

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

--HG--
extra : moz-landing-system : lando
2019-02-23 18:07:59 +00:00
Dorel Luca e2b65baabd Backed out changeset cd5dbeee8c5d (bug 1502917) for build bustage. CLOSED TREE 2019-02-22 14:32:42 +02:00
Tarek Ziadé 983d831bbe Bug 1502917 - Adding ChromeUtils.RequestProcInfo() - r=Ehsan,mstange,kershaw,mhowell
This patch introduces a new module in widget that implements a simple API to
retrieve system information about a process and its threads.

This function is wrapped into ChromeUtils.RequestProcInfo to return information
about processes started by Firefox.

The use case for this API is to monitor Firefox resources usage in projects
like the battery usage done by the data science team.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 23:05:44 +00:00
Junior Hsu 478d72efdc Bug 1513057 - P9: socket oepration should wait until socket process launch r=mayhemer,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D14510

--HG--
extra : moz-landing-system : lando
2019-01-12 01:00:26 +00:00
Kershaw Chang 1b6d34eee2 Bug 1513057 - P3: Setup memory reporter on socket process r=dragana,mayhemer
To setup memory reporter on socket process, this patch modifies the PSocketProcess protocol to implement the same memory reporting functions as the PContent and PGPU protocols.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 20:52:39 +00:00
Kershaw Chang 0b336d5545 Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 18:57:23 +00:00
Andreea Pavel 21ad33d612 Backed out 10 changesets (bug 1513057) for build bustages on a CLOSED TREE
Backed out changeset 56329b5f1844 (bug 1513057)
Backed out changeset 46411c5de3da (bug 1513057)
Backed out changeset de65c456aad6 (bug 1513057)
Backed out changeset f648b5f1a7c2 (bug 1513057)
Backed out changeset 460bbf0849e1 (bug 1513057)
Backed out changeset 86032a14d26f (bug 1513057)
Backed out changeset a81f83df08d5 (bug 1513057)
Backed out changeset edbda5ee5fd5 (bug 1513057)
Backed out changeset c900ac2519f5 (bug 1513057)
Backed out changeset 4e94bbb90315 (bug 1513057)
2019-01-11 17:02:44 +02:00
Kershaw Chang db8c311487 Bug 1513057 - P9: socket oepration should wait until socket process launch r=mayhemer,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D14510

--HG--
extra : moz-landing-system : lando
2019-01-11 14:23:19 +00:00
Kershaw Chang 07a7cc19a1 Bug 1513057 - P3: Setup memory reporter on socket process r=dragana,mayhemer
To setup memory reporter on socket process, this patch modifies the PSocketProcess protocol to implement the same memory reporting functions as the PContent and PGPU protocols.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 13:28:00 +00:00
Kershaw Chang 0c2943008a Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
Differential Revision: https://phabricator.services.mozilla.com/D14148

--HG--
extra : moz-landing-system : lando
2019-01-11 14:07:47 +00:00
Tooru Fujisawa 7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Gabriele Svelto 266ef73c96 Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10251

--HG--
extra : moz-landing-system : lando
2018-10-31 20:39:03 +00:00
Kris Maglione 152af93226 Bug 1473631: Part 3 - Replace pref observers with callbacks in IOService. r=njn
MozReview-Commit-ID: BBNUysmOuZV

--HG--
extra : rebase_source : 204d4444deed66a34e029e794b4721cf93b33d72
2018-07-05 13:25:03 -07:00
Boris Zbarsky dd184e287a Bug 1455676 part 5. Remove nsIDOMNode usage from netwerk/. r=qdot 2018-05-29 22:58:48 -04:00
Gijs Kruitbosch e669847128 Bug 1447341 - stop querying prefs for fake protocols we use internally, r=nwgh
MozReview-Commit-ID: EXUupEKlsSM

--HG--
extra : rebase_source : 9df3048e6c24a6d9f8b38196903fe5d8450dbe01
2018-04-17 15:48:13 +01:00
Gijs Kruitbosch e932bbd4a3 Bug 1447341 - include blob, moz-extension and page-icon in list of known schemes, r=nwgh
MozReview-Commit-ID: HYiBCJ868nC

--HG--
extra : rebase_source : 57b3f39ebf41f4cad2719fc1f2b412e8dde6e491
2018-04-17 15:41:40 +01:00
Tom Schuster b0dadb57b5 Bug 1452701 - Add pref to allow FTP subresources. r=ckerschb
--HG--
extra : rebase_source : 571060a866cc46ab253b0718d33dcbbd0f7e0a87
2018-04-09 21:07:01 +02:00
Daniel Stenberg e443c66c37 bug 1447642 - no more DNSService restarts r=valentin
The DNS service was shutdown and restarted again in several scenarios,
for example when one of its prefs changed and by nsIOService when going
offline/online. The DNSService restart dragged the resolver, TRRService
and others with it and they too were thus restarted.

Most notably this hurt TRR resolving, as the restart caused short gaps
in time when there was no TRRService available and nsHostResolver
defaults to TRR Mode "native" if there's no TRRservice up, causing the
name resolver to occasionally use the wrong or unexpected resolver even
though TRR is enabled.

The resolver restart also flushed the DNS cache which is now avoided.

It is also a performance gain.

MozReview-Commit-ID: pp4Y8bNQJk

--HG--
extra : rebase_source : 9e3b3e6c0df16b8ca6287d8045f594026ae9ad6d
2018-03-21 14:35:53 +01:00
Ben Kelly 322046c942 Bug 1231211 P12 Allow the ClientInfo and ServiceWorkerDescriptor to be passed to NS_NewChannel() for principal based loads. r=valentin 2018-01-23 10:38:54 -05:00
Geoff Brown cbb956e0c3 Bug 1407679 - Merge nsIIOService and nsIIOService2; r=nwgh 2017-11-10 07:03:36 -07:00
Kris Maglione 257d9118dc Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj
Right now, NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR expects singleton
constructors to return already-addrefed raw pointers, and while it accepts
constructors that return already_AddRefed, most existing don't do so.

Meanwhile, the convention elsewhere is that a raw pointer return value is
owned by the callee, and that the caller needs to addref it if it wants to
keep its own reference to it.

The difference in convention makes it easy to leak (I've definitely caused
more than one shutdown leak this way), so it would be better if we required
the singleton getters to return an explicit already_AddRefed, which would
behave the same for all callers.


This also cleans up several singleton constructors that left a dangling
pointer to their singletons when their initialization methods failed, when
they released their references without clearing their global raw pointers.

MozReview-Commit-ID: 9peyG4pRYcr

--HG--
extra : rebase_source : 2f5bd89c17cb554541be38444672a827c1392f3f
2017-10-16 21:08:42 -07:00
hanbinchang f33b2dcc82 Bug 1386168 - Remove nsIOservice::mProxyService. r=bagder 2017-08-04 00:09:11 -04:00
Liang-Heng Chen ea3834fbff Bug 1379872 - early initialize ProtocolProxyService; r=bagder
MozReview-Commit-ID: Kv7cVYhmLJn

--HG--
extra : rebase_source : e1b89084906f7dfa133a6ba7c0b1c5873571056c
2017-07-27 19:10:21 +08:00
Christoph Kerschbaumer 9c97294062 Bug 1331351: Block toplevel window data: URI navigations. r=smaug,francois 2017-07-24 18:51:21 +02:00
Yoshi Huang ccb4b5db4c Bug 1365166 - rename security.data_uri.inherit_security_context to security.data_uri.unique_opaque_origin. r=smaug, ckerschb
Originally the pref is called security.data_uri.inherit_security_context, so the pref is default on.
And when we finish this feature, we turn it off.
To avoid causing confusion in the future, perhaps we should rename it and make the pref default off.
2017-05-23 09:02:05 +08:00
Valentin Gosu 4ccb51bae2 Bug 1363700 - Add RCWN stats to about:networking r=bz,michal
MozReview-Commit-ID: GVt1omCfL6t

--HG--
extra : rebase_source : fdb321360f21f0f54692bc6b715abb4c155171b7
2017-05-10 19:23:54 +02:00
Christoph Kerschbaumer 3129297bc8 Bug 1334050 - Remove dead variable sTelemetryEnabled from nsIOService. r=dragana 2017-01-26 18:49:30 +01:00
Christoph Kerschbaumer 98c3400499 Bug 1328860: Install pref to have data: URIs not inherit the security context. r=smaug 2017-01-26 18:40:32 +01:00
Tim Huang fc4cdaf096 Bug 1304219 - Part 1: Add a nsISpeculativeConnect.speculativeConnect2() interface which takes a principal as an additional argument. r=mayhemer, sr=mcmanus
--HG--
extra : rebase_source : 5fbcafd208b3136d168725b0a57e35bb70304f6a
extra : histedit_source : 2f9e0606a13b41deea3675d9435dcc7ef52f37c3
2016-10-24 12:18:25 +08:00
Valentin Gosu d746e122c8 Bug 1307491 - (Part 1) Remove support for per-app-offline in netwerk/ [nukeb2g] r=bagder
* * *
Bug 1307491 - Remove support for per-app-offline [nukeb2g] r=bagder

MozReview-Commit-ID: FoweWBv9QyE

--HG--
extra : rebase_source : 0f6e0f0d19f108c3aef8b25cb6d605ecd338ee2b
2016-10-17 03:54:46 +02:00
Honza Bambas 512654c1f7 Bug 1293621 - Make sure that nsIOService::GetCachedProtocolHandler is called only on the main thread. r=jduell
--HG--
extra : rebase_source : de5224ef195dddd356a95a693224c6ac1554467c
2016-08-09 07:43:00 -04:00
Nicholas Nethercote bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Patrick McManus 2cd574f25f Bug 1274376 - more mozilla::net namespaces r=dragana
--HG--
extra : rebase_source : 914d48f23a4a5db052a789b9e21c1ff922533d35
2016-05-18 22:02:57 -04:00
Valentin Gosu 26adbcb7e5 Bug 816866 - Trigger a captive portal recheck when a certificate error occurs r=mcmanus 2016-05-17 23:55:52 +02:00
Patrick McManus f03b618067 Bug 1236969 - remove autodialer r=valentin 2016-02-19 14:33:59 -05:00
Dragana Damjanovic dd.mozilla@gmail.com 483a342274 Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus
--HG--
extra : rebase_source : 762aa4b8f1e03c7422cd9416dfb724ac8926820d
2016-02-04 04:14:00 +01:00
Sebastian Hengst 3de13c67e0 Backed out changeset 28188ac5d84a (bug 1242755) for XPCshell failures on Linux x64. r=backout 2016-02-08 13:17:43 +01:00
Dragana Damjanovic dd.mozilla@gmail.com 8939aa6688 Bug 1242755 - Move nsHttpConnectionMgr->Shutdown back to nsHttpHandler. r=mcmanus 2016-02-04 04:14:00 +01:00
Dragana Damjanovic 06c9cbac52 Bug 1240481 - Limit PR_Close calls during shutdown. r=mcmanus 2016-01-18 08:20:00 +01:00
Dragana Damjanovic 874fe57403 Bug 1240269 - Do not open UDP socket during shutdown. r=mcmanus 2016-01-16 01:19:00 -05:00
Dragana Damjanovic 198debd13b Bug 1238910 - Rework shutdown necko. r=mcmanus 2016-01-14 04:42:00 -05:00
Patrick McManus 74c91a9068 Bug 524232 - cache about: protocol handlers r=mayhemer 2015-12-17 10:39:41 -05:00
Nicholas Nethercote f5561f39f2 Bug 1186783 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in netwerk/ with iterators. r=valentin. 2015-11-19 16:46:35 -08:00
Dragana Damjanovic 4900e9e338 Bug 1152046 - add telemetry for time spent in connect/close. r=mayhemer
--HG--
extra : rebase_source : 1166706f2360016b020aa5de8ab9a1c4f431b9b7
2015-07-07 11:13:00 +02:00
Valentin Gosu 754aea4980 Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Carsten "Tomcat" Book 7cda123145 Backed out changeset 49f72333b407 (bug 1048131) 2015-07-03 14:25:56 +02:00
Valentin Gosu fb74912cb6 Bug 1048131 - Make some network events trigger a captive portal recheck r=mcmanus 2014-10-14 00:35:51 +03:00
Dragana Damjanovic ae642a5b48 Bug 1152046 - Don't try to connect if we are shutting down. r=mayhemer
--HG--
extra : rebase_source : 157f4f7af0a9ff4907bc81b4d080f4b7c0712524
2015-05-29 02:04:00 -04:00
Patrick McManus 776fb0b18c Bug 1162243 - add anonymous speculative connections r=hurley 2015-05-05 21:15:36 -04:00