| Summary: | Expose functions necessary for copying favicon between IconDatabases. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Gordon Sheridan <gordon_sheridan> | ||||||
| Component: | WebKit2 | Assignee: | Gordon Sheridan <gordon_sheridan> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | beidson, commit-queue, jberlin, matthew_hanson, webkit-bug-importer | ||||||
| Priority: | P1 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Gordon Sheridan
2014-05-08 15:09:02 PDT
Created attachment 231104 [details]
Patch
Comment on attachment 231104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=231104&action=review > Source/WebKit2/UIProcess/API/C/WKIconDatabase.cpp:65 > +WKURLRef WKIconDatabaseSynchronousIconURLForPageURL(WKIconDatabaseRef iconDatabaseRef, WKURLRef pageURLRef) This should be something like WKIconDatabaseSynchronousCopyIconURLForPageURL since it returns a copy. > Source/WebKit2/UIProcess/API/C/WKIconDatabase.h:84 > +WK_EXPORT void WKIconDatabaseSetIconURLForPageURL(WKIconDatabaseRef iconDatabaseRef, WKURLRef iconURLRef, WKURLRef pageURLRef); Is there a reason you called out "ForPageURL"? The other functions are just "ForURL". > Source/WebKit2/UIProcess/API/C/WKIconDatabase.h:85 > +WK_EXPORT WKURLRef WKIconDatabaseSynchronousIconURLForPageURL(WKIconDatabaseRef iconDatabaseRef, WKURLRef pageURLRef); Is it important and/or right for it to have "Synchronous" in the title? It seems like that should be more of a comment, or just entirely be implied by the fact that it returns the WKURLRef. I don't see any of our other WK2 C API doing this. Created attachment 231128 [details]
Patch
Jessie, I updated the patch to incorporate your suggestion to replace 'Synchronous' with 'Copy' in WKIconDatabaseSynchronousIconURLForPageURL(). I'm keeping the 'PageURL' portion instead of condensing it to just 'URL' because there are two URLs in these parameter lists, it matches the underlying method names these are wrapping, and there seemed to be a precedent of using 'PageURL' in two of the IconDatabase client callbacks (WKIconDatabaseDidChangeIconForPageURLCallback and WKIconDatabaseIconDataReadyForPageURLCallback). That said, I'm fine with changing them to whatever the WebKit folks want. Comment on attachment 231128 [details]
Patch
These names are fine.
Comment on attachment 231128 [details] Patch Clearing flags on attachment: 231128 Committed r168553: <http://trac.webkit.org/changeset/168553> All reviewed patches have been landed. Closing bug. |