Skip to content
Permalink
Browse files

Merge pull request #65 from andrey-logvinov/gh-pages

Add same-origin requirement (issue #64)
  • Loading branch information...
andrey-logvinov committed Jun 17, 2016
2 parents c6b6a56 + 358ebcd commit 7a019503df2a917ca28f3655bcfd953f243703ca
Showing with 19 additions and 6 deletions.
  1. +19 −6 index.html
@@ -212,7 +212,16 @@ <h2>Managing Wake Locks</h2>
<li>
The <a>browsing context</a>'s wake lock <a>request flag</a> is set.
</li>
<li>
The <a>browsing context</a> is either a <a>top-level browsing context
</a> or its <a>active document</a> has the same <a>origin</a> as the
active document of its top-level browsing context.
</li>
</ol>
<div class="note">
The same-origin requirement prevents unauthorized nested third-party
content from requesting a wake lock on behalf of the top-level page.
</div>
<p>
The <a>wake lock</a> is <dfn>applicable</dfn> if the state of the
operating system permits application of the lock (e.g. there is
@@ -287,12 +296,6 @@ <h2>
wake lock application if they determine that the remaining battery
capacity is low.
</p>
<p>
Another concern is that a wake lock can be requested in a nested third
party context, which means that the top-level context may not be
completely in control whether a wake lock can potentially be requested
by this particular page if it incorporates third party content.
</p>
</section>
<section>
<h2>
@@ -307,11 +310,21 @@ <h2>
"https://html.spec.whatwg.org/multipage/browsers.html#browsing-context">
<dfn>browsing context</dfn></a>
</li>
<li>
<a href=
"https://html.spec.whatwg.org/multipage/browsers.html#top-level-browsing-context">
<dfn>top-level browsing context</dfn></a>
</li>
<li>
<a href=
"https://html.spec.whatwg.org/multipage/browsers.html#active-document">
<dfn>active document</dfn></a>
</li>
<li>
<a href=
"https://html.spec.whatwg.org/multipage/browsers.html#concept-origin">
<dfn>origin</dfn></a>
</li>
</ul>
<p>
The following concepts and interfaces are defined in

0 comments on commit 7a01950

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