Skip to content

Commit

Permalink
[giow] (2) Change how window.opener works to allow it to be set to 'n…
Browse files Browse the repository at this point in the history
…ull' and have that persist past page load.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11839

git-svn-id: http://svn.whatwg.org/webapps@5906 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 18, 2011
1 parent de058fa commit 8ba787a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 18 deletions.
17 changes: 11 additions & 6 deletions complete.html
Expand Up @@ -58236,11 +58236,16 @@ <h4 id=auxiliary-browsing-contexts><span class=secno>6.1.2 </span>Auxiliary brow
<h5 id=navigating-auxiliary-browsing-contexts-in-the-dom><span class=secno>6.1.2.1 </span>Navigating auxiliary browsing contexts in the DOM</h5>

<p>The <dfn id=dom-opener title=dom-opener><code>opener</code></dfn> IDL
attribute on the <code><a href=#window>Window</a></code> object must return the
<code><a href=#windowproxy>WindowProxy</a></code> object of the <a href=#browsing-context>browsing context</a>
from which the current <a href=#browsing-context>browsing context</a> was created
(its <a href=#opener-browsing-context>opener browsing context</a>), if there is one and it
is still available.</p>
attribute on the <code><a href=#window>Window</a></code> object, on getting, must return
the <code><a href=#windowproxy>WindowProxy</a></code> object of the <a href=#browsing-context>browsing
context</a> from which the current <a href=#browsing-context>browsing context</a>
was created (its <a href=#opener-browsing-context>opener browsing context</a>), if there is
one, if it is still available, and if the current <a href=#browsing-context>browsing
context</a> has not <i><a href=#disowned-its-opener>disowned its opener</a></i>. On setting, if
the new value is null then the current <a href=#browsing-context>browsing context</a>
must <dfn id=disowned-its-opener title="disowned its opener">disown its opener</dfn>; if
the new value is anything else then the user agent must ignore the
new value.</p>



Expand Down Expand Up @@ -58511,7 +58516,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-frames title=dom-frames>frames</a>;
[Replaceable] readonly attribute unsigned long <a href=#dom-length title=dom-length>length</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-top title=dom-top>top</a>;
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-opener title=dom-opener>opener</a>;
attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-opener title=dom-opener>opener</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-parent title=dom-parent>parent</a>;
readonly attribute <a href=#element>Element</a> <a href=#dom-frameelement title=dom-frameElement>frameElement</a>;
<a href=#windowproxy>WindowProxy</a> <a href=#dom-open title=dom-open>open</a>(in optional DOMString url, in optional DOMString target, in optional DOMString features, in optional DOMString replace);
Expand Down
17 changes: 11 additions & 6 deletions index
Expand Up @@ -58219,11 +58219,16 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
<h5 id=navigating-auxiliary-browsing-contexts-in-the-dom><span class=secno>6.1.2.1 </span>Navigating auxiliary browsing contexts in the DOM</h5>

<p>The <dfn id=dom-opener title=dom-opener><code>opener</code></dfn> IDL
attribute on the <code><a href=#window>Window</a></code> object must return the
<code><a href=#windowproxy>WindowProxy</a></code> object of the <a href=#browsing-context>browsing context</a>
from which the current <a href=#browsing-context>browsing context</a> was created
(its <a href=#opener-browsing-context>opener browsing context</a>), if there is one and it
is still available.</p>
attribute on the <code><a href=#window>Window</a></code> object, on getting, must return
the <code><a href=#windowproxy>WindowProxy</a></code> object of the <a href=#browsing-context>browsing
context</a> from which the current <a href=#browsing-context>browsing context</a>
was created (its <a href=#opener-browsing-context>opener browsing context</a>), if there is
one, if it is still available, and if the current <a href=#browsing-context>browsing
context</a> has not <i><a href=#disowned-its-opener>disowned its opener</a></i>. On setting, if
the new value is null then the current <a href=#browsing-context>browsing context</a>
must <dfn id=disowned-its-opener title="disowned its opener">disown its opener</dfn>; if
the new value is anything else then the user agent must ignore the
new value.</p>



Expand Down Expand Up @@ -58494,7 +58499,7 @@ interface <dfn id=window>Window</dfn> {
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-frames title=dom-frames>frames</a>;
[Replaceable] readonly attribute unsigned long <a href=#dom-length title=dom-length>length</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-top title=dom-top>top</a>;
[Replaceable] readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-opener title=dom-opener>opener</a>;
attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-opener title=dom-opener>opener</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-parent title=dom-parent>parent</a>;
readonly attribute <a href=#element>Element</a> <a href=#dom-frameelement title=dom-frameElement>frameElement</a>;
<a href=#windowproxy>WindowProxy</a> <a href=#dom-open title=dom-open>open</a>(in optional DOMString url, in optional DOMString target, in optional DOMString features, in optional DOMString replace);
Expand Down
17 changes: 11 additions & 6 deletions source
Expand Up @@ -66151,11 +66151,16 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
<h5>Navigating auxiliary browsing contexts in the DOM</h5>

<p>The <dfn title="dom-opener"><code>opener</code></dfn> IDL
attribute on the <code>Window</code> object must return the
<code>WindowProxy</code> object of the <span>browsing context</span>
from which the current <span>browsing context</span> was created
(its <span>opener browsing context</span>), if there is one and it
is still available.</p>
attribute on the <code>Window</code> object, on getting, must return
the <code>WindowProxy</code> object of the <span>browsing
context</span> from which the current <span>browsing context</span>
was created (its <span>opener browsing context</span>), if there is
one, if it is still available, and if the current <span>browsing
context</span> has not <i>disowned its opener</i>. On setting, if
the new value is null then the current <span>browsing context</span>
must <dfn title="disowned its opener">disown its opener</dfn>; if
the new value is anything else then the user agent must ignore the
new value.</p>



Expand Down Expand Up @@ -66464,7 +66469,7 @@ interface <dfn>Window</dfn> {
[Replaceable] readonly attribute <span>WindowProxy</span> <span title="dom-frames">frames</span>;
[Replaceable] readonly attribute unsigned long <span title="dom-length">length</span>;
readonly attribute <span>WindowProxy</span> <span title="dom-top">top</span>;
[Replaceable] readonly attribute <span>WindowProxy</span> <span title="dom-opener">opener</span>;
attribute <span>WindowProxy</span> <span title="dom-opener">opener</span>;
readonly attribute <span>WindowProxy</span> <span title="dom-parent">parent</span>;
readonly attribute <span>Element</span> <span title="dom-frameElement">frameElement</span>;
<span>WindowProxy</span> <span title="dom-open">open</span>(in optional DOMString url, in optional DOMString target, in optional DOMString features, in optional DOMString replace);
Expand Down

0 comments on commit 8ba787a

Please sign in to comment.