gecko-dev/tools/fuzzing
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
..
common
docs Bug 1449575 - Update fuzzing build docs. - r=jkratzer 2022-03-24 19:39:06 +00:00
faulty Bug 1754037 - Part 2: Forward declare Message{Reader,Writer} where Message is forward declared, r=ipc-reviewers,mccr8 2022-03-04 15:39:39 +00:00
interface Bug 1744806 - Fix gcc + --enable-fuzzing missing header r=decoder 2021-12-08 17:00:24 +00:00
ipc 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
libfuzzer
messagemanager Bug 1769290 - Part 26: Emit errors from JSHandleRootedTypedefChecker r=andi,geckoview-reviewers,owlish 2022-08-09 14:13:30 +00:00
nyx Bug 1782502 - Fix incorrect log message when fuzzing with Nyx. r=truber 2022-08-06 08:29:27 +00:00
registry
rust
shmem
smoke Bug 1738054 - Remove obsolete "skip-if = python == 2" keys from testing manifests and re-enable some skipped tests which now pass. r=ahochheiden 2022-06-21 01:46:44 +00:00
libfuzzer-config.mozbuild
libfuzzer-flags.mozbuild
moz.build Bug 1738278 - Add fuzzing snapshot API. r=truber,firefox-build-system-reviewers,glandium 2021-11-25 11:20:43 +00:00