Bug 47519 - [FileSystem] Add ability to pass a bool to create or not create root path while opening filesystem.
Summary: [FileSystem] Add ability to pass a bool to create or not create root path whi...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-11 17:03 PDT by Kavita Kanetkar
Modified: 2010-10-12 16:56 PDT (History)
8 users (show)

See Also:


Attachments
patch (8.80 KB, patch)
2010-10-11 18:29 PDT, Kavita Kanetkar
no flags Details | Formatted Diff | Diff
patch2 (2.57 KB, patch)
2010-10-12 14:48 PDT, Kavita Kanetkar
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kavita Kanetkar 2010-10-11 17:03:39 PDT
Currently FileSyetem will create root path of the file system if one does not exist. There are cases such as Inspector opening the file system.
In these cases we do not want to create the file system root paths.
Comment 1 Kavita Kanetkar 2010-10-11 18:29:56 PDT
Created attachment 70508 [details]
patch
Comment 2 Dumitru Daniliuc 2010-10-12 11:02:55 PDT
Comment on attachment 70508 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=70508&action=review

> WebKit/chromium/src/LocalFileSystemChromium.cpp:71
> +        webWorker->openFileSystem(static_cast<WebFileSystem::Type>(type), size, create, new WebFileSystemCallbacksImpl(callbacks, context, synchronous), create, synchronous);

why do we need to pass the 'create' arg twice?
Comment 3 Kavita Kanetkar 2010-10-12 14:48:25 PDT
Created attachment 70565 [details]
patch2

Simplified this. Added new method so that chromium uses them. Will upload another patch for WebCore to use new method signatures.
Thanks for the review.
Comment 4 Dumitru Daniliuc 2010-10-12 14:49:38 PDT
Comment on attachment 70565 [details]
patch2

View in context: https://bugs.webkit.org/attachment.cgi?id=70565&action=review

r=me.

> WebKit/chromium/ChangeLog:5
> +        [FileSystem] Add ability to pass a bool to create or not create root path while opening filesystem.

please update description.
Comment 5 Dumitru Daniliuc 2010-10-12 14:51:27 PDT
Comment on attachment 70565 [details]
patch2

oops, ignore my comment. cq+'ing.
Comment 6 WebKit Commit Bot 2010-10-12 15:06:05 PDT
Comment on attachment 70565 [details]
patch2

Clearing flags on attachment: 70565

Committed r69609: <http://trac.webkit.org/changeset/69609>
Comment 7 WebKit Commit Bot 2010-10-12 15:06:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 WebKit Review Bot 2010-10-12 16:09:28 PDT
http://trac.webkit.org/changeset/69609 might have broken Chromium Win Release
Comment 9 Eric Seidel (no email) 2010-10-12 16:56:07 PDT
enums are always better than bools.