Skip to content
Permalink
Browse files

[] (0) Allow the origin to include extra data, such as the host's cer…

…tificate. (credit: el)

git-svn-id: http://svn.whatwg.org/webapps@1839 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jul 1, 2008
1 parent 988e39f commit 66433e5347ef90f0fde94c71ab3760aad7b14a97
Showing with 49 additions and 21 deletions.
  1. +19 −6 index
  2. +30 −15 source
25 index
<p>The <dfn id=origin0>origin</dfn> of a resource and the <dfn
id=effective3>effective script origin</dfn> of a resource are both either
opaque identifiers or tuples consisting of a scheme component, a host
component, and a port component.
component, a port component, and optionally extra data.

<p class=note>The extra data could include the certificate of the site when
using encrypted connections, to ensure that if the site's secure
certificate changes, the origin is considered to change as well.

<p>These characteristics are defined as follows:

title="">host</var>, <var title="">port</var>).
</ol>

<p>In addition, if the <a href="#url">URL</a> is in fact associated with
a <code>Document</code> object that was created by parsing the resource
obtained from fetching <a href="#url">URL</a>, and this was done over a
secure connection, then the server's secure certificate may be added to
the origin as additional data.</p>

<dt>For scripts

<dd>
<p>If <var title="">A</var> and <var title="">B</var> have port
components that are not identical, return false.

<li>
<p>If either <var title="">A</var> or <var title="">B</var> have
additional data, but that data is not identical for both, return false.

<li>
<p>Return true.
</ol>
David Baron, David Bloom, David Carlisle, David Flanagan, David
H&aring;s&auml;ther, David Hyatt, Dean Edridge, Debi Orton, Derek
Featherstone, DeWitt Clinton, Dimitri Glazkov, dolphinling, Doron
Rosenberg, Doug Kramer, Eira Monstad, Elliotte Harold, Erik Arvidsson,
Evan Martin, Evan Prodromou, fantasai, Felix Sasaki, Franck 'Shift'
Qu&eacute;lain, Garrett Smith, Geoffrey Garen, Geoffrey Sneddon,
Rosenberg, Doug Kramer, Eira Monstad, Elliotte Harold, Eric Law, Erik
Arvidsson, Evan Martin, Evan Prodromou, fantasai, Felix Sasaki, Franck
'Shift' Qu&eacute;lain, Garrett Smith, Geoffrey Garen, Geoffrey Sneddon,
H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied, Henry Mason, Hugh
Winkler, Ignacio Javier, Ivo Emanuel Gon&ccedil;alves, J. King, Jacques
Distler, James Graham, James Justin Harrell, James M Snell, James Perrett,
Meehan, Joe Clark, Jjgod Jiang, Joel Spolsky, Johan Herland, John Boyer,
John Bussjaeger, John Harding, Johnny Stenback, Jon Perlow, Jonathan
Worent, Jorgen Horstink, Josh Levenberg, Joshua Randall, Jukka K. Korpela,
Julian Reschke, Kai Hendry, <!-- Keryx
Web, = Lars Gunther --> Kornel
Julian Reschke, Kai Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel
Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laura L. Carlson,
Laura Wisewell, Laurens Holst, Lee Kowalkowski, Leif Halvard Silli, Lenny
45 source

<p>The <dfn>origin</dfn> of a resource and the <dfn>effective script
origin</dfn> of a resource are both either opaque identifiers or
tuples consisting of a scheme component, a host component, and a
port component.</p>
tuples consisting of a scheme component, a host component, a port
component, and optionally extra data.</p>

<p class="note">The extra data could include the certificate of the
site when using encrypted connections, to ensure that if the site's
secure certificate changes, the origin is considered to change as
well.</p>

<p>These characteristics are defined as follows:</p>


</ol>

<p>In addition, if the <span>URL</span> is in fact associated with
a <code>Document</code> object that was created by parsing the
resource obtained from fetching <span>URL</span>, and this was
done over a secure connection, then the server's secure
certificate may be added to the origin as additional data.</p>

</dd>

<dt>For scripts</dt>
<li><p>If <var title="">A</var> and <var title="">B</var> have port
components that are not identical, return false.</p></li>

<li><p>If either <var title="">A</var> or <var title="">B</var>
have additional data, but that data is not identical for both,
return false.</p></li>

<li><p>Return true.</p></li>

</ol>
David Flanagan, David H&aring;s&auml;ther, David Hyatt, Dean
Edridge, Debi Orton, Derek Featherstone, DeWitt Clinton, Dimitri
Glazkov, dolphinling, Doron Rosenberg, Doug Kramer, Eira Monstad,
Elliotte Harold, Erik Arvidsson, Evan Martin, Evan Prodromou,
fantasai, Felix Sasaki, Franck 'Shift' Qu&eacute;lain, Garrett
Smith, Geoffrey Garen, Geoffrey Sneddon, H&aring;kon Wium Lie, Henri
Sivonen, Henrik Lied, Henry Mason, Hugh Winkler, Ignacio Javier, Ivo
Emanuel Gon&ccedil;alves, J. King, Jacques Distler, James Graham,
James Justin Harrell, James M Snell, James Perrett, Jan-Klaas
Kollhof, Jason White, Jasper Bryant-Greene, Jeff Cutsinger, Jeff
Walden, Jens Bannmann, Jens Fendler, Jeroen van der Meer, Jim
Jewett, Jim Meehan, Joe Clark, Jjgod Jiang, Joel Spolsky, Johan
Herland, John Boyer, John Bussjaeger, John Harding, Johnny Stenback,
Jon Perlow, Jonathan Worent, Jorgen Horstink, Josh Levenberg, Joshua
Randall, Jukka K. Korpela, Julian Reschke, Kai Hendry, <!-- Keryx
Web, = Lars Gunther --> Kornel Lesinski,
Elliotte Harold, Eric Law, Erik Arvidsson, Evan Martin, Evan
Prodromou, fantasai, Felix Sasaki, Franck 'Shift' Qu&eacute;lain,
Garrett Smith, Geoffrey Garen, Geoffrey Sneddon, H&aring;kon Wium
Lie, Henri Sivonen, Henrik Lied, Henry Mason, Hugh Winkler, Ignacio
Javier, Ivo Emanuel Gon&ccedil;alves, J. King, Jacques Distler,
James Graham, James Justin Harrell, James M Snell, James Perrett,
Jan-Klaas Kollhof, Jason White, Jasper Bryant-Greene, Jeff
Cutsinger, Jeff Walden, Jens Bannmann, Jens Fendler, Jeroen van der
Meer, Jim Jewett, Jim Meehan, Joe Clark, Jjgod Jiang, Joel Spolsky,
Johan Herland, John Boyer, John Bussjaeger, John Harding, Johnny
Stenback, Jon Perlow, Jonathan Worent, Jorgen Horstink, Josh
Levenberg, Joshua Randall, Jukka K. Korpela, Julian Reschke, Kai
Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel Lesinski,
&#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laura
L. Carlson, Laura Wisewell, Laurens Holst, Lee Kowalkowski, Leif

0 comments on commit 66433e5

Please sign in to comment.
You can’t perform that action at this time.