Mark Banner
01008c7d57
Bug 1412778 - Enable ESLint rule no-cpows-in-tests across the whole tree. r=florian
...
MozReview-Commit-ID: 8pidN7x6MYh
--HG--
extra : rebase_source : 6a0d6800091231fc1535223bd7fc6df0ba40d47b
2017-10-30 09:55:39 +00:00
Mark Banner
3b50478984
Bug 1246896 - Bump version number of eslint-plugin-mozilla, and update its dev dependencies. r=florian
...
MozReview-Commit-ID: 1rmbkvCeXfa
--HG--
extra : rebase_source : a79b9c1412914362bfd227478511c54729b801e7
2017-10-27 16:44:53 +01:00
Mark Banner
0f98aa8a05
Bug 1246896 - Improve detection for mozilla/no-cpows-in-tests.js 'content' - only notify when content is used as an identifier. r=florian
...
MozReview-Commit-ID: 1X38Wq4hUmZ
--HG--
extra : rebase_source : 6d7b0e8c9048045b47af02590455e060411953e3
2017-10-13 17:04:48 +01:00
Mark Banner
272b0102c2
Bug 1246896 - Add some basic tests for ESLint rule mozilla/no-cpows-in-tests.js. r=florian
...
MozReview-Commit-ID: 2tZS1GYUUbH
--HG--
extra : rebase_source : 9feff09ef0305e67b3580c6260740ccdbfa699c4
2017-10-13 16:10:36 +01:00
Mark Banner
4de6bf22b1
Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
...
MozReview-Commit-ID: H5YVp3rnzGo
--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Maja Frydrychowicz
1fe7490b20
Bug 1411430
- Support markdown in Sphinx docs; r=gps
...
MozReview-Commit-ID: IdRuC4AFarq
--HG--
extra : rebase_source : f0b6c72340920fad49ab06887cd25db436c82897
2017-10-23 09:59:31 -04:00
Sylvestre Ledru
b470a9a929
Bug 1411960 - Enable modernize-avoid-bind to recommend using lambda instead of std::bind r=andi
...
MozReview-Commit-ID: C9bOP9SxFan
--HG--
extra : rebase_source : 352bf343efeb26593b451bee4863e08838a93a5b
2017-10-26 15:09:54 +02:00
Sebastian Hengst
443416f881
Merge mozilla-central to autoland. r=merge a=merge
2017-10-26 00:39:55 +02:00
Chris Manchester
8dc000aa60
Bug 1403346 - Move cxxflags filtering for libfuzzer from Makefile.in to moz.build r=glandium
...
MozReview-Commit-ID: LDHiMMRjqut
2017-10-25 15:12:10 -07:00
Andrew Halberstadt
59d606ead7
Bug 1411568 - Enable py3 linter on testing/xpcshell r=stevea1+601043
...
MozReview-Commit-ID: 722pub6TTuQ
--HG--
extra : rebase_source : 54571c07d49cdb01b3593c861fa708f51fd2f7bd
2017-10-25 08:51:16 -04:00
Sebastian Hengst
1ead0a96a9
Backed out changeset dab1c5badddb (bug 1407679) for failing server startup in mochitests on Android. r=backout on a CLOSED TREE
...
--HG--
extra : amend_source : 3dc4cb2bbaf55f3f6329687ce64d4e862fc3800b
2017-10-24 21:18:26 +02:00
Valentin Gosu
9dd47ebf50
Bug 1407679 - Merge nsIIOService and nsIIOService2 r=nwgh
...
Removes deprecated nsIIOService2.newChannelFromURIWithProxyFlags
MozReview-Commit-ID: Gr3nA25kcre
--HG--
extra : rebase_source : 3407b5ed0f8f7067523abee28c137db3cac86b14
2017-10-20 16:41:07 +02:00
Gregory Szorc
a56fef0fd4
Bug 1410969 - Consolidate code for resolving path metadata; r=ahal
...
find_paths_and_tags() can instantiate a BuildReader to read moz.build
metadata. We switch `mach test` to call this to avoid some redundant
code.
To facilitate `mach try`'s use case, we add test flavors to the
result of find_paths_and_metadata() and change the function name to
reflect its more generic purpose.
MozReview-Commit-ID: Lcz05W8g2dt
--HG--
extra : rebase_source : 17d6f23275f4eed1bd544a9b2cd991214625dabc
2017-10-23 10:42:41 -07:00
Gregory Szorc
9a4d779385
Bug 1410969 - Return dict from find_paths_and_tags(); r=ahal
...
This will make the return value more easily extensible and will help
consumers know what the data structures represent.
MozReview-Commit-ID: DaeYsqfMW37
--HG--
extra : rebase_source : 440d16f0604b21f0ec885e1bca5066c32b18f641
2017-10-23 10:36:38 -07:00
Steve Armand
fa0b6e7c7e
Bug 1397849 - Enable py2 and py3 linter on testing/mozbase. r=ahal
...
MozReview-Commit-ID: GnaVLhtO4un
--HG--
extra : rebase_source : 8839a423c5db505469b813957649b1605ed5737f
2017-09-25 22:57:18 -04:00
Sylvestre Ledru
e0bda6ceaf
Bug 1410938 - Make mach_commands.py flake8/pep8 compatible and add it the list of flake8 files r=gps
...
MozReview-Commit-ID: HKWsDehR0vZ
--HG--
extra : rebase_source : 1e77f8aee5f909dd7b4cfaace6014015c51cf589
2017-10-23 18:40:22 +02:00
Sylvestre Ledru
c879ade558
Bug 1410938 - Split the clang-format calls into batches of 200 files r=gps
...
MozReview-Commit-ID: 3cH295RBcv3
--HG--
extra : rebase_source : 68765af2185f73820963da052d3aec036358a2e5
2017-10-23 18:14:32 +02:00
Sebastian Hengst
af53b8aad8
merge mozilla-central to autoland. r=merge a=merge
2017-10-23 23:52:54 +02:00
Tom Prince
d360c9785d
Bug 1410769: Use SHA-1 signing when MAR_OLD_FORMAT is set; r=nalexander,rstrong
...
MozReview-Commit-ID: DFjcozLqskI
--HG--
extra : rebase_source : c23b6578552c65dea6a4b3b7184e683702117a6f
extra : source : d021fb9c48dc615e5cc621f8f27181e2e5e63243
2017-10-22 21:46:41 -06:00
Sebastian Hengst
18f1987735
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-10-23 11:46:34 +02:00
Nicholas Nethercote
3842370ed8
Bug 1405541 (attempt 2) - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
...
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive. This patch splits that macro into three new ones that are harder to
mess up.
- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.
--HG--
extra : rebase_source : 3e2bbec4737b696e1c86579ae54be4cb3186c100
2017-10-13 16:12:57 +11:00
Gerald Squelart
d2ed3d6312
Bug 1410252 - Convert 'WrapNotNull(new T(...' to 'MakeNotNull<T*>(...' - r=njn
...
Most cases where the pointer is stored into an already-declared variable can
trivially be changed to MakeNotNull<T*>, as the NotNull raw pointer will end
up in a smart pointer.
In RAII cases, the target type can be specified (e.g.:
`MakeNotNull<RefPtr<imgFrame>>)`), in which case the variable type may just be
`auto`, similar to the common use of MakeUnique.
Except when the target type is a base pointer, in which case it must be
specified in the declaration.
MozReview-Commit-ID: BYaSsvMhiDi
--HG--
extra : rebase_source : 8fe6f2aeaff5f515b7af2276c439004fa3a1f3ab
2017-10-20 18:25:33 +11:00
Phil Ringnalda
86e513ba69
Backed out changeset 3159df8aca1a (bug 1386511) for browser_TelemetryGC.js timeouts
...
MozReview-Commit-ID: 9OFS7FTjVis
2017-10-19 20:40:31 -07:00
Attila Craciun
a323e78c2b
Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
2017-10-25 12:36:59 +03:00
Steve Armand
df510b4622
Bug 1403131 - Run linters against mozharness scripts and configs. r=rail
...
MozReview-Commit-ID: 3dkx1SQiIns
--HG--
extra : rebase_source : 45f049032243b8bbae7d052a89cefcdb2b7e1f60
2017-10-24 20:21:41 -04:00
Paul Bone
7746cd0200
Bug 1386511 - Revise the format of the GC profiler markers. r=jonco
2017-08-23 14:58:44 +10:00
Nicholas Nethercote
b66a653de9
Bug 1407458 - Use nsString for Observation filenames. r=erahm.
...
This avoids some unnecessary string copying.
--HG--
extra : rebase_source : a81a5e1612be2897a4285f5f395e7cb3ed006bc8
2017-10-17 08:22:12 +11:00
Sebastian Hengst
20d769ea9c
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: Gc5JIILUrPi
2017-10-20 00:05:39 +02:00
Patrick Brosset
714264d3e8
Bug 1406061 - Remove the unused Jsbeautify.jsm module; r=jdescottes
...
MozReview-Commit-ID: KF39qXJ2s11
--HG--
extra : rebase_source : 29394e085bf80d394dd4e1c6013082c0ebe94069
2017-10-19 09:58:19 +02:00
Ryan VanderMeulen
9c3824dc0c
Merge m-c to autoland. a=merge
2017-10-18 21:02:15 -04:00
Ryan VanderMeulen
cb612851ed
Merge inbound to m-c. a=merge
2017-10-18 21:01:34 -04:00
Mark Banner
8340eb52c8
Bug 1230373
- Add an ESLint rule to prefer using Services.jsm rather than getService. r=mossop
...
MozReview-Commit-ID: G9dp4PxcyT7
--HG--
extra : rebase_source : 957b5ead56c8c778b1ba812343c132b34030135f
2017-10-06 17:03:38 +01:00
Mark Banner
d4ad271c61
Bug 1230373
- Fix an issue with eslint-plugin-mozilla not detecting the global scope properly when arrow functions are used. r=mossop
...
MozReview-Commit-ID: IOCM8Fjl0xQ
--HG--
extra : rebase_source : 63face219569f50bdfb00bcd7384f334ec6113c2
2017-10-16 15:08:26 +01:00
Blake Kaplan
0a9754f57f
Bug 1406212 - Remove the code that handles extensions for e10s{,-multi}. r=Felipe
...
MozReview-Commit-ID: ElPZIBmOYHR
--HG--
extra : rebase_source : 97e955084c71be1658a588013160d69469dc307c
2017-09-28 16:09:20 -07:00
Nicholas Nethercote
3076238153
Bug 1409227 (part 2) - Replace nsMemory::Clone(s, strlen(s)+1) with moz_xstrdup(s). r=erahm.
...
They are equivalent -- both infallible, both requiring measuring the length of
the string -- but moz_xstrdup is much more readable. (One place deals with
16-bit strings and so uses NS_strdup instead, which is also infallible.)
The patch also removes some failure-path code that will never execute due to
the infallibility.
--HG--
extra : rebase_source : 115574cf55db90b60e6bee59e5dc6ee409374159
2017-10-17 13:09:29 +11:00
Nicholas Nethercote
65c894bd04
Bug 1409227 (part 1) - Remove needless duplication of the profile in nsProfiler::GetProfile(). r=mstange.
...
--HG--
extra : rebase_source : dc546098c3ed7f8b2e162bf6f26ab87191dba186
2017-10-17 13:01:14 +11:00
Nicholas Nethercote
f0d3349d01
Bug 1408279 - Make profile JSON easier to read. r=mstange.
...
Currently the choices of SingleLineStyle and MultiLineStyle are sub-optimal,
which makes debugging of profiles difficult.
- A large chunk of the profile is put on a single line, which is very hard to
read in a text editor.
- Other short and repetitive constructs are unnecessarily spread across
multiple lines.
This patch makes things more readable.
2017-10-13 15:32:14 +11:00
James Graham
f8e091e39a
Bug 1401150 - Support try pushes on a closed tree with mach try, r=ahal
...
This adds the magic CLOSED TREE string to the commit message for both
try syntax and the fuzzy frontend.
MozReview-Commit-ID: 492UME3VcJN
--HG--
extra : rebase_source : 425a83d6370609e1e162379213d547458c8e8cf2
2017-10-16 18:59:45 +01:00
Kris Maglione
4a767c7e6e
Bug 1404198: Part 2j - Switch to NS_NewTimer* everywhere else. r=njn
...
MozReview-Commit-ID: LmGIgfmNSmk
--HG--
extra : rebase_source : bf34e852beb0c8f6eafd09184c2e0cda95f95f83
2017-09-24 19:57:48 -07:00
Sebastian Hengst
7beb660397
merge mozilla-central to mozilla-inbound. r=merge a=merge
2017-10-19 11:54:07 +02:00
Andrea Marchesini
6626e900f9
Bug 1409327 - NS_NewBufferedInputStream should take the ownership of the inputStream, r=smaug
2017-10-19 11:39:30 +02:00
Sebastian Hengst
ffcd2ce160
merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
...
--HG--
extra : amend_source : ef359be373a97cad5a91f0150a46add4c3d8ab7c
2017-10-18 15:54:23 +02:00
Steve Armand
82b69a173f
Bug 1408365 - Enable flake8/py2/py3 linters on python/mozboot. r=ahal
...
MozReview-Commit-ID: 3koZq509bjP
--HG--
extra : rebase_source : 9accfc2b727fd7c1f4fad97d1a244d62f4fae714
2017-10-13 23:33:00 -04:00
Dan Banner
7caa92d5d8
Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
...
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Philipp Kewisch
28bc073914
Bug 1312191 - Do not hardcode INDENT_LEVEL in xbl preprocessor. r=miker
...
MozReview-Commit-ID: EiufIKCNfSs
--HG--
extra : rebase_source : 8acea9052135d88cbf1f58f7090d5a9d60c61c2e
2017-10-08 14:40:16 +02:00
Sebastian Hengst
1c1a5cef77
Merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
Phil Ringnalda
ecdb97c7dc
Backed out 6 changesets (bug 1406212) for mass reftest failures
...
CLOSED TREE
Backed out changeset 1c9fe35de901 (bug 1406212)
Backed out changeset 1acc4c270bf9 (bug 1406212)
Backed out changeset d9ea9cff849f (bug 1406212)
Backed out changeset 5bf2f08f01f9 (bug 1406212)
Backed out changeset 1a050da96e9e (bug 1406212)
Backed out changeset 1b5e78113f06 (bug 1406212)
MozReview-Commit-ID: LizV8CD4IY4
2017-10-12 19:45:23 -07:00
Blake Kaplan
4c3264d49f
Bug 1406212 - Remove the code that handles extensions for e10s{,-multi}. r=Felipe
...
MozReview-Commit-ID: ElPZIBmOYHR
--HG--
extra : rebase_source : 967287969f7d8c52c7522f449de55e8f36dd3f35
2017-09-28 16:09:20 -07:00
Nicholas Nethercote
bbfec72b95
Bug 1406296 (part 3) - Remove the profiler's "gpu" feature. r=mstange,jrmuizel.
...
This allows a bunch of additional stuff to be removed: ContextStateTracker,
ContextStateTrackerOGL, and GPUMarkerPayload.
--HG--
extra : rebase_source : 879045a9f9ac31ca0beb596964c6c3ef30283a53
2017-10-06 17:35:44 +11:00
Nicholas Nethercote
4bedc03a3d
Bug 1406296 (part 2) - Remove the profiler's "layersdump" feature. r=mstange.
...
Because it just doesn't control any behaviour within the profiler, and it just
duplicates gfxPrefs::LayersDumpTexture().
With this gone, PROFILER_FEATURE_ACTIVE can also be removed.
--HG--
extra : rebase_source : d6718894b8a9332cf73729ea6b7bd2de348817bd
2017-10-06 17:34:22 +11:00