diff --git a/content/html/content/src/HTMLOptionsCollection.cpp b/content/html/content/src/HTMLOptionsCollection.cpp
index 712ff9267256..d89934fffbf6 100644
--- a/content/html/content/src/HTMLOptionsCollection.cpp
+++ b/content/html/content/src/HTMLOptionsCollection.cpp
@@ -7,6 +7,7 @@
#include "HTMLOptGroupElement.h"
#include "mozAutoDocUpdate.h"
+#include "mozilla/dom/BindingUtils.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/HTMLOptionElement.h"
#include "mozilla/dom/HTMLOptionsCollectionBinding.h"
diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py
index a93d7a8c7a53..0fb874fa77ac 100644
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -10522,7 +10522,6 @@ struct PrototypeTraits;
config.getDictionaries(),
config.getCallbacks(),
config)
- includes.add("mozilla/dom/BindingUtils.h")
includes.add("mozilla/dom/OwningNonNull.h")
includes.add("mozilla/dom/UnionMember.h")