demo · v140
IWA-only Controlled Frame probe
In v140 the Controlled Frame API is gated to Isolated Web Apps. Run the probe to see if your current context can construct a controlledframe element — and why or why not.
Requires Isolated Web App
To actually instantiate a Controlled Frame, the page must be an Isolated Web App. Enable chrome://flags/#enable-isolated-web-apps and install the IWA. This demo runs the same feature detection the API would.
Construction attempt:
Press the buttons above.
// Feature-detect Controlled Frame
const supported = "ControlledFrame" in window;
if (supported) {
const frame = document.createElement("controlledframe");
frame.src = "https://kiosk.example/";
document.body.appendChild(frame);
}