Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Issue 1639863003: [websql] Guard against vfs method deprecation. (Closed)

Created:
4 years, 11 months ago by Scott Hess - ex-Googler
Modified:
4 years, 11 months ago
Reviewers:
michaeln
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[websql] Guard against vfs method deprecation. In SQLite 3.10.2, the Unix VFS no longer defines unixCurrentTime(), instead relying on unixCurrentTimeInt64(), which caused a crash in the implementation of chromiumCurrentTime(). Add assertions to verify required infrastructure at instantiation rather than first use. BUG=580948, 579743 R=michaeln@chromium.org Committed: https://crrev.com/d67941884d3faf546e8fae1128ca131c777f5258 Cr-Commit-Position: refs/heads/master@{#371674}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment chromiumGetLastError. #

Patch Set 3 : Switch chromiumGetLastError to successfully return an empty buffer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp View 1 2 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Scott Hess - ex-Googler
Not necessary to fix the bug, but protects against it happening again. Fixing CL separately.
4 years, 11 months ago (2016-01-26 19:27:47 UTC) #1
michaeln
https://codereview.chromium.org/1639863003/diff/1/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp File third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp (right): https://codereview.chromium.org/1639863003/diff/1/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp#newcode161 third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp:161: return SQLITE_ERROR; What's going on with this function? Can ...
4 years, 11 months ago (2016-01-26 21:59:34 UTC) #2
Scott Hess - ex-Googler
Comment chromiumGetLastError.
4 years, 11 months ago (2016-01-26 23:29:32 UTC) #3
Scott Hess - ex-Googler
Switch chromiumGetLastError to successfully return an empty buffer.
4 years, 11 months ago (2016-01-26 23:43:32 UTC) #4
Scott Hess - ex-Googler
https://codereview.chromium.org/1639863003/diff/1/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp File third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp (right): https://codereview.chromium.org/1639863003/diff/1/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp#newcode161 third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp:161: return SQLITE_ERROR; On 2016/01/26 21:59:34, michaeln wrote: > What's ...
4 years, 11 months ago (2016-01-26 23:44:24 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639863003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639863003/40001
4 years, 11 months ago (2016-01-26 23:45:08 UTC) #7
michaeln
thnx, lgtm
4 years, 11 months ago (2016-01-27 00:57:00 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-27 01:07:37 UTC) #11
Scott Hess - ex-Googler
On 2016/01/27 00:57:00, michaeln wrote: > thnx, lgtm Thanks!
4 years, 11 months ago (2016-01-27 01:14:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639863003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639863003/40001
4 years, 11 months ago (2016-01-27 01:15:49 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-27 01:25:12 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 01:26:33 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d67941884d3faf546e8fae1128ca131c777f5258
Cr-Commit-Position: refs/heads/master@{#371674}

Powered by Google App Engine
This is Rietveld 408576698