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,

Geoffrey





---- 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.

 

 

 

 

Thanks,

Sandeep

 

 

 

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,


Geoffrey


 


---- 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  

 

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugzilla.mozilla.org%2Fshow_bug.cgi%3Fid%3D1408996&data=02%7C01%7C%7Cfe24c5989fb145fec1e008d514a5fcc8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636437625509647412&sdata=cdxUr%2BusxSgISmLukPqrEM1PtTSr2mVawM4BIqB6St0%3D&reserved=0

 

 

 

 

 

-sandeep

 


_______________________________________________


Dev-addons mailing list


Dev-addons at mozilla.org


https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.mozilla.org%2Flistinfo%2Fdev-addons&data=02%7C01%7C%7Cfe24c5989fb145fec1e008d514a5fcc8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636437625509647412&sdata=1YoFPKFJjshJ5%2B33klD61%2Fd8UzTUXUf50sLy2%2BynU4s%3D&reserved=0




 




_______________________________________________

Dev-addons mailing list 

Dev-addons at mozilla.org 

https://mail.mozilla.org/listinfo/dev-addons 






-------------- 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