From 9343d005ddfa29a407269f8a3f778cfd4c30217b Mon Sep 17 00:00:00 2001 From: Girish Sharma Date: Thu, 17 Jan 2013 20:51:24 +0530 Subject: [PATCH] Bug 795239 - [markup panel] Clicking on the closing tag should select the node, r=paul --- browser/devtools/markupview/MarkupView.jsm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser/devtools/markupview/MarkupView.jsm b/browser/devtools/markupview/MarkupView.jsm index 19d5cea4bf7..7ad119c8e4e 100644 --- a/browser/devtools/markupview/MarkupView.jsm +++ b/browser/devtools/markupview/MarkupView.jsm @@ -784,6 +784,9 @@ function MarkupContainer(aMarkupView, aNode) }.bind(this), false); if (this.editor.closeElt) { + this.editor.closeElt.addEventListener("mousedown", function(evt) { + this.markup.navigate(this); + }.bind(this), false); this.codeBox.appendChild(this.editor.closeElt); }