Commit Graph

19892 Commits

Author SHA1 Message Date
Sebastian Hengst
02a34cdd40 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-21 13:43:53 +02:00
Nicholas Nethercote
4a623e6df4 Bug 1385172 - Replace nsEscapeHTML{,2}() with new nsAppendEscapedHTML() function. r=erahm.
The existing functions work with C strings but almost all the call sites use
Mozilla strings.

The replacement function has the following properties.

- It works with Mozilla strings, which makes it much simpler and also improves
  the call sites.

- It appends to the destination string because that's what a lot of the call
  sites need. For those that don't, we can just append to an empty string.

- It is declared outside the |extern "C"| section because there is no need for
  it to be in that section.

Note: there is no 16-bit variant of nsAppendEscapedHTML(). This is because
there are only two places that need 16-bit variants, both rarely executed,
and so converting to and from 8-bit is good enough.

The patch also adds some testing of the new function, renaming
TestEscapeURL.cpp as TestEscape.cpp in the process, because that file is now
testing other kinds of escaping.

--HG--
rename : xpcom/tests/gtest/TestEscapeURL.cpp => xpcom/tests/gtest/TestEscape.cpp
extra : rebase_source : 51145ae2c9b0b4573c7ea0c342dcb246f9f14fb9
2017-08-18 12:00:59 +10:00
Sebastian Hengst
54d8b1efae merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1yS8D5e0Ejz
2017-08-20 23:24:15 +02:00
Thomas Wisniewski
99ee6030a0 Bug 1392003 - Support estimatedEndTime in DownloadItem; r=aswan
MozReview-Commit-ID: 4Yzj52qI1Mz

--HG--
extra : rebase_source : ccfa669ec432887f3459a13758c42206ccb2d85c
2017-08-19 15:06:46 -04:00
Dragana Damjanovic
b274c67092 Bug 1390881 - Improve the TFO telemetry. r=mcmanus 2017-08-20 09:45:26 +02:00
Sebastian Hengst
f575346459 Backed out changeset ed1101844eea (bug 1381460) for eslint failure at browser/modules/test/browser/browser_UsageTelemetry_content.js:148: 'getSearchCountsHistogram' is not defined. r=backout 2017-08-21 18:27:57 +02:00
Phil Ringnalda
366675feaa Merge m-c to autoland
MozReview-Commit-ID: GCxEZcmHL2w
2017-08-19 15:34:44 -07:00
Phil Ringnalda
9359f5bf39 Merge inbound to m-c, a=merge
MozReview-Commit-ID: LCCoXUsCtmv
2017-08-19 15:29:10 -07:00
Sebastian Hengst
5655014d2e Backed out changeset 9f03844eb810 (bug 1387569) 2017-08-19 20:22:05 +02:00
Wes Kocher
bb19458d5f Merge m-c to inbound, a=merge
MozReview-Commit-ID: EgYue63nSkv
2017-08-18 16:29:11 -07:00
Wes Kocher
b1fc5e008c Merge inbound to central, a=merge
MozReview-Commit-ID: 4cWGBbMEU2x
2017-08-18 15:53:07 -07:00
Eric Rahm
0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Andrei Oprea
dafc6cbd15 Bug 1381460 - Add telemetry search event for Activity Stream. r=Dexter data-r=bsmedberg
MozReview-Commit-ID: GLbDNLglvDY

--HG--
extra : rebase_source : 2aee316d1b8354f67c7b3236f75f5e4b104f8705
2017-08-05 17:59:49 +02:00
Sylvestre Ledru
fa779f9261 Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in jsoncpp (exists from gcc 7) r=kip
MozReview-Commit-ID: BhxZ3acIopN

--HG--
extra : rebase_source : c15e0ef9d549902440b8cb62dd7f11a17d94bc7b
2017-08-04 21:38:16 +02:00
Sylvestre Ledru
b7de964055 Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in jsoncpp (exists from gcc 7) r=kip
MozReview-Commit-ID: BhxZ3acIopN

--HG--
extra : rebase_source : c15e0ef9d549902440b8cb62dd7f11a17d94bc7b
2017-08-04 21:38:16 +02:00
Phil Ringnalda
1ca83fd296 Backed out 5 changesets (bug 1387569) for Windows static build bustage
Backed out changeset eeda521ba0ad (bug 1387569)
Backed out changeset 8d23caf2ccc7 (bug 1387569)
Backed out changeset b5f969313f81 (bug 1387569)
Backed out changeset f642bc883aa5 (bug 1387569)
Backed out changeset 20151eabffea (bug 1387569)

