RESOLVED FIXED 105447
Add a function to set the origin hash table
https://bugs.webkit.org/show_bug.cgi?id=105447
Summary Add a function to set the origin hash table
Jon Lee
Reported 2012-12-19 10:28:16 PST
Doing this allows a WK2 client to set the hash table upon initialization.
Attachments
Patch (8.91 KB, patch)
2012-12-19 12:49 PST, Jon Lee
bweinstein: review+
Radar WebKit Bug Importer
Comment 1 2012-12-19 10:28:37 PST
Jon Lee
Comment 2 2012-12-19 12:49:27 PST
Brian Weinstein
Comment 3 2012-12-19 15:07:54 PST
Comment on attachment 180210 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180210&action=review > Source/WebKit2/UIProcess/API/C/WKContext.cpp:348 > + return; Do we want to clear the list of origin hashes if we pass null for the dictionary? Or will we pass an empty dictionary for that case?
Jon Lee
Comment 4 2012-12-19 16:10:07 PST
(In reply to comment #3) > (From update of attachment 180210 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=180210&action=review > > > Source/WebKit2/UIProcess/API/C/WKContext.cpp:348 > > + return; > > Do we want to clear the list of origin hashes if we pass null for the dictionary? Or will we pass an empty dictionary for that case? The client should pass an empty dictionary to clear the list.
Brian Weinstein
Comment 5 2012-12-19 16:18:10 PST
Comment on attachment 180210 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180210&action=review > Source/WebKit2/ChangeLog:10 > + keyed by main frame origin, into the WebContext. That, in turn, notifies all existing web sets... into the WebContext reads a bit strangely, but not sure what would be better. > Source/WebKit2/WebProcess/WebProcess.cpp:839 > + m_plugInAutoStartOrigins.add(hashes[i]); Is it worth calling didAddPlugInAutoStartOrigin(hashes[i]) here? In case we need to add more to that function.
Jon Lee
Comment 6 2012-12-19 16:33:14 PST
Comment on attachment 180210 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180210&action=review >> Source/WebKit2/WebProcess/WebProcess.cpp:839 >> + m_plugInAutoStartOrigins.add(hashes[i]); > > Is it worth calling didAddPlugInAutoStartOrigin(hashes[i]) here? In case we need to add more to that function. Sure, I can call that instead.
Jon Lee
Comment 7 2012-12-19 16:39:34 PST
Note You need to log in before you can comment on or make changes to this bug.