Changeset 34011 in webkit


Ignore:
Timestamp:
May 21, 2008 10:59:24 PM (16 years ago)
Author:
Adam Roben
Message:

Fix Bug 19173: Tool tips for Inspector debugger status bar buttons are wrong/missing

<https://bugs.webkit.org/show_bug.cgi?id=19173>

Reviewed by Tim Hatcher.

  • manual-tests/inspector/debugger-status-bar-buttons-state.html: Added.
  • page/inspector/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._toggleDebugging): Call _clearInterface (which updates the buttons' tool tips) after attaching/detaching the debugger so that the buttons will reflect the new state. (WebInspector.ScriptsPanel.prototype._updatePauseOnExceptionsButton): Set the title of the pauseOnExceptionsButton, not the debuggingButton.
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r34010 r34011  
     12008-05-21  Adam Roben  <aroben@apple.com>
     2
     3        Fix Bug 19173: Tool tips for Inspector debugger status bar buttons are
     4        wrong/missing
     5
     6        <https://bugs.webkit.org/show_bug.cgi?id=19173>
     7
     8        Reviewed by Tim Hatcher.
     9
     10        * manual-tests/inspector/debugger-status-bar-buttons-state.html:
     11        Added.
     12        * page/inspector/ScriptsPanel.js:
     13        (WebInspector.ScriptsPanel.prototype._toggleDebugging): Call
     14        _clearInterface (which updates the buttons' tool tips) after
     15        attaching/detaching the debugger so that the buttons will reflect the
     16        new state.
     17        (WebInspector.ScriptsPanel.prototype._updatePauseOnExceptionsButton):
     18        Set the title of the pauseOnExceptionsButton, not the debuggingButton.
     19
    1202008-05-20  Adam Roben  <aroben@apple.com>
    221
  • trunk/WebCore/page/inspector/ScriptsPanel.js

    r33527 r34011  
    545545    {
    546546        if (InspectorController.pauseOnExceptions()) {
    547             this.debuggingButton.title = WebInspector.UIString("Pause on exceptions.");
     547            this.pauseOnExceptionButtons.title = WebInspector.UIString("Pause on exceptions.");
    548548            this.pauseOnExceptionButtons.addStyleClass("toggled-on");
    549549        } else {
    550             this.debuggingButton.title = WebInspector.UIString("Don't pause on exceptions.");
     550            this.pauseOnExceptionButtons.title = WebInspector.UIString("Don't pause on exceptions.");
    551551            this.pauseOnExceptionButtons.removeStyleClass("toggled-on");
    552552        }
     
    608608        this._stepping = false;
    609609
    610         this._clearInterface();
    611 
    612610        if (InspectorController.debuggerAttached()) {
    613611            this.element.appendChild(this.attachOverlayElement);
     
    617615            InspectorController.startDebuggingAndReloadInspectedPage();
    618616        }
     617
     618        this._clearInterface();
    619619    },
    620620
Note: See TracChangeset for help on using the changeset viewer.