MozReview-Commit-ID: IH0XXePvhiL
2017-08-19 12:20:26 -07:00
Sylvestre Ledru
1d6f922a6e Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in jsoncpp (exists from gcc 7) r=kip
MozReview-Commit-ID: BhxZ3acIopN

--HG--
extra : rebase_source : c15e0ef9d549902440b8cb62dd7f11a17d94bc7b
2017-08-04 21:38:16 +02:00
Dan Banner
2497992dcf Bug 1379256 - Enable the rest of the recommended ESLint rules for toolkit/components/osfile. r=mossop
MozReview-Commit-ID: F5GmnvS9LpM

--HG--
extra : rebase_source : 0e25d8b232e228c044417a41975736da5e263f9b
2017-08-09 15:23:19 +01:00
Dan Banner
14b6c58472 Bug 1379256 - fix no-undef issues for toolkit/components/osfile. r=mossop
MozReview-Commit-ID: B0vImMrMGF6

--HG--
extra : rebase_source : 511f246dd4b7544b88e221dd03b6a2bc78d7c213
2017-08-09 14:42:27 +01:00
Dan Banner
ac2cdf0adb Bug 1379256 - Enable more ESLint rules for toolkit/components/osfile (automatic fixes). r=mossop
MozReview-Commit-ID: EBIwfqkaSnD

--HG--
extra : rebase_source : d9498c5b9f29ebac9396ca198401f733bbd7a2c0
2017-08-09 14:21:27 +01:00
Shane Caraveo
4437e84fb7 Bug 1391720 remove _blank support for background pages, r=kmag
MozReview-Commit-ID: aRpNSrE483

--HG--
extra : rebase_source : f6a037937350ee7d8f502a9060459a073bd60190
2017-08-18 11:30:01 -07:00
Wes Kocher
c043502159 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7sFZmPUXSx6
2017-08-18 17:21:29 -07:00
Sebastian Hengst
0c64aa02e1 Backed out changeset 7905ab8c8041 (bug 1391720) for failing mochitest caps/tests/mochitest/test_extensionURL.html. r=backout 2017-08-18 23:38:20 +02:00
Kris Maglione
284215aa51 Bug 1389840: Part 2 - Store last optional permissions state in the startup cache. r=aswan
MozReview-Commit-ID: 95krDpu1JZr

--HG--
extra : rebase_source : 94772c6cf184fe78715eda018841a3b0d58f3d42
2017-08-12 14:42:44 -07:00
Kris Maglione
b4e8a4e72d Bug 1391472: Part 2 - Cache normalized icon data for non-string values. r=mixedpuppy
It turns out that stringifying a paths object is much cheaper than normalizing
it, and has the added benefit of allowing us to use cached CSS text for the
result.

MozReview-Commit-ID: 5gIqcDmPiKr

--HG--
extra : rebase_source : 59f6a75eac976abb85fe37440469e589282f7b01
2017-08-18 11:54:18 -07:00
Kris Maglione
40665c5e59 Bug 1391472: Part 1 - Remove integer property check from IconDetails.normalize. r=mixedpuppy
We already do this check at the schema level, so the added check in
IconDetails is unnecessary.

MozReview-Commit-ID: JTEE0xWH0a4

--HG--
extra : rebase_source : baad0a75438cdf126e0ba8df4055be50f3281d2a
2017-08-18 12:25:40 -07:00
Kris Maglione
426dea9932 Bug 1391353: Try to avoid keeping message data alive while waiting for responses. r=zombie
MozReview-Commit-ID: 5JAUBWufpsf

--HG--
extra : rebase_source : 379c6fbf6661ca8d05dff55547ac2c60c2e1e23b
2017-08-17 11:41:55 -07:00
Kris Maglione
34cfa555d7 Bug 1391310: Optimize runSafe/wrapPromise to avoid wrapper/spread arg/rest arg overhead. r=zombie
Lots of little bits of overhead add up to a significant amount of overhead
over the many, many times this function is called.

MozReview-Commit-ID: BYTWxqc8rH9

--HG--
extra : rebase_source : 3b22f9ca1de504a383eef5760e43dc783c2b3b93
2017-08-18 11:53:25 -07:00
Kris Maglione
e24e9d802d Bug 1391158: Optimize checkLoadURL for the common case of extension URLs. r=mixedpuppy
MozReview-Commit-ID: KGFFcHxQSvZ

--HG--
extra : rebase_source : f4b62ad095077a65e11c6b8354ce54fa2d2ff252
2017-08-16 23:03:15 -07:00
Kris Maglione
041996d10e Bug 1391153: Get rid of Sandbox clone for cross-process API calls. r=mixedpuppy
MozReview-Commit-ID: A9g6s5jqd78

--HG--
extra : rebase_source : a80e6e81d8b21ebb6125f38b8efb89db17b47b75
2017-08-16 22:16:31 -07:00
Alessio Placitelli
c5ce8cd5be Bug 1386619 - Add documentation for 'update' pings edge cases. r=gfritzsche
MozReview-Commit-ID: 77Ahi9wr76O

--HG--
extra : rebase_source : e85098448f0e2b19dceb32f6688fc767486a79ce
2017-08-21 12:00:36 +02:00
Wes Kocher
91f1f19054 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IMdYxijQ9ie
2017-08-21 17:20:06 -07:00
Julian Descottes
60c637855b Bug 1374735 - stop exposing devtools require to extensions ext-* files;r=kmag CLOSED TREE
There is no longer any file in components/extensions/ext-* that use require().
Therefore it should be ok to stop exposing it.

MozReview-Commit-ID: EgZYBludlcy

--HG--
extra : source : 50a36fb7c7f97682ea9d2651b0edec306d466b5c
extra : amend_source : af2184bbf188df138b3a2b23d7031b2de5534e25
2017-06-22 21:04:02 +02:00
Julian Descottes
d148f3f8c0 Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : source : da075933f7bcd9e3b7ff735879c521bb50f28b7a
2017-07-24 12:12:47 +02:00
Wes Kocher
76d7cf451f Backed out changeset 871476099df7 (bug 1383299) for xpcshell failures a=backout CLOSED TREE
MozReview-Commit-ID: WuWcXfYz3V
2017-08-18 09:43:36 -07:00
Ryan VanderMeulen
b708734864 Backed out 4 changesets (bug 1374735) for test_ext_i18n.js failures on a CLOSED TREE.
Backed out changeset 50a36fb7c7f9 (bug 1374735)
Backed out changeset da075933f7bc (bug 1374735)
Backed out changeset b7435cd66ce3 (bug 1374735)
Backed out changeset 22baf4e67730 (bug 1374735)
2017-08-18 12:34:22 -04:00
Evelyn Hung
9bdec94905 Bug 1383299 - Ensure we start to set up network connection before content process requests. r=mconley
In chrome process, we often know which url is going to be loaded.
As a performance optimization, we can start initiating network
connection before sending out the 'LoadURI' message to the content
process.

MozReview-Commit-ID: CtTik19NyiM

--HG--
extra : rebase_source : 91801215efa8fbb50f51e79eabc6435472d23622
2017-08-04 12:29:35 +08:00
Julian Descottes
804e145ac8 Bug 1374735 - stop exposing devtools require to extensions ext-* files;r=kmag
There is no longer any file in components/extensions/ext-* that use require().
Therefore it should be ok to stop exposing it.

MozReview-Commit-ID: EgZYBludlcy

--HG--
extra : rebase_source : f83d8bf4bb413c246efe3c25767cc203f127423e
2017-06-22 21:04:02 +02:00
Julian Descottes
e88a15e62e Bug 1374735 - use DevToolsShim to open browser console from extensions;r=bgrins,kmag
MozReview-Commit-ID: GJQ7fcw1L8i

--HG--
extra : rebase_source : 6a079c88e5908cc8f8a021bb0a12ea44670bc5ce
2017-07-24 12:12:47 +02:00
Thomas Nguyen
da4b88ee61 Bug 1376410 - Handle OOM when appending prefix to map r=francois,hchang
MozReview-Commit-ID: 7MOHHAgEI1I

--HG--
extra : rebase_source : a46bbac722e331ad43e18aad4ee446676fddbfa1
2017-08-11 17:28:40 +08:00
Nicolas Ouellet-Payeur
b242392e7d Bug 1353217 - importing bookmarks from html doesn't need to reset the bookmarks engine. r=markh
MozReview-Commit-ID: 4F7KF5ZkNuX

