I'm writing a firefox addon that logs certain user activity and displays some statistics on a webpage.
When the page is opened, the page sends an event to the addon. The addon adds data to the page and sends an event back, and the page refreshes the statistics.
Now how do I ensure that the extension only puts the (sensitive) data on the right page and not some other malicious one?
Thanks V