You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IFrames that set document.domain are still accessible from the parent #44669
I'm pretty sure this is the major motivation for cross-origin wrappers in Gecko. We need things like a Location reference obtained from a same-origin iframe to become cross-origin restricted if the iframe sets document.domain, and they also need to become unrestricted once again if the parent sets document.domain such that the iframe is once again same-origin.
changed the title [-]Iframes that set document.domain are still accessible from the parent[/-][+]IFrames that set document.domain are still accessible from the parent[/+]on May 1, 2026
Activity
jdm commentedon May 1, 2026
I'm pretty sure this is the major motivation for cross-origin wrappers in Gecko. We need things like a
Locationreference obtained from a same-origin iframe to become cross-origin restricted if the iframe sets document.domain, and they also need to become unrestricted once again if the parent sets document.domain such that the iframe is once again same-origin.[-]Iframes that set document.domain are still accessible from the parent[/-][+]IFrames that set document.domain are still accessible from the parent[/+]jdm commentedon Jun 19, 2026
This also affects
<iframe sandbox="">; iframe.contentWindow and iframe.contentDocument don't do anything special here.servo/components/script/dom/windowproxy.rs
Lines 1042 to 1043 in efd6e86
This should throw an exception, but it just prints undefined in Servo.
script: Implement the `WindowProxy` `ProxyTraps` according to specifi…
script: Implement the `WindowProxy` `ProxyTraps` according to specifi…
engine: a cross-origin window on the same site exposes only the cross…
script: Implement the `WindowProxy` `ProxyTraps` according to specifi…
backport: script: Implement the `WindowProxy` `ProxyTraps` according …