RESOLVED FIXED 90592
Web Inspector: Clean up FileSystem related code
https://bugs.webkit.org/show_bug.cgi?id=90592
Summary Web Inspector: Clean up FileSystem related code
Taiju Tsuiki
Reported 2012-07-05 01:44:03 PDT
FileSystem related code in Inspector needs some clean up as follows - Clean up layout tests and add test case for error case, - Fix error handling on request, - s/GetFileSystemRootTask/FileSystemRootRequest/g - s/ReadDirectoryTask/DirectoryContentRequest/g - s/ReadFileTask/FileContentRequest/g
Attachments
Patch (53.05 KB, patch)
2012-07-05 01:50 PDT, Taiju Tsuiki
no flags
Patch (53.40 KB, patch)
2012-07-10 22:36 PDT, Taiju Tsuiki
no flags
Patch (54.30 KB, patch)
2012-07-10 22:45 PDT, Taiju Tsuiki
no flags
Patch (54.24 KB, patch)
2012-07-10 23:18 PDT, Taiju Tsuiki
vsevik: review+
webkit.review.bot: commit-queue-
Taiju Tsuiki
Comment 1 2012-07-05 01:50:51 PDT
Vsevolod Vlasov
Comment 2 2012-07-07 01:07:58 PDT
Comment on attachment 150892 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150892&action=review Please rebase and fix style nits before landing. > Source/WebCore/inspector/InspectorFileSystemAgent.cpp:195 > + RefPtr<TypeBuilder::FileSystem::Entry> result = RefPtr<TypeBuilder::FileSystem::Entry> result = TypeBuilder::FileSystem::Entry::create() .setUrl(entry->toURL()) .setName("/") .setIsDirectory(true); > Source/WebCore/inspector/InspectorFileSystemAgent.cpp:303 > + RefPtr<TypeBuilder::FileSystem::Entry> entryForFrontend = Ditto. > Source/WebCore/inspector/InspectorFileSystemAgent.cpp:407 > + RefPtr<Metadata> result = Ditto. > Source/WebCore/inspector/InspectorFileSystemAgent.cpp:594 > + *error = "No frame is available for the request"; You can avoid copy-pasting this string several times by extracting assertScriptExecutionContextForOrigin method (like assertDocumentLoader in InspectorPageAgent). > Source/WebCore/inspector/InspectorFileSystemAgent.cpp:664 > + long long startLL = start ? *start : 0; startPosition
Taiju Tsuiki
Comment 3 2012-07-10 22:36:22 PDT
Taiju Tsuiki
Comment 4 2012-07-10 22:45:28 PDT
Taiju Tsuiki
Comment 5 2012-07-10 23:18:33 PDT
Taiju Tsuiki
Comment 6 2012-07-10 23:19:00 PDT
Comment on attachment 150892 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150892&action=review >> Source/WebCore/inspector/InspectorFileSystemAgent.cpp:195 >> + RefPtr<TypeBuilder::FileSystem::Entry> result = > > RefPtr<TypeBuilder::FileSystem::Entry> result = TypeBuilder::FileSystem::Entry::create() > .setUrl(entry->toURL()) > .setName("/") > .setIsDirectory(true); Done >> Source/WebCore/inspector/InspectorFileSystemAgent.cpp:303 >> + RefPtr<TypeBuilder::FileSystem::Entry> entryForFrontend = > > Ditto. Done >> Source/WebCore/inspector/InspectorFileSystemAgent.cpp:407 >> + RefPtr<Metadata> result = > > Ditto. Done >> Source/WebCore/inspector/InspectorFileSystemAgent.cpp:594 >> + *error = "No frame is available for the request"; > > You can avoid copy-pasting this string several times by extracting assertScriptExecutionContextForOrigin method (like assertDocumentLoader in InspectorPageAgent). Sounds nice. Done >> Source/WebCore/inspector/InspectorFileSystemAgent.cpp:664 >> + long long startLL = start ? *start : 0; > > startPosition Done
WebKit Review Bot
Comment 7 2012-07-11 00:22:26 PDT
Comment on attachment 151608 [details] Patch Rejecting attachment 151608 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: t/git/webkit-commit-queue/Source/WebKit/chromium/v8 --revision 11988 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 47>At revision 11988. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output: http://queues.webkit.org/results/13200229
Kinuko Yasuda
Comment 8 2012-07-11 02:05:00 PDT
Note You need to log in before you can comment on or make changes to this bug.