RESOLVED FIXED 121827
[WIN] Reduce usage of CFSTR() in WebPreferences
https://bugs.webkit.org/show_bug.cgi?id=121827
Summary [WIN] Reduce usage of CFSTR() in WebPreferences
Patrick R. Gansterer
Reported 2013-09-24 01:13:27 PDT
[WIN] Reduce usage of CFSTR() in WebPreferences
Attachments
Patch (49.09 KB, patch)
2013-09-24 01:16 PDT, Patrick R. Gansterer
no flags
Patch (49.34 KB, patch)
2013-11-01 05:57 PDT, Patrick R. Gansterer
no flags
Patrick R. Gansterer
Comment 1 2013-09-24 01:16:54 PDT
Brent Fulgham
Comment 2 2013-10-31 10:26:33 PDT
Comment on attachment 212437 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212437&action=review This seems reasonable, since it doesn't change any of the interfaces we are working with Be careful with changes here: we want to make sure that we don't break any existing functionality -- there are existing serialized preference databases that rely on the CF infrastructure to read and modify. This change will not affect any of those targets, but when you start modifying "migrateWebKitPreferencesToCFPreferences" or "copyWebKitPreferencesToCFPreferences" and especially "load" and "save" you have to be very careful. > Source/WebKit/win/WebPreferences.cpp:320 > +BSTR WebPreferences::stringValueForKey(const char* key) Note (for your future modifications): This routine (and several others) could greatly benefit from using _bstr_t instead of all of this manual SysAllocStringLen stuff.
WebKit Commit Bot
Comment 3 2013-10-31 10:27:46 PDT
Comment on attachment 212437 [details] Patch Rejecting attachment 212437 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 212437, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: 729 (offset 4 lines). Hunk #33 succeeded at 1739 (offset 4 lines). Hunk #34 succeeded at 1752 (offset 4 lines). Hunk #35 succeeded at 1762 (offset 4 lines). Hunk #36 succeeded at 1771 (offset 4 lines). 1 out of 36 hunks FAILED -- saving rejects to file Source/WebKit/win/WebPreferences.cpp.rej patching file Source/WebKit/win/WebPreferences.h Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Brent Fulgham']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.appspot.com/results/18688008
Brent Fulgham
Comment 4 2013-10-31 10:29:57 PDT
Looks like this needs to be rebased. Sorry!
Patrick R. Gansterer
Comment 5 2013-11-01 05:57:33 PDT
EFL EWS Bot
Comment 6 2013-11-01 06:08:52 PDT
WebKit Commit Bot
Comment 7 2013-11-01 07:07:16 PDT
Comment on attachment 215731 [details] Patch Clearing flags on attachment: 215731 Committed r158434: <http://trac.webkit.org/changeset/158434>
WebKit Commit Bot
Comment 8 2013-11-01 07:07:18 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.