diff --git a/dom/base/nsImageLoadingContent.cpp b/dom/base/nsImageLoadingContent.cpp
index d163d92099d1..e26b142a90ae 100644
--- a/dom/base/nsImageLoadingContent.cpp
+++ b/dom/base/nsImageLoadingContent.cpp
@@ -1797,12 +1797,6 @@ bool nsImageLoadingContent::ScriptedImageObserver::CancelRequests() {
return cancelled;
}
-// Only HTMLInputElement.h overrides this for tags
-// all other subclasses use this one, i.e. ignore referrer attributes
-mozilla::dom::ReferrerPolicy nsImageLoadingContent::GetImageReferrerPolicy() {
- return mozilla::dom::ReferrerPolicy::_empty;
-}
-
Element* nsImageLoadingContent::FindImageMap() {
nsIContent* thisContent = AsContent();
Element* thisElement = thisContent->AsElement();
diff --git a/dom/base/nsImageLoadingContent.h b/dom/base/nsImageLoadingContent.h
index 381f77c00b3b..2e2075d6f466 100644
--- a/dom/base/nsImageLoadingContent.h
+++ b/dom/base/nsImageLoadingContent.h
@@ -213,8 +213,6 @@ class nsImageLoadingContent : public nsIImageLoadingContent {
*/
virtual mozilla::CORSMode GetCORSMode();
- virtual mozilla::dom::ReferrerPolicy GetImageReferrerPolicy();
-
// Subclasses are *required* to call BindToTree/UnbindFromTree.
void BindToTree(mozilla::dom::BindContext&, nsINode& aParent);
void UnbindFromTree(bool aNullParent);
diff --git a/dom/html/HTMLImageElement.cpp b/dom/html/HTMLImageElement.cpp
index e108d1e29536..870145e3d0d6 100644
--- a/dom/html/HTMLImageElement.cpp
+++ b/dom/html/HTMLImageElement.cpp
@@ -393,7 +393,7 @@ nsresult HTMLImageElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
aValue && static_cast(aValue->GetEnumValue()) ==
ImageDecodingType::Sync);
} else if (aName == nsGkAtoms::referrerpolicy) {
- ReferrerPolicy referrerPolicy = GetImageReferrerPolicy();
+ ReferrerPolicy referrerPolicy = GetReferrerPolicyAsEnum();
// FIXME(emilio): Why only when not in responsive mode? Also see below for
// aNotify.
forceReload = aNotify && !InResponsiveMode() &&
diff --git a/dom/html/HTMLImageElement.h b/dom/html/HTMLImageElement.h
index 2e25ca131fbe..632d96e85a24 100644
--- a/dom/html/HTMLImageElement.h
+++ b/dom/html/HTMLImageElement.h
@@ -203,10 +203,6 @@ class HTMLImageElement final : public nsGenericHTMLElement,
already_AddRefed Decode(ErrorResult& aRv);
- ReferrerPolicy GetImageReferrerPolicy() override {
- return GetReferrerPolicyAsEnum();
- }
-
MOZ_CAN_RUN_SCRIPT int32_t X();
MOZ_CAN_RUN_SCRIPT int32_t Y();
void GetLowsrc(nsAString& aLowsrc) {