I have researched on Firefox performance when our extension is enabled.
By using the profiler and about:memory, I found out that much memory and CPU time are consumed on structured cloning.
What is happening in this case and how to fix this problem?