Skip to content

Commit

Permalink
[] (0) Allow the origin to include extra data, such as the host's cer…
Browse files Browse the repository at this point in the history
…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 66433e5
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 21 deletions.
25 changes: 19 additions & 6 deletions index
Expand Up @@ -30513,7 +30513,11 @@ never reset. This is nice and consistent.)
<p>The <dfn id=origin0>origin</dfn> of a resource and the <dfn <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 id=effective3>effective script origin</dfn> of a resource are both either
opaque identifiers or tuples consisting of a scheme component, a host 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: <p>These characteristics are defined as follows:


Expand Down Expand Up @@ -30583,6 +30587,12 @@ never reset. This is nice and consistent.)
title="">host</var>, <var title="">port</var>). title="">host</var>, <var title="">port</var>).
</ol> </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 <dt>For scripts


<dd> <dd>
Expand Down Expand Up @@ -30802,6 +30812,10 @@ never reset. This is nice and consistent.)
<p>If <var title="">A</var> and <var title="">B</var> have port <p>If <var title="">A</var> and <var title="">B</var> have port
components that are not identical, return false. 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> <li>
<p>Return true. <p>Return true.
</ol> </ol>
Expand Down Expand Up @@ -52778,9 +52792,9 @@ interface <dfn id=timeouthandler>TimeoutHandler</dfn> {
David Baron, David Bloom, David Carlisle, David Flanagan, David David Baron, David Bloom, David Carlisle, David Flanagan, David
H&aring;s&auml;ther, David Hyatt, Dean Edridge, Debi Orton, Derek H&aring;s&auml;ther, David Hyatt, Dean Edridge, Debi Orton, Derek
Featherstone, DeWitt Clinton, Dimitri Glazkov, dolphinling, Doron Featherstone, DeWitt Clinton, Dimitri Glazkov, dolphinling, Doron
Rosenberg, Doug Kramer, Eira Monstad, Elliotte Harold, Erik Arvidsson, Rosenberg, Doug Kramer, Eira Monstad, Elliotte Harold, Eric Law, Erik
Evan Martin, Evan Prodromou, fantasai, Felix Sasaki, Franck 'Shift' Arvidsson, Evan Martin, Evan Prodromou, fantasai, Felix Sasaki, Franck
Qu&eacute;lain, Garrett Smith, Geoffrey Garen, Geoffrey Sneddon, 'Shift' Qu&eacute;lain, Garrett Smith, Geoffrey Garen, Geoffrey Sneddon,
H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied, Henry Mason, Hugh H&aring;kon Wium Lie, Henri Sivonen, Henrik Lied, Henry Mason, Hugh
Winkler, Ignacio Javier, Ivo Emanuel Gon&ccedil;alves, J. King, Jacques Winkler, Ignacio Javier, Ivo Emanuel Gon&ccedil;alves, J. King, Jacques
Distler, James Graham, James Justin Harrell, James M Snell, James Perrett, Distler, James Graham, James Justin Harrell, James M Snell, James Perrett,
Expand All @@ -52789,8 +52803,7 @@ interface <dfn id=timeouthandler>TimeoutHandler</dfn> {
Meehan, Joe Clark, Jjgod Jiang, Joel Spolsky, Johan Herland, John Boyer, Meehan, Joe Clark, Jjgod Jiang, Joel Spolsky, Johan Herland, John Boyer,
John Bussjaeger, John Harding, Johnny Stenback, Jon Perlow, Jonathan John Bussjaeger, John Harding, Johnny Stenback, Jon Perlow, Jonathan
Worent, Jorgen Horstink, Josh Levenberg, Joshua Randall, Jukka K. Korpela, Worent, Jorgen Horstink, Josh Levenberg, Joshua Randall, Jukka K. Korpela,
Julian Reschke, Kai Hendry, <!-- Keryx Julian Reschke, Kai Hendry, <!-- Keryx Web, = Lars Gunther --> Kornel
Web, = Lars Gunther --> Kornel
Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof Lesinski, &#x9ed2;&#x6fa4;&#x525b;&#x5fd7; (KUROSAWA Takeshi), Kristof
Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laura L. Carlson, Zelechovski, Lachlan Hunt, Larry Page, Lars Gunther, Laura L. Carlson,
Laura Wisewell, Laurens Holst, Lee Kowalkowski, Leif Halvard Silli, Lenny Laura Wisewell, Laurens Holst, Lee Kowalkowski, Leif Halvard Silli, Lenny
Expand Down
45 changes: 30 additions & 15 deletions source
Expand Up @@ -28005,8 +28005,13 @@ never reset. This is nice and consistent.)


<p>The <dfn>origin</dfn> of a resource and the <dfn>effective script <p>The <dfn>origin</dfn> of a resource and the <dfn>effective script
origin</dfn> of a resource are both either opaque identifiers or origin</dfn> of a resource are both either opaque identifiers or
tuples consisting of a scheme component, a host component, and a tuples consisting of a scheme component, a host component, a port
port component.</p> 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> <p>These characteristics are defined as follows:</p>


Expand Down Expand Up @@ -28079,6 +28084,12 @@ never reset. This is nice and consistent.)


</ol> </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> </dd>


<dt>For scripts</dt> <dt>For scripts</dt>
Expand Down Expand Up @@ -28322,6 +28333,10 @@ never reset. This is nice and consistent.)
<li><p>If <var title="">A</var> and <var title="">B</var> have port <li><p>If <var title="">A</var> and <var title="">B</var> have port
components that are not identical, return false.</p></li> 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> <li><p>Return true.</p></li>


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

0 comments on commit 66433e5

Please sign in to comment.