Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2004 04:48:04 +0000 (04:48 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2004 04:48:04 +0000 (04:48 +0000)
John found this problem and suggested the fix.

        Reviewed by John Louch.

        * WebView.subproj/WebView.m:
        (-[WebView setPreferences:]):

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

WebKit/ChangeLog
WebKit/WebView.subproj/WebView.m

index d03d91eba9a2c37398bfac79884a98981ed176fb..410568aca7036737e59ac91b8d43010c3779189e 100644 (file)
@@ -1,3 +1,14 @@
+2004-11-22  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/3891737> WebPreferences do not work if they are set before set on the WebView
+
+       John found this problem and suggested the fix.
+
+        Reviewed by John Louch.
+
+        * WebView.subproj/WebView.m:
+        (-[WebView setPreferences:]):
+
 2004-11-22  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by Harrison
index 40aa881762d90a85cf23d6a2ef176e49f1e6313b..c0b056892146e9869aebb9904f0b3403b2ceffdf 100644 (file)
@@ -1502,6 +1502,9 @@ NS_ENDHANDLER
         _private->preferences = [prefs retain];
         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesChangedNotification:)
                                                     name:WebPreferencesChangedNotification object:[self preferences]];
+
+        [[NSNotificationCenter defaultCenter]
+           postNotificationName:WebPreferencesChangedNotification object:prefs userInfo:nil];
     }
 }