xunshirine wrote:
I managed to compare the subjects by storing them in an array. But is
there a more efficient way to compare them? The code is below.
http://pastebin.com/f549f9db0

You could hash on hostname or something; details depend on what you're doing exactly.

Also why subjects remain same between notifications?

As the documentation clearly says, the subject for on-examine-response and on-modify-request is the nsIHttpChannel. So if it's the same channel, you get the same subject.

Does it mean subjects remain alive till the Firefox shutdowns.

If you never remove things from your array, yes. You presumably want to remove things from the array.

-Boris
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to