diff --git a/dom/webidl/HTMLImageElement.webidl b/dom/webidl/HTMLImageElement.webidl
index 55f5a851b375..fe8c0ae7ec00 100644
--- a/dom/webidl/HTMLImageElement.webidl
+++ b/dom/webidl/HTMLImageElement.webidl
@@ -29,7 +29,7 @@ interface HTMLImageElement : HTMLElement {
attribute DOMString? crossOrigin;
[SetterThrows]
attribute DOMString useMap;
- [SetterThrows]
+ [SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrer;
[SetterThrows]
attribute boolean isMap;