Skip to content
Permalink
Browse files

[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 824eff249d70ccbb2b633877585d5633c596d607
Showing with 92 additions and 16 deletions.
  1. +29 −4 complete.html
  2. +29 −4 index
  3. +34 −8 source

<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
33 index

<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
42 source

<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>

0 comments on commit 824eff2

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