Bug 774220 - Script URLs should appear in tooltips even when the menu list is not open; r=past
authorVictor Porof <vporof@mozilla.com>
Wed, 18 Jul 2012 09:42:51 +0300
changeset 102875 48a7ba394c0ac315503acc5500cda96492ad7619
parent 102874 c55c28ca8d048a008147025977133d1997530fd6
child 102876 486fd8f6d29d556c934b2284c7fd2fb7c8ed1030
push idunknown
push userunknown
push dateunknown
reviewerspast
bugs774220
milestone17.0a1
Bug 774220 - Script URLs should appear in tooltips even when the menu list is not open; r=past
browser/devtools/debugger/debugger-view.js
--- a/browser/devtools/debugger/debugger-view.js
+++ b/browser/devtools/debugger/debugger-view.js
@@ -423,16 +423,17 @@ ScriptsView.prototype = {
    */
   _onScriptsChange: function DVS__onScriptsChange() {
     let selectedItem = this._scripts.selectedItem;
     if (!selectedItem) {
       return;
     }
 
     this._preferredScript = selectedItem;
+    this._scripts.setAttribute("tooltiptext", selectedItem.value);
     DebuggerController.SourceScripts.showScript(selectedItem.getUserData("sourceScript"));
   },
 
   /**
    * The search listener for the scripts search box.
    */
   _onScriptsSearch: function DVS__onScriptsSearch(e) {
     let editor = DebuggerView.editor;