浏览代码

LibWeb: Implement HTMLImageElement.referrerPolicy

Jamie Mansfield 1 年之前
父节点
当前提交
1aa58b6d8c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl

+ 2 - 1
Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl

@@ -1,3 +1,4 @@
+#import <Fetch/Request.idl>
 #import <HTML/HTMLElement.idl>
 #import <HTML/HTMLElement.idl>
 #import <HTML/Scripting/Fetching.idl>
 #import <HTML/Scripting/Fetching.idl>
 
 
@@ -20,7 +21,7 @@ interface HTMLImageElement : HTMLElement {
     readonly attribute unsigned long naturalHeight;
     readonly attribute unsigned long naturalHeight;
     readonly attribute boolean complete;
     readonly attribute boolean complete;
     readonly attribute USVString currentSrc;
     readonly attribute USVString currentSrc;
-    [FIXME, CEReactions] attribute DOMString referrerPolicy;
+    [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
     [FIXME, CEReactions] attribute DOMString decoding;
     [FIXME, CEReactions] attribute DOMString decoding;
     [CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
     [CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
     [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
     [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;