Commit Graph

7533 Commits

Author SHA1 Message Date
Simon Giesecke
3f5316df28 Bug 1609943 - Improved section on comparison against true/false, and added note on clang-tidy check. r=sylvestre
Depends on D60281

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

--HG--
extra : moz-landing-system : lando
2020-01-20 12:37:31 +00:00
Simon Giesecke
3e22e77cc5 Bug 1609943 - Merged two mentions of naming nsresult error variables, and improved wording a bit. r=sylvestre
Depends on D60273

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

--HG--
extra : moz-landing-system : lando
2020-01-18 12:04:36 +00:00
Simon Giesecke
3da8e73cda Bug 1609943 - Move static analysis to its own section, and add notes on a few more clang-tidy checks. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D60273

--HG--
extra : moz-landing-system : lando
2020-01-20 12:37:21 +00:00
Simon Giesecke
e9e7a0258f Bug 1609943 - Move all string-related rules into one section. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D60264

--HG--
extra : moz-landing-system : lando
2020-01-20 10:17:20 +00:00
Simon Giesecke
843989bf9a Bug 1609943 - Refer to UpperCamelCase to remove ambiguity. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D60263

--HG--
extra : moz-landing-system : lando
2020-01-18 12:02:39 +00:00
Simon Giesecke
34cd11297e Bug 1609943 - Move mode line section from C++ to general coding style. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D60262

--HG--
extra : moz-landing-system : lando
2020-01-18 11:43:19 +00:00
Simon Giesecke
615906c9b7 Bug 1609943 - Split guideline on unary operators into C++ and JavaScript part. r=sylvestre
C++: Remove reference to JavaScript typeof from 'Operators' section and specifically refer to sizeof only.

JavaScript: Added remainder of the guideline referring to typeof.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 08:19:55 +00:00
Simon Giesecke
dfc0fdd507 Bug 1609943 - Cleanup in-line code fragments to use proper encapsulation. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D60260

--HG--
extra : moz-landing-system : lando
2020-01-17 15:51:35 +00:00
Nazım Can Altınova
f70859c47d Bug 1609674 - Add innerWindowID param to AUTO_PROFILER_TEXT_MARKER_CAUSE and use that macro for setTimeout callback marker. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D60270

--HG--
extra : moz-landing-system : lando
2020-01-20 18:53:09 +00:00
Emilio Cobos Álvarez
256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
Emilio Cobos Álvarez
aa3a695712 Bug 1609996 - Remove mozilla/Move.h. r=froydnj
rg -l 'mozilla/Move.h' | xargs sed -i 's/#include "mozilla\/Move.h"/#include <utility>/g'

Further manual fixups and cleanups to the include order incoming.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:18:20 +00:00
Andi-Bogdan Postelnicu
678216c088 Bug 1609864 - For clang-tidy disable checker performance-noexcept-move-constructor. r=sylvestre
Since we don't build use exceptions nor we use STL containers that rely on this when choosing copy
 from move ctors, if these are not marked with noexcept, we should disable this checker since
 it brings only noise to our analysis.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 08:49:01 +00:00
Nazım Can Altınova
d8afe0647a Bug 1609708 - Rename PROFILER_TRACING to PROFILER_TRACING_MARKER. r=gerald
Depends on D60229

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

--HG--
extra : moz-landing-system : lando
2020-01-17 21:29:15 +00:00
Sylvestre Ledru
cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca
506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru
6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
Victor Porof
6e4c49c023 Bug 1608676 - Add multithreaded scenarios to RKV function calls fuzzing, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59620

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:59 +00:00
Victor Porof
c931810830 Bug 1608624 - Add more variation to RKV function calls fuzzing by interspersing fuzzing data with fuzzing opts, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59619

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:36 +00:00
Victor Porof
620922e8dc Bug 1608624 - Pre: Fix typo resulting in max_dbs always being at least '2', r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59626

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:12 +00:00
Victor Porof
252026d13e Bug 1608624 - Pre: Remove unnecessary key/value tuple, a single predefined vector is sufficient, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59618

