Changeset 240791 in webkit


Ignore:
Timestamp:
Jan 31, 2019 9:04:34 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[Curl] Fix DRT crash related to private browsing.
https://bugs.webkit.org/show_bug.cgi?id=193816

Patch by Takashi Komori <Takashi.Komori@sony.com> on 2019-01-31
Reviewed by Alex Christensen.

Source/WebKitLegacy:

  • WebCoreSupport/NetworkStorageSessionMap.cpp:

(NetworkStorageSessionMap::ensureSession):

Source/WebKitLegacy/win:

  • WebCoreSupport/WebFrameNetworkingContext.cpp:

(WebFrameNetworkingContext::ensurePrivateBrowsingSession):

Location:
trunk/Source/WebKitLegacy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/ChangeLog

    r240557 r240791  
     12019-01-31  Takashi Komori  <Takashi.Komori@sony.com>
     2
     3        [Curl] Fix DRT crash related to private browsing.
     4        https://bugs.webkit.org/show_bug.cgi?id=193816
     5
     6        Reviewed by Alex Christensen.
     7
     8        * WebCoreSupport/NetworkStorageSessionMap.cpp:
     9        (NetworkStorageSessionMap::ensureSession):
     10
    1112019-01-26  Darin Adler  <darin@apple.com>
    212 
  • trunk/Source/WebKitLegacy/WebCoreSupport/NetworkStorageSessionMap.cpp

    r240557 r240791  
    107107
    108108    addResult.iterator->value = std::make_unique<WebCore::NetworkStorageSession>(sessionID, WTFMove(storageSession), WTFMove(cookieStorage));
     109
     110#elif USE(CURL)
     111    globalSessionMap().ensure(sessionID, [sessionID] {
     112        return std::make_unique<WebCore::NetworkStorageSession>(sessionID, nullptr);
     113    });
    109114#endif
    110115}
  • trunk/Source/WebKitLegacy/win/ChangeLog

    r240641 r240791  
     12019-01-31  Takashi Komori  <Takashi.Komori@sony.com>
     2
     3        [Curl] Fix DRT crash related to private browsing.
     4        https://bugs.webkit.org/show_bug.cgi?id=193816
     5
     6        Reviewed by Alex Christensen.
     7
     8        * WebCoreSupport/WebFrameNetworkingContext.cpp:
     9        (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
     10
    1112019-01-28  Ross Kirsling  <ross.kirsling@sony.com>
    212
  • trunk/Source/WebKitLegacy/win/WebCoreSupport/WebFrameNetworkingContext.cpp

    r240292 r240791  
    8585    NetworkStorageSessionMap::ensureSession(PAL::SessionID::legacyPrivateSessionID(), base);
    8686
     87#elif USE(CURL)
     88    ASSERT(isMainThread());
     89
     90    NetworkStorageSessionMap::ensureSession(PAL::SessionID::legacyPrivateSessionID());
     91
    8792#endif
    8893    return *NetworkStorageSessionMap::storageSession(PAL::SessionID::legacyPrivateSessionID());
Note: See TracChangeset for help on using the changeset viewer.