Changeset 223890 in webkit


Ignore:
Timestamp:
Oct 24, 2017 9:33:16 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

ASSERTION FAILED: !m_serviceWorkerManager in WebProcess::getWorkerContextConnection() on API tests
https://bugs.webkit.org/show_bug.cgi?id=178586
<rdar://problem/35115902>

Patch by Youenn Fablet <youenn@apple.com> on 2017-10-24
Reviewed by Brady Eidson.

Covered by API tests no longer crashing.

  • UIProcess/WebProcessPool.cpp:

(WebKit::WebProcessPool::getWorkerContextProcessConnection): Sending a worker context process connection message only at creation of the service worker process.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r223889 r223890  
     12017-10-24  Youenn Fablet  <youenn@apple.com>
     2
     3        ASSERTION FAILED: !m_serviceWorkerManager in WebProcess::getWorkerContextConnection() on API tests
     4        https://bugs.webkit.org/show_bug.cgi?id=178586
     5        <rdar://problem/35115902>
     6
     7        Reviewed by Brady Eidson.
     8
     9       Covered by API tests no longer crashing.
     10
     11        * UIProcess/WebProcessPool.cpp:
     12        (WebKit::WebProcessPool::getWorkerContextProcessConnection): Sending a worker context process connection message only at creation of the service worker process.
     13
    1142017-10-24  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/WebProcessPool.cpp

    r223808 r223890  
    590590    ASSERT_UNUSED(proxy, &proxy == m_storageProcess);
    591591   
    592     if (!m_workerContextProcess) {
    593         if (!m_websiteDataStore)
    594             m_websiteDataStore = API::WebsiteDataStore::defaultDataStore().ptr();
    595         auto& newProcess = createNewWebProcess(m_websiteDataStore->websiteDataStore());
    596         m_workerContextProcess = &newProcess;
    597     }
    598    
     592    if (m_workerContextProcess)
     593        return;
     594
     595    if (!m_websiteDataStore)
     596        m_websiteDataStore = API::WebsiteDataStore::defaultDataStore().ptr();
     597    auto& newProcess = createNewWebProcess(m_websiteDataStore->websiteDataStore());
     598    m_workerContextProcess = &newProcess;
    599599    m_workerContextProcess->send(Messages::WebProcess::GetWorkerContextConnection(), 0);
    600600}
Note: See TracChangeset for help on using the changeset viewer.