[Webkit-unassigned] [Bug 69992] New: The local database can't be opened

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 12 20:31:52 PDT 2011


           Summary: The local database can't be opened
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: P2
         Component: WebKit EFL
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: franky.yang at intel.com
                CC: kubo at profusion.mobi, demarchi at webkit.org,
                    gyuyoung.kim at webkit.org

Created an attachment (id=110798)
 --> (https://bugs.webkit.org/attachment.cgi?id=110798&action=review)
index.html and jquery.js should be moved into "/home/franky/" directory. Then run the script "ewebkit-compile" to complie the main.c and then run "ebrowser" to load the index.html.

As shown in the attachment, this command in the file "index.html":

var db = openDatabase('db', '1.0', 'my first database', 2 * 1024 * 1024);

doesn't work. The code follow this line won't be executed as there may have an error when open the database.

In the file "main.c" you can search "@franky", that will indicate you what I've modified. 

In QWebView and google-chrome the index.html will be loaded normally. I've checked the source code of Qt, they will enable the offline storage after the storage path been set:

QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);

For QWebView, these settings is enough to load my "idnex.html" correctly, but in EFL-Webkit, I found that there is no global setting function to enable the database storage. I use the "ewk_view_setting_local_storage_set(app->browser,enable)" to try to enable it, but seems that get no effect.

Note: the index.html should work with jquery.js and that file is also in the attachment, please don't forget to copy that into "/home/franky/", otherwise you may get confused by the result.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list