some webpage will be auto-reloaded after fixed time period or user may reload a page by themselves, but the URL in the URL bar is the same. If I write a XPCOM component and hooked into mozilla, what kind of event I should listen to so that I can differentiate this is a reload URL?
So what exactly are you trying to detect? If the user clicks in the URL bar, is that a reload from your point of view? Or it is only a reload if the reload button is pressed?
Do you want to detect all meta refreshes, or only those to the same page?
Another question is about popup window. Is there a way I can tell a window is a popup window, not a ordinary mozilla window?
Well, if it has window.parent then it was opened by javascript....
There is now code in nsGlobalWindow to keep track of whether the window is a popup; I suppose we could add accessors to get at this data.
And also is there a way I can let mozilla not open the popup window?
I'm not sure whether the relevant code has the necessary hooks for that... see nsGlobalWindow.cpp (search for FireAbuseEvents) and if it doesn't file a bug requesting them?
-Boris _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
