WebKitInitializeStorageIfNecessary() should not be in WebView.mm. WebApplicationCache should know about how to initialize itself. It should follow the pattern in WebStorageManager and WebDatabaseManager. Mac port clients can then call this initialization method directly.