Skip to content
Permalink
Browse files

[giow] (1) Compatibility for pop-up blocking logic. (also wording cha…

…nge for bug 14472)

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14471

git-svn-id: http://svn.whatwg.org/webapps@6739 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 24, 2011
1 parent 0354f50 commit bcf2e50fa8746c74cf6666bd1f4cae374945adcf
Showing with 38 additions and 31 deletions.
  1. +12 −9 complete.html
  2. +12 −9 index
  3. +14 −13 source

<div class=impl>

<hr><p>An algorithm is <dfn id=allowed-to-show-a-pop-up>allowed to show a pop-up</dfn> if:
<hr><p>An algorithm is <dfn id=allowed-to-show-a-pop-up>allowed to show a pop-up</dfn> if, in the
<a href=#concept-task title=concept-task>task</a> in which the algorithm is
running, either:</p>

<ul class=brief><li>it is running in the context of an <a href=#activation-behavior>activation
behavior</a> or of the <a href=#concept-event-dispatch title=concept-event-dispatch>dispatching</a> of a <code title=event-click><a href=#event-click>click</a></code> event, and</li>
<ul class=brief><li>an <a href=#activation-behavior>activation behavior</a> is currently being
processed whose <code title=event-click><a href=#event-click>click</a></code> event was
<a href=#concept-events-trusted title=concept-events-trusted>trusted</a>, or</li>

<li>The <code title=event-click><a href=#event-click>click</a></code> events that led to
the triggering of the <a href=#activation-behavior title="activation behavior">activation
behaviors</a>, if any, and the <code title=event-click><a href=#event-click>click</a></code> events of any <a href=#concept-event-dispatch title=concept-event-dispatch>event dispatching</a> that
indirectly led to the algorithm being invoked, if any, are all
<a href=#concept-events-trusted title=concept-events-trusted>trusted</a>.</li>
<li>the event listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> <code title=event-click><a href=#event-click>click</a></code> event is being handled.</li>

</ul><hr><p><dfn id=the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>The rules for choosing a browsing context given a browsing
context name</dfn> are as follows. The rules assume that they are

<p>If any of the tokens in the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list are character tokens that are not <a href=#space-character title="space character">space characters</a>, then reprocess
those character tokens using the rules given in the "anything
the character tokens in the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list using the rules given in the "anything
else" entry in the "<a href=#parsing-main-intable title="insertion mode: in table">in
table</a>" insertion mode.</p>

<p>Otherwise, <a href=#insert-a-character title="insert a character">insert the
characters</a> given by the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list into the <a href=#current-node>current node</a>.</p>

<!-- no need to empty the list, we're leaving the insertion mode
and the list is always emptied before we reenter the mode -->

<p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#original-insertion-mode>original
insertion mode</a> and reprocess the token.</p>

21 index

<div class=impl>

<hr><p>An algorithm is <dfn id=allowed-to-show-a-pop-up>allowed to show a pop-up</dfn> if:
<hr><p>An algorithm is <dfn id=allowed-to-show-a-pop-up>allowed to show a pop-up</dfn> if, in the
<a href=#concept-task title=concept-task>task</a> in which the algorithm is
running, either:</p>

<ul class=brief><li>it is running in the context of an <a href=#activation-behavior>activation
behavior</a> or of the <a href=#concept-event-dispatch title=concept-event-dispatch>dispatching</a> of a <code title=event-click><a href=#event-click>click</a></code> event, and</li>
<ul class=brief><li>an <a href=#activation-behavior>activation behavior</a> is currently being
processed whose <code title=event-click><a href=#event-click>click</a></code> event was
<a href=#concept-events-trusted title=concept-events-trusted>trusted</a>, or</li>

<li>The <code title=event-click><a href=#event-click>click</a></code> events that led to
the triggering of the <a href=#activation-behavior title="activation behavior">activation
behaviors</a>, if any, and the <code title=event-click><a href=#event-click>click</a></code> events of any <a href=#concept-event-dispatch title=concept-event-dispatch>event dispatching</a> that
indirectly led to the algorithm being invoked, if any, are all
<a href=#concept-events-trusted title=concept-events-trusted>trusted</a>.</li>
<li>the event listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> <code title=event-click><a href=#event-click>click</a></code> event is being handled.</li>

</ul><hr><p><dfn id=the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>The rules for choosing a browsing context given a browsing
context name</dfn> are as follows. The rules assume that they are

<p>If any of the tokens in the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list are character tokens that are not <a href=#space-character title="space character">space characters</a>, then reprocess
those character tokens using the rules given in the "anything
the character tokens in the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list using the rules given in the "anything
else" entry in the "<a href=#parsing-main-intable title="insertion mode: in table">in
table</a>" insertion mode.</p>

<p>Otherwise, <a href=#insert-a-character title="insert a character">insert the
characters</a> given by the <var><a href=#pending-table-character-tokens>pending table character
tokens</a></var> list into the <a href=#current-node>current node</a>.</p>

<!-- no need to empty the list, we're leaving the insertion mode
and the list is always emptied before we reenter the mode -->

<p>Switch the <a href=#insertion-mode>insertion mode</a> to the <a href=#original-insertion-mode>original
insertion mode</a> and reprocess the token.</p>

27 source

<hr>

<p>An algorithm is <dfn>allowed to show a pop-up</dfn> if:
<p>An algorithm is <dfn>allowed to show a pop-up</dfn> if, in the
<span title="concept-task">task</span> in which the algorithm is
running, either:</p>

<ul class="brief">

<li>it is running in the context of an <span>activation
behavior</span> or of the <span
title="concept-event-dispatch">dispatching</span> of a <code
title="event-click">click</code> event, and</li>
<li>an <span>activation behavior</span> is currently being
processed whose <code title="event-click">click</code> event was
<span title="concept-events-trusted">trusted</span>, or</li>

<li>The <code title="event-click">click</code> events that led to
the triggering of the <span title="activation behavior">activation
behaviors</span>, if any, and the <code
title="event-click">click</code> events of any <span
title="concept-event-dispatch">event dispatching</span> that
indirectly led to the algorithm being invoked, if any, are all
<span title="concept-events-trusted">trusted</span>.</li>
<li>the event listener for a <span
title="concept-events-trusted">trusted</span> <code
title="event-click">click</code> event is being handled.</li>

</ul>

<p>If any of the tokens in the <var>pending table character
tokens</var> list are character tokens that are not <span
title="space character">space characters</span>, then reprocess
those character tokens using the rules given in the "anything
the character tokens in the <var>pending table character
tokens</var> list using the rules given in the "anything
else" entry in the "<span title="insertion mode: in table">in
table</span>" insertion mode.</p>

<p>Otherwise, <span title="insert a character">insert the
characters</span> given by the <var>pending table character
tokens</var> list into the <span>current node</span>.</p>

<!-- no need to empty the list, we're leaving the insertion mode
and the list is always emptied before we reenter the mode -->

<p>Switch the <span>insertion mode</span> to the <span>original
insertion mode</span> and reprocess the token.</p>

0 comments on commit bcf2e50

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