- From: poot <cvsmail@w3.org>
- Date: Fri, 28 Oct 2011 16:09:26 -0400
- To: public-html-diffs@w3.org
hixie: Origins should be based on the effective origin. (whatwg r6776) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5424&r2=1.5425&f=h http://html5.org/tools/web-apps-tracker?from=6775&to=6776 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5424 retrieving revision 1.5425 diff -u -d -r1.5424 -r1.5425 --- Overview.html 28 Oct 2011 00:11:36 -0000 1.5424 +++ Overview.html 28 Oct 2011 20:08:25 -0000 1.5425 @@ -28249,9 +28249,9 @@ <ul><li><p>The element's 2D context's <code title="dom-context-2d-drawImage">drawImage()</code> method is called with an <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an <code><a href="#htmlvideoelement">HTMLVideoElement</a></code> whose <a href="#origin">origin</a> is not the - <a href="#same-origin" title="same origin">same</a> as that of the - <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code> - element.</li> + <a href="#same-origin" title="same origin">same</a> as the <span>effective + origin</span> of the <code><a href="#document">Document</a></code> object that owns the + <code><a href="#the-canvas-element">canvas</a></code> element.</li> <li><p>The element's 2D context's <code title="dom-context-2d-drawImage">drawImage()</code> method is called with an <code><a href="#htmlcanvaselement">HTMLCanvasElement</a></code> whose @@ -28261,9 +28261,9 @@ to a <code>CanvasPattern</code> object that was created from an <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an <code><a href="#htmlvideoelement">HTMLVideoElement</a></code> whose <a href="#origin">origin</a> was not the <a href="#same-origin" title="same - origin">same</a> as that of the <code><a href="#document">Document</a></code> object - that owns the <code><a href="#the-canvas-element">canvas</a></code> element when the pattern was - created.</li> + origin">same</a> as the <span>effective origin</span> of the + <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code> + element when the pattern was created.</li> <li><p>The element's 2D context's <code title="dom-context-2d-fillStyle">fillStyle</code> attribute is set to a <code>CanvasPattern</code> object that was created from an @@ -28274,9 +28274,9 @@ set to a <code>CanvasPattern</code> object that was created from an <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an <code><a href="#htmlvideoelement">HTMLVideoElement</a></code> whose <a href="#origin">origin</a> was not the <a href="#same-origin" title="same - origin">same</a> as that of the <code><a href="#document">Document</a></code> object - that owns the <code><a href="#the-canvas-element">canvas</a></code> element when the pattern was - created.</li> + origin">same</a> as the <span>effective origin</span> of the + <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code> + element when the pattern was created.</li> <li><p>The element's 2D context's <code title="dom-context-2d-strokeStyle">strokeStyle</code> attribute is set to a <code>CanvasPattern</code> object that was created from an @@ -28285,11 +28285,11 @@ <li><p>The element's 2D context's <code title="dom-context-2d-fillText">fillText()</code> or <code title="dom-context-2d-fillText">strokeText()</code> methods are invoked and consider using a font that has an <a href="#origin">origin</a> - that is not the <a href="#same-origin" title="same origin">same</a> as that of - the <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code> - element. (The font doesn't even have to be used; all that matters - is whether the font was considered for any of the glyphs - drawn.)</li> + that is not the <a href="#same-origin" title="same origin">same</a> as the + <span>effective origin</span> of the <code><a href="#document">Document</a></code> object + that owns the <code><a href="#the-canvas-element">canvas</a></code> element. (The font doesn't even + have to be used; all that matters is whether the font was + considered for any of the glyphs drawn.)</li> </ul><p>Whenever the <code title="dom-canvas-toDataURL"><a href="#dom-canvas-todataurl">toDataURL()</a></code> method of a <code><a href="#the-canvas-element">canvas</a></code> element whose <i>origin-clean</i> flag is set to false is called, the method must throw a <code><a href="#securityerror">SecurityError</a></code> @@ -28304,9 +28304,10 @@ <p>Whenever the <code title="dom-context-2d-measureText">measureText()</code> method of the 2D context of a <code><a href="#the-canvas-element">canvas</a></code> element ends up using a font that has an <a href="#origin">origin</a> that is not the <a href="#same-origin" title="same - origin">same</a> as that of the <code><a href="#document">Document</a></code> object that - owns the <code><a href="#the-canvas-element">canvas</a></code> element, the method must throw a - <code><a href="#securityerror">SecurityError</a></code> exception.</p> + origin">same</a> as the <span>effective origin</span> of the + <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code> + element, the method must throw a <code><a href="#securityerror">SecurityError</a></code> + exception.</p> <p class="note">Even resetting the canvas state by changing its <code title="attr-canvas-width"><a href="#attr-canvas-width">width</a></code> or <code title="attr-canvas-height"><a href="#attr-canvas-height">height</a></code> attributes doesn't reset
Received on Friday, 28 October 2011 20:09:33 UTC