Bug 116645

Summary: Need to update Page Visibility states
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eoconnor, jberlin, simon.fraser, syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 116769    
Bug Blocks: 102340    

Description Simon Fraser (smfr) 2013-05-22 17:06:27 PDT
WebKit currently has:
enum PageVisibilityState {
    PageVisibilityStateVisible,
    PageVisibilityStateHidden,
    PageVisibilityStatePrerender,
    PageVisibilityStatePreview
};

but the current spec lists:

On getting, visibilityState attribute MUST return one of the following DOMStrings or a vendor prefixed DOMString as defined in 4.5 Vendor Prefixes:

hidden,
visible,
prerender,
unloaded.
Comment 1 Simon Fraser (smfr) 2013-05-22 17:21:18 PDT
"preview" was in
http://www.w3.org/TR/2011/WD-page-visibility-20110721/
but was replaced by "unloaded"  in http://www.w3.org/TR/2012/CR-page-visibility-20120726/