SharedStringHashStore should support removing hashes. It currently only supports adding hashes or clearing all of them, which is sufficient for the VisitedLinkStore but will not be for Service Worker purposes.
Created attachment 322430 [details] WIP Patch
Comment on attachment 322430 [details] WIP Patch Attachment 322430 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/4729928 New failing tests: fast/history/nested-visited-test.html fast/history/visited-link-caret-color.html fast/history/visited-inside-any.html fast/history/visited-link-background-color.html http/tests/misc/acid3.html
Created attachment 322456 [details] Archive of layout-test-results from ews107 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Comment on attachment 322430 [details] WIP Patch Attachment 322430 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/4730025 Number of test failures exceeded the failure limit.
Created attachment 322459 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.6
Created attachment 322462 [details] WIP Patch
Created attachment 322467 [details] Patch
Created attachment 322468 [details] Patch
Comment on attachment 322468 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322468&action=review > Source/WebKit/UIProcess/API/Cocoa/_WKVisitedLinkStore.h:37 > +- (BOOL)containsVisitedLinkWithURL:(NSURL *)URL; > +- (void)removeVisitedLinkWithURL:(NSURL *)URL; These need availability macros.
Created attachment 322526 [details] Patch
Created attachment 322553 [details] Patch
Comment on attachment 322553 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322553&action=review > Source/WebKit/Shared/SharedStringHashTable.cpp:107 > +bool SharedStringHashTable::remove(WebCore::SharedStringHash sharedStringHash) It would be nice if we could have subroutines for things like finding the slot. Also, we should add a FIXME comment indicating that sometimes we will want to rehash to save memory if the capacity becomes too low.
Created attachment 322584 [details] Patch
Created attachment 322586 [details] Patch
The commit-queue encountered the following flaky tests while processing attachment 322586 [details]: The commit-queue is continuing to process your patch.
Comment on attachment 322586 [details] Patch Clearing flags on attachment: 322586 Committed r222820: <http://trac.webkit.org/changeset/222820>
All reviewed patches have been landed. Closing bug.
<rdar://problem/34802939>