[Webkit-unassigned] [Bug 22658] New: db.transaction doesn't seem to execute properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 4 13:24:47 PST 2008


           Summary: db.transaction doesn't seem to execute properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://webkit.org/misc/DatabaseExample.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: P1
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: toxicstink at gmail.com

db.transaction seems to skip over its arguments & do nothing.

1. Load <http://webkit.org/misc/DatabaseExample.html>
2. Open the Inspector and switch to the Scripts panel.
3. In DatabaseExample.html place a breakpoint on line 232.
4. In WebKit click the 'New Note' button.
5. In Inspector step through the code & notice that db.transaction(...) is not
properly executed.

The transaction should execute its arguments inserting a new note into the
database, instead it doesn't execute the arguments & nothing is inserted into
the database.  If an error callback is added to the transaction arguments (on a
local copy) it doesn't get called either. ie:

        db.transaction(function (tx)
            tx.executeSql("INSERT INTO WebKitStickyNotes (id, note, timestamp,
left, top, zindex) VALUES (?, ?, ?, ?, ?, ?)", [note.id, note.text,
note.timestamp, note.left, note.top, note.zIndex]);
        function(tx, error) {
          reportError('sql', error.message);

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

More information about the webkit-unassigned mailing list