Browse files

[] (0) Release the storage lock whenever something modal happens, lik…

…e window.alert(), or printing.

git-svn-id: http://svn.whatwg.org/webapps@2916 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 98d7ebf commit b44eb6e791d3f22b739db261d61b4ea8fa1d0f9d @Hixie Hixie committed Mar 26, 2009
Showing with 96 additions and 32 deletions.
  1. +45 −16 index
  2. +51 −16 source
View
61 index
@@ -41145,6 +41145,9 @@ interface <dfn id=function>Function</dfn> {
<p>Displays a modal alert with the given message, and waits for the user to dismiss it.</p>
+ <p>A call to the <code title=dom-navigator-getStorageUpdates><a href=#dom-navigator-getstorageupdates>navigator.getStorageUpdates()</a></code>
+ method is implied when this method is invoked.</p>
+
</dd>
<dt><var title="">result</var> = <var title="">window</var> . <code title=dom-confirm><a href=#dom-confirm>confirm</a></code>(<var title="">message</var>)</dt>
@@ -41154,6 +41157,9 @@ interface <dfn id=function>Function</dfn> {
for the user to dismiss it, and returns true if the user clicks OK
and false if the user clicks Cancel.</p>
+ <p>A call to the <code title=dom-navigator-getStorageUpdates><a href=#dom-navigator-getstorageupdates>navigator.getStorageUpdates()</a></code>
+ method is implied when this method is invoked.</p>
+
</dd>
<dt><var title="">result</var> = <var title="">window</var> . <code title=dom-prompt><a href=#dom-prompt>prompt</a></code>(<var title="">message</var> [, <var title="">default</var>] )</dt>
@@ -41165,28 +41171,31 @@ interface <dfn id=function>Function</dfn> {
instead. If the second argument is present, then the given value
is used as a default.</p>
+ <p>A call to the <code title=dom-navigator-getStorageUpdates><a href=#dom-navigator-getstorageupdates>navigator.getStorageUpdates()</a></code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl><div class=impl>
- <p>The <dfn id=dom-alert title=dom-alert><code>alert(<var title="">message</var>)</code></dfn> method, when invoked, must show
- the given <var title="">message</var> to the user. The user agent
- may make the method wait for the user to acknowledge the message
- before returning; if so, the user agent must <a href=#pause>pause</a>
- while the method is waiting.</p>
-
- <p>The <dfn id=dom-confirm title=dom-confirm><code>confirm(<var title="">message</var>)</code></dfn> method, when invoked, must show
- the given <var title="">message</var> to the user, and ask the user
- to respond with a positive or negative response. The user agent must
- then <a href=#pause>pause</a> as the method waits for the user's
- response. If the user responds positively, the method must return
- true, and if the user responds negatively, the method must return
- false.</p>
+ <p>The <dfn id=dom-alert title=dom-alert><code>alert(<var title="">message</var>)</code></dfn> method, when invoked, must
+ release the <a href=#storage-mutex>storage mutex</a> and show the given <var title="">message</var> to the user. The user agent may make the
+ method wait for the user to acknowledge the message before
+ returning; if so, the user agent must <a href=#pause>pause</a> while the
+ method is waiting.</p>
+
+ <p>The <dfn id=dom-confirm title=dom-confirm><code>confirm(<var title="">message</var>)</code></dfn> method, when invoked, must
+ release the <a href=#storage-mutex>storage mutex</a> andshow the given <var title="">message</var> to the user, and ask the user to respond with
+ a positive or negative response. The user agent must then
+ <a href=#pause>pause</a> as the method waits for the user's response. If
+ the user responds positively, the method must return true, and if
+ the user responds negatively, the method must return false.</p>
<p>The <dfn id=dom-prompt title=dom-prompt><code>prompt(<var title="">message</var>, <var title="">default</var>)</code></dfn>
- method, when invoked, must show the given <var title="">message</var> to the user, and ask the user to either
- respond with a string value or abort. The user agent must then
- <a href=#pause>pause</a> as the method waits for the user's
+ method, when invoked, must release the <a href=#storage-mutex>storage mutex</a>,
+ show the given <var title="">message</var> to the user, and ask the
+ user to either respond with a string value or abort. The user agent
+ must then <a href=#pause>pause</a> as the method waits for the user's
response. The second argument is optional. If the second argument
(<var title="">default</var>) is present, then the response must be
defaulted to the value given by <var title="">default</var>. If the
@@ -41204,6 +41213,9 @@ interface <dfn id=function>Function</dfn> {
<p>Prompts the user to print the page.</p>
+ <p>A call to the <code title=dom-navigator-getStorageUpdates><a href=#dom-navigator-getstorageupdates>navigator.getStorageUpdates()</a></code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl><div class=impl>
@@ -41249,6 +41261,12 @@ interface <dfn id=function>Function</dfn> {
<li>
+ <p>The user agent must release the <a href=#storage-mutex>storage mutex</a>.</p>
+
+ </li>
+
+ <li>
+
<p>The user agent should offer the user the opportunity to
<a href=#obtain-a-physical-form>obtain a physical form</a> (or the representation of a
physical form) of the document. The user agent may wait for the
@@ -41290,6 +41308,9 @@ interface <dfn id=function>Function</dfn> {
<p>Prompts the user with the given page, waits for that page to
close, and returns the return value.</p>
+ <p>A call to the <code title=dom-navigator-getStorageUpdates><a href=#dom-navigator-getstorageupdates>navigator.getStorageUpdates()</a></code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl><div class=impl>
@@ -41306,6 +41327,14 @@ interface <dfn id=function>Function</dfn> {
<p>If this fails, then throw a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception
and abort these steps.</p>
+ </li>
+
+ <li>
+
+ <p>Release the <a href=#storage-mutex>storage mutex</a>.</p>
+
+ </li>
+
<li>
<p>If the user agent is configured such that this invocation of
View
67 source
@@ -46737,6 +46737,10 @@ interface <dfn>Function</dfn> {
<p>Displays a modal alert with the given message, and waits for the user to dismiss it.</p>
+ <p>A call to the <code
+ title="dom-navigator-getStorageUpdates">navigator.getStorageUpdates()</code>
+ method is implied when this method is invoked.</p>
+
</dd>
<dt><var title="">result</var> = <var title="">window</var> . <code title="dom-confirm">confirm</code>(<var title="">message</var>)</dt>
@@ -46746,6 +46750,10 @@ interface <dfn>Function</dfn> {
for the user to dismiss it, and returns true if the user clicks OK
and false if the user clicks Cancel.</p>
+ <p>A call to the <code
+ title="dom-navigator-getStorageUpdates">navigator.getStorageUpdates()</code>
+ method is implied when this method is invoked.</p>
+
</dd>
<dt><var title="">result</var> = <var title="">window</var> . <code title="dom-prompt">prompt</code>(<var title="">message</var> [, <var title="">default</var>] )</dt>
@@ -46757,34 +46765,39 @@ interface <dfn>Function</dfn> {
instead. If the second argument is present, then the given value
is used as a default.</p>
+ <p>A call to the <code
+ title="dom-navigator-getStorageUpdates">navigator.getStorageUpdates()</code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl>
<div class="impl">
<p>The <dfn title="dom-alert"><code>alert(<var
- title="">message</var>)</code></dfn> method, when invoked, must show
- the given <var title="">message</var> to the user. The user agent
- may make the method wait for the user to acknowledge the message
- before returning; if so, the user agent must <span>pause</span>
- while the method is waiting.</p>
+ title="">message</var>)</code></dfn> method, when invoked, must
+ release the <span>storage mutex</span> and show the given <var
+ title="">message</var> to the user. The user agent may make the
+ method wait for the user to acknowledge the message before
+ returning; if so, the user agent must <span>pause</span> while the
+ method is waiting.</p>
<p>The <dfn title="dom-confirm"><code>confirm(<var
- title="">message</var>)</code></dfn> method, when invoked, must show
- the given <var title="">message</var> to the user, and ask the user
- to respond with a positive or negative response. The user agent must
- then <span>pause</span> as the method waits for the user's
- response. If the user responds positively, the method must return
- true, and if the user responds negatively, the method must return
- false.</p>
+ title="">message</var>)</code></dfn> method, when invoked, must
+ release the <span>storage mutex</span> andshow the given <var
+ title="">message</var> to the user, and ask the user to respond with
+ a positive or negative response. The user agent must then
+ <span>pause</span> as the method waits for the user's response. If
+ the user responds positively, the method must return true, and if
+ the user responds negatively, the method must return false.</p>
<p>The <dfn title="dom-prompt"><code>prompt(<var
title="">message</var>, <var title="">default</var>)</code></dfn>
- method, when invoked, must show the given <var
- title="">message</var> to the user, and ask the user to either
- respond with a string value or abort. The user agent must then
- <span>pause</span> as the method waits for the user's
+ method, when invoked, must release the <span>storage mutex</span>,
+ show the given <var title="">message</var> to the user, and ask the
+ user to either respond with a string value or abort. The user agent
+ must then <span>pause</span> as the method waits for the user's
response. The second argument is optional. If the second argument
(<var title="">default</var>) is present, then the response must be
defaulted to the value given by <var title="">default</var>. If the
@@ -46804,6 +46817,10 @@ interface <dfn>Function</dfn> {
<p>Prompts the user to print the page.</p>
+ <p>A call to the <code
+ title="dom-navigator-getStorageUpdates">navigator.getStorageUpdates()</code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl>
@@ -46855,6 +46872,12 @@ interface <dfn>Function</dfn> {
<li>
+ <p>The user agent must release the <span>storage mutex</span>.</p>
+
+ </li>
+
+ <li>
+
<p>The user agent should offer the user the opportunity to
<span>obtain a physical form</span> (or the representation of a
physical form) of the document. The user agent may wait for the
@@ -46901,6 +46924,10 @@ interface <dfn>Function</dfn> {
<p>Prompts the user with the given page, waits for that page to
close, and returns the return value.</p>
+ <p>A call to the <code
+ title="dom-navigator-getStorageUpdates">navigator.getStorageUpdates()</code>
+ method is implied when this method is invoked.</p>
+
</dd>
</dl>
@@ -46923,6 +46950,14 @@ interface <dfn>Function</dfn> {
<p>If this fails, then throw a <code>SYNTAX_ERR</code> exception
and abort these steps.</p>
+ </li>
+
+ <li>
+
+ <p>Release the <span>storage mutex</span>.</p>
+
+ </li>
+
<li>
<p>If the user agent is configured such that this invocation of

0 comments on commit b44eb6e

Please sign in to comment.