Window:fence 属性
Deprecated
To be removed
This feature is pending removal from browsers. Using it now may lead to broken functionality in future updates.
Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the <fencedframe> element and related APIs.
>
Window 接口的只读属性 fence 为当前文档上下文返回一个 Fence 对象实例。
Fence 对象仅对嵌入在 <fencedframe>(通过 FencedFrameConfig 加载)或 <iframe>(通过不透明 URN 加载)中的文档可用。
备注:参见 <fencedframe> 的工作原理了解有关 FencedFrameConfig 和不透明 URN 的一些描述。