diff --git a/browser/devtools/highlighter/inspector.jsm b/browser/devtools/highlighter/inspector.jsm index 43acd387db2b..3008e03b6f83 100644 --- a/browser/devtools/highlighter/inspector.jsm +++ b/browser/devtools/highlighter/inspector.jsm @@ -896,6 +896,10 @@ InspectorUI.prototype = { this.inspectCommand.setAttribute("checked", "false"); this.inspecting = false; + + if (this.closing) + return; + if (this.highlighter.getNode()) { this.select(this.highlighter.getNode(), true, !aPreventScroll); } else {