demo · v136
canLoadOpaqueURL removed
The 2023 deprecation finally lands. HTMLFencedFrameElement.canLoadOpaqueURL() is gone — sites must use navigator.canLoadAdAuctionFencedFrame() instead. Probe both APIs in your browser below.
Probing…
API removal & replacement
HTMLFencedFrameElement defined?—
.canLoadOpaqueURL on prototype?—
navigator.canLoadAdAuctionFencedFrame?—
working replacement call
return value—
error—
the code
// Pre-136 (now removed)
HTMLFencedFrameElement.canLoadOpaqueURL(); // ❌
// 136+ replacement
const ok = await navigator.canLoadAdAuctionFencedFrame();
if (ok) {
const frame = document.createElement("fencedframe");
// ... set config & insert into DOM
}
see also
- canLoadOpaqueURL removal — feature index
- ChromeStatus entry
- Fenced Frame spec