[Webkit-unassigned] [Bug 45982] Web Inspector: FileSystem integration

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 25 12:04:23 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=45982


Pavel Feldman <pfeldman at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #71519|review?, commit-queue?      |review-
               Flag|                            |




--- Comment #22 from Pavel Feldman <pfeldman at chromium.org>  2010-10-25 12:04:22 PST ---
(From update of attachment 71519)
View in context: https://bugs.webkit.org/attachment.cgi?id=71519&action=review

>> WebCore/inspector/InspectorFileSystemAgent.cpp:125
>> +void InspectorFileSystemAgent::getFileSystemPathAsync(unsigned int type, const String& domain)
> 
> Since file systems are per security origin, should the second param be a const SecurityOrigin& ?

@Michael: You can't pass SecurityOrigin to/from front-end, so passing domain is our best guess here.

> WebCore/inspector/InspectorFileSystemAgent.cpp:138
> +        // FIXME: Change this to iterate over all frames to match domain when UI supports

I really don't see point in not supporting non-main frame domain since it is fairly trivial. All you need is to traverse the frame tree (using mainFrame()->tree()->traverseNext) and pick appropriate instance.

>> WebCore/inspector/Inspector.idl:229
>> +        [notify] void didGetFileSystemError(out int type);
> 
> To summarize these interface changes...
> 
>          [handler=FileSystem] void getFileSystemPathAsync(in unsigned int type, in String securityOrigin);
>          [handler=FileSystem] void revealFolderInOS(in String path);
>          [notify] void didGetFileSystemPath(out String rootPath, out int type, String securityOrigin);
>          [notify] void didGetFileSystemError(out int type, String securityOrigin);
> 
> I'm not familiar with these IDL annotations as applied to the inspector. Is 'out' correct on those method arguments?

@Michael: The problem with querying by security origin is that you need to push it to the front-end first.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list