Open Bug 275354 Opened 20 years ago Updated 2 months ago

standardize open new URL

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: bugzilla, Unassigned)

Details

Attachments

(1 obsolete file)

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?
Assignee: nobody → jag
Component: XP Miscellany → XP Toolkit/Widgets
QA Contact: brendan → jrgmorrison
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);
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.
Assignee: jag → nobody
Severity: normal → S3
Attachment #9384662 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: