[BlackBerry] IndexedDB file should be sand-boxed to the application data directory.

https://bugs.webkit.org/show_bug.cgi?id=88065

Reviewed by George Staikos.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
* Api/WebSettings.cpp:
(WebKit):
(BlackBerry::WebKit::WebSettings::indexedDataBasePath):
(BlackBerry::WebKit::WebSettings::setIndexedDataBasePath):
* Api/WebSettings.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5cddf505
......@@ -6195,6 +6195,11 @@ void WebPagePrivate::didChangeSettings(WebSettings* webSettings)
coreSettings->setFrameFlatteningEnabled(webSettings->isFrameFlatteningEnabled());
#endif
#if ENABLE(INDEXED_DATABASE)
m_page->group().groupSettings()->setIndexedDBDatabasePath(webSettings->indexedDataBasePath());
#endif
#if ENABLE(WEB_SOCKETS)
WebSocket::setIsAvailable(webSettings->areWebSocketsEnabled());
#endif
......
......@@ -66,6 +66,7 @@ DEFINE_STATIC_LOCAL(String, WebKitFirstScheduledLayoutDelay, ("WebKitFirstSchedu
DEFINE_STATIC_LOCAL(String, WebKitFixedFontFamily, ("WebKitFixedFontFamily"));
DEFINE_STATIC_LOCAL(String, WebKitFrameFlatteningEnabled, ("WebKitFrameFlatteningEnabled"));
DEFINE_STATIC_LOCAL(String, WebKitGeolocationEnabled, ("WebKitGeolocationEnabled"));
DEFINE_STATIC_LOCAL(String, WebKitIndexedDataBasePath, ("WebKitIndexedDataBasePath"));
DEFINE_STATIC_LOCAL(String, WebKitJavaScriptCanOpenWindowsAutomaticallyEnabled, ("WebKitJavaScriptCanOpenWindowsAutomaticallyEnabled"));
DEFINE_STATIC_LOCAL(String, WebKitJavaScriptEnabled, ("WebKitJavaScriptEnabled"));
DEFINE_STATIC_LOCAL(String, WebKitLoadsImagesAutomatically, ("WebKitLoadsImagesAutomatically"));
......@@ -601,6 +602,16 @@ void WebSettings::setLocalStoragePath(const WebString& path)
m_private->setString(WebKitLocalStoragePath, path);
}
WebString WebSettings::indexedDataBasePath() const
{
return m_private->getString(WebKitIndexedDataBasePath);
}
void WebSettings::setIndexedDataBasePath(const WebString& path)
{
m_private->setString(WebKitIndexedDataBasePath, path);
}
WebString WebSettings::databasePath() const
{
return m_private->getString(WebKitDatabasePath);
......
......@@ -173,6 +173,9 @@ public:
WebString localStoragePath() const;
void setLocalStoragePath(const WebString&);
WebString indexedDataBasePath() const;
void setIndexedDataBasePath(const WebString&);
WebString databasePath() const;
void setDatabasePath(const WebString&);
......
2012-06-06 Charles Wei <charles.wei@torchmobile.com.cn>
[BlackBerry] IndexedDB file should be sand-boxed to the application data directory.
https://bugs.webkit.org/show_bug.cgi?id=88065
Reviewed by George Staikos.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
* Api/WebSettings.cpp:
(WebKit):
(BlackBerry::WebKit::WebSettings::indexedDataBasePath):
(BlackBerry::WebKit::WebSettings::setIndexedDataBasePath):
* Api/WebSettings.h:
2012-06-05 Crystal Zhang <haizhang@rim.com>
[BlackBerry]Differentiate options and group options by TypeOption and TypeOptionInGroup
......
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