Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Try to match reality a bit better for popup blockers.
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8058 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 15, 2013
1 parent 9e6c153 commit 824eff2
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 16 deletions.
33 changes: 29 additions & 4 deletions complete.html
Expand Up @@ -65411,12 +65411,37 @@ <h4 id=browsing-context-names><span class=secno>6.1.6 </span>Browsing context na

<div class=impl>

<hr><p>An algorithm is <dfn id=allowed-to-show-a-popup>allowed to show a popup</dfn> if, in the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, either:</p>
<hr><p>An algorithm is <dfn id=allowed-to-show-a-popup>allowed to show a popup</dfn> if any of the following conditions is
true:</p>

<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>
<ul><li><p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running is currently
processing an <a href=#activation-behavior>activation behavior</a> 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>.</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>
<li>

<p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running is currently
running the event listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event whose
type is in the following list:</p>

<ul class=brief><li><code title=event-change>change</code></li>
<li><code title=event-click><a href=#event-click>click</a></code></li>
<li><code title=event-dblclick>dblclick</code></li>
<li><code title=event-mouseup>mouseup</code></li>
<li><code title=event-reset>reset</code></li>
<li><code title=event-submit>submit</code></li>
</ul></li>

<li>

<p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running was <a href=#queue-a-task title="queue a task">queued</a> by an algorithm that was <a href=#allowed-to-show-a-popup>allowed to show a popup</a>,
and the chain of such algorithms started within a user-agent defined timeframe.</p>

<p class=example>For example, if a user clicked a button, it might be acceptable for a popup
to result from that after 4 seconds, but it would likely not be acceptable for a popup to result
from that after 4 hours.</p>

</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 being applied in the context of a <a href=#browsing-context>browsing
Expand Down
33 changes: 29 additions & 4 deletions index
Expand Up @@ -65411,12 +65411,37 @@ END:VCARD</pre>

<div class=impl>

<hr><p>An algorithm is <dfn id=allowed-to-show-a-popup>allowed to show a popup</dfn> if, in the <a href=#concept-task title=concept-task>task</a> in which the algorithm is running, either:</p>
<hr><p>An algorithm is <dfn id=allowed-to-show-a-popup>allowed to show a popup</dfn> if any of the following conditions is
true:</p>

<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>
<ul><li><p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running is currently
processing an <a href=#activation-behavior>activation behavior</a> 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>.</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>
<li>

<p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running is currently
running the event listener for a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event whose
type is in the following list:</p>

<ul class=brief><li><code title=event-change>change</code></li>
<li><code title=event-click><a href=#event-click>click</a></code></li>
<li><code title=event-dblclick>dblclick</code></li>
<li><code title=event-mouseup>mouseup</code></li>
<li><code title=event-reset>reset</code></li>
<li><code title=event-submit>submit</code></li>
</ul></li>

<li>

<p>The <a href=#concept-task title=concept-task>task</a> in which the algorithm is running was <a href=#queue-a-task title="queue a task">queued</a> by an algorithm that was <a href=#allowed-to-show-a-popup>allowed to show a popup</a>,
and the chain of such algorithms started within a user-agent defined timeframe.</p>

<p class=example>For example, if a user clicked a button, it might be acceptable for a popup
to result from that after 4 seconds, but it would likely not be acceptable for a popup to result
from that after 4 hours.</p>

</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 being applied in the context of a <a href=#browsing-context>browsing
Expand Down
42 changes: 34 additions & 8 deletions source
Expand Up @@ -72948,17 +72948,43 @@ END:VCARD</pre>

<hr>

<p>An algorithm is <dfn>allowed to show a popup</dfn> if, in the <span
title="concept-task">task</span> in which the algorithm is running, either:</p>
<p>An algorithm is <dfn>allowed to show a popup</dfn> if any of the following conditions is
true:</p>

<ul class="brief">
<ul>

<li><p>The <span title="concept-task">task</span> in which the algorithm is running is currently
processing an <span>activation behavior</span> whose <code title="event-click">click</code> event
was <span title="concept-events-trusted">trusted</span>.</li>

<li>

<p>The <span title="concept-task">task</span> in which the algorithm is running is currently
running the event listener for a <span title="concept-events-trusted">trusted</span> event whose
type is in the following list:</p>

<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>
<ul class="brief">
<li><code title="event-change">change</code></li>
<li><code title="event-click">click</code></li>
<li><code title="event-dblclick">dblclick</code></li>
<li><code title="event-mouseup">mouseup</code></li>
<li><code title="event-reset">reset</code></li>
<li><code title="event-submit">submit</code></li>
</ul>

<li>the event listener for a <span title="concept-events-trusted">trusted</span> <code
title="event-click">click</code> event is being handled.</li>
</li>

<li>

<p>The <span title="concept-task">task</span> in which the algorithm is running was <span
title="queue a task">queued</span> by an algorithm that was <span>allowed to show a popup</span>,
and the chain of such algorithms started within a user-agent defined timeframe.</p>

<p class="example">For example, if a user clicked a button, it might be acceptable for a popup
to result from that after 4 seconds, but it would likely not be acceptable for a popup to result
from that after 4 hours.</p>

</li>

</ul>

Expand Down

0 comments on commit 824eff2

Please sign in to comment.