Skip to content

Commit

Permalink
[giow] (2) Define that <embed> and <applet> elements in <object> fall…
Browse files Browse the repository at this point in the history
…back do not instantiate plugins. (bug 6434)

git-svn-id: http://svn.whatwg.org/webapps@2929 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 31, 2009
1 parent c2cd799 commit 3235852
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 24 deletions.
31 changes: 19 additions & 12 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.applies th > * { display: block; white-space: nowrap; }
#updatesStatus { display: none; }
#updatesStatus.relevant { display: block; position: fixed; right: 1em; top: 1em; padding: 0.5em; font: bold small sans-serif; min-width: 25em; width: 30%; max-width: 40em; height: auto; border: ridge 4px gray; background: #EEEEEE; color: black; }
#configUI { position: absolute; top: 10em; right: 1em; width: 11em; font-size: small; text-align: center; }
#configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; text-align: center; }
#configUI p { padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
#configUI input[type=button] { display: block; margin: auto; }
@media print { #configUI { display: none; } }
Expand Down Expand Up @@ -18220,8 +18220,10 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<p>When the element is created with neither a <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute nor a <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute, and when attributes
are removed such that neither attribute is present on the element
anymore, any plugins instantiated for the element must be removed,
and the <code><a href=#the-embed-element>embed</a></code> element represents nothing.</p>
anymore, and when the element has an ancestor <code><a href=#the-object-element>object</a></code>
element that is <em>not</em> showing its <a href=#fallback-content>fallback
content</a>, any plugins instantiated for the element must be
removed, and the <code><a href=#the-embed-element>embed</a></code> element represents nothing.</p>

<p id=sandboxPluginEmbed>When the <a href=#sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing
context flag</a> is set on the <a href=#browsing-context>browsing context</a> for
Expand All @@ -18245,10 +18247,13 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
<p>When the element is created with a <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute, and whenever the <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute is subsequently set, and
whenever the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute is
set or removed while the element has a <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute, if the element is not
in a sandboxed browsing context, user agents must <a href=#resolve-a-url title="resolve a url">resolve</a> the value of the attribute,
relative to the element, and if that is successful, should
<a href=#fetch>fetch</a> the resulting <a href=#absolute-url>absolute URL</a>, find and
instantiate an appropriate <a href=#plugin>plugin</a> based on the <a href=#concept-embed-type title=concept-embed-type>content's type</a>, and hand that
in a sandboxed browsing context and not a descendant of an
<code><a href=#the-object-element>object</a></code> element that is not showing its <a href=#fallback-content>fallback
content</a>, the user agent must <a href=#resolve-a-url title="resolve a
url">resolve</a> the value of the attribute, relative to the
element, and if that is successful, should <a href=#fetch>fetch</a> the
resulting <a href=#absolute-url>absolute URL</a>, find and instantiate an
appropriate <a href=#plugin>plugin</a> based on the <a href=#concept-embed-type title=concept-embed-type>content's type</a>, and hand that
<a href=#plugin>plugin</a> the content of the resource, replacing any
previously instantiated plugin for the element. <!-- Note that this
doesn't happen when the base URL changes. --></p>
Expand Down Expand Up @@ -62235,11 +62240,13 @@ S SPACER STRIKE TT U -->
is obsoleted so that all extension frameworks (Java, .NET, Flash,
etc) are handled in a consistent manner.</p>

<p id=sandboxPluginApplet>If the <a href=#sandboxed-plugins-browsing-context-flag>sandboxed plugins browsing
context flag</a> is set on the <a href=#browsing-context>browsing context</a> for
which the <code><a href=#the-applet-element>applet</a></code> element's document is the <a href=#active-document>active
document</a>, then the element must be ignored (it represents
nothing).</p>
<p id=sandboxPluginApplet>When the <a href=#sandboxed-plugins-browsing-context-flag>sandboxed plugins
browsing context flag</a> is set on the <a href=#browsing-context>browsing
context</a> for which the <code><a href=#the-applet-element>applet</a></code> element's document
is the <a href=#active-document>active document</a>, and when the element has an
ancestor <code><a href=#the-object-element>object</a></code> element that is <em>not</em> showing
its <a href=#fallback-content>fallback content</a>, the element must be ignored (it
represents nothing).</p>

<p>Otherwise, <span class=XXX>define how the element works,
if supported</span>.</p>
Expand Down
30 changes: 18 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -19578,8 +19578,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
title="attr-embed-src">src</code> attribute nor a <code
title="attr-embed-type">type</code> attribute, and when attributes
are removed such that neither attribute is present on the element
anymore, any plugins instantiated for the element must be removed,
and the <code>embed</code> element represents nothing.</p>
anymore, and when the element has an ancestor <code>object</code>
element that is <em>not</em> showing its <span>fallback
content</span>, any plugins instantiated for the element must be
removed, and the <code>embed</code> element represents nothing.</p>

<p id="sandboxPluginEmbed">When the <span>sandboxed plugins browsing
context flag</span> is set on the <span>browsing context</span> for
Expand All @@ -19606,11 +19608,13 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
whenever the <code title="attr-embed-type">type</code> attribute is
set or removed while the element has a <code
title="attr-embed-src">src</code> attribute, if the element is not
in a sandboxed browsing context, user agents must <span
title="resolve a url">resolve</span> the value of the attribute,
relative to the element, and if that is successful, should
<span>fetch</span> the resulting <span>absolute URL</span>, find and
instantiate an appropriate <span>plugin</span> based on the <span
in a sandboxed browsing context and not a descendant of an
<code>object</code> element that is not showing its <span>fallback
content</span>, the user agent must <span title="resolve a
url">resolve</span> the value of the attribute, relative to the
element, and if that is successful, should <span>fetch</span> the
resulting <span>absolute URL</span>, find and instantiate an
appropriate <span>plugin</span> based on the <span
title="concept-embed-type">content's type</span>, and hand that
<span>plugin</span> the content of the resource, replacing any
previously instantiated plugin for the element. <!-- Note that this
Expand Down Expand Up @@ -72996,11 +73000,13 @@ S SPACER STRIKE TT U -->
is obsoleted so that all extension frameworks (Java, .NET, Flash,
etc) are handled in a consistent manner.</p>

<p id="sandboxPluginApplet">If the <span>sandboxed plugins browsing
context flag</span> is set on the <span>browsing context</span> for
which the <code>applet</code> element's document is the <span>active
document</span>, then the element must be ignored (it represents
nothing).</p>
<p id="sandboxPluginApplet">When the <span>sandboxed plugins
browsing context flag</span> is set on the <span>browsing
context</span> for which the <code>applet</code> element's document
is the <span>active document</span>, and when the element has an
ancestor <code>object</code> element that is <em>not</em> showing
its <span>fallback content</span>, the element must be ignored (it
represents nothing).</p>

<p>Otherwise, <span class="XXX">define how the element works,
if supported</span>.</p>
Expand Down

0 comments on commit 3235852

Please sign in to comment.