diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index 6551609bfc87..86a861298ea3 100644 --- a/dom/bindings/Codegen.py +++ b/dom/bindings/Codegen.py @@ -18227,6 +18227,9 @@ class CGBindingRoot(CGThing): descriptorsHaveInstrumentedProps = any( d.instrumentedProps for d in descriptors if d.concrete ) + descriptorsHaveNeedsMissingPropUseCounters = any( + d.needsMissingPropUseCounters for d in descriptors if d.concrete + ) bindingHeaders["mozilla/UseCounter.h"] = ( descriptorsHaveUseCounters or descriptorsHaveInstrumentedProps @@ -18234,7 +18237,7 @@ class CGBindingRoot(CGThing): # Make sure to not overwrite existing pref header bits! bindingHeaders[prefHeader(MISSING_PROP_PREF)] = ( bindingHeaders.get(prefHeader(MISSING_PROP_PREF)) - or descriptorsHaveInstrumentedProps + or descriptorsHaveNeedsMissingPropUseCounters ) bindingHeaders["mozilla/dom/SimpleGlobalObject.h"] = any( CGDictionary.dictionarySafeToJSONify(d) for d in dictionaries