RESOLVED FIXED 93933
Web Inspector: Completion events of InspectorFileSystemAgent should be fired asynchronously.
https://bugs.webkit.org/show_bug.cgi?id=93933
Summary Web Inspector: Completion events of InspectorFileSystemAgent should be fired ...
Taiju Tsuiki
Reported 2012-08-13 22:44:14 PDT
Some completion events of InspectorFileSystemAgent commands are fired too early on error case. We should wait the command passes its request ID to JS.
Attachments
Patch (16.09 KB, patch)
2012-08-13 23:18 PDT, Taiju Tsuiki
no flags
Patch (16.67 KB, patch)
2012-08-17 00:46 PDT, Taiju Tsuiki
no flags
Taiju Tsuiki
Comment 1 2012-08-13 23:18:32 PDT
Taiju Tsuiki
Comment 2 2012-08-16 01:25:53 PDT
Let me add explanation for this patch. In short, we shouldn't call Frontend::directoryContentReceived in Agent::requestDirectoryContent. For example, the process flow of requestDirectoryContent is as follows: 1. front-end calls Agent::requestDirectoryContent, 2. Agent kicks DirectoryContentRequest task, 3. Agent returns requestId to front-end through requestAccepted, 4. front-end associates requestId with callback, 5. Agent fires directoryContentReceived event with requestId. 6. front-end fires the callback according to requestId. That is, requestId is not associated with callback at 2., so if we fire directoryContentReceived in 2. before Agent::requestDirectoryContent returns, front-end can't find which callback should be called.
Taiju Tsuiki
Comment 3 2012-08-16 01:29:16 PDT
To be more concrete, if front-end calls requestDirectoryContent with invalid URL, directoryContentReceived will be fired before requestAccepted.
Taiju Tsuiki
Comment 4 2012-08-17 00:46:41 PDT
WebKit Review Bot
Comment 5 2012-08-21 15:29:05 PDT
Comment on attachment 159029 [details] Patch Clearing flags on attachment: 159029 Committed r126195: <http://trac.webkit.org/changeset/126195>
WebKit Review Bot
Comment 6 2012-08-21 15:29:10 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.