Title: [96460] trunk/Tools
- Revision
- 96460
- Author
- [email protected]
- Date
- 2011-10-01 13:48:57 -0700 (Sat, 01 Oct 2011)
Log Message
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.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (96459 => 96460)
--- trunk/Tools/ChangeLog 2011-10-01 19:56:47 UTC (rev 96459)
+++ trunk/Tools/ChangeLog 2011-10-01 20:48:57 UTC (rev 96460)
@@ -1,3 +1,15 @@
+2011-10-01 Sam Weinig <[email protected]>
+
+ 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 <[email protected]>
Cleanup: Extract code to launch a Mac WebKit application into a common function
Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm (96459 => 96460)
--- trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm 2011-10-01 19:56:47 UTC (rev 96459)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm 2011-10-01 20:48:57 UTC (rev 96460)
@@ -220,7 +220,7 @@
@"Always", @"AppleShowScrollBars",
nil];
- [[NSUserDefaults standardUserDefaults] registerDefaults:dict];
+ [[NSUserDefaults standardUserDefaults] setVolatileDomain:dict forName:NSArgumentDomain];
swizzleNSFontManagerMethods();
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes