⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 246011 in webkit


Ignore:
Timestamp:
May 31, 2019, 9:16:40 PM (7 years ago)
Author:
sihui_liu@apple.com
Message:

Remove outdated FIXME in StorageManager
https://bugs.webkit.org/show_bug.cgi?id=198049

Reviewed by Geoffrey Garen.

Previously StorageManager messages were dispatched and handled in the same thread, so we could perform a message
check. Now they are on different thread, and we would not be able to verify those parameters when dispatching
the message.

  • NetworkProcess/WebStorage/StorageManager.cpp:

(WebKit::StorageManager::createLocalStorageMap):
(WebKit::StorageManager::createTransientLocalStorageMap):
(WebKit::StorageManager::createSessionStorageMap):
(WebKit::StorageManager::destroyStorageMap):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246008 r246011  
     12019-05-31  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Remove outdated FIXME in StorageManager
     4        https://bugs.webkit.org/show_bug.cgi?id=198049
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Previously StorageManager messages were dispatched and handled in the same thread, so we could perform a message
     9        check. Now they are on different thread, and we would not be able to verify those parameters when dispatching
     10        the message.
     11
     12        * NetworkProcess/WebStorage/StorageManager.cpp:
     13        (WebKit::StorageManager::createLocalStorageMap):
     14        (WebKit::StorageManager::createTransientLocalStorageMap):
     15        (WebKit::StorageManager::createSessionStorageMap):
     16        (WebKit::StorageManager::destroyStorageMap):
     17
    1182019-05-31  Jiewen Tan  <jiewen_tan@apple.com>
    219
  • trunk/Source/WebKit/NetworkProcess/WebStorage/StorageManager.cpp

    r245978 r246011  
    716716        std::pair<IPC::Connection::UniqueID, uint64_t> connectionAndStorageMapIDPair(connectionID, storageMapID);
    717717
    718         // FIXME: This should be a message check.
    719718        ASSERT((HashMap<std::pair<IPC::Connection::UniqueID, uint64_t>, RefPtr<StorageArea>>::isValidKey(connectionAndStorageMapIDPair)));
    720719
    721720        auto result = m_storageAreasByConnection.add(connectionAndStorageMapIDPair, nullptr);
    722 
    723         // FIXME: These should be a message checks.
    724721        ASSERT(result.isNewEntry);
    725722        ASSERT((HashMap<uint64_t, RefPtr<LocalStorageNamespace>>::isValidKey(storageNamespaceID)));
    726723
    727724        LocalStorageNamespace* localStorageNamespace = getOrCreateLocalStorageNamespace(storageNamespaceID);
    728 
    729         // FIXME: This should be a message check.
    730725        ASSERT(localStorageNamespace);
    731726
     
    740735{
    741736    m_queue->dispatch([this, protectedThis = makeRef(*this), connectionID = connection.uniqueID(), storageMapID, storageNamespaceID, topLevelOriginData = topLevelOriginData.isolatedCopy(), origin = origin.isolatedCopy()]() mutable {
    742         // FIXME: This should be a message check.
    743737        ASSERT(m_storageAreasByConnection.isValidKey({ connectionID, storageMapID }));
    744738
     
    765759
    766760        auto& slot = m_storageAreasByConnection.add({ connectionID, storageMapID }, nullptr).iterator->value;
    767 
    768         // FIXME: This should be a message check.
    769761        ASSERT(!slot);
    770762
     
    785777            return;
    786778        }
    787         // FIXME: This should be a message check.
     779
    788780        ASSERT(m_sessionStorageNamespaces.isValidKey(storageNamespaceID));
    789781
     
    795787        }
    796788
    797         // FIXME: This should be a message check.
    798789        ASSERT(m_storageAreasByConnection.isValidKey({ connectionID, storageMapID }));
    799790
    800791        auto& slot = m_storageAreasByConnection.add({ connectionID, storageMapID }, nullptr).iterator->value;
    801 
    802         // FIXME: This should be a message check.
    803792        ASSERT(!slot);
    804 
    805         // FIXME: This should be a message check.
    806793        ASSERT(sessionStorageNamespace->allowedConnections().contains(connectionID));
    807794
     
    817804    m_queue->dispatch([this, protectedThis = makeRef(*this), connectionID = connection.uniqueID(), storageMapID]() mutable {
    818805        std::pair<IPC::Connection::UniqueID, uint64_t> connectionAndStorageMapIDPair(connectionID, storageMapID);
    819 
    820         // FIXME: This should be a message check.
    821806        ASSERT(m_storageAreasByConnection.isValidKey(connectionAndStorageMapIDPair));
    822807
Note: See TracChangeset for help on using the changeset viewer.