On 10/6/16 9:47 AM, webseiten.designer@googlemail.com wrote:
> Hello,
>
> 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?
>
> Regards
>
That sounds like a bug that should be reported here:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Toolkit&component=WebExtensions
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?
Jorge