diff --git a/dom/bindings/Bindings.conf b/dom/bindings/Bindings.conf index 017a4df5110c..9fa97162df9f 100644 --- a/dom/bindings/Bindings.conf +++ b/dom/bindings/Bindings.conf @@ -321,13 +321,6 @@ DOMInterfaces = { 'nativeType': 'nsFrameLoader', }, -'FuzzingFunctions': { - # The codegen is dumb, and doesn't understand that this interface is only a - # collection of static methods, so we have this `concrete: False` hack. - 'concrete': False, - 'headerFile': 'mozilla/dom/FuzzingFunctions.h', -}, - 'HeapSnapshot': { 'nativeType': 'mozilla::devtools::HeapSnapshot' }, diff --git a/dom/webidl/FuzzingFunctions.webidl b/dom/webidl/FuzzingFunctions.webidl index adbd19649ea9..cd9a86771f10 100644 --- a/dom/webidl/FuzzingFunctions.webidl +++ b/dom/webidl/FuzzingFunctions.webidl @@ -12,43 +12,43 @@ [Pref="fuzzing.enabled", Exposed=Window] -interface FuzzingFunctions { +namespace FuzzingFunctions { /** * Synchronously perform a garbage collection. */ - static undefined garbageCollect(); + undefined garbageCollect(); /** * Synchronously perform a compacting garbage collection. */ - static undefined garbageCollectCompacting(); + undefined garbageCollectCompacting(); /** * Trigger a forced crash. */ - static undefined crash(optional DOMString reason = ""); + undefined crash(optional DOMString reason = ""); /** * Synchronously perform a cycle collection. */ - static undefined cycleCollect(); + undefined cycleCollect(); /** * Send a memory pressure event, causes shrinking GC, cycle collection and * other actions. */ - static undefined memoryPressure(); + undefined memoryPressure(); /** * Enable accessibility. */ [Throws] - static undefined enableAccessibility(); + undefined enableAccessibility(); /** * Send IPC fuzzing ready event to parent. */ - static undefined signalIPCReady(); + undefined signalIPCReady(); /** * synthesizeKeyboardEvents() synthesizes a set of "keydown", @@ -130,6 +130,6 @@ interface FuzzingFunctions { * keyCode: KeyboardEvent.DOM_VK_COLON }); */ [Throws] - static undefined synthesizeKeyboardEvents(DOMString aKeyValue, - optional KeyboardEventInit aDictionary = {}); + undefined synthesizeKeyboardEvents(DOMString aKeyValue, + optional KeyboardEventInit aDictionary = {}); };