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

Issue 2634473002: [websql] Filenames are utf-8, not latin1. (Closed)

Created:
3 years, 11 months ago by Scott Hess - ex-Googler
Modified:
3 years, 11 months ago
Reviewers:
michaeln, jsbell
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[websql] Filenames are utf-8, not latin1. From WTFString.h: // Construct a string with latin1 data, from a null-terminated source. String(const char* characters); This is ... not right for this case. Why do we even HAVE that lever? String::fromUTF8() works better. Bug was basically that the above-SQLite code in the webdatabase module converted filenames differently from the below-SQLite code in chromium_vfs, so the above-level code caused the tracker to create things, but the below-level code couldn't find the matching record. BUG=680410 R=jsbell@chromium.org TBR=michaeln@chromium.org Review-Url: https://codereview.chromium.org/2634473002 Cr-Commit-Position: refs/heads/master@{#444435} Committed: https://chromium.googlesource.com/chromium/src/+/713773b46f90f18b194cd10c68a8f9ebacb2e49f

Patch Set 1 #

Patch Set 2 : layout test #

Patch Set 3 : WAT? Windows has WebSQL, too? #

Total comments: 6

Patch Set 4 : final changes? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -11 lines) Patch
A third_party/WebKit/LayoutTests/storage/websql/open-database-utf8-name.html View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/websql/open-database-utf8-name-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp View 4 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemWin.cpp View 1 2 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (20 generated)
Scott Hess - ex-Googler
I didn't add a test because ... we've gotten this far without testing. The chromiumOpenInternal() ...
3 years, 11 months ago (2017-01-13 00:22:21 UTC) #3
Scott Hess - ex-Googler
Also, reviewers chosen as the union of OWNERS and people-on-the-bug-report. Feel free to train me ...
3 years, 11 months ago (2017-01-13 02:52:33 UTC) #6
jsbell
lgtm It seems like this should be pretty easy to test with a layout test ...
3 years, 11 months ago (2017-01-13 17:21:37 UTC) #7
Scott Hess - ex-Googler
layout test
3 years, 11 months ago (2017-01-14 06:46:24 UTC) #8
Scott Hess - ex-Googler
On 2017/01/13 17:21:37, jsbell wrote: > lgtm > > It seems like this should be ...
3 years, 11 months ago (2017-01-14 06:50:27 UTC) #11
Scott Hess - ex-Googler
WAT? Windows has WebSQL, too?
3 years, 11 months ago (2017-01-14 22:27:59 UTC) #14
Scott Hess - ex-Googler
On 2017/01/14 06:50:27, Scott Hess wrote: > On 2017/01/13 17:21:37, jsbell wrote: > > lgtm ...
3 years, 11 months ago (2017-01-14 22:30:09 UTC) #17
jsbell
lgtm again with a couple nits > Mostly I worry about whether adding a test ...
3 years, 11 months ago (2017-01-17 17:29:53 UTC) #20
Scott Hess - ex-Googler
final changes?
3 years, 11 months ago (2017-01-17 20:41:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2634473002/60001
3 years, 11 months ago (2017-01-17 20:42:16 UTC) #24
Scott Hess - ex-Googler
OK, rolling with that, as my changes were minor enough that the waterfall can be ...
3 years, 11 months ago (2017-01-17 20:42:36 UTC) #25
jsbell
On 2017/01/17 20:42:36, Scott Hess wrote: > [I'd test your assertion about Windows default encoding, ...
3 years, 11 months ago (2017-01-17 21:04:52 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/365327)
3 years, 11 months ago (2017-01-18 00:54:04 UTC) #28
Scott Hess - ex-Googler
On 2017/01/18 00:54:04, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-18 01:11:21 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2634473002/60001
3 years, 11 months ago (2017-01-18 01:12:22 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/343761)
3 years, 11 months ago (2017-01-18 01:21:36 UTC) #33
Scott Hess - ex-Googler
On 2017/01/18 01:21:36, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-18 19:11:37 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2634473002/60001
3 years, 11 months ago (2017-01-18 19:12:12 UTC) #36
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 19:17:30 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/713773b46f90f18b194cd10c68a8...

Powered by Google App Engine
This is Rietveld 408576698