gecko-dev/tools
Ray Kraesig 54ac39289a Bug 1772908 - [1/6] Drive-by cleanup: simplify use of SyncRunnable r=xpcom-reviewers,necko-reviewers,nika,valentin
`SyncRunnable`'s helper functions take an `nsIRunnable *`; but the most
common way of building nsIRunnables, `NS_NewRunnableFunction`, returns
an `already_AddRefed<nsIRunnable>` instead. Add two new overloads of the
helper functions to eliminate the impedance mismatch.

(This does result in an uncomfortable amount of code duplication. While
we could eliminate that with appropriate use of SFINAE, it'll be simpler
if we wait for C++20 and its `requires` keyword.)

Additionally, add two explicitly-deleted overloads to catch and prevent
a previously-common antipattern that presumably resulted from this type
mismatch: accidentally wrapping the actual runnable in two layers of
`SyncRunnable`. Fix the former use-sites appropriately. (This was
probably harmless, but is also probably best avoided.)

No functional changes. This is in some sense a continuation of bug
1281626.

(This is no longer actually relevant to bug 1772908 due to a different
approach being taken. It remains in the patchset anyway, for
simplicity's sake.)

Differential Revision: https://phabricator.services.mozilla.com/D157131
2022-11-04 21:04:18 +00:00
..
bloatview
browsertime Bug 1735398 - Update and move the FFMPEG binaries out of the non-standard repository. r=perftest-reviewers,sparky 2022-10-12 13:19:02 +00:00
clang-tidy Bug 1784202 - Update builders to clang 15. r=firefox-build-system-reviewers,andi 2022-11-01 23:46:33 +00:00
code-coverage Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE 2022-11-01 22:38:52 -04:00
compare-locales
crashreporter Bug 1788183 - Convert parse_pbzx.py to python3. r=gsvelto 2022-11-02 02:16:26 +00:00
esmify Bug 1797472 - Convert Messaging.jsm to ESM. r=geckoview-reviewers,owlish 2022-11-02 14:31:59 +00:00
fuzzing Bug 1772908 - [1/6] Drive-by cleanup: simplify use of SyncRunnable r=xpcom-reviewers,necko-reviewers,nika,valentin 2022-11-04 21:04:18 +00:00
github-sync
jprof
leak-gauge
lint Bug 1797274 - [devtools] Track source-map gecko API performance. r=perftest-reviewers,bomsy,jdescottes,sparky 2022-11-03 14:05:44 +00:00
moztreedocs Bug 1458882 - [moztreedocs] Add flag to dump sphinx trees to a file, r=firefox-source-docs-reviewers,sylvestre 2022-11-01 21:03:07 +00:00
performance
phabricator
power
profiler Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE 2022-11-01 22:38:52 -04:00
quitter Bug 1777906 - update quitter xpi to be signed from mozilla-extensions repo. r=gbrown 2022-09-07 19:25:19 +00:00
rb
rewriting Bug 1798911 - Setup lit for development of toolkit widgets r=hjones 2022-11-03 21:32:34 +00:00
rusttests
sanitizer/docs
tryselect Bug 1759030 - [gecko_taskgraph] Use 'generator.py' from upstream Taskgraph, r=releng-reviewers,jlorenzo 2022-11-04 14:14:57 +00:00
update-packaging
update-programs
update-verify
vcs
mach_commands.py
moz.build