In e10s we have to register a content policy directly in frame scripts, but I can't find any example that works. I have tested this code but it only detects when internal resources are loaded, and it gives the following error:
NS_ERROR_FACTORY_EXISTS: Component returned failure code: 0xc1f30100 (NS_ERROR_FACTORY_EXISTS) [nsIComponentRegistrar.registerFactory]
Does someone knows how to do?