Commit Graph

13786 Commits

Author SHA1 Message Date
Iris Hsiao
7e248d8cc9 Merge mozilla-central to autoland 2017-01-06 11:13:22 -05:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
Markus Stange
1713897687 Bug 1323100 - Stop double-registering the Socket Transport thread. r=froydnj
MozReview-Commit-ID: 7YEC79PwUGg

--HG--
extra : rebase_source : 90beae6f131d646ef7ef324a74a65a2d0a6772d6
2016-12-21 17:57:07 +01:00
Markus Stange
35e6ddd6fe Bug 1323100 - Use nsThreadPoolNaming::GetNextThreadName for the DNS resolver thread. r=froydnj
MozReview-Commit-ID: EQvKoIIorKG

--HG--
extra : rebase_source : 613b402292e81e6fa4c8ea404a14f71a893f08a6
2016-12-20 14:21:34 +01:00
Markus Stange
692210bd80 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : c7e335dac2e0f02782f0eb229a7181c8d01317a2
2016-12-21 11:43:50 +01:00
Markus Stange
8a344a17ba Bug 1323100 - Use NS_NewNamedThread for the Wifi Monitor thread. r=froydnj
MozReview-Commit-ID: 25lwf8WdANT

--HG--
extra : rebase_source : aaf1aaafa486aac5c74b694c09495b592839c507
2016-12-21 11:33:21 +01:00
Markus Stange
29c472082f Bug 1323100 - Use NS_NewNamedThread for the Link Monitor thread. r=froydnj
MozReview-Commit-ID: ETOGkxMgknN

--HG--
extra : rebase_source : 1adb7e727313cf9d8f6fd8e2639f9b9e4f081454
2016-12-21 11:32:39 +01:00
Markus Stange
6ec87f0dbb Bug 1323100 - Use NS_NewNamedThread to name the proxy resolution thread. r=froydnj
MozReview-Commit-ID: Fqxr4XmvS7I

--HG--
extra : rebase_source : 397262fd816190849e0629e5b11416da6f2fe30e
2016-12-14 17:16:01 -05:00
Iris Hsiao
4615a8f12c Backed out changeset 5593f1b533da (bug 1328121) for bustage 2017-01-05 11:33:51 -05:00
Gregory Moore
c337ff9019 Bug 1301640 - Replaced per-platform variants of nsIDateTimeFormat with single, ICU-backed version that has static c++ callers. r=emk
Also removed unused format selectors and removed option to pass in a locale. Changed all callers to use new version.

MozReview-Commit-ID: Gq0b1c3C1eO

--HG--
rename : intl/locale/unix/nsDateTimeFormatUnix.cpp => intl/locale/DateTimeFormatUnix.cpp
extra : source : 7e747433d1c9fae8a0acb4090f61335fcc165e4c
2016-11-21 15:58:37 -08:00
Patrick McManus
831d51ec20 Bug 1328121 - hold ref on mlistener when calling onstartrequest r=smaug r=jduell 2017-01-03 16:15:23 -05:00
Patrick McManus
3be474ef20 Bug 1328121 - hold ref on mlistener when calling onstartrequest r=smaug r=jduell 2017-01-03 16:15:23 -05:00
Thomas Nguyen
8cd72c67ca Bug 1304623 - Create a pref to control the default referrer policy- part 2. r=mcmanus, r=bkelly
MozReview-Commit-ID: GEUDZ8UZAT5
2017-01-05 11:30:03 +08:00
Carsten "Tomcat" Book
98048f1496 Merge mozilla-central to autoland 2017-01-04 16:20:18 +01:00
Wei-Cheng Pan
58bdfee137 Bug 1326423 - Fix assertion for optimized build. r=baku
MozReview-Commit-ID: By3J4RLnJHn
2017-01-04 14:40:56 +08:00
Christoph Kerschbaumer
c88d12696d Bug 1182569: Update ContentSecurityManager to handle docshell loads. r=smaug 2017-01-03 20:59:30 +01:00
Ehsan Akhgari
4d287a0042 Bug 1321912 - Remove the appId field from the moz_cookies table; r=jdm 2017-01-03 22:34:46 -05:00
Olli Pettay
0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Ehsan Akhgari
1d19b4a99e Bug 1128311 - Only flush the DNS cache when the last private browsing window is closed; r=mcmanus 2017-01-03 14:32:49 -05:00
Patrick McManus
fb00ea2d92 Bug 1324855 - H2 telemetry for continued header sizes r=hurley r=bsmedberg 2016-12-20 13:54:15 -05:00
dimi
bcd217b3c0 Bug 1320402 - Move url-classifier off of using appIds. r=ehsan, gcp
MozReview-Commit-ID: IqnAVrv2c9W
2017-01-03 14:21:58 +08:00
Masatoshi Kimura
0fde5f3808 Bug 1321705 - Remove "network.standard-url.(escape|encode)-utf8". r=valentin.gosu
MozReview-Commit-ID: D6fRD9ElrBd

