If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Status

()

Core
XUL
13 years ago
9 years ago

People

(Reporter: Henrik Gemal, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
Opening a URL in Gecko products seems to be at least very different the gecko
products between:

In Mozilla Firefox you can do:
document.commandDispatcher.focusedWindow.open(aURL)

Mozilla Thunderbird seems to do something like this:
launchExternalURL(aURL);

in Nvu it's done through:
loadExternalURL

isn't it possible to have some kind of standard of launching an external URL?

Updated

13 years ago
Assignee: nobody → jag
Component: XP Miscellany → XP Toolkit/Widgets
QA Contact: brendan → jrgmorrison

Comment 1

13 years ago
I know of one way which should work in any product, although I don't have
anything apart from Seamonkey in which to test:
<xul:browser id="loader" type="content" collapsed="true"/>
var loaderListener = {
  // stub implementation of nsIURIContentListener and nsISupportsWeakReference
  // see helpContentListener in help.js
};
var external = document.getElementById('loader');
loader.docShell.parentURIContentListener = loaderListener;
loader.webNavigation.loadURI(href, nsIWebNavigation.LOAD_FLAGS_IS_LINK, null,
null, null);

Comment 2

12 years ago
I want 'generic protocol handler' to use with patches for bug 262575, bug
262808, bug 263433 and bug 294516.

I wrote this in attachment 189287 [details] [diff] [review], but I think its code is not so good.

Updated

9 years ago
Assignee: jag → nobody
You need to log in before you can comment on or make changes to this bug.