Changeset 209099 in webkit


Ignore:
Timestamp:
Nov 29, 2016 3:38:40 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Modern Media Controls] Inline controls show when entering fullscreen
https://bugs.webkit.org/show_bug.cgi?id=165161

Patch by Antoine Quint <Antoine Quint> on 2016-11-29
Reviewed by Dean Jackson.

We would error when entering fullscreen due to the TracksSupport having its destroy() method
called when tearing down the inline controls and the mediaController reference being incorrect.

  • Modules/modern-media-controls/media/tracks-support.js:

(TracksSupport.prototype.destroy):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209098 r209099  
     12016-11-29  Antoine Quint  <graouts@apple.com>
     2
     3        [Modern Media Controls] Inline controls show when entering fullscreen
     4        https://bugs.webkit.org/show_bug.cgi?id=165161
     5
     6        Reviewed by Dean Jackson.
     7
     8        We would error when entering fullscreen due to the TracksSupport having its destroy() method
     9        called when tearing down the inline controls and the `mediaController` reference being incorrect.
     10
     11        * Modules/modern-media-controls/media/tracks-support.js:
     12        (TracksSupport.prototype.destroy):
     13
    1142016-11-29  Antoine Quint  <graouts@apple.com>
    215
  • trunk/Source/WebCore/Modules/modern-media-controls/media/tracks-support.js

    r208585 r209099  
    4747        super.destroy();
    4848
    49         const media = mediaController.media;
     49        const media = this.mediaController.media;
    5050        for (let tracks of [media.audioTracks, media.textTracks]) {
    5151            for (let eventType of ["addtrack", "removetrack"])
Note: See TracChangeset for help on using the changeset viewer.