RESOLVED FIXED 64379
Web Inspector: do not pause on caught exceptions while typing in the console.
https://bugs.webkit.org/show_bug.cgi?id=64379
Summary Web Inspector: do not pause on caught exceptions while typing in the console.
Pavel Feldman
Reported 2011-07-12 12:04:38 PDT
If user has pauseOnExceptions set to "uncaught", typing in the console may stop in the injected script. Should not.
Attachments
Patch (10.96 KB, patch)
2011-07-12 12:36 PDT, Pavel Feldman
no flags
Patch (11.68 KB, patch)
2011-07-18 01:46 PDT, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2011-07-12 12:36:47 PDT
WebKit Review Bot
Comment 2 2011-07-12 12:39:58 PDT
Attachment 100539 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InspectorRuntimeAgent.h:56: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.cpp:60: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yury Semikhatsky
Comment 3 2011-07-13 05:50:35 PDT
Comment on attachment 100539 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100539&action=review r- as WorkerInspectoController also needs change. > Source/WebCore/inspector/InspectorController.cpp:132 > + m_runtimeAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer()); Let's pass reference to ScriptDebugServer into the InspectorRuntimeAgent constructor. This way compiler will check all call sites and ensure that ScriptDebugServer is never null.
Yury Semikhatsky
Comment 4 2011-07-13 05:52:12 PDT
Comment on attachment 100539 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=100539&action=review > Source/WebCore/inspector/InspectorRuntimeAgent.cpp:42 > +#if ENABLE(JAVASCRIPT_DEBUGGER) No need to embrace #include wtih #if ENABLE guard.
Pavel Feldman
Comment 5 2011-07-14 09:26:40 PDT
(In reply to comment #3) > (From update of attachment 100539 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=100539&action=review > > r- as WorkerInspectoController also needs change. > > > Source/WebCore/inspector/InspectorController.cpp:132 > > + m_runtimeAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer()); > > Let's pass reference to ScriptDebugServer into the InspectorRuntimeAgent constructor. This way compiler will check all call sites and ensure that ScriptDebugServer is never null. There are two ancestors of runtime agent (Page and Worker). Doing what you suggest will add ifdefs into three corresponding classes. It will also make their constructors receive different parameters depending on the DEBUGGER definition. It all kills readability.
Pavel Feldman
Comment 6 2011-07-18 01:46:09 PDT
WebKit Review Bot
Comment 7 2011-07-18 01:48:37 PDT
Attachment 101138 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/inspector/InspectorRuntimeAgent.h:56: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InspectorRuntimeAgent.cpp:60: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Pavel Feldman
Comment 8 2011-07-18 02:09:51 PDT
Pavel Feldman
Comment 9 2011-07-18 02:42:51 PDT
*** Bug 64684 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.