--HG--
extra : rebase_source : 55fd4c55a4822076bde8a616dd4ddbde26c8e398
2016-12-30 20:32:29 +09:00
Sebastian Hengst
d9d1c52d92 Backed out changeset daabf6b822f0 (bug 1321705) for Android bustage. r=backout 2016-12-30 12:39:58 +01:00
Masatoshi Kimura
0c6dc2ea73 Bug 1323683 - Fold nsIURIWithQuery into nsIURI. r=valentin.gosu
MozReview-Commit-ID: BFfgr42sNyx

--HG--
extra : rebase_source : a28d6a3c96f0c86dd7269147f130b3195b1f1faf
2016-12-28 20:40:21 +09:00
Masatoshi Kimura
ab2ce0d4b3 Bug 1321705 - Remove "network.standard-url.(escape|encode)-utf8". r=valentin.gosu
MozReview-Commit-ID: D6fRD9ElrBd

--HG--
extra : rebase_source : 6414effcf9e68859781de004e06eedea378e92ca
2016-12-30 10:28:18 +09:00
Wes Kocher
26a1ba5c14 Backed out 27 changesets (bug 1323100) for clipboard leaktest failures a=backout
Backed out changeset 84fb749698ab (bug 1323100)
Backed out changeset d6d25e8bd001 (bug 1323100)
Backed out changeset 1b0855bb0c38 (bug 1323100)
Backed out changeset b6953e3f5739 (bug 1323100)
Backed out changeset 5572f3b63215 (bug 1323100)
Backed out changeset 12fb4c533659 (bug 1323100)
Backed out changeset c36524e4e919 (bug 1323100)
Backed out changeset 1e3b3eddbe26 (bug 1323100)
Backed out changeset 061110f1ae12 (bug 1323100)
Backed out changeset 413dbd31725b (bug 1323100)
Backed out changeset 06550f7eca62 (bug 1323100)
Backed out changeset 940933b13b36 (bug 1323100)
Backed out changeset a6d75c1cd724 (bug 1323100)
Backed out changeset 681cacbbaa3b (bug 1323100)
Backed out changeset 3d53787293f6 (bug 1323100)
Backed out changeset c0340dfe4766 (bug 1323100)
Backed out changeset 9f554991549d (bug 1323100)
Backed out changeset 757539e7039a (bug 1323100)
Backed out changeset a3c9b45aa917 (bug 1323100)
Backed out changeset 23d69df98a66 (bug 1323100)
Backed out changeset 1297ded6a01d (bug 1323100)
Backed out changeset f4235b97257f (bug 1323100)
Backed out changeset 93419cb4f29f (bug 1323100)
Backed out changeset 865d1b81c804 (bug 1323100)
Backed out changeset 54acf4ef8e84 (bug 1323100)
Backed out changeset 88d17bcd8205 (bug 1323100)
Backed out changeset 0c466e5e8933 (bug 1323100)
2016-12-29 16:28:36 -08:00
Markus Stange
48513de60f Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : dffab11abf7d4b57fa54475fd22e71b84375cd7b
2016-12-29 22:32:52 +01:00
Markus Stange
dee0c78211 Bug 1323100 - Stop double-registering the Socket Transport thread. r=froydnj
MozReview-Commit-ID: 7YEC79PwUGg

--HG--
extra : rebase_source : 17b5fa5358507d0cd87e07068434472967f317e1
2016-12-21 17:57:07 +01:00
Markus Stange
c3fde6edb8 Bug 1323100 - Use nsThreadPoolNaming::GetNextThreadName for the DNS resolver thread. r=froydnj
MozReview-Commit-ID: EQvKoIIorKG

--HG--
extra : rebase_source : a386139905d17c7c5bcfb9dad887dbb9b82597fd
2016-12-20 14:21:34 +01:00
Markus Stange
1b72f37c98 Bug 1323100 - Assign names to all remaining threads that are created through NS_NewThread and create them using NS_NewNamedThread instead. r=froydnj
MozReview-Commit-ID: 7W1dt2BBKJZ

--HG--
extra : rebase_source : ad47978ef81d048a90b9803803201eee32974024
2016-12-21 11:43:50 +01:00
Markus Stange
1874a5d84b Bug 1323100 - Use NS_NewNamedThread for the Wifi Monitor thread. r=froydnj
MozReview-Commit-ID: 25lwf8WdANT

--HG--
extra : rebase_source : 3f9accf44b8fd9f269d2e2a6b46aa1c8440d3a9c
2016-12-21 11:33:21 +01:00
Markus Stange
cb3be9a8e9 Bug 1323100 - Use NS_NewNamedThread for the Link Monitor thread. r=froydnj
MozReview-Commit-ID: ETOGkxMgknN

