Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Issue 5569 (Cookies shown in Console when other filter is selected)

  • Loading branch information...
commit 32ff217c278703f876ac9e89288b154e55ed399e 1 parent f9722c1
Sebastian Zartner authored June 16, 2012
3  extension/content/firebug/console/consolePanel.js
@@ -298,6 +298,9 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
298 298
     setFilter: function(filterTypes)
299 299
     {
300 300
         var panelNode = this.panelNode;
  301
+
  302
+        Events.dispatch(this.fbListeners, "onFilterSet", [logTypes]);
  303
+
301 304
         for (var type in logTypes)
302 305
         {
303 306
             // Different types of errors and warnings are combined for filtering
14  extension/content/firebug/cookies/cookiePanel.js
@@ -84,12 +84,19 @@ CookiePanel.prototype = Obj.extend(Firebug.ActivablePanel,
84 84
 
85 85
         Firebug.ActivablePanel.initialize.apply(this, arguments);
86 86
 
  87
+        Firebug.ConsolePanel.prototype.addListener(this);
  88
+
87 89
         // Just after the initialization, so the this.document member is set.
88 90
         Firebug.CookieModule.addStyleSheet(this);
89 91
 
90 92
         this.refresh();
91 93
     },
92 94
 
  95
+    shutdown: function()
  96
+    {
  97
+        Firebug.ConsolePanel.prototype.removeListener(this);
  98
+    },
  99
+
93 100
     /**
94 101
      * Renders list of cookies displayed within the Cookies panel.
95 102
      */
@@ -445,6 +452,13 @@ CookiePanel.prototype = Obj.extend(Firebug.ActivablePanel,
445 452
     },
446 453
 
447 454
     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  455
+    // Console Panel Listeners
  456
+    onFilterSet: function(logTypes)
  457
+    {
  458
+        logTypes.cookies = 1;
  459
+    },
  460
+
  461
+    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
448 462
     // Panel Activation
449 463
 
450 464
     onActivationChanged: function(enable)

0 notes on commit 32ff217

Please sign in to comment.
Something went wrong with that request. Please try again.