Changeset 88629 in webkit


Ignore:
Timestamp:
Jun 12, 2011 11:20:45 PM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-06-12 Jer Noble <jer.noble@apple.com>

Reviewed by Darin Adler.

REGRESSION (full screen video): Watch Again button is obscured after full screen playback ends at Apple trailers page
https://bugs.webkit.org/show_bug.cgi?id=62507

No new tests; DRT would have to be modified to delay between receiving exitFullScreenForElement() and calling
webkitWillExitFullScreenForElement() to be able to test this.

If the full-screen element is removed, and webkitWillExitFullScreenForElement() is not called before
fullScreenElementRemoved() returns, then ancestors of the full-screen element will not have their
containsFullScreenElement property removed. To protect against this, reset the property by calling
setContainsFullScreenElementRecursively() from within fullScreenElementRemoved().

  • dom/Document.cpp: (WebCore::Document::fullScreenElementRemoved): Added call to setContainsFullScreenElementRecursively.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r88628 r88629  
     12011-06-12  Jer Noble  <jer.noble@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        REGRESSION (full screen video): Watch Again button is obscured after full screen playback ends at Apple trailers page
     6        https://bugs.webkit.org/show_bug.cgi?id=62507
     7
     8        No new tests; DRT would have to be modified to delay between receiving exitFullScreenForElement() and calling
     9        webkitWillExitFullScreenForElement() to be able to test this.
     10
     11        If the full-screen element is removed, and webkitWillExitFullScreenForElement() is not called before
     12        fullScreenElementRemoved() returns, then ancestors of the full-screen element will not have their
     13        containsFullScreenElement property removed.  To protect against this, reset the property by calling
     14        setContainsFullScreenElementRecursively() from within fullScreenElementRemoved().
     15
     16        * dom/Document.cpp:
     17        (WebCore::Document::fullScreenElementRemoved): Added call to setContainsFullScreenElementRecursively.
     18
    1192011-06-12  Adam Barth  <abarth@webkit.org>
    220
  • trunk/Source/WebCore/dom/Document.cpp

    r88591 r88629  
    49174917void Document::fullScreenElementRemoved()
    49184918{
     4919    setContainsFullScreenElementRecursively(m_fullScreenElement->parentElement() ? m_fullScreenElement->parentElement() : ownerElement(), false);
    49194920    webkitCancelFullScreen();
    49204921}
Note: See TracChangeset for help on using the changeset viewer.