--HG--
extra : rebase_source : 521510fe074fa0f84f28212fa8a230a74dfd2ce8
2017-08-11 00:19:01 +00:00
Wes Kocher
1d9f00cb8d Merge inbound to m-c a=merge
MozReview-Commit-ID: CQeEqtGlaXh
2017-08-17 16:16:51 -07:00
Michael Kaply
0dbb8dd2bf Bug 1374695 - Add extensionID to addEngine API. r=florian
MozReview-Commit-ID: 5hxzvCXhMxi

--HG--
extra : rebase_source : 93964b926057a79c3e90efc4a291019a740995ac
2017-08-14 15:51:12 -05:00
steveck-chung
4006388b95 Bug 1386959 - [Form Autofill] Add probe for form autofill availability. r=francois,lchang
MozReview-Commit-ID: KPOBxmHOiuK

--HG--
extra : rebase_source : d56176249f8b5417151a4953b080ae2a8d2acd81
2017-08-14 11:56:19 +08:00
Carsten "Tomcat" Book
99aa3f8e70 Merge mozilla-central to mozilla-inbound 2017-08-17 13:13:10 +02:00
Nicholas Nethercote
025461bde7 Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).

In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Kris Maglione
cc7b4984ba Bug 1391099: Avoid using checkLoadURIStrWithPrincipal. r=mixedpuppy
checkLoadURIStrWithPrincipal runs URLs through the URI fixup services and
checks against each of the results. This is both expensive and unnecessary for
our purposes.

MozReview-Commit-ID: 4L2Z4KuMZhQ

--HG--
extra : rebase_source : 9b72c8e4c6b0a48541b94871f507ce029be664c7
extra : amend_source : d20b032a6ddf9b9804a14e528094bc6867d5b728
2017-08-16 16:29:06 -07:00
Kris Maglione
b6480eaf24 Bug 1238314: Part 2 - Implement browser.tabs openerTabId functionality. r=aswan
MozReview-Commit-ID: L4ycNoQDfa

--HG--
extra : rebase_source : 6c7a92cd6a068d446d60469637ebc88b4355671d
2017-08-04 16:13:59 -07:00
Wes Kocher
366445521c Merge m-c to autoland, a=merge
MozReview-Commit-ID: DjSlrmDFfe3
2017-08-16 17:14:41 -07:00
Wes Kocher
9e13a44b54 Merge inbound to central, a=merge
MozReview-Commit-ID: GEfEDRZk5bo
2017-08-16 16:59:26 -07:00
Masatoshi Kimura
9ab81a1042 Bug 1389723 - Remove @deprecated nsIMIMEInputStream.addContentLength. r=dragana
MozReview-Commit-ID: 9b45aozatin

--HG--
extra : rebase_source : 636da171929fe6ecd69de5c68d9ed4064a3a7b09
2017-08-12 13:34:02 +09:00
Michael Layzell
061c6a26b0 Bug 1367406 - Part 3: Expose computed modules through .modules getter, r=froydnj
MozReview-Commit-ID: F6aDnlwr9jt
2017-08-16 11:44:05 -04:00
Michael Layzell
148f1a81e4 Bug 1367406 - Part 2: Add a method for reading module information for native stack frames, r=froydnj
MozReview-Commit-ID: 7gzFhygwXx4
2017-08-16 11:44:04 -04:00
Michael Layzell
849025c0d6 Bug 1367406 - Part 1: Add interleaved stack functionality to HangStack, r=froydnj
- This patch was written in 3 interdependent parts, which are described below -

Part 1A: Allow HangStack to contain raw PCs and Module offsets, r=froydnj

The HangStack previously consisted of an array of const char* pointers into its
backing string buffer, which represented pseudostack entries. With interleaved
stacks, it is now possible for the stack to contain raw unresolved program
counters (Kind::PC), and module/offset pairs (Kind::MODOFFSET). To do this, we
use a discriminated union, and make the backing array use the discriminated
union instead of const char*s.

The code cannot use mozilla::Variant<const char*, uintptr_t, Module>
unfortuantely, as we cannot use the implementation of ParamTraits for Variant in
HangStack's ParamTraits implementation.

