Bug 29196

Summary: wx port is missing several filesystem functions in FileSystemWx.cpp
Product: WebKit Reporter: Kevin Watters <kevinwatters>
Component: WebKit wxAssignee: Kevin Ollivier <kevino>
Status: RESOLVED WONTFIX    
Severity: Normal CC: kevino, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
implements a few FileSystemWx.cpp functions kevino: commit-queue-

Kevin Watters
Reported 2009-09-11 11:32:52 PDT
The wx port is missing a few FileSystemWx.cpp functions, which are prohibiting HTML5 local databases from being created and managed correctly.
Attachments
implements a few FileSystemWx.cpp functions (2.74 KB, patch)
2009-09-11 11:33 PDT, Kevin Watters
kevino: commit-queue-
Kevin Watters
Comment 1 2009-09-11 11:33:54 PDT
Created attachment 39454 [details] implements a few FileSystemWx.cpp functions
Eric Seidel (no email)
Comment 2 2009-09-11 16:48:18 PDT
Comment on attachment 39454 [details] implements a few FileSystemWx.cpp functions This looks fine. Except do you really want to use 0777? 76 return wxFileName::Mkdir(path, 0777, wxPATH_MKDIR_FULL); Wouldn't you want to respect the user's umask? Or at least restrict these to rwx for the user?
Kevin Ollivier
Comment 3 2009-09-13 17:56:05 PDT
Landed in r48344, thanks!(In reply to comment #2) > (From update of attachment 39454 [details]) > This looks fine. Except do you really want to use 0777? > 76 return wxFileName::Mkdir(path, 0777, wxPATH_MKDIR_FULL); > > Wouldn't you want to respect the user's umask? Or at least restrict these to > rwx for the user? Sorry, didn't notice this comment somehow before landing the change. (r48344, BTW) After checking into it, I do see that the POSIX and GTK implementations do set umask to rwx for the user. Whether this is the right behavior for this API or not (vs. respecting the user's umask), I don't know, but it would seem that we run less risk of having unpredictable behavior by doing the same thing as other platforms. I'll leave this ticket open and work up a patch to change it if Kevin W. doesn't beat me to it. ;) Thanks for catching this!
Eric Seidel (no email)
Comment 4 2009-09-18 13:25:35 PDT
Comment on attachment 39454 [details] implements a few FileSystemWx.cpp functions Clearing r+ on this landed change. It would be better to file a new bug to track the new change.
Note You need to log in before you can comment on or make changes to this bug.