Skip to content

Commit

Permalink
Wake Lock API: Add checks for feature policy.
Browse files Browse the repository at this point in the history
Added checks for feature policy attribute. This fixes all feature policy
related tests.

BUG=862460,257511

Change-Id: I6258c41dcca164f7c6584ba4a387860237ca3ba3
Reviewed-on: https://chromium-review.googlesource.com/c/1343193
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Mounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Mrunal Kapade <mrunal.kapade@intel.com>
Cr-Commit-Position: refs/heads/master@{#615985}
  • Loading branch information
Mrunal Kapade authored and chromium-wpt-export-bot committed Dec 12, 2018
1 parent ab0f311 commit d3ad404
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
const cross_origin_src =
"https://{{domains[www]}}:{{ports[https][0]}}" + same_origin_src;

promise_test(() => {
navigator.getWakeLock("screen");
promise_test(t => {
return navigator.getWakeLock("screen");
}, 'Feature-Policy header wake-lock "self" allows the top-level document.');

async_test(t => {
Expand Down

0 comments on commit d3ad404

Please sign in to comment.