WTR is not successfully changing the NSUserDefaults
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Oct 2011 20:48:57 +0000 (20:48 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Oct 2011 20:48:57 +0000 (20:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=69204

Reviewed by Dan Bernstein.

* WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
(WTR::InjectedBundle::platformInitialize):
Use -setVolatileDomain:forName:NSArgumentDomain instead of registerDefaults to
get our overrides picked up.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96460 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm

index 004c22c8cf7c42032121fc6ddb5cd43081a77696..77379041a315ab96254b89ffd38726d13274d761 100644 (file)
@@ -1,3 +1,15 @@
+2011-10-01  Sam Weinig  <sam@webkit.org>
+
+        WTR is not successfully changing the NSUserDefaults
+        https://bugs.webkit.org/show_bug.cgi?id=69204
+
+        Reviewed by Dan Bernstein.
+
+        * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
+        (WTR::InjectedBundle::platformInitialize):
+        Use -setVolatileDomain:forName:NSArgumentDomain instead of registerDefaults to
+        get our overrides picked up.
+
 2011-09-30  Daniel Bates  <dbates@rim.com>
 
         Cleanup: Extract code to launch a Mac WebKit application into a common function
index 5ab6bda7e351078c050b8c19111331e98758e5b3..32280ddf38b325a73c3cc538b9156de93d044a6d 100644 (file)
@@ -220,7 +220,7 @@ void InjectedBundle::platformInitialize(WKTypeRef)
         @"Always",                        @"AppleShowScrollBars",
         nil];
 
-    [[NSUserDefaults standardUserDefaults] registerDefaults:dict];
+    [[NSUserDefaults standardUserDefaults] setVolatileDomain:dict forName:NSArgumentDomain];    
     
     swizzleNSFontManagerMethods();
 }