This is a discussion on Re: writing to tab with encodeURIComponent - Mozilla ; ----- Original Message ---- > From: Jennifer Madden > To: dev-extensions@lists.mozilla.org > Sent: Thursday, June 19, 2008 3:28:02 PM > Subject: writing to tab with encodeURIComponent > > Using the encodeURIComponent to write to a tab causes Fx to eventually ...
----- Original Message ----
> From: Jennifer Madden
> To: dev-extensions@lists.mozilla.org
> Sent: Thursday, June 19, 2008 3:28:02 PM
> Subject: writing to tab with encodeURIComponent
>
> Using the encodeURIComponent to write to a tab causes Fx to eventually hang
> and crash. Is there a way to prevent this?
>
> gBrowser.addTab("data:text/html;charset=utf-8,"+
> encodeURIComponent(string));
Try this approach instead:
http://developer.mozilla.org/en/docs...t_of_a_new_tab
Eric