Re: Problem with browser element

reverendlinux <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Organization http://groups.google.com
Message-ID <[email protected]>
On May 20, 4:52 pm, Neil <[email protected]> wrote:
> GMouron wrote:
> >    <browser src="http://www.mozilla.org" type="content-primary" />
>
> Does adding flex="1" to the browser make any difference?
>
> --
> Warning: May contain traces of nuts.

I was able to get it working with some caveats.  The only way I could
get the browser to display was in a straight dialog or window element
with no container.  Placing the browser element in an iframe or vbox
would cause the src to not be displayed.  Hope that's clear.  For
example this code works:

<dialog
	title="Browser"
	onload="window.resizeTo(screen.availWidth,screen.availHeight);"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	style="background-color: white;">

	<browser src="http://www.mozilla.org" type="content" flex="1" />

</dialog>


But this code does not:

<dialog
	title="Browser"
	onload="window.resizeTo(screen.availWidth,screen.availHeight);"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	style="background-color: white;">

        <vbox>
	     <browser src="http://www.mozilla.org" type="content" flex="1" />
        </vbox>

</dialog>

This was tested using XULRunner 12.0 on Fedora 16.

On another note, I remember reading somewhere that it's better
security practice to call the local system's browser versus using the
browser element when displaying external sites.  Is that still true?
Was it ever true?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.