https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 40aed2be8bf6949b11d95c9295a2cf0f878fcc50 authored by Arthur Sonzogni on 17 December 2018, 08:59:26 UTC
history.back() called twice must not navigate back twice.
Tip revision: 40aed2b
wake-lock.idl
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Wake Lock API (https://w3c.github.io/wake-lock/)

enum WakeLockType { "screen", "system" };

partial interface Navigator {
  [SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type);
};

[SecureContext, Exposed=Window] interface WakeLock : EventTarget {
  readonly attribute WakeLockType type;
  readonly attribute boolean active;
  attribute EventHandler onactivechange;
  WakeLockRequest createRequest();
};

[SecureContext, Exposed=Window] interface WakeLockRequest {
  void cancel();
};
back to top