Open Bug 1346339 Opened 7 years ago Updated 2 years ago

[meta] Implement fuzzPriv methods in FuzzingFunctions

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

Once XUL addons are no longer supported, the domFuzzLite addon will no longer work. As a replacement, we can add methods to the FuzzingFunctions webidl interface, which is exposed to content in --enable-fuzzing builds when the fuzzing.enabled pref is set to true.
FuzzingFunctions methods are static, so in the appropriate build setup they can be called like this:
  FuzzingFunctions.garbageCollect();

Right now, they only work on the main thread, but they could be expanded to also work on workers.
Depends on: 1348028
I think we should check how many of the functions currently in fuzzPriv directly go down to the JS engine. We can by now expose most of the JS testing functions directly in the browser (e.g. gc, gczeal, ...) and we should check in how far those are identical to what we used to have in fuzzPriv.

The JS functions are right now directly exposed on the global object, but we can probably move them to some object like FuzzingFunctions.
Sorry, should already have marked these meta bugs as P3.
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Summary: Implement fuzzPriv methods in FuzzingFunctions → [meta] Implement fuzzPriv methods in FuzzingFunctions
Depends on: 1700004
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.