<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 17, 2015 at 8:48 AM, Dave Townsend <span dir="ltr"><<a href="mailto:dtownsend@mozilla.com" target="_blank">dtownsend@mozilla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Extensions should be able to do this just fine, look up<br>
content_scripts in web extensions or page-mod for an SDK extension.<br></blockquote><div><br></div><div>You'll still get Xray wrappers in these cases. Peter, your comment that "I believe this is not possible with extensions, which have their own sand-boxed DOM" makes it sounds like you don't want Xray wrappers around DOM objects? If that's true, it might help to say more about what you need.<br><br></div><div>WebExtensions should now allow you to inject <script> elements directly into web pages. You won't get wrappers in this case.<br></div><div><br></div><div>-Bill<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div class="h5"><br>
On Thu, Dec 17, 2015 at 1:19 AM, Peter Snyder <<a href="mailto:psnyde2@uic.edu">psnyde2@uic.edu</a>> wrote:<br>
> I am grad student at University of Illinois at Chicago working on the<br>
> Firefox code base for some research we're conducting on how and when and<br>
> why DOM features are used in the wild.<br>
><br>
> Specifically, we're interested in injecting code into each page visited<br>
> by our custom builds of Firefox. This JS needs to be able to manipulate<br>
> the same DOM the page sees. Our goal is to basically just stick a<br>
> script tag into the top of the <head> element in each page.<br>
><br>
> I believe this is not possible with extensions, which have their own<br>
> sand-boxed DOM.<br>
><br>
> Our previous approach used a MITM proxy to inject the JS, which worked<br>
> ok, but broke some functionality (ex websockets), and it seems like<br>
> there might be a less clumsy way to do so from the client.<br>
><br>
> If anyone one has any suggestions on where in the code / page rendering<br>
> process we might want to focus to do this code injection in our custom<br>
> builds, it would be a huge help and greatly appreciated!<br>
><br>
> Sincerely,<br>
> Pete Snyder<br>
> ---<br>
> PhD Student<br>
> University of Illinois at Chicago<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> firefox-dev mailing list<br>
> <a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
> <a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a><br>
><br>
_______________________________________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a><br>
</blockquote></div><br></div></div>