Changeset 260669 in webkit


Ignore:
Timestamp:
Apr 24, 2020 2:11:01 PM (4 years ago)
Author:
Chris Dumez
Message:

ASSERTION FAILED: m_wrapper under HTMLMediaElement::setIsPlayingToWirelessTarget
https://bugs.webkit.org/show_bug.cgi?id=210983
<rdar://problem/61611994>

Reviewed by Eric Carlson.

The issue was that we were trying to fire a JS event as a result of ActiveDOMObject::stop()
getting called, which is not allowed. To address the issue, we avoid firing the event if
the context is already stopped.

No new tests, already covered by:
media/modern-media-controls/placard-support/placard-support-airplay-fullscreen.html

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::setIsPlayingToWirelessTarget):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r260663 r260669  
     12020-04-24  Chris Dumez  <cdumez@apple.com>
     2
     3        ASSERTION FAILED: m_wrapper under HTMLMediaElement::setIsPlayingToWirelessTarget
     4        https://bugs.webkit.org/show_bug.cgi?id=210983
     5        <rdar://problem/61611994>
     6
     7        Reviewed by Eric Carlson.
     8
     9        The issue was that we were trying to fire a JS event as a result of ActiveDOMObject::stop()
     10        getting called, which is not allowed. To address the issue, we avoid firing the event if
     11        the context is already stopped.
     12
     13        No new tests, already covered by:
     14        media/modern-media-controls/placard-support/placard-support-airplay-fullscreen.html
     15
     16        * html/HTMLMediaElement.cpp:
     17        (WebCore::HTMLMediaElement::setIsPlayingToWirelessTarget):
     18
    1192020-04-24  Tim Horton  <timothy_horton@apple.com>
    220
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r260350 r260669  
    57995799        scheduleCheckPlaybackTargetCompatability();
    58005800
    5801         dispatchEvent(Event::create(eventNames().webkitcurrentplaybacktargetiswirelesschangedEvent, Event::CanBubble::No, Event::IsCancelable::Yes));
     5801        if (!isContextStopped())
     5802            dispatchEvent(Event::create(eventNames().webkitcurrentplaybacktargetiswirelesschangedEvent, Event::CanBubble::No, Event::IsCancelable::Yes));
    58025803    });
    58035804}
Note: See TracChangeset for help on using the changeset viewer.