HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2916Release the storage lock whenever something modal happens, like window.alert(), or printing.2009-03-26 08:08
@@ -46730,87 +46730,104 @@ interface <dfn>Function</dfn> {
 
   <h4>Simple dialogs</h4>
 
   <dl class="domintro">
 
    <dt><var title="">window</var> . <code title="dom-alert">alert</code>(<var title="">message</var>)</dt>
    <dd>
 
     <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>
    <dd>
 
     <p>Displays a modal OK/Cancel prompt with the given message, waits
     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>
    <dd>
 
     <p>Displays a modal text field prompt with the given message,
     waits for the user to dismiss it, and returns the value that the
     user entered. If the user cancels the prompt, then returns null
     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
   user aborts, then the method must return null; otherwise, the method
   must return the string that the user responded with.</p>
 
   </div>
 
 
   <h4>Printing</h4>
 
   <dl class="domintro">
 
    <dt><var title="">window</var> . <code title="dom-print">print</code>()</dt>
 
    <dd>
 
     <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>
 
   <div class="impl">
 
   <p>The <dfn title="dom-print"><code>print()</code></dfn> method,
   when invoked, must run the <span>printing steps</span>.</p>
 
   <p>User agents should also run the <span>printing steps</span>
@@ -46848,20 +46865,26 @@ interface <dfn>Function</dfn> {
 
     <p class="example">The <code
     title="event-beforeprint">beforeprint</code> event can be used
     to annotate the printed copy, for instance adding the time at
     which the document was printed.</p>
    
    </li>
 
    <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
     user to either accept or decline before returning; if so, the user
     agent must <span>pause</span> while the method is waiting. Even if
     the user agent doesn't wait at this point, the user agent must use
     the state of the relevant documents as they are at this point in
     the algorithm if and when it eventually creates the alternate
     form.</p>
 
@@ -46894,20 +46917,24 @@ interface <dfn>Function</dfn> {
 
   <dl class="domintro">
 
    <dt><var title="">result</var> = <var title="">window</var> . <code title="dom-showModalDialog">showModalDialog</code>(<var title="">url</var> [, <var title="">argument</var>] )</dt>
 
    <dd>
 
     <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>
 
   <div class="impl">
 
   <p>The <dfn title="dom-showModalDialog"><code>showModalDialog(<var
   title="">url</var>, <var title="">argument</var><!--, <var
   title="">features</var>-->)</code></dfn> method, when invoked, must
   cause the user agent to run the following steps:</p>
@@ -46916,20 +46943,28 @@ interface <dfn>Function</dfn> {
 
    <li>
 
     <p><span title="resolve a url">Resolve</span> <var
     title="">url</var> relative to the <span>first script</span>'s
     <span title="script's base URL">base URL</span>.</p>
 
     <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
     <code title="dom-showModalDialog">showModalDialog()</code> is
     somehow disabled, then the method returns the empty string; abort
     these steps.</p>
 
     <p class="note">User agents are expected to disable this method in
     certain cases to avoid user annoyance (e.g. as part of their popup
     blocker feature). For instance, a user agent could require that a

|