Basically, we need to revert http://trac.webkit.org/changeset/54981. I have just talked to Hixie again, and he agreed that we should convert SQLStatementErrorCallback's return value to a boolean, instead of treating false as false, and everything else as true. This means that values such as undefined (no return value), or 0, or "false" will all be treated as false, as a Javascript developer might expect.
Created attachment 51578 [details] patch
Attachment 51578 [details] did not build on chromium: Build output: http://webkit-commit-queue.appspot.com/results/1183025
Created attachment 51587 [details] patch Should fix the Chromium build problems.
Created attachment 51672 [details] patch Same patch, without style errors this time, hopefully.
Comment on attachment 51672 [details] patch ok.
Landed as r56572.
Revision r56572 cherry-picked into qtwebkit-2.0 with commit 9917209df84aa5a739d112570394d9f57e99689b