Browse Source

LibWeb: Implement HTMLImageElement.referrerPolicy

Jamie Mansfield 1 năm trước cách đây
mục cha
commit
1aa58b6d8c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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/Scripting/Fetching.idl>
 
@@ -20,7 +21,7 @@ interface HTMLImageElement : HTMLElement {
     readonly attribute unsigned long naturalHeight;
     readonly attribute boolean complete;
     readonly attribute USVString currentSrc;
-    [FIXME, CEReactions] attribute DOMString referrerPolicy;
+    [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
     [FIXME, CEReactions] attribute DOMString decoding;
     [CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
     [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;