HTML5 Database APIs

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

HTML5 Database APIs

Postby brenton » Fri May 21, 2010 2:12 pm

Are the HTML5 database APIs functional in CEF?

If I run the Javascript below in Chrome it works fine. In cefclient.exe, however, it crashes with the message: [0521/113614:FATAL:database_connections.cc(15)] Check failed: connections_empty()

Code: Select all
var db = null;

function testDb() {
    db = openDatabase("Test", "1.0", "HTML5 Database API example", 200000);
    if (db) {
        alert("Database opened!");
    }
    else {
        alert("Failed to open the database");
        return;
    }
    db.executeSql('CREATE TABLE IF NOT EXISTS Test (id INTEGER PRIMARY KEY AUTOINCREMENT, test TEXT)', [],
    function(tx, rs) {
        alert("Result:" + rs);
    },
    function(tx, err) {
        alert("Failed:" + err);
    });
   
    alert("here");
}


I'm running the CEF r78 binary distribution. Would it help if I build a nightly?

Thanks,
Brenton
brenton
Newbie
 
Posts: 2
Joined: Fri May 21, 2010 12:28 pm

Re: HTML5 Database APIs

Postby magreenblatt » Fri May 21, 2010 7:02 pm

Please create an issue for your crash on the CEF issue tracker. HTML5 database support is enabled in the current CEF build (r78) but it sounds like the implementation in Chromium at that time was incomplete. If it's working in Chromium currently then it will probably be working in the next CEF update. There will likely be an official CEF update in the next few weeks, but if you're in a hurry you can try updating CEF yourself by following the instructions here: http://code.google.com/p/chromiumembedd ... miumUpdate

Regards,
Marshall
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: HTML5 Database APIs

Postby brenton » Fri May 28, 2010 12:15 am

Thanks very much for your prompt reply. I'll post the bug report and do an updated source build as you've suggested. I'll post my results here in case anyone else is interested.

Brenton
brenton
Newbie
 
Posts: 2
Joined: Fri May 21, 2010 12:28 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 25 guests