Skip to content
Permalink
Browse files

[giow] (3) Maintain the stack of incumbent scripts across calls to sh…

…owModalDialog(), but empty it while that call is running, since showModalDialog() can resume out of order (you can call window.close() on a 'parent' modal window). (Untested.)

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8169 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 3, 2013
1 parent 33c6163 commit c8aad4fb1e654e2b4db649e6660921c390600633
Showing with 36 additions and 0 deletions.
  1. +12 −0 complete.html
  2. +12 −0 index
  3. +12 −0 source
<ol><li><p>Let <var title="">task source</var> be the <a href=#task-source>task source</a> of the currently
running <a href=#concept-task title=concept-task>task</a>.</li>

<li><p>Let <var title="">old stack of incumbent scripts</var> be a copy of the <a href=#stack-of-incumbent-scripts>stack of
incumbent scripts</a>.</li>

<li><p>Empty the <a href=#stack-of-incumbent-scripts>stack of incumbent scripts</a>.</li>

<li><p><a href=#run-the-global-script-clean-up-jobs>Run the global script clean-up jobs</a>.</li>

<li><p><a href=#perform-a-microtask-checkpoint>Perform a microtask checkpoint</a>.</li>

<li>

<p>Stop the currently running <a href=#concept-task title=concept-task>task</a>, allowing the <a href=#event-loop>event
source</a> <var title="">task source</var>. Wait until this task runs before continuing these
steps.</li>

<li><p>Replace the <a href=#stack-of-incumbent-scripts>stack of incumbent scripts</a> with the <var title="">old stack of
incumbent scripts</var>.</li>

<li><p>Return to the caller.</li>

</ol><hr><p>Some of the algorithms in this specification, for historical reasons, require the user agent to
12 index
<ol><li><p>Let <var title="">task source</var> be the <a href=#task-source>task source</a> of the currently
running <a href=#concept-task title=concept-task>task</a>.</li>

<li><p>Let <var title="">old stack of incumbent scripts</var> be a copy of the <a href=#stack-of-incumbent-scripts>stack of
incumbent scripts</a>.</li>

<li><p>Empty the <a href=#stack-of-incumbent-scripts>stack of incumbent scripts</a>.</li>

<li><p><a href=#run-the-global-script-clean-up-jobs>Run the global script clean-up jobs</a>.</li>

<li><p><a href=#perform-a-microtask-checkpoint>Perform a microtask checkpoint</a>.</li>

<li>

<p>Stop the currently running <a href=#concept-task title=concept-task>task</a>, allowing the <a href=#event-loop>event
source</a> <var title="">task source</var>. Wait until this task runs before continuing these
steps.</li>

<li><p>Replace the <a href=#stack-of-incumbent-scripts>stack of incumbent scripts</a> with the <var title="">old stack of
incumbent scripts</var>.</li>

<li><p>Return to the caller.</li>

</ol><hr><p>Some of the algorithms in this specification, for historical reasons, require the user agent to
12 source
<li><p>Let <var title="">task source</var> be the <span>task source</span> of the currently
running <span title="concept-task">task</span>.</p></li>

<li><p>Let <var title="">old stack of incumbent scripts</var> be a copy of the <span>stack of
incumbent scripts</span>.</p></li>

<li><p>Empty the <span>stack of incumbent scripts</span>.</p></li>

<li><p><span>Run the global script clean-up jobs</span>.</p></li>

<li><p><span>Perform a microtask checkpoint</span>.</p></li>

<li>

<p>Stop the currently running <span title="concept-task">task</span>, allowing the <span>event
source</span> <var title="">task source</var>. Wait until this task runs before continuing these
steps.</p></li>

<li><p>Replace the <span>stack of incumbent scripts</span> with the <var title="">old stack of
incumbent scripts</var>.</p></li>

<li><p>Return to the caller.</p></li>

</ol>

0 comments on commit c8aad4f

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