Commit 2236aee8 authored by adele@apple.com's avatar adele@apple.com

2009-04-14 Adele Peterson <adele@apple.com>

        Reviewed by Darin.

        Initialize WebKitSystemInterface in class methods that could get called before a WebView/WebFrame is set up.  This was causing Mail to crash on launch.

        * Misc/WebCache.mm: (+[WebCache initialize]):
        * WebView/WebView.mm: (+[WebView initialize]):



git-svn-id: svn://svn.chromium.org/blink/trunk@42514 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 6c0f48f5
2009-04-14 Adele Peterson <adele@apple.com>
Reviewed by Darin.
Initialize WebKitSystemInterface in class methods that could get called before a WebView/WebFrame is set up. This was causing Mail to crash on launch.
* Misc/WebCache.mm: (+[WebCache initialize]):
* WebView/WebView.mm: (+[WebView initialize]):
2009-04-13 Kevin Decker <kdecker@apple.com>
Reviewed by Darin.
......
......@@ -26,6 +26,7 @@
#import "WebCache.h"
#import "WebPreferences.h"
#import "WebSystemInterface.h"
#import "WebView.h"
#import "WebViewInternal.h"
#import <WebCore/ApplicationCacheStorage.h>
......@@ -34,6 +35,11 @@
@implementation WebCache
+ (void)initialize
{
InitWebCoreSystemInterface();
}
+ (NSArray *)statistics
{
WebCore::Cache::Statistics s = WebCore::cache()->getStatistics();
......
......@@ -84,6 +84,7 @@
#import "WebPreferenceKeysPrivate.h"
#import "WebPreferencesPrivate.h"
#import "WebScriptDebugDelegate.h"
#import "WebSystemInterface.h"
#import "WebTextIterator.h"
#import "WebUIDelegate.h"
#import "WebUIDelegatePrivate.h"
......@@ -2273,6 +2274,8 @@ WebScriptDebugDelegateImplementationCache* WebViewGetScriptDebugDelegateImplemen
return;
initialized = YES;
InitWebCoreSystemInterface();
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_applicationWillTerminate) name:NSApplicationWillTerminateNotification object:NSApp];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesChangedNotification:) name:WebPreferencesChangedNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesRemovedNotification:) name:WebPreferencesRemovedNotification object:nil];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment