MozillaZine

Loading webpage into browser from another process

Discuss building things with or for the Mozilla Platform.
FireTcl
New Member
 
Posts: 1
Joined: February 15th, 2015, 2:16 pm

Post Posted February 15th, 2015, 2:22 pm

Hi,
I am making a XUL runner application. The problem is that I can't load a webpage to the browser. I tried the src attribute but it doesn't work. This is the XUL file:

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="My Web App"
id="webapp-window"
width="800"
height="600"
persist="screenX screenY width height sizemode">

<browser id="a_browser" flex="1" remote="true" src="http://www.google.es"/>

</window>

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted February 19th, 2015, 3:25 pm

This may not be the best place to ask about XULrunner applications. As an addon developer, there are various ways to load a URL into a browser, at the most basic, the loadURI() method of the browser element itself is a wrapper for the more complex loadURIWithFlags().

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest