Bring the Web Inspector forward when the debugger pauses.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jun 2008 16:39:58 +0000 (16:39 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jun 2008 16:39:58 +0000 (16:39 +0000)
        https://bugs.webkit.org/show_bug.cgi?id=19095

        Reviewed by Darin Adler.

        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.debuggerPaused): Call window.focus() and
        make the Scripts panel the current panel.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34306 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/inspector/ScriptsPanel.js

index c129e99..4b3ff45 100644 (file)
@@ -1,3 +1,15 @@
+2008-06-02  Timothy Hatcher  <timothy@apple.com>
+
+        Bring the Web Inspector forward when the debugger pauses.
+
+        https://bugs.webkit.org/show_bug.cgi?id=19095
+
+        Reviewed by Darin Adler.
+
+        * page/inspector/ScriptsPanel.js:
+        (WebInspector.ScriptsPanel.prototype.debuggerPaused): Call window.focus() and
+        make the Scripts panel the current panel.
+
 2008-06-02  Jan Michael Alonzo  <jmalonzo@webkit.org>
 
         Reviewed by Alp Toker.
index e51c52c..d24e6f7 100644 (file)
@@ -304,6 +304,9 @@ WebInspector.ScriptsPanel.prototype = {
         var currentFrame = InspectorController.currentCallFrame();
         callStackPane.update(currentFrame);
         callStackPane.selectedCallFrame = currentFrame;
+
+        WebInspector.currentPanel = this;
+        window.focus();
     },
 
     debuggerAttached: function()