Hello Jan,
I have tried the code. Now the cookie panel is not even
working. I have commited my changes in the repo. Please checkout.
https://github.com/abhiram92/firebug/blob/master/extension/content/firebug/cookies/cookiePanel.js#L464
The row should return the number of cookies and the size too. I think the
problem is with representing it in cookieReps.js
I am struggling with it many hours ago. Yet no result. Thought i could use
some help.
Best,
Abhiram
On Saturday, 7 July 2012 11:14:30 UTC+5:30, Jan Honza Odvarko wrote:
>
> I didn't test is, but try something as follows:
>
> if (!this.table)
> return;
>
> var totalSize = 0;
>
> var rows = this.table.getElementsByClassName("cookieRow");
> for (var i=0; i<rows.length; i++)
> {
> var row = rows[i];
>
> var cookie = Firebug.getRepObject(row);
> if (cookie)
> totalSize += cookie.size;
> }
>
>
> Honza
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug