Changeset 225581 in webkit


Ignore:
Timestamp:
Dec 6, 2017 11:00:59 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION (r225537): Crash in WebCore::SWServerWorker::setHasPendingEvents(bool) + 68
https://bugs.webkit.org/show_bug.cgi?id=180481

Patch by Youenn Fablet <youenn@apple.com> on 2017-12-06
Reviewed by Chris Dumez.

Replacing ASSERT by if null check since there is no strong guarantee right now that there is a registration
in SWServer registration map associated to a SWServerWorker.

  • workers/service/server/SWServerWorker.cpp:

(WebCore::SWServerWorker::setHasPendingEvents):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r225577 r225581  
     12017-12-06  Youenn Fablet  <youenn@apple.com>
     2
     3        REGRESSION (r225537): Crash in WebCore::SWServerWorker::setHasPendingEvents(bool) + 68
     4        https://bugs.webkit.org/show_bug.cgi?id=180481
     5
     6        Reviewed by Chris Dumez.
     7
     8        Replacing ASSERT by if null check since there is no strong guarantee right now that there is a registration
     9        in SWServer registration map associated to a SWServerWorker.
     10
     11        * workers/service/server/SWServerWorker.cpp:
     12        (WebCore::SWServerWorker::setHasPendingEvents):
     13
    1142017-12-06  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/workers/service/server/SWServerWorker.cpp

    r225537 r225581  
    142142    // Do tryClear/tryActivate, as per https://w3c.github.io/ServiceWorker/#wait-until-method.
    143143    auto* registration = m_server.getRegistration(m_registrationKey);
    144     ASSERT(registration);
     144    if (!registration)
     145        return;
     146
    145147    if (registration->isUninstalling() && registration->tryClear())
    146148        return;
Note: See TracChangeset for help on using the changeset viewer.