Component: Untriaged → Web Apps
OS: Unspecified → All
Hardware: Unspecified → All
Can you please attach a testcase add-on?
That add-on seems to work as expected for me. In any case, I'd suggest converting the function to a string before passing it to createTextNode. And if you're using functions to inject code into pages like this, it would probably be best to always do something like `"(" + func + ")()"` rather than just injecting the bare function as a top-level function statement.
when "running" the code in the console it seems to work fine (without converting the function) should it be different ? about the self execution - it was just an example :)
Component: WebExtensions: Untriaged → WebExtensions: Developer tools
Priority: P4 → P5
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.