Changeset 256317 in webkit


Ignore:
Timestamp:
Feb 11, 2020 10:26:51 AM (4 years ago)
Author:
youenn@apple.com
Message:

REGRESSION (r256009): [ Mojave wk2 Debug ] ASSERTION FAILED: Completion handler should always be called under WebKit::WebMDNSRegister::PendingRegistration
https://bugs.webkit.org/show_bug.cgi?id=207521
<rdar://problem/59331313>

Reviewed by Eric Carlson.

Source/WebKit:

Covered by debug assertion not hit in layout tests.

  • WebProcess/Network/webrtc/WebMDNSRegister.cpp:

(WebKit::WebMDNSRegister::finishedRegisteringMDNSName):
Call completion handler even if the document entry has been cleared, which can happen in suspend/destruction case.
If the entry is not there, all MDNS names for the document have been unregistered. We then report a registration error.

LayoutTests:

  • platform/mac-wk2/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r256316 r256317  
     12020-02-11  Youenn Fablet  <youenn@apple.com>
     2
     3        REGRESSION (r256009): [ Mojave wk2 Debug ] ASSERTION FAILED: Completion handler should always be called under WebKit::WebMDNSRegister::PendingRegistration
     4        https://bugs.webkit.org/show_bug.cgi?id=207521
     5        <rdar://problem/59331313>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * platform/mac-wk2/TestExpectations:
     10
    1112020-02-11  Jacob Uphoff  <jacob_uphoff@apple.com>
    212
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r256231 r256317  
    10151015
    10161016webkit.org/b/207518 tiled-drawing/simple-document-with-margin-tiles.html [ Pass Failure ]
    1017 
    1018 webkit.org/b/207521 [ Mojave Debug ] webrtc/peerconnection-page-cache-long.html [ Pass Crash ]
  • trunk/Source/WebKit/ChangeLog

    r256315 r256317  
     12020-02-11  Youenn Fablet  <youenn@apple.com>
     2
     3        REGRESSION (r256009): [ Mojave wk2 Debug ] ASSERTION FAILED: Completion handler should always be called under WebKit::WebMDNSRegister::PendingRegistration
     4        https://bugs.webkit.org/show_bug.cgi?id=207521
     5        <rdar://problem/59331313>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Covered by debug assertion not hit in layout tests.
     10
     11        * WebProcess/Network/webrtc/WebMDNSRegister.cpp:
     12        (WebKit::WebMDNSRegister::finishedRegisteringMDNSName):
     13        Call completion handler even if the document entry has been cleared, which can happen in suspend/destruction case.
     14        If the entry is not there, all MDNS names for the document have been unregistered. We then report a registration error.
     15
    1162020-02-11  Alex Christensen  <achristensen@webkit.org>
    217
  • trunk/Source/WebKit/WebProcess/Network/webrtc/WebMDNSRegister.cpp

    r249980 r256317  
    4545    if (result.has_value()) {
    4646        auto iterator = m_registeringDocuments.find(pendingRegistration.documentIdentifier);
    47         if (iterator == m_registeringDocuments.end())
     47        if (iterator == m_registeringDocuments.end()) {
     48            pendingRegistration.callback(makeUnexpected(WebCore::MDNSRegisterError::DNSSD));
    4849            return;
     50        }
    4951        iterator->value.add(pendingRegistration.ipAddress, result.value());
    5052    }
Note: See TracChangeset for help on using the changeset viewer.