Changeset 119566 in webkit


Ignore:
Timestamp:
Jun 6, 2012 12:01:11 AM (12 years ago)
Author:
charles.wei@torchmobile.com.cn
Message:

[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:
Location:
trunk/Source/WebKit/blackberry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r119527 r119566  
    61966196#endif
    61976197
     6198#if ENABLE(INDEXED_DATABASE)
     6199    m_page->group().groupSettings()->setIndexedDBDatabasePath(webSettings->indexedDataBasePath());
     6200#endif
     6201
     6202
    61986203#if ENABLE(WEB_SOCKETS)
    61996204    WebSocket::setIsAvailable(webSettings->areWebSocketsEnabled());
  • trunk/Source/WebKit/blackberry/Api/WebSettings.cpp

    r117330 r119566  
    6767DEFINE_STATIC_LOCAL(String, WebKitFrameFlatteningEnabled, ("WebKitFrameFlatteningEnabled"));
    6868DEFINE_STATIC_LOCAL(String, WebKitGeolocationEnabled, ("WebKitGeolocationEnabled"));
     69DEFINE_STATIC_LOCAL(String, WebKitIndexedDataBasePath, ("WebKitIndexedDataBasePath"));
    6970DEFINE_STATIC_LOCAL(String, WebKitJavaScriptCanOpenWindowsAutomaticallyEnabled, ("WebKitJavaScriptCanOpenWindowsAutomaticallyEnabled"));
    7071DEFINE_STATIC_LOCAL(String, WebKitJavaScriptEnabled, ("WebKitJavaScriptEnabled"));
     
    602603}
    603604
     605WebString WebSettings::indexedDataBasePath() const
     606{
     607    return m_private->getString(WebKitIndexedDataBasePath);
     608}
     609
     610void WebSettings::setIndexedDataBasePath(const WebString& path)
     611{
     612    m_private->setString(WebKitIndexedDataBasePath, path);
     613}
     614
    604615WebString WebSettings::databasePath() const
    605616{
  • trunk/Source/WebKit/blackberry/Api/WebSettings.h

    r117148 r119566  
    174174    void setLocalStoragePath(const WebString&);
    175175
     176    WebString indexedDataBasePath() const;
     177    void setIndexedDataBasePath(const WebString&);
     178
    176179    WebString databasePath() const;
    177180    void setDatabasePath(const WebString&);
  • trunk/Source/WebKit/blackberry/ChangeLog

    r119549 r119566  
     12012-06-06  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        [BlackBerry] IndexedDB file should be sand-boxed to the application data directory.
     4        https://bugs.webkit.org/show_bug.cgi?id=88065
     5
     6        Reviewed by George Staikos.
     7
     8        * Api/WebPage.cpp:
     9        (BlackBerry::WebKit::WebPagePrivate::didChangeSettings):
     10        * Api/WebSettings.cpp:
     11        (WebKit):
     12        (BlackBerry::WebKit::WebSettings::indexedDataBasePath):
     13        (BlackBerry::WebKit::WebSettings::setIndexedDataBasePath):
     14        * Api/WebSettings.h:
     15
    1162012-06-05  Crystal Zhang  <haizhang@rim.com>
    217
Note: See TracChangeset for help on using the changeset viewer.