When deserializing a HangStack over IPC, we need to read the string frame
entries into the backing string buffer, and generate const char* entries for
each of the strings which we read in over IPC. The default implementation of
ParamTraits wouldn't give us access to the enclusing HangStack object while
deserializing each individual entry, so we couldn't use it. In fact, Entries
don't have ParamTraits implemented for them at all, and can only be sent over
IPC as part of a HangStack due to this dependency.

Part 1B: Remove nsIHangDetails.pseudoStack, replace ProcessedStack w/ new HangStack type, r=froydnj

Previously there were two stack objects on each HangDetails object: mStack and
mPseudoStack. mStack was a Telemetry::ProcessedStack, while mPseudoStack was a
HangStack. After the changes in part 1A, HangStack can now contain all of the
information of both the old HangStack and ProcessedStack, so the mPseudoStack
field is renamed to mStack, and the old mStack field is removed.

This patch also implements the new GetStack getter, which generates the JS data
format for the new HangStack type.

Part 1C: Collect interleaved stacks w/ ProfilerStackCollector API in ThreadStackHelper, r=froydnj

This new API was added by njn in bug 1380286, and provides both pseudostack and
native stack entries to the consumer of the API.

This patch changes ThreadStackHelper to use this new API instead of the previous
one, and use it to collect the frames directly into HangStack objects.
2017-08-16 11:44:02 -04:00
Carsten "Tomcat" Book
e7c657e009 Merge mozilla-central to mozilla-inbound 2017-08-16 12:50:39 +02:00
steveck-chung
5200298e6c Bug 1388238 - Implement waitForMasterPasswordDialog helper which handles open dialogs. r=MattN
MozReview-Commit-ID: A8jx8s37f1k
2017-08-16 18:45:11 +08:00
Carsten "Tomcat" Book
eea1986e03 merge mozilla-inbound to mozilla-central a=merge 2017-08-16 11:23:24 +02:00
Andrew Swan
4aa628649e Bug 1389193 Include extensions.legacy.enabled in telemetry environment r=rweiss
MozReview-Commit-ID: JdPL8nsnaxX

--HG--
extra : source : 1511f6e09362fd231162f9474006040f227cfaa9
extra : amend_source : 98aa0cb977be01ff207b799031a2523ddb3ba478
2017-08-10 22:25:51 -07:00
Wes Kocher
be24aec8e9 Merge m-c to inbound a=merge
MozReview-Commit-ID: JqsSD85rE4W
2017-08-15 19:15:22 -07:00
Jonathan Kingston
e85c570484 Bug 1354602 - Enabling containers for container addons on startup. r=aswan,mconley,zombie
MozReview-Commit-ID: BXLyQz8CGDl

--HG--
extra : rebase_source : a969c5ff0615a461b33a9ee82f9459c883421c61
2017-08-13 16:17:41 +01:00
Eden Chuang
d66800c204 Bug 1390018 - Build and test Payments UI code on Nightly builds only. r=MattN
--HG--
extra : source : 8df491f3dcdfa4430bccac3242ee9cfb9fa3634b
2017-08-16 07:16:25 +08:00
Ryan VanderMeulen
629d98cad7 Backed out changeset 8df491f3dcdf for landing with the wrong bug number in the commit message. 2017-08-15 19:27:16 -04:00
Eden Chuang
a86c240986 Bug 1380018 - Build and test Payments UI code on Nightly builds only. r=MattN
--HG--
extra : rebase_source : 50f99532eefea866b67c7455dab4e430a9f09dfa
2017-08-16 07:16:25 +08:00
Michael Layzell
776ffc2b29 Bug 1386369 - Part 2: Stop emitting bhr-thread-hang in the content process, r=froydnj
MozReview-Commit-ID: 1A7CorZepdQ
2017-08-15 16:36:26 -04:00
Michael Layzell
c8a848329d Bug 1386369 - Part 1: Change test_BHRObserver to not listen to bhr-thread-hang in content, r=froydnj
MozReview-Commit-ID: 7nFBdtiXFc2
2017-08-15 16:36:24 -04:00
Michael Layzell
4c4a03953d Bug 1380081 - Part 15: Don't try to submit bhr ping to telemetry while running tests, r=chutten 2017-08-15 16:36:22 -04:00
Michael Layzell
7f649507e9 Bug 1380081 - Part 14: Include BHRTelemetryService and xpt files in the package, r=froydnj
MozReview-Commit-ID: IH56INaSOoK
2017-08-15 16:35:52 -04:00
Michael Layzell
0262b178a8 Bug 1380081 - Part 13: Add telemetry documentation for the new ping format, r=bsmedberg, r=froydnj
MozReview-Commit-ID: G4hFZcR2EGL
2017-08-15 16:35:50 -04:00
Michael Layzell
f2ee64a153 Bug 1380081 - Part 12: Add a test for BHR observer notifications, r=froydnj
This patch just adds some tests for the new stuff which we added.

