Index: Source/modules/serviceworkers/WindowClient.idl |
diff --git a/Source/modules/serviceworkers/WindowClient.idl b/Source/modules/serviceworkers/WindowClient.idl |
index cc286146a4edb07400ce0e6f14e55f8c58270bc6..67e2fb20133cf71ad608e443818beb88dabd8701 100644 |
--- a/Source/modules/serviceworkers/WindowClient.idl |
+++ b/Source/modules/serviceworkers/WindowClient.idl |
@@ -10,6 +10,9 @@ enum ContextFrameType { |
"none" |
}; |
+// http://www.w3.org/TR/page-visibility/#VisibilityState |
+enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
+ |
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#window-client-interface |
[ |
Exposed=ServiceWorker, |
@@ -18,7 +21,7 @@ enum ContextFrameType { |
TypeChecking=Interface, |
ImplementedAs=ServiceWorkerWindowClient, |
] interface WindowClient : Client { |
- readonly attribute DOMString visibilityState; |
+ readonly attribute VisibilityState visibilityState; |
readonly attribute boolean focused; |
readonly attribute ContextFrameType frameType; |
[CallWith=ScriptState] Promise<boolean> focus(); |