RESOLVED DUPLICATE of bug 124617 124331
Implement WebOriginDataManager
https://bugs.webkit.org/show_bug.cgi?id=124331
Summary Implement WebOriginDataManager
Martin Hock
Reported 2013-11-13 19:18:02 PST
Continuation of 122781. Implements the functionality in WebOriginDataManager and convert the WK*Manager C APIs to use WebOriginDataManager, where * is one of: ApplicationCache, Cookie, Database, KeyValueStorage, MediaCache, PluginSiteData, ResourceCache.
Attachments
patch (147.75 KB, patch)
2013-11-14 10:55 PST, Martin Hock
eflews.bot: commit-queue-
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 (453.13 KB, application/zip)
2013-11-14 13:56 PST, Build Bot
no flags
fix InjectedBundle + build (147.69 KB, patch)
2013-11-14 21:16 PST, Martin Hock
eflews.bot: commit-queue-
fix build (149.15 KB, patch)
2013-11-15 09:27 PST, Martin Hock
no flags
merge (149.97 KB, patch)
2013-11-15 10:33 PST, Martin Hock
mhock: review-
eflews.bot: commit-queue-
Martin Hock
Comment 1 2013-11-14 10:55:50 PST
EFL EWS Bot
Comment 2 2013-11-14 11:49:08 PST
Build Bot
Comment 3 2013-11-14 13:56:35 PST
Comment on attachment 216962 [details] patch Attachment 216962 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/23748056 New failing tests: http/tests/cookies/third-party-cookie-relaxing.html
Build Bot
Comment 4 2013-11-14 13:56:37 PST
Created attachment 216978 [details] Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-16 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Martin Hock
Comment 5 2013-11-14 21:16:28 PST
Created attachment 217011 [details] fix InjectedBundle + build
EFL EWS Bot
Comment 6 2013-11-14 21:27:11 PST
Comment on attachment 217011 [details] fix InjectedBundle + build Attachment 217011 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/23768005
Martin Hock
Comment 7 2013-11-15 09:27:38 PST
Created attachment 217056 [details] fix build
Martin Hock
Comment 8 2013-11-15 10:33:15 PST
EFL EWS Bot
Comment 9 2013-11-15 10:47:07 PST
Tim Horton
Comment 10 2013-11-15 10:54:14 PST
Comment on attachment 217062 [details] merge View in context: https://bugs.webkit.org/attachment.cgi?id=217062&action=review Wayyyyyyy too big for me to make heads or tails out of, so I just glanced through. > Source/WebKit2/Shared/SecurityOriginDataHash.h:4 > + * Redistribution and use in source and binary forms, with or without This looks like the old license. Unless this file is copied from somewhere and I haven't gotten there yet? > Source/WebKit2/Shared/SecurityOriginDataHash.h:101 > + extra space > Source/WebKit2/Shared/StoredSecurityOriginData.cpp:4 > + * Redistribution and use in source and binary forms, with or without this is the right license > Source/WebKit2/Shared/StoredSecurityOriginData.cpp:96 > + if (!callback) { > + // FIXME: Log error or assert. > + return; > + } ASSERT(callback)? > Source/WebKit2/Shared/WebStoredSecurityOrigin.h:66 > + // FIXME: concat types? ? more explanation/maybe a bugzilla link in the fixme? I don't know what this means, as it stands. > Source/WebKit2/Shared/WebStoredSecurityOrigin.h:73 > + : m_securityOrigin(securityOrigin), m_types(types) separate lines, comma leading > Source/WebKit2/Shared/WebStoredSecurityOrigin.h:79 > + extra space > Source/WebKit2/UIProcess/API/C/WKContext.cpp:217 > + return reinterpret_cast<WKDatabaseManagerRef>(toAPI(toImpl(contextRef)->supplement<WebOriginDataManagerProxy>())); scariest_cast > Source/WebKit2/UIProcess/API/C/WKCookieManager.cpp:48 > + toImpl(originDataManager)->getOrigins(kWKCookieOriginData, ArrayCallback::create(ArrayCallback::create(context, callback).leakRef(), WKOriginDataManagerStoredOriginsToHostnames)); leakRef! > Source/WebKit2/UIProcess/API/C/WKOriginDataManager.cpp:78 > + API::Array *array = toImpl(arrayRef); Star on the wrong side. > Source/WebKit2/UIProcess/API/C/WKOriginDataManager.cpp:79 > + RefPtr<ArrayCallback> cb = adoptRef(reinterpret_cast<ArrayCallback *>(callback)); Extra space before the star. > Source/WebKit2/UIProcess/API/C/WKOriginDataManager.cpp:84 > + origins[i] = WebSecurityOrigin::create(reinterpret_cast<WebStoredSecurityOrigin *>(array->at(i))->securityOrigin()); ditto (and so on, I assume you can apply this where necessary) > Source/WebKit2/UIProcess/Plugins/WebPluginSiteDataManager.cpp:60 > + // FIXME: functionality moved to WebOriginDataManager > + // PluginProcessManager::shared().getSitesWithData(m_plugins.last(), m_webPluginSiteDataManager, m_callbackID); Wut. > Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:100 > + // setting flags to 0 clears all data > + // setting maxAge to max int means no max age > + // setting callback to 0 sets an empty callback http://www.webkit.org/coding/coding-style.html#comments-sentences though these are kind of odd to begin with > Source/WebKit2/UIProcess/WebOriginDataManagerProxy.cpp:227 > + for (auto i = origins->begin(), end = origins->end(); i != end; ++i) use range-based-for, maybe? and some other places (like right above) > Source/WebKit2/WebProcess/OriginData/WebOriginDataManager.cpp:195 > + UNUSED_PARAM(hostname); this doesn't look right anymore.
Martin Hock
Comment 11 2013-11-19 16:27:01 PST
Comment on attachment 217062 [details] merge Thanks for the review. I created 124617 to break this patch up into (somewhat) smaller pieces, and I have tried to implement the suggestions there.
Martin Hock
Comment 12 2013-11-19 16:31:20 PST
*** This bug has been marked as a duplicate of bug 124617 ***
Note You need to log in before you can comment on or make changes to this bug.