Hello,

There are many cases when the embedder has the data that they want to 
display in a new window.  You could use a data url, but a deadlock will 
occur if the data url has more than 1mb of data.  We should fix this 
deadlock, but the point of the matter is that creating a data url is 
totally insane for this kind of thing!  The embeder shouldn't have to 
buffer all of their content then pass it as a string to Gecko.  
Unfortunately, I do not think that there is better way to create new 
window if you already have the data.  :-(  Show me the way if i missed 
something.

To fix this, I want the window watcher to be able to accept a 
nsIInputStream when opening a new window.  Adding a new interface which 
has this method would be ideal:

nsIDOMWindow openWindowFromStream(in nsIDOMWindow aParent, in 
nsIInputStream aStream, in string aName, in string aFeatures, in 
nsISupports aArguments);

This new interface would be qi'able from the current nsIWindowWatcher. 
 Is there anything else that we know about today that this new interface 
should contain?  

I created a bug to track this.  
http://bugzilla.mozilla.org/show_bug.cgi?id=160714


--
Doug Turner
[EMAIL PROTECTED]




Reply via email to