--HG--
extra : rebase_source : 253161c0028458c79f162b5b4d8fd9d57f36944c
2016-12-21 11:32:39 +01:00
Markus Stange
b8f03b0f88 Bug 1323100 - Use NS_NewNamedThread to name the proxy resolution thread. r=froydnj
MozReview-Commit-ID: Fqxr4XmvS7I

--HG--
extra : rebase_source : 70a09ac76919d104092e7c35ec3383191243f130
2016-12-14 17:16:01 -05:00
Masatoshi Kimura
a473040cee Backed out changeset 7e747433d1c9 (bug 1301640) for causing bug 1325751. r=backout
MozReview-Commit-ID: GEYAveO6sUj
2016-12-25 10:43:04 +09:00
Wes Kocher
e28b562783 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 3HW7YWDqTBQ
2016-12-23 14:40:42 -08:00
Wes Kocher
7145ee5d12 Merge inbound to central, a=merge
MozReview-Commit-ID: 56QI5RIvpXC
2016-12-23 14:34:55 -08:00
Wei-Cheng Pan
19fc36c981 Bug 1323947 - Use Use MOZ_MUST_USE in netwerk/protocol/viewsource r=valentin
MozReview-Commit-ID: 5JAkF53s42X

--HG--
extra : rebase_source : 5e3d82f3b15b25c610086e26e941cb6064acf975
2016-11-23 17:21:17 +08:00
Patrick McManus
d40f84f05b Bug 1324872 - quic change from alt-protocol to alt-svc r=hurley 2016-12-20 15:38:45 -05:00
Wei-Cheng Pan
2351d9ac6c Bug 1323946 - Use MOZ_MUST_USE for netwerk/protocol/res r=valentin
MozReview-Commit-ID: 7tcOml6jKdj

--HG--
extra : rebase_source : 76cae2125b93ad68871408187f04ef02bcc228c6
2016-11-04 18:13:13 +08:00
Bill McCloskey
2113b3347b Bug 1318506 - Label HttpChannelChild actors with DocGroup/TabGroup (r=jduell)
This patch tries to figure out which DocGroup or TabGroup a network request
belongs to and then assign the IPC actor to that group. A DocGroup roughly
corresponds to a document and a TabGroup to a tab. Once the assignment is
made, all incoming IPC messages will be labeled with that DocGroup/TabGroup.

MozReview-Commit-ID: EzGCeGdREHl
2016-12-23 11:48:13 -08:00
Ehsan Akhgari
ad51310cc1 Bug 1170190 - Part 3: Add tests for the e10s case too; r=mayhemer 2016-12-23 14:40:11 -05:00
Ehsan Akhgari
cd895c94f2 Bug 1170190 - Part 2: Add the nsIHttpChannel::IsTrackingResource() API to query the channel's tracking annotation; r=mayhemer 2016-12-23 14:40:11 -05:00
Ehsan Akhgari
2aa37e3665 Bug 1170190 - Part 1: Split out a new pref from privacy.trackingprotection.annotate_channels to explicitly control whether the channel priority is adjusted; r=mayhemer 2016-12-23 14:40:10 -05:00
Henri Sivonen
90a759ae3f Bug 1225255 - Encode URL query string segments to bytes with HTML numeric character references for unmappable characters. r=valentin
MozReview-Commit-ID: HDJxSSZZYlw

--HG--
extra : rebase_source : e7fda143123a593b9d84ac4c924b9b1bef57f415
2016-07-15 14:49:22 +03:00
Ting-Yu Chou
cce30331e3 Bug 1322465 part 10 - Use explicit/MOZ_IMPLICIT for the unary constructors in netwerk/. r=Ehsan
MozReview-Commit-ID: DjcK1xPJKEF

--HG--
extra : rebase_source : fb1257a27fe91bc2fd1d17363fa5551f00c2ceda
2016-12-16 15:58:31 +08:00
Manish Goregaokar
53cbc44a0b Bug 1324251 - Unconditionally parse windows drive letters in file paths; r=valentin
MozReview-Commit-ID: 6nBPHYHNprF

--HG--
extra : rebase_source : 650d277eef3afe1f7637769bc05176dcb89e920c
2016-12-18 18:38:01 -08:00
Cameron McCormack
d4d8ba1d5f Bug 1324624 - stylo: Mark currently failing crashtests with asserts-if(stylo,...). r=xidorn
MozReview-Commit-ID: 7iiwRwiQ8s4
2016-12-21 15:42:36 +08:00
Yoshi Huang
2ceecc22f5 Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug 2016-12-21 14:59:21 +08:00
Wes Kocher
b427632e5a Merge m-c to inbound, a=merge 2016-12-19 16:48:34 -08:00
David Keeler
9c0e4cc656 bug 1323843 - add a test for conservative TLS option added in bug 1321783 r=mcmanus
MozReview-Commit-ID: K0nbitkl6c9

--HG--
extra : rebase_source : a4b8fdc4e3c8be9ac66399759e29f2153f6b5efa
2016-12-14 09:19:00 -08:00