Summary: | Add SPI to move localStorage to a different domain | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||||||
Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | beidson, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Alex Christensen
2020-03-18 17:25:51 PDT
Created attachment 393924 [details]
Patch
Reverted in https://trac.webkit.org/changeset/258914/webkit Created attachment 398238 [details]
Patch
Comment on attachment 398238 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398238&action=review Turns out this is better than alternatives. > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:83 > +- (void)_renameOrigin:(NSURL *)oldName to:(NSURL *)newName forDataOfTypes:(NSSet<NSString *> *)dataTypes completionHandler:(void (^)(void))completionHandler; I changed these from NSStrings to NSURLs and _renameDomain to _renameOrigin > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:2415 > + networkProcess->addSession(*this); I also add the session if it hasn't been added yet so the use case works. Created attachment 398247 [details]
Patch
Committed r261038: <https://trac.webkit.org/changeset/261038> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398247 [details]. |