MozReview-Commit-ID: 2jG75AEUJfS
2017-08-15 16:35:48 -04:00
Michael Layzell
65ece3dba5 Bug 1380081 - Part 11: Simplify the HangAnnotations abstraction, r=froydnj
HangAnnotations was very complex, required a separate allocation, and used this
unfortunate virtual interface implementation which made it harder to do
interesting things with it (such as serialize it over IPC).

This new implementation is much simpler and more concrete, making
HangAnnotations simply be a nsTArray<Annotation>. This also simplifies some of
the IPC code which was added in part 7.

MozReview-Commit-ID: EzaaxdHpW1t
2017-08-15 16:35:46 -04:00
Michael Layzell
871e8c097f Bug 1380081 - Part 10: Stop running BHR on beta, r=froydnj
These changes are going to increase the amount of data which we collect from BHR
a lot. It would be dangerous to run it on beta, especially considering how soon
the next merge is.

This should turn it off for 100% of beta users if I understand the logic
correctly.

MozReview-Commit-ID: 3HyEKWdXaqU
2017-08-15 16:35:44 -04:00
Michael Layzell
5d81a3b535 Bug 1380081 - Part 9: Transmit BHR Hangs from the Content and GPU process to the parent process, r=froydnj
BHRTelemetryService only runs in the parent process (and we can only submit
pings from there), so we need to send the data which we collect in the GPU and
Content processes over IPC to the parent process.

MozReview-Commit-ID: 8B5uZKbjNbU
2017-08-15 16:35:42 -04:00
Michael Layzell
116cbfd0dc Bug 1380081 - Part 8: Report bhr-thread-hang hangs to telemetry in a custom bhr ping, r=froydnj
This patch adds the BHRTelemetryService which is a JS implemented XPCOM service
that simply listens to the bhr-thread-hang observer notification, and uses the
data it collects from it to submit telemetry pings.

MozReview-Commit-ID: 2hPXAFmHrm5
2017-08-15 16:35:41 -04:00
Michael Layzell
82b2097078 Bug 1380081 - Part 7: Add all necessary data for BHR to nsIHangDetails, r=froydnj
We're going to use HangDetails as the type containing hang information. We'll
have a JS component which reads the data out of nsIHangDetails, builds the
payload, and submits it to telemetry for us.

We'll do it in JS because telemetry has to be submitted from JS.

This patch also adds IPC serization for the relevant types so that we can send
HangDetails objects over IPDL.

MozReview-Commit-ID: CeikKabY9Vs
2017-08-15 16:35:39 -04:00
Michael Layzell
f59ead979d Bug 1380081 - Part 6: Remove test_ThreadHangStats.js, r=chutten
A new test using the new APIs is introduced in a later part. This test no longer
functions as ThreadHangStats is no longer present.

MozReview-Commit-ID: HKmoP2An4GP
2017-08-15 16:35:33 -04:00
Michael Layzell
b7564c8ece Bug 1380081 - Part 4: Move BHR into its own component, r=froydnj
MozReview-Commit-ID: 7TOGofAYM6W


--HG--
rename : xpcom/threads/BackgroundHangMonitor.cpp => toolkit/components/backgroundhangmonitor/BackgroundHangMonitor.cpp
rename : xpcom/threads/BackgroundHangMonitor.h => toolkit/components/backgroundhangmonitor/BackgroundHangMonitor.h
rename : toolkit/components/telemetry/ThreadHangStats.h => toolkit/components/backgroundhangmonitor/ThreadHangStats.h
rename : xpcom/threads/ThreadStackHelper.cpp => toolkit/components/backgroundhangmonitor/ThreadStackHelper.cpp
rename : xpcom/threads/ThreadStackHelper.h => toolkit/components/backgroundhangmonitor/ThreadStackHelper.h
rename : xpcom/threads/nsIHangDetails.idl => toolkit/components/backgroundhangmonitor/nsIHangDetails.idl
2017-08-15 16:35:00 -04:00
Michael Layzell
cd973809f7 Bug 1380081 - Part 3: Remove the ThreadHangStats object and related code, r=froydnj
MozReview-Commit-ID: EtrktVmc3vP
2017-08-15 16:34:21 -04:00
Michael Layzell
2017c7016a Bug 1380081 - Part 1: Remove getChildThreadHangs, r=chutten
This is the first part of purging the existing telemetry code for
ThreadHangStats from the tree. All of these features will be replaced with new
code for BHR telemetry in the future.

MozReview-Commit-ID: BhD5zY2LwUR
2017-08-15 16:34:18 -04:00
Wes Kocher
44eb96d181 Backed out changeset 5b4b8c71b9fb (bug 1388238) because the other half of the bug got backed out a=backout
MozReview-Commit-ID: EgCYWjELSQA
2017-08-15 18:42:01 -07:00
steveck-chung
a3148321b2 Bug 1388238 - Implement waitForMasterPasswordDialog helper which handles open dialogs. r=MattN
MozReview-Commit-ID: A8jx8s37f1k

--HG--
extra : rebase_source : 5134c7015cd5259c72aa2937047ecd31477d574f
2017-08-08 20:53:49 -07:00
Mark Striemer
dd8500b327 Bug 1345158 - Implement privacy.websites.trackingProtectionMode r=aswan,bsilverberg
MozReview-Commit-ID: Lf88M4V4JEJ

--HG--
extra : rebase_source : 8b7a716a2e82ce31f0500afe0e4342ef7bc94064
2017-08-09 15:47:02 -05:00
Jonathan Kingston
527065dfaf Bug 1390738 - Await pref changes in contextual identities tests r=aswan
MozReview-Commit-ID: 66PgXLu8MSS

--HG--
extra : rebase_source : 88e2147d3aae1face0e5d1337e50306ada0ed0f1
2017-08-16 15:41:34 +01:00
Sebastian Hengst
2612b5bcf7 Backed out changeset f92c249cae8b (bug 886907) for failing editor/libeditor/tests/test_bug1368544.html on Android 4.3 debug. r=backout
--HG--
rename : toolkit/components/contentprefs/ContentPrefService2.js => toolkit/components/contentprefs/ContentPrefService2.jsm
rename : toolkit/components/contentprefs/ContentPrefService2.manifest => toolkit/components/contentprefs/nsContentPrefService.manifest
2017-08-15 16:35:07 +02:00
Henri Sivonen
2fa485c60e Bug 1390107 - Remove obsolete DECODER_INSTANTIATED_* telemetry probe definitions. r=chutten
MozReview-Commit-ID: 5KRBT81TuxU

--HG--
extra : rebase_source : 67d6a5ed13ae94a3bcbac6ff98f6631f7bf7d91b
2017-08-14 14:59:43 +03:00
Masatoshi Kimura
8b413e305a Bug 886907 - Remove old synchronous contentPrefService from the tree. r=adw
MozReview-Commit-ID: BZsB3FR3jHC

--HG--
rename : toolkit/components/contentprefs/ContentPrefService2.jsm => toolkit/components/contentprefs/ContentPrefService2.js
rename : toolkit/components/contentprefs/nsContentPrefService.manifest => toolkit/components/contentprefs/ContentPrefService2.manifest
extra : rebase_source : 2d10305f75dbbec173ef8965d159196bfbad77b0
2017-08-11 23:29:55 +09:00
Carsten "Tomcat" Book
6b36e00b7c merge mozilla-inbound to mozilla-central a=merge 2017-08-15 11:42:11 +02:00
Kris Maglione
f5a338a504 Bug 1390010: Follow-up: Fix debug test bustage.
MozReview-Commit-ID: HLdhuWN36Hu
2017-08-14 23:50:47 -07:00
Kris Maglione
d003f8b90f Bug 1390010: Part 3 - Limit the amount of schema data sent to web content processes. r=zombie
Web contetnt processes only need access to a small amount of schema data, but
we currently send them the approximately 600K of full schema data that is
mostly useless to them.

This patch limits the schema data sent to web content processes to what they
actually need, and sends the rest only to extension content processes.

MozReview-Commit-ID: 6G0LThNTOu1

