Can you please explain how did you block Iframes, did you use nsiContentPolicy or used allowsubframes property?
I would appreciate if you provide the technical details.
-
Hi Tanusha, how are you?
If you're interested in actual implementation, you may open the extension up and look at it for yourself. Our blocking is based on nsIContentPolicy and iframes are blocked using the TYPE_SUBDOCUMENT. -
-
Hi Felix,
Thanks a lot. I have checked out the source code of your extension. Have you written the policies withing the ghostery-content-policy.js itself or some other file?-
All content blocking would be in that file. Detection is separated into the main ghostery.js file.
-
-
-
-
-
Is the shouldload function called from other JS files? Could you please give me some references and links which were useful for you for the task of 'iframe blocking'.
Thanks.-
Tanusha, please read this: https://developer.mozilla.org/en/nsIC...
Generally, MDC is the resource you need to read for anything Firefox related. Content policy, like any other Firefox policy, is a plug-in into the Gecko core, and as such it will be executed by the engine via the registered component/event -- you never explicitly call it yourself. -
-
-
-
Loading Profile...



Twitter,
Facebook, or email.

