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
+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
_private->preferences = [prefs retain];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesChangedNotification:)
name:WebPreferencesChangedNotification object:[self preferences]];
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName:WebPreferencesChangedNotification object:prefs userInfo:nil];
}
}