On 10/6/16 9:47 AM, firstname.lastname@example.org wrote:
> I wrote a web extension that uses content scripts exclusively. Unlike Chrome, the scripts are injected into existing tabs when enabling the extension. This leads to CSS and HTML fragments to be added twice by my script if someone enables-disables-enables the extension. Since I (presumably) can't tidy up when the extension gets disabled, is there a way of disabling this behavior?
That sounds like a bug that should be reported here:
And to give more of an answer, can't your script detect that it has
already acted on a page in order to avoid duplication?