Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 32ff217c278703f876ac9e89288b154e55ed399e 1 parent f9722c1
Sebastian Zartner SebastianZ authored
3  extension/content/firebug/console/consolePanel.js
View
@@ -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
14 extension/content/firebug/cookies/cookiePanel.js
View
@@ -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.
*/
@@ -445,6 +452,13 @@ CookiePanel.prototype = Obj.extend(Firebug.ActivablePanel,
},
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ // Console Panel Listeners
+ onFilterSet: function(logTypes)
+ {
+ logTypes.cookies = 1;
+ },
+
+ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// Panel Activation
onActivationChanged: function(enable)
Please sign in to comment.
Something went wrong with that request. Please try again.