Bug 974638 - Stylesheet selector should display full href of stylesheet in a tooltip. r=harth
authorSayan Chowdhury <sayan.chowdhury2012@gmail.com>
Fri, 28 Feb 2014 09:20:28 -0500
changeset 171619 e36f5045d2175ba30aa90ef6f471c504e5254fcf
parent 171618 4bc6027f56382ac2b54101b26b643cafecfbfe97
child 171620 963cc574a1003b468bb29c6d48ebe654ba97d939
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersharth
bugs974638
milestone30.0a1
Bug 974638 - Stylesheet selector should display full href of stylesheet in a tooltip. r=harth
browser/devtools/styleeditor/StyleEditorUI.jsm
--- a/browser/devtools/styleeditor/StyleEditorUI.jsm
+++ b/browser/devtools/styleeditor/StyleEditorUI.jsm
@@ -608,16 +608,19 @@ StyleEditorUI.prototype = {
     }
     if (editor.linkedCSSFileError) {
       flags.push("linked-file-error");
     }
     this._view.setItemClassName(summary, flags.join(" "));
 
     let label = summary.querySelector(".stylesheet-name > label");
     label.setAttribute("value", editor.friendlyName);
+    if (editor.styleSheet.href) {
+      label.setAttribute("tooltiptext", editor.styleSheet.href);
+    }
 
     let linkedCSSFile = "";
     if (editor.linkedCSSFile) {
       linkedCSSFile = OS.Path.basename(editor.linkedCSSFile);
     }
     text(summary, ".stylesheet-linked-file", linkedCSSFile);
     text(summary, ".stylesheet-title", editor.styleSheet.title || "");
     text(summary, ".stylesheet-rule-count",