Permalink
Browse files

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

  • Loading branch information...
SebastianZ committed Jun 15, 2012
1 parent f9722c1 commit 32ff217c278703f876ac9e89288b154e55ed399e
@@ -298,6 +298,9 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
setFilter: function(filterTypes)
{
var panelNode = this.panelNode;
+
+ Events.dispatch(this.fbListeners, "onFilterSet", [logTypes]);
+
for (var type in logTypes)
{
// Different types of errors and warnings are combined for filtering
@@ -84,12 +84,19 @@ CookiePanel.prototype = Obj.extend(Firebug.ActivablePanel,
Firebug.ActivablePanel.initialize.apply(this, arguments);
+ Firebug.ConsolePanel.prototype.addListener(this);
+
// Just after the initialization, so the this.document member is set.
Firebug.CookieModule.addStyleSheet(this);
this.refresh();
},
+ shutdown: function()
+ {
+ Firebug.ConsolePanel.prototype.removeListener(this);
+ },
+
/**
* Renders list of cookies displayed within the Cookies panel.
*/
@@ -444,6 +451,13 @@ CookiePanel.prototype = Obj.extend(Firebug.ActivablePanel,
Locale.$STR("cookies.Break On Cookie"));
},
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ // Console Panel Listeners
+ onFilterSet: function(logTypes)
+ {
+ logTypes.cookies = 1;
+ },
+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// Panel Activation

0 comments on commit 32ff217

Please sign in to comment.