--HG--
extra : moz-landing-system : lando
2020-01-18 07:53:44 +00:00
Cosmin Sabou
9b6e5f8e66 Backed out changeset 4c303f6ec2e6 (bug 1602898) for browser chrome failures on browser_ssb_windowlocation. 2020-01-18 01:06:34 +02:00
Kris Maglione
036e960542 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-17 21:36:10 +00:00
Siddhant085
676ce0d13c Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak
Phasing out the old notification system for OnItemRemoved events.

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

--HG--
extra : moz-landing-system : lando
2020-01-16 18:38:54 +00:00
Toshihito Kikuchi
03748871e3 Bug 1607574 - Skip LoadLibraryEx if we're likely to hit the crash in nvd3d9wrapx.dll. r=gerald
We have a number of reports crashing in nvd3d9wrapx.dll when we call `LoadLibraryEx` with
`LOAD_LIBRARY_AS_DATAFILE` to collect PDB information.  It seems that nvd3d9wrapx.dll
detours LoadLibraryEx and its detour function has a bug to access an address of nvinitx.dll
even after it's unloaded.

After we landed Bug 1522830, we started to collect the stack information in the content
process, which introduced a chance to meet conditions to hit this crash.

Given that the high volume of crash reports, this patch adds an ad-hoc workaround to add
library info with dummy PDB info instead of calling `LoadLibraryEx`.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 05:39:43 +00:00
Tomislav Jovanovic
48d05a45cb Bug 1602639 - Switch native messaging from MessageManagers to Conduits r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D58356

--HG--
extra : moz-landing-system : lando
2020-01-16 22:41:27 +00:00
Csoregi Natalia
cf4fe0aaee Merge autoland to mozilla-central. a=merge 2020-01-16 23:44:43 +02:00
Razvan Maries
ffc90b2ec8 Backed out changeset a57aed49dc58 (bug 1524639) for beetmover bustages. a=backout 2020-01-16 14:04:31 +02:00
shindli
c52d5f8025 Backed out 2 changesets (bug 1586939) for causing perma bc failures in automation.py CLOSED TREE
Backed out changeset 922243345807 (bug 1586939)
Backed out changeset b5aac83f7f4f (bug 1586939)
2020-01-16 09:51:49 +02:00
Gerald Squelart
50efb05c6b Bug 1586939 - Remove "_BASE" from most Base Profiler env-vars - r=gregtatum
Now both profilers are controlled by the same environment variables, e.g.
"MOZ_PROFILER_STARTUP" to run both profilers at startup.

The only remaining Base Profiler-specific commands are:
- MOZ_BASE_PROFILER_HELP, because the Base Profiler doesn't have the same
  capabilities as Gecko, so it may display different available features.
- MOZ_BASE_PROFILER_LOGGING, because the Base Profiler doesn't have access to
  MOZ_LOG (both the env-var and the C++ macros).

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

--HG--
extra : moz-landing-system : lando
2020-01-15 01:57:35 +00:00
Alexandre Poirot
088f540a62 Bug 1609383 - Fix running xpcshell test for devtools try presets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D59997

--HG--
extra : moz-landing-system : lando
2020-01-16 09:48:21 +00:00
Gabriele Svelto
96a70684f4 Bug 1588538 - Use the new Windows dump_syms tool to dump symbols in local builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D57094

--HG--
extra : moz-landing-system : lando
2020-01-16 14:14:13 +00:00
Ricky Stewart
fecc988cc6 Bug 1524639: [taskgraph] Enforce unicode strings in schemas r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D18376

--HG--
extra : moz-landing-system : lando
2020-01-15 20:33:20 +00:00
Tom Prince
fb985314d1 Bug 1608205: [tryselect] Allow scriptworker selector to use nightly graphs; r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D59388

--HG--
extra : moz-landing-system : lando
2020-01-15 17:19:02 +00:00
Randell Jesup
639b7b7769 Bug 1608523: Add MOZ_LOG_TIME() to allow time ranges for logs r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59552

--HG--
extra : moz-landing-system : lando
2020-01-14 21:36:19 +00:00
Dzmitry Malyshau
69b270f2c6 Bug 1605171 - Replace wrupdater with github-sync r=tomprince
this is an evolution of wrupdater

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

