Bug 43900

Summary: Web Inspector: allow interrupting long running JS to execute inspector command
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, dglazkov, joepeck, keishi, loislo, mnaganov, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 41706    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Yury Semikhatsky
Reported 2010-08-12 01:50:14 PDT
Web Inspector: allow interrupting long running JS to execute inspector command
Attachments
Patch (11.37 KB, patch)
2010-08-12 03:11 PDT, Yury Semikhatsky
no flags
Patch (18.76 KB, patch)
2010-08-12 07:21 PDT, Yury Semikhatsky
no flags
Patch (20.72 KB, patch)
2010-08-12 07:38 PDT, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 2010-08-12 03:11:22 PDT
Ilya Tikhonovsky
Comment 2 2010-08-12 03:22:17 PDT
Comment on attachment 64201 [details] Patch WebKit/chromium/src/WebDevToolsAgentImpl.cpp:479 + bool WebDevToolsAgent::shouldInterruptForMessage(const WebString& message) It would be better to move parsing part of the method to InspectorBackendDispatcher.
Yury Semikhatsky
Comment 3 2010-08-12 03:35:04 PDT
(In reply to comment #2) > (From update of attachment 64201 [details]) > WebKit/chromium/src/WebDevToolsAgentImpl.cpp:479 > + bool WebDevToolsAgent::shouldInterruptForMessage(const WebString& message) > It would be better to move parsing part of the method to InspectorBackendDispatcher. Will do. Also I'm going to generate constant declarations for the commands on InspectorBackendDispatcher.h
Pavel Feldman
Comment 4 2010-08-12 03:52:06 PDT
Comment on attachment 64201 [details] Patch Rename the web* methods please.
Yury Semikhatsky
Comment 5 2010-08-12 07:21:46 PDT
Ilya Tikhonovsky
Comment 6 2010-08-12 07:29:39 PDT
Comment on attachment 64219 [details] Patch WebCore/inspector/CodeGeneratorInspector.pm:312 + push(@function, " const char* backendFunctionName = ${functionName}Cmd;"); it would be better to use ${functionName}Cmd directly WebCore/inspector/CodeGeneratorInspector.pm:462 + if (array->length() < 1) !array->length()
WebKit Review Bot
Comment 7 2010-08-12 07:30:06 PDT
Yury Semikhatsky
Comment 8 2010-08-12 07:38:15 PDT
Yury Semikhatsky
Comment 9 2010-08-12 07:38:57 PDT
(In reply to comment #6) > (From update of attachment 64219 [details]) > WebCore/inspector/CodeGeneratorInspector.pm:312 > + push(@function, " const char* backendFunctionName = ${functionName}Cmd;"); > it would be better to use ${functionName}Cmd directly > Done. > WebCore/inspector/CodeGeneratorInspector.pm:462 > + if (array->length() < 1) > !array->length() Done.
WebKit Review Bot
Comment 10 2010-08-12 09:13:01 PDT
Pavel Feldman
Comment 11 2010-08-12 22:41:55 PDT
Comment on attachment 64223 [details] Patch This breaks chromium, other than that it is Ok.
Pavel Feldman
Comment 12 2010-08-12 22:46:39 PDT
Comment on attachment 64223 [details] Patch r- for not compiling on chromium.
Yury Semikhatsky
Comment 13 2010-08-12 23:31:14 PDT
(In reply to comment #12) > (From update of attachment 64223 [details]) > r- for not compiling on chromium. It successfully compiled on Chromium checkout on my linux box. It might be a bot issue.
Pavel Feldman
Comment 14 2010-08-12 23:32:32 PDT
Comment on attachment 64223 [details] Patch r+ if you are saying it is a bot issue.
Yury Semikhatsky
Comment 15 2010-08-13 00:08:53 PDT
Committed r65304
Note You need to log in before you can comment on or make changes to this bug.