Bug 131344

Summary: Keep 'webkitClosedCaptionsVisible' API in sync with captions display preferences
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: MediaAssignee: Brent Fulgham <bfulgham>
Severity: Normal CC: bfulgham, calvaris, commit-queue, eric.carlson, esprehn+autocc, glenn, gyuyoung.kim, jer.noble, philipj, sergio
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 131258    
Bug Blocks:    
Description Flags
Patch eric.carlson: review+

Description Brent Fulgham 2014-04-07 20:52:00 PDT
The caption user preferences can be configured so that captions are always displayed. When this happens, we need to make sure that the JS API for 'webkitClosedCaptionsVisible' correctly reflects the state of this setting. If captions are being displayed on the page, 'webkitClosedCaptionsVisible' must indicate true. Likewise, if captions are hidden it should return false.

Bug 131258 dealt with the state of 'webkitClosedCaptionsVisible' when changes were made to the user preferences. However, an edge condition at initial load of a webpage was not properly handled. This bug corrects that additional case.
Comment 1 Brent Fulgham 2014-04-07 20:52:21 PDT
Comment 2 Brent Fulgham 2014-04-07 20:56:04 PDT
Created attachment 228799 [details]
Comment 3 Brent Fulgham 2014-04-08 09:02:05 PDT
Committed r166927: <http://trac.webkit.org/changeset/166927>