Changeset 246011 in webkit
- Timestamp:
- May 31, 2019, 9:16:40 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/WebStorage/StorageManager.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r246008 r246011 1 2019-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 1 18 2019-05-31 Jiewen Tan <jiewen_tan@apple.com> 2 19 -
trunk/Source/WebKit/NetworkProcess/WebStorage/StorageManager.cpp
r245978 r246011 716 716 std::pair<IPC::Connection::UniqueID, uint64_t> connectionAndStorageMapIDPair(connectionID, storageMapID); 717 717 718 // FIXME: This should be a message check.719 718 ASSERT((HashMap<std::pair<IPC::Connection::UniqueID, uint64_t>, RefPtr<StorageArea>>::isValidKey(connectionAndStorageMapIDPair))); 720 719 721 720 auto result = m_storageAreasByConnection.add(connectionAndStorageMapIDPair, nullptr); 722 723 // FIXME: These should be a message checks.724 721 ASSERT(result.isNewEntry); 725 722 ASSERT((HashMap<uint64_t, RefPtr<LocalStorageNamespace>>::isValidKey(storageNamespaceID))); 726 723 727 724 LocalStorageNamespace* localStorageNamespace = getOrCreateLocalStorageNamespace(storageNamespaceID); 728 729 // FIXME: This should be a message check.730 725 ASSERT(localStorageNamespace); 731 726 … … 740 735 { 741 736 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.743 737 ASSERT(m_storageAreasByConnection.isValidKey({ connectionID, storageMapID })); 744 738 … … 765 759 766 760 auto& slot = m_storageAreasByConnection.add({ connectionID, storageMapID }, nullptr).iterator->value; 767 768 // FIXME: This should be a message check.769 761 ASSERT(!slot); 770 762 … … 785 777 return; 786 778 } 787 // FIXME: This should be a message check. 779 788 780 ASSERT(m_sessionStorageNamespaces.isValidKey(storageNamespaceID)); 789 781 … … 795 787 } 796 788 797 // FIXME: This should be a message check.798 789 ASSERT(m_storageAreasByConnection.isValidKey({ connectionID, storageMapID })); 799 790 800 791 auto& slot = m_storageAreasByConnection.add({ connectionID, storageMapID }, nullptr).iterator->value; 801 802 // FIXME: This should be a message check.803 792 ASSERT(!slot); 804 805 // FIXME: This should be a message check.806 793 ASSERT(sessionStorageNamespace->allowedConnections().contains(connectionID)); 807 794 … … 817 804 m_queue->dispatch([this, protectedThis = makeRef(*this), connectionID = connection.uniqueID(), storageMapID]() mutable { 818 805 std::pair<IPC::Connection::UniqueID, uint64_t> connectionAndStorageMapIDPair(connectionID, storageMapID); 819 820 // FIXME: This should be a message check.821 806 ASSERT(m_storageAreasByConnection.isValidKey(connectionAndStorageMapIDPair)); 822 807
Note:
See TracChangeset
for help on using the changeset viewer.