Fresh srcdoc child realm reports webdriver as false
Unmodified consumer browsers return false consistently across the parent window and newly appended srcdoc child contexts.
Appends a hidden 1x1 <iframe srcdoc="<html></html>"> to test whether contentWindow.navigator.webdriver leaks true inside a fresh realm.
Client integrity checks append a temporary, invisible 1x1 <iframe srcdoc="<html></html>"> element with zero opacity to the page DOM and immediately read contentWindow.navigator.webdriver inside that fresh child realm before cleaning it up.
Because a newly inserted srcdoc document initializes an untouched Navigator prototype in an isolated browsing context, it exposes underlying browser automation flags missed by main-frame-only cloaking scripts.
JavaScript injection hooks or document-start stealth scripts that patch navigator.webdriver solely on the top window routinely fail to cloak dynamically created srcdoc child frames.
Ordinary retail desktop and mobile browsers consistently report false across both the parent window and every newly initialized same-origin srcdoc iframe.
srcdoc child realm reports webdriver as falseUnmodified consumer browsers return false consistently across the parent window and newly appended srcdoc child contexts.
webdriver flag exposed inside srcdoc iframeTop-frame-only webdriver masking fails inside dynamically created srcdoc frames, revealing navigator.webdriver set to true.
Forensic significance: A webdriver leak inside a srcdoc iframe is a high-confidence indicator of masked browser automation capable of triggering strong enforcement, though verified authentic human interaction can still be weighed in borderline review.