Bug 39594

Summary: [v8] ScriptDebugServer should dispatch renderer messages while JS is paused
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: Web Inspector (Deprecated)Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, bweinstein, eric, joepeck, keishi, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
none
patch
pfeldman: review+
patch that I'm going to land none

Yury Semikhatsky
Reported 2010-05-24 06:03:50 PDT
[v8] ScriptDebugServer should dispatch renderer messages while JS is paused.
Attachments
patch (34.20 KB, patch)
2010-05-24 06:31 PDT, Yury Semikhatsky
no flags
patch (34.21 KB, patch)
2010-05-24 06:42 PDT, Yury Semikhatsky
pfeldman: review+
patch that I'm going to land (34.31 KB, patch)
2010-05-25 03:05 PDT, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 2010-05-24 06:31:57 PDT
WebKit Review Bot
Comment 2 2010-05-24 06:34:29 PDT
Attachment 56879 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1 WebKit/chromium/src/WebDevToolsAgentImpl.cpp:136: Place brace on its own line for function definitions. [whitespace/braces] [4] WebKit/chromium/src/WebDevToolsAgentImpl.cpp:143: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 3 2010-05-24 06:42:56 PDT
Created attachment 56881 [details] patch Fixed style errors.
Pavel Feldman
Comment 4 2010-05-24 11:33:51 PDT
Comment on attachment 56881 [details] patch WebCore/bindings/js/ScriptDebugServer.cpp:343 + (this->*callback)(copy[i]); Nit: I generally do not use such a reflection in the native code. Having ::dispatchDidContinue or a single event listener class with an event type would be my preference. WebCore/bindings/v8/ScriptDebugServer.h:85 + class ClientMessageLoop { It might be useful to declare it in a separate header to minimize the amount of imports on the client. WebKit/chromium/public/WebDevToolsAgentClient.h:59 + class ClientMessageLoop { Should we name it differently? Like WebKitClientMessageLoop?
Yury Semikhatsky
Comment 5 2010-05-25 03:04:36 PDT
(In reply to comment #4) > WebCore/bindings/v8/ScriptDebugServer.h:85 > + class ClientMessageLoop { > It might be useful to declare it in a separate header to minimize the amount of imports on the client. > ScriptDebugServer.h is included there anyway to set implementation of the loop so I'd rather leave it this way because it emphasizes that the message loop is used from the debugger. > WebKit/chromium/public/WebDevToolsAgentClient.h:59 > + class ClientMessageLoop { > Should we name it differently? Like WebKitClientMessageLoop? Done.
Yury Semikhatsky
Comment 6 2010-05-25 03:05:27 PDT
Created attachment 56999 [details] patch that I'm going to land
Yury Semikhatsky
Comment 7 2010-05-25 04:46:21 PDT
Committed r60154
WebKit Review Bot
Comment 8 2010-05-25 05:01:52 PDT
http://trac.webkit.org/changeset/60154 might have broken Chromium Mac Release
Yury Semikhatsky
Comment 9 2010-05-25 05:32:30 PDT
(In reply to comment #8) > http://trac.webkit.org/changeset/60154 might have broken Chromium Mac Release Fixed in r60155.
Note You need to log in before you can comment on or make changes to this bug.