DocShell/Window targeting: Difference between revisions

m
fixing typo
(Adding description of our current window targeting setup)
 
m (fixing typo)
Line 1: Line 1:
== Current setup ==
== Current setup ==
Window targeting is used for both <code>&lt;a target="name"&gt'</code>  and for <code>window.open(url, name)</code>.  The process works as follows:
Window targeting is used for both <code>&lt;a target="name"&gt;</code>  and for <code>window.open(url, name)</code>.  The process works as follows:


# Identify the docshell making the targeting request.  For links this is the container of the document the link is in.  For <code>window.open</code> calls this is the docshell of the window the script that calls <code>window.open</code> is running in.  This is the originating docshell.  In what follows we always make sure that the originating docshell is allowed to perform a load in any docshell that we find matching the name that was passed in.
# Identify the docshell making the targeting request.  For links this is the container of the document the link is in.  For <code>window.open</code> calls this is the docshell of the window the script that calls <code>window.open</code> is running in.  This is the originating docshell.  In what follows we always make sure that the originating docshell is allowed to perform a load in any docshell that we find matching the name that was passed in.
Confirmed users
195

edits