How to open link in the default browser from embedded gecko

Discuss building things with or for the Mozilla Platform.
Post Reply
Alesssio
Posts: 1
Joined: April 9th, 2014, 9:24 am

How to open link in the default browser from embedded gecko

Post by Alesssio »

Hi
I've embedded xulrunner in a simple c# app that serves only to run a custom website.
It works fine, but the website has some _blank link pointing to other domains, how can I enable them to open in the default browser?

Doing this from c# is fine, but making it work altering the html/javascript would be wonderful because there are some app that I can't update.

This is the really really simple code that I'm using to call xulrunner

Code: Select all

 public Form_browser()
        {
            InitializeComponent();
         string path = System.IO.Path.GetFullPath("c:\\xulrunner\\");
         Skybound.Gecko.Xpcom.Initialize(path);
      }

        private void Form_browser_Load(object sender, EventArgs e)
        {
         geckoBrowser.Navigate(Properties.Settings.Default.redirect);

        }
Post Reply