Bug 921513 - Use consumeoutsideclicks=false for the debugger panels, r=rcampbell
authorVictor Porof <vporof@mozilla.com>
Fri, 04 Oct 2013 00:36:35 +0300
changeset 149871 3dddea50f41847b1ed1543ce71b4eeff986542db
parent 149777 51b36c5fd45fc39914478dd5c0175bbadf0a5a7f
child 149872 ecb3dbf54f5a51a66a8cbfe78399bf7b71f1473e
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersrcampbell
bugs921513
milestone27.0a1
Bug 921513 - Use consumeoutsideclicks=false for the debugger panels, r=rcampbell
browser/devtools/debugger/debugger-view.js
browser/devtools/debugger/debugger.xul
--- a/browser/devtools/debugger/debugger-view.js
+++ b/browser/devtools/debugger/debugger-view.js
@@ -729,16 +729,17 @@ ResultsPanelContainer.prototype = Herita
     // If the anchor node is not null, create a panel to attach to the anchor
     // when showing the popup.
     if (aNode) {
       if (!this._panel) {
         this._panel = document.createElement("panel");
         this._panel.className = "results-panel";
         this._panel.setAttribute("level", "top");
         this._panel.setAttribute("noautofocus", "true");
+        this._panel.setAttribute("consumeoutsideclicks", "false");
         document.documentElement.appendChild(this._panel);
       }
       if (!this.widget) {
         this.widget = new ListWidget(this._panel);
         this.widget.itemType = "vbox";
         this.widget.itemFactory = this._createItemView;
       }
     }
--- a/browser/devtools/debugger/debugger.xul
+++ b/browser/devtools/debugger/debugger.xul
@@ -353,18 +353,19 @@
         </vbox>
       </hbox>
     </vbox>
   </vbox>
 
   <panel id="searchbox-help-panel"
          level="top"
          type="arrow"
+         position="before_start"
          noautofocus="true"
-         position="before_start">
+         consumeoutsideclicks="false">
     <vbox>
       <hbox>
         <label id="filter-label"/>
       </hbox>
       <label id="searchbox-panel-operators"
              value="&debuggerUI.searchPanelOperators;"/>
       <hbox align="center">
         <button id="global-operator-button"
@@ -400,30 +401,31 @@
                 command="variableSearchCommand"/>
         <label id="variable-operator-label"
                class="plain searchbox-panel-operator-label"/>
       </hbox>
     </vbox>
   </panel>
 
   <panel id="conditional-breakpoint-panel"
-         hidden="true"
          level="top"
          type="arrow"
-         noautofocus="true">
+         noautofocus="true"
+         consumeoutsideclicks="false">
     <vbox>
       <label id="conditional-breakpoint-panel-description"
              value="&debuggerUI.condBreakPanelTitle;"/>
       <textbox id="conditional-breakpoint-panel-textbox"/>
     </vbox>
   </panel>
 
   <panel id="resumption-order-panel"
          type="arrow"
+         position="before_start"
          noautofocus="true"
-         position="before_start">
+         consumeoutsideclicks="false">
     <hbox align="start">
       <image class="alert-icon"/>
       <label id="resumption-panel-desc" class="description"/>
     </hbox>
   </panel>
 
 </window>