Changeset 215042 in webkit


Ignore:
Timestamp:
Apr 6, 2017, 10:20:28 AM (8 years ago)
Author:
eric.carlson@apple.com
Message:

[MediaStream] Host application should be able to mute and unmute media streams
https://bugs.webkit.org/show_bug.cgi?id=170519
<rdar://problem/31174326>

Unreviewed, fix crash introduced in r214980.

  • Modules/mediastream/MediaStream.cpp:

(WebCore::MediaStream::MediaStream): NULL-check page.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r215041 r215042  
     12017-04-06  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [MediaStream] Host application should be able to mute and unmute media streams
     4        https://bugs.webkit.org/show_bug.cgi?id=170519
     5        <rdar://problem/31174326>
     6
     7        Unreviewed, fix crash introduced in r214980.
     8
     9        * Modules/mediastream/MediaStream.cpp:
     10        (WebCore::MediaStream::MediaStream): NULL-check page.
     11
    1122017-04-06  Dave Hyatt  <hyatt@apple.com>
    213
  • trunk/Source/WebCore/Modules/mediastream/MediaStream.cpp

    r214980 r215042  
    9393
    9494    setIsActive(m_private->active());
    95     if (document()->page()->isMediaCaptureMuted())
     95    if (document()->page() && document()->page()->isMediaCaptureMuted())
    9696        m_private->setCaptureTracksMuted(true);
    9797    m_private->addObserver(*this);
Note: See TracChangeset for help on using the changeset viewer.