[Project_owners] Using nsIWebBrowserStream

Matthew Wilson matthew at mjwilson.demon.co.uk
Tue Jun 9 10:33:16 PDT 2009

Pete wrote:
> 2009/6/8 Matthew Wilson <matthew at mjwilson.demon.co.uk>:
>> I needed to do something similar. I assume you want to prevent security
>> bypasses from the untrusted content.
>> My eventual solution was far from elegant but worked OK: to create a "data:"
>> URL containing the encoded form of the document, then to use
>> document.getElementById("xxx").webNavigation.loadURI with that URL.
>> This might also be of help:
>> http://adblockplus.org/blog/displaying-web-content-in-an-extension-without-security-issues
> Perfect - thanks Matthew, that is exactly what I was looking for.
> I'd highly recommend that article to anyone wanting to display
> untrusted content in an extension.

It was also copied to MDC, which I guess is probably a better place to 
look going forwards:



More information about the Project_owners mailing list