Changeset 230644 in webkit


Ignore:
Timestamp:
Apr 13, 2018 3:42:24 PM (6 years ago)
Author:
rniwa@webkit.org
Message:

WebKit crashes when libwebrtc.dylib is missing
https://bugs.webkit.org/show_bug.cgi?id=184607

Rubber-stamped by Jer Noble.

Don't call LibWebRTC related code when libwebrtc is not available.

  • dom/Document.cpp:

(WebCore::Document::prepareForDestruction):
(WebCore::Document::suspend):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230643 r230644  
     12018-04-13  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        WebKit crashes when libwebrtc.dylib is missing
     4        https://bugs.webkit.org/show_bug.cgi?id=184607
     5
     6        Rubber-stamped by Jer Noble.
     7
     8        Don't call LibWebRTC related code when libwebrtc is not available.
     9
     10        * dom/Document.cpp:
     11        (WebCore::Document::prepareForDestruction):
     12        (WebCore::Document::suspend):
     13
    1142018-04-13  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/dom/Document.cpp

    r230581 r230644  
    23592359
    23602360#if USE(LIBWEBRTC)
    2361     if (auto* page = this->page())
    2362         page->libWebRTCProvider().unregisterMDNSNames(identifier().toUInt64());
     2361    // FIXME: This should be moved to Modules/mediastream.
     2362    if (LibWebRTCProvider::webRTCAvailable()) {
     2363        if (auto* page = this->page())
     2364            page->libWebRTCProvider().unregisterMDNSNames(identifier().toUInt64());
     2365    }
    23632366#endif
    23642367
     
    48924895
    48934896#if USE(LIBWEBRTC)
    4894     if (auto* page = this->page())
    4895         page->libWebRTCProvider().unregisterMDNSNames(identifier().toUInt64());
     4897    // FIXME: This should be moved to Modules/mediastream.
     4898    if (LibWebRTCProvider::webRTCAvailable()) {
     4899        if (auto* page = this->page())
     4900            page->libWebRTCProvider().unregisterMDNSNames(identifier().toUInt64());
     4901    }
    48964902#endif
    48974903
Note: See TracChangeset for help on using the changeset viewer.