Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

My Toolbar - On hiding removeprogresslistener is not working properly

6 views
Skip to first unread message

sonu

unread,
Jan 21, 2011, 12:10:15 AM1/21/11
to
Hi,
I have a firefox toolbar and i m handling progress listener in
that.
When i open two browser window,toolbar is displayed perfectly.
On doing right click and unchecking my toolbar in one of the window,i
m removing progress listener. And hence on state change event ,.. will
not be fired.
But when i search some text in another window(where toolbar is
visible) , progress listener is avaliable for that and hence onstate
change event is getting fired.
Because of this action , when i visit the window where toolbar is
hidden, and when i do search , onstate change event is getting fired.
How to check toolbar is visible or not ?
Please help ...

sonu

unread,
Jan 21, 2011, 12:16:44 AM1/21/11
to
From nsIDOMWindow, i got DOM Document and from there i got my toolbar
property "collapsed".
But checking this works only for the first time. When i visit to
another window(toolbar visible) and come back to the window where
toolbar is hidden, it is showing that toolbar is not collapsed.
Is there any other way to get the toolbar shown/ hidden
state ,specific to a window in firefox??

0 new messages