--HG--
extra : moz-landing-system : lando
2020-01-14 18:37:28 +00:00
Tarek Ziadé
dc4e8c242a Bug 1608464 - Stop trying to set --firefox.binaryPath if --android is used r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D59835

--HG--
extra : moz-landing-system : lando
2020-01-14 10:35:38 +00:00
Csoregi Natalia
57eb78c63c Backed out changeset 5d0b75e5f795 (bug 1588538) for DUMP_SYMS bustage. CLOSED TREE 2020-01-14 13:53:54 +02:00
Gabriele Svelto
e62e144c3c Bug 1588538 - Use the new Windows dump_syms tool to dump symbols in local builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D57094

--HG--
extra : moz-landing-system : lando
2020-01-14 10:08:52 +00:00
Tarek Ziadé
9bb6e90df8 Bug 1565027 - check browsertime node install
Teach `mach browsertime` to tell you to `mach browsertime --setup` if we're not already set up

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

--HG--
extra : moz-landing-system : lando
2020-01-14 08:14:35 +00:00
Tarek Ziadé
c1555abb86 Bug 1607522 - hard stop if Pillow or pyssim could not be installed r=nalexander
Let's stop if the packages could not be installed.
Also, let's skip the call if we find them.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 08:04:54 +00:00
Tarek Ziadé
b1af7191f1 Bug 1596237 - make sure ImageMagick's ffmpeg does not take precedence r=acreskey
Tweaked sys.path on windows to make sure we use the right ffmpeg binary

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

--HG--
extra : moz-landing-system : lando
2020-01-14 06:58:04 +00:00
Mike Hommey
60f73c8b99 Bug 1608040 - Clean up try presets from test_preset.t in that test rather than the one that follows. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D59283

--HG--
extra : moz-landing-system : lando
2020-01-10 20:09:34 +00:00
shindli
3d28702804 Backed out changeset 1bdfd7c37b02 (bug 1511700) for causing newtab node test failure CLOSED TREE 2020-01-13 22:33:58 +02:00
Siddhant085
d48342d7db Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak
Phasing out the old notification system for OnItemRemoved events.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 16:25:39 +00:00
championshuttler
95c0215706 Bug 1608679 - Fix the path of docs config file.r=sylvestre
Depends on D59623

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

--HG--
extra : moz-landing-system : lando
2020-01-12 12:37:48 +00:00
championshuttler
8a3af3f0e0 Bug 1608679 - Move managing docs to tools/moztreedocs/docs to include in docs tree.r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D59623

--HG--
rename : tools/docs/docs/jsdoc-support.rst => tools/moztreedocs/docs/jsdoc-support.rst
rename : tools/docs/docs/mermaid-integration.rst => tools/moztreedocs/docs/mermaid-integration.rst
rename : tools/docs/docs/nested-docs.rst => tools/moztreedocs/docs/nested-docs.rst
rename : tools/docs/docs/redirect.rst => tools/moztreedocs/docs/redirect.rst
rename : tools/docs/docs/rstlint.rst => tools/moztreedocs/docs/rstlint.rst
rename : tools/docs/docs/server-synchronization.rst => tools/moztreedocs/docs/server-synchronization.rst
extra : moz-landing-system : lando
2020-01-12 12:39:39 +00:00
championshuttler
b62d30cc23 Bug 1605742 - Move Mercurial docs to docs/contributing directory.r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D59376

--HG--
rename : tools/docs/docs/contribute/mercurial.rst => docs/contributing/mercurial.rst
extra : moz-landing-system : lando
2020-01-10 12:50:34 +00:00
Victor Porof
e23a8a366d Bug 1601946 - Implement an elaborate RKV API fuzzing test, r=truber
Depends on D56336

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

--HG--
extra : moz-landing-system : lando
2020-01-10 08:58:14 +00:00
Victor Porof
595b0a6768 Bug 1601946 - Pre 1: Add a fuzzing test for database names, r=truber
Depends on D56335

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

--HG--
extra : moz-landing-system : lando
2020-01-10 08:57:30 +00:00
Victor Porof
de4eb52c3b Bug 1601946 - Pre 0: Avoid silently ignoring errors and returning early, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D56335

--HG--
extra : moz-landing-system : lando
2020-01-10 08:56:57 +00:00