From ea8ebdae4ae3fd8b1574fe629645ab730be2d2bf Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 9 Nov 2015 12:53:13 +0100 Subject: [PATCH] Fix #313: make disowning disown the opener browsing context too Otherwise window names would still leak across. --- source | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/source b/source index 8f3a2717856..17ccc9b250c 100644 --- a/source +++ b/source @@ -77954,17 +77954,20 @@ dictionary DragEventInit : MouseEventInit { the browsing context from which the auxiliary browsing context was created.

+

When an auxiliary browsing context is to disown + its opener, its opener browsing context must be set to null. This makes the + auxiliary browsing context indistinguishable from a top-level browsing + context. +

Navigating auxiliary browsing contexts in the DOM

The opener IDL attribute on the Window - object, on getting, must return the WindowProxy object of the browsing - context from which the current browsing context was created (its opener - browsing context), if there is one, if it is still available, and if the current - browsing context has not disowned its opener; - otherwise, it must return null. On setting, if the new value is null then the current - browsing context must disown its opener; if - the new value is anything else then the user agent must + object, on getting, must return the WindowProxy object of the current browsing + context's opener browsing context, if there is one; otherwise, it must return + null. On setting, if the new value is null then the current browsing context must + disown its opener; if the new value is anything else + then the user agent must call the [[DefineOwnProperty]] internal method of the Window object, passing the