--HG--
extra : rebase_source : 36672ad6323e6466bba3e463fa4f0a16e3fd9090
2017-08-13 19:00:24 -07:00
Kris Maglione
04d337c543 Bug 1387907: Follow-up: Move identity module init data to ext-browser.json.
MozReview-Commit-ID: Jw8gNOGDuxw

--HG--
extra : rebase_source : 608b5287cc9ee55dc25b2d453c320e5b713c2a8b
2017-08-12 17:41:34 -07:00
Kris Maglione
091594dcb0 Bug 1389861: Remove needless overhead from same-process policy initialization. r=zombie
MozReview-Commit-ID: 3E7hnNnk46D

--HG--
extra : rebase_source : fc4f44f3d5607bbc06d03c215d24b4cb8569d7f1
2017-08-12 17:21:27 -07:00
Kris Maglione
c77a0e7c41 Bug 1389856: Optimize EventEmitter.emit for the common case. r=zombie
MozReview-Commit-ID: 3dbgZfG7l8T

--HG--
extra : rebase_source : 828ec8da7a9d714f9ebdcd850b779b05f1398725
2017-08-13 12:07:01 -07:00
Kris Maglione
a279f88d8b Bug 1389855: Remove lazy imports from MessageChannel.jsm. r=zombie
MozReview-Commit-ID: A1d5WdrMB3K

--HG--
extra : rebase_source : 54281821028333a26e4a59b74d10a27aee04eb47
2017-08-12 18:05:06 -07:00
Kris Maglione
cdfa0d9032 Bug 1389854: Don't define lazy getter for uninstall preferences. r=aswan
These getters are checked very rarely, and not at all in most sessions. They
don't justify the overhead of adding lazy getters at startup.

MozReview-Commit-ID: 9XVlLapNJCE

--HG--
extra : rebase_source : edff8e878528952aeec851203edaa4d41e37e24d
2017-08-12 16:21:17 -07:00
Kris Maglione
7da155b917 Bug 1389847: Don't add caller location to sandbox name if an explicit name is provided. r=krizsa
MozReview-Commit-ID: KOGrrMurs6X

--HG--
extra : rebase_source : ec9bae4b7a40f7916a813905346f124e62516b9a
2017-08-12 16:01:00 -07:00
Kris Maglione
c299700b20 Bug 1389849: Remove ext-geolocation.js. r=mixedpuppy
MozReview-Commit-ID: BJTAIsxVlKL

--HG--
extra : rebase_source : 934413b58e61f1c415f9187c05c08a11ad0a521d
2017-08-12 15:48:02 -07:00
Kris Maglione
ad9a658f36 Bug 1389840: Part 1 - Store more computed manifest data in startup cache. r=aswan
MozReview-Commit-ID: 3qprhdfvTVs

--HG--
extra : rebase_source : 0430d087e3d4278117fce2914f1cb96bc196e7ae
2017-08-12 14:51:08 -07:00
Kris Maglione
0b7f305645 Bug 1357589: Part 2 - Test that opening web URLs from extension iframes works correctly. r=mixedpuppy
MozReview-Commit-ID: HJq14t2DcAy

--HG--
extra : rebase_source : 0e2b04e6a5a17001a6b04dc6347d13c8e1e53444
2017-06-30 14:14:01 -07:00
Robert Helmer
c380d85502 Bug 1372750 - allow generated embedded extensions to work in xpcshell tests r=kmag
MozReview-Commit-ID: AkCnoUTldhI

--HG--
extra : rebase_source : 69e36d7e462ed26740874dbf96a695dd92bdb850
2017-06-21 12:46:57 -07:00
Lie Ryan
e29009ad85 Bug 1361855 - Added TAB_COUNT to Histograms.json; r=bsmedberg,Gijs
MozReview-Commit-ID: 2aLMUAk4G4c

--HG--
extra : rebase_source : 1cff7ebbd43c6093346d4f96ff237e94220338cb
2017-06-09 18:42:49 +00:00
Shane Caraveo
e1b628b3c2 Bug 1368527 test event timing using hsts,r=dragana,kmag
MozReview-Commit-ID: Dbb56Bkicdd

--HG--
extra : rebase_source : 7ff58aabbe1e4d32c65ecd79f1eaedbd9d9144a0
2017-08-15 13:13:06 -07:00