Changeset 206097 in webkit
- Timestamp:
- Sep 19, 2016 9:01:08 AM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r206091 r206097 1 2016-09-19 Alex Christensen <achristensen@webkit.org> 2 3 Only override URLParser::enabled if NSUserDefaults object exists 4 https://bugs.webkit.org/show_bug.cgi?id=162131 5 6 Reviewed by Sam Weinig. 7 8 * Shared/Cocoa/WebKit2InitializeCocoa.mm: 9 (WebKit::platformInitializeWebKit2): 10 * Shared/WebKit2Initialize.cpp: 11 When I enable URLParser by default, I will want the default to only be overwritten if there is a 12 NSUserDefaults key for URLParserEnabled. Right now it is setting URLParser::enabled to false always, 13 which isn't a problem because the default is also false. When the default is true, that will overwrite the default. 14 1 15 2016-09-19 Joseph Pecoraro <pecoraro@apple.com> 2 16 -
trunk/Source/WebKit2/Shared/Cocoa/WebKit2InitializeCocoa.mm
r205266 r206097 41 41 if (processType == UIProcess) { 42 42 dispatch_once(&initOnce, ^ { 43 URLParser::setEnabled([[NSUserDefaults standardUserDefaults] boolForKey:@"URLParserEnabled"]); 43 NSString *key = @"URLParserEnabled"; 44 if ([[NSUserDefaults standardUserDefaults] objectForKey:key]) 45 URLParser::setEnabled([[NSUserDefaults standardUserDefaults] boolForKey:key]); 44 46 }); 45 47 } -
trunk/Source/WebKit2/Shared/WebKit2Initialize.cpp
r205275 r206097 29 29 #include "LogInitialization.h" 30 30 #include <WebCore/LogInitialization.h> 31 #include <WebCore/URLParser.h>32 31 #include <runtime/InitializeThreading.h> 33 32 #include <wtf/MainThread.h>
Note: See TracChangeset
for help on using the changeset viewer.