Skip to content

Commit

Permalink
Rejecting client.focus() if popups not allowed. Part of #602
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Jan 26, 2015
1 parent c5706b9 commit 455df7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/service_worker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ <h1><code>focus()</code></h1>
<li>Let <var>promise</var> be a new <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects">promise</a>.</li>
<li>Run these steps in parallel:
<ol>
<li>If this algorithm is not <a href="https://html.spec.whatwg.org/multipage/browsers.html#allowed-to-show-a-popup">allowed to show a popup</a>, return a <a href="https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects">promise</a> rejected with a "<code><a href="http://heycam.github.io/webidl/#invalidaccesserror">InvalidAccessError</a></code>" exception.</li>
<li>Let <var>browsingContext</var> be the <a href="https://dom.spec.whatwg.org/#context-object">context object</a>'s associated <a href="#dfn-service-worker-client-client">service worker client</a>'s <a href="https://html.spec.whatwg.org/multipage/webappapis.html#global-object">global object</a>'s <a href="https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">browsing context</a>.</li>
<li><a href="https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task">Queue a task</a> to run the following substeps on the <a href="https://dom.spec.whatwg.org/#context-object">context object</a>'s associated <a href="#dfn-service-worker-client-client">service worker client</a>'s <a href="https://html.spec.whatwg.org/multipage/webappapis.html#responsible-event-loop">responsible event loop</a> using the <a href="https://html.spec.whatwg.org/#user-interaction-task-source">user interaction task source</a>:
<ol>
Expand Down

0 comments on commit 455df7c

Please sign in to comment.