The navigator.canLoadAdAuctionFencedFrame() is an API that can be used to determine, before an ad auction begins, whether a fenced frame can load on a page. This helps prevent unnecessary work being done in the ad auction if the resulting ad can't even be shown on the page. The API looks at CSPEE, CSP policies, and sandbox flags to determine whether a hypothetical fenced frame would be able to load, and the checks mirror the checks that fenced frames perform before loading.
Note that sandbox flags haven't been spec'd in fenced frames yet. There will be a follow up to get the value from the fenced frame spec, once it exists. See: https://github.com/WICG/fenced-frame/issues/155
The
navigator.canLoadAdAuctionFencedFrame()
is an API that can be used to determine, before an ad auction begins, whether a fenced frame can load on a page. This helps prevent unnecessary work being done in the ad auction if the resulting ad can't even be shown on the page. The API looks at CSPEE, CSP policies, and sandbox flags to determine whether a hypothetical fenced frame would be able to load, and the checks mirror the checks that fenced frames perform before loading.See: https://github.com/WICG/fenced-frame/issues/46
Note that sandbox flags haven't been spec'd in fenced frames yet. There will be a follow up to get the value from the fenced frame spec, once it exists. See: https://github.com/WICG/fenced-frame/issues/155
Preview | Diff