WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
69992
The local database can't be opened
https://bugs.webkit.org/show_bug.cgi?id=69992
Summary
The local database can't be opened
Franky
Reported
2011-10-12 20:31:52 PDT
Created
attachment 110798
[details]
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::setOfflineStoragePath(storagePath+"/Databases"); 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.
Attachments
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.
(43.21 KB, application/x-gzip)
2011-10-12 20:31 PDT
,
Franky
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Lucas De Marchi
Comment 1
2011-10-13 09:16:35 PDT
I didn't have time to look at your code, but this is working for me:
http://slides.html5rocks.com/#web-sql-db
Probably there's an error in your html file. Both Firefox and Chromium shows the same output as well. Btw, DB should be enabled by default in EWebLauncher. Why are you changing it? You could try it by just doing: ./Tools/EWebLauncher file:///your/path/index.html
Lucas De Marchi
Comment 2
2011-10-13 09:45:56 PDT
ahn... just checked your code. It's a configuration thing. By default WebKit-EFL uses 1MB as a max quota for database and you are trying to open a database with 2MB. See documentation of ewk_view_exceeded_database_quota(). Basically, you just have to implement the method exceeded_database_quota() returning the new quota if you would like to allow this change for that site.
Raphael Kubo da Costa (:rakuco)
Comment 3
2011-10-14 05:15:52 PDT
According to
comment #2
, this does not seem to be a bug after all. Please reopen if you still have problems after following the given advice.
Franky
Comment 4
2011-10-14 05:37:36 PDT
(In reply to
comment #2
)
> ahn... just checked your code. > > It's a configuration thing. By default WebKit-EFL uses 1MB as a max quota for database and you are trying to open a database with 2MB. > > See documentation of ewk_view_exceeded_database_quota(). > > Basically, you just have to implement the method exceeded_database_quota() returning the new quota if you would like to allow this change for that site.
Thank you! After change my JS code, everything is ok now. Sorry for bother, it shouldn't be reported as a bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug