WebExtension's IFrame injection fails for www.bbc.com and www.money.cnn.com

geoffreydebelie geoffreydebelie at zoho.com
Mon Oct 16 17:55:02 UTC 2017

That's a correct observation, yes.

Maybe you can join #webextensions on Mozilla IRC to ask for further help with your issue?

Kind regards,


---- On ma, 16 okt 2017 19:52:43 +0200 Sandeep Singh <sandees at adobe.com> wrote ----

Thanks Geoffrey for reverting on this,


I tried the piece of code suggested by you, unfortunately this does not fix the issue, “jQueryPage” remain undefined. ☹



Also, window.wrappedJSObject is used to unwrap DOM’s JS variables created/modified (XRay Vision) by page scripts, so the statement


var jQueryPage = window.wrappedJSObject.jQuery


primarily allows me to use JQuery if defined by some page–script in the webpage , right?


But, in my extension’s manifest.json I have explicity included the jquery library I want the extension to use. And I  would never want that my extension uses some other jQuery defined somewhere else.


Issue is only for these 2 pages www.bbc.com and  www.cnn.money.com , jquery variable $ remains undefined, though in my content script I list the jquery lib file first, followed by the content-script.










From: geoffreydebelie <geoffreydebelie at zoho.com>
 Date: Monday, 16 October 2017 at 8:25 PM
 To: Sandeep Singh <sandees at adobe.com>
 Cc: dev-addons <dev-addons at mozilla.org>, Sachin Soni <ssoni at adobe.com>, Caitlin Neiman <cneiman at mozilla.com>
 Subject: Re: WebExtension's IFrame injection fails for www.bbc.com and www.money.cnn.com


Hi Sandeep,


Did you try something like this?


if(window.wrappedJSObject != null){

        var jQueryPage = window.wrappedJSObject.jQuery; // get the real jQuery, not the fake one

        if(jQueryPage != null){

            // Do something with jQuery, which is now defined as jQueryPage





Kind regards,



---- On ma, 16 okt 2017 15:18:29 +0200 Sandeep Singh <sandees at adobe.com> wrote ----


Hi Folks,



I have been facing this Web Extension issue since long and finally logged a bug, please provide your insights on this  











Dev-addons mailing list

Dev-addons at mozilla.org




Dev-addons mailing list 

Dev-addons at mozilla.org 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/dev-addons/attachments/20171016/637c5bca/attachment.html>

More information about the Dev-addons mailing list