The trick is not to set:
mWebSetup->SetProperty(nsIWebBrowserSetup::SETUP_IS_CHROME_WRAPPER,PR_TRUE);

or to set it to PR_FALSE, because otherwise the internal stylesheet
which hides the noscript tag is not loaded.

Olaf wrote:
> Weird.. I have the same problem I guess. A simple HTML like:
>
> <html>
> <head>
> <script>
>   alert("Javascript is supported");
> </script>
> </head>
> <body>
> <noscript>Javascript is not supported.</noscript>
> Hello
> </body>
> </html>
> 
> doesn't work. It displays both the alert and the noscript text.

_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to