# Iframe, embedded widget, third-party surface

**Test family:** `EMB`

- **EMB-001** Loading/success/error/timeout/provider-down/blocked-cookie/blocked-script states have a first-party fallback.
- **EMB-002** Sandbox, allow, origin, CSP/frame policy, and message-event origin/source/schema are least-privileged.
- **EMB-003** Resize/responsive/zoom/keyboard/focus/modal/scroll works without trapping the user.
- **EMB-004** Authentication/session/consent/locale/theme changes synchronize without leaking cross-tenant data.
- **EMB-005** Third-party navigation/popups/downloads/payment completion and browser back return to correct first-party state.
- **EMB-006** Duplicate/late/forged `postMessage` events cannot repeat or spoof consequential completion.

## Comprehensive per-item coverage

- **EMB-007** Exercise unavailable, permission-denied, idle, initializing, active, paused, completed, canceled, failed, and recovered states.
- **EMB-008** Use adjacent names, captions, metadata, or pasted text containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, RTL, combining marks, and long values.
- **EMB-009** Start through pointer, keyboard, touch, switch, voice, automation, and supported device controls; expose equivalent state and one action.
- **EMB-010** Deny, grant, revoke, and change OS/browser permission while idle and active; explain consequences and stop access promptly.
- **EMB-011** Disconnect, reconnect, sleep/wake, background/foreground, rotate, resize, switch devices, and change network quality during use.
- **EMB-012** Force unsupported format, codec, capability, device, browser, version, and hardware acceleration; fall back truthfully.
- **EMB-013** Use empty, tiny, ordinary, boundary-size, malformed, truncated, corrupt, and adversarial inputs without crash or unbounded work.
- **EMB-014** Use inert markup, script, URL, path, filename, metadata, template, and structured-payload canaries; isolate untrusted content.
- **EMB-015** Attempt cross-origin, cross-tenant, unauthorized, sandbox escape, clipboard, device, and local-resource access; enforce least privilege.
- **EMB-016** Double-start, double-stop, repeat, retry after timeout, and race two sessions or devices; prevent duplicate work and state confusion.
- **EMB-017** Navigate away, refresh, crash, restore, expire the session, and resume offline/online; define preservation, cleanup, and recovery.
- **EMB-018** Verify keyboard path, accessible role/name/state, focus, announcements, captions/alternatives, contrast, reflow, target size, and reduced motion.
- **EMB-019** Test locale, RTL, translated/long labels, input methods, regional formats, and unsupported glyphs without corrupting data.
- **EMB-020** Measure initialization, interaction, processing, rendering, memory, CPU/GPU, battery, bandwidth, and cleanup at normal and boundary load.
- **EMB-021** Inspect DOM, device buffers, temporary files, caches, URLs, logs, telemetry, crash reports, previews, and exports for sensitive leakage.
- **EMB-022** Stop, cancel, undo, clear, delete, and revoke; release devices, handles, workers, object URLs, temporary data, and permissions.
- **EMB-023** Change access or ownership after content is loaded or a capability is granted; reauthorize before save, share, export, or commit.
- **EMB-024** Verify telemetry and audit identify capability, actor, target, permission decision, duration, failure, retry, and cleanup without recording sensitive payload.
- **EMB-025** Test concurrent components competing for the same device, shortcut, clipboard, focus, storage, worker, or media resource.
- **EMB-026** Recover from renderer, worker, process, device, storage, and network failure without false success, orphaned capture, or unrecoverable data loss.

[Back to Specialized controls and system surfaces index](../../specialized-controls.md)
