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.
Created attachment 228799 [details]
Committed r166927: <http://trac.webkit.org/changeset/166927>