How to register a content policy (nsIContentPolicy) in a frame script?

93 Views Asked by At

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?

0

There are 0 best solutions below