Open
Bug 127685
Opened 23 years ago
Updated 14 years ago
Need tab browser idl interface
Categories
(SeaMonkey :: Tabbed Browser, defect)
SeaMonkey
Tabbed Browser
Tracking
(Not tracked)
NEW
People
(Reporter: jag+mozilla, Unassigned)
References
Details
This is needed to control the tabbrowser from c++. One place is linux's x-remote
code, to add (and maybe close?) tabs, another would be nsGlobalWindow::Close(),
so we can close a tab instead of the whole window when script calls window.close();
Comment 1•22 years ago
|
||
Jag, did you want to use this bug to track your new interface that Skyline will use?
Reporter | ||
Comment 2•22 years ago
|
||
Sure.
Updated•22 years ago
|
QA Contact: sairuh → pmac
Comment 3•22 years ago
|
||
If there is a need for this, I have a code snipplet (developed for a customer)
that is not pretty but might be of use - it basically calls from
GlobalWindowImpl into navigator.js. I needed to allow websites to open a new tab.
Comment 4•19 years ago
|
||
So, how much of (tab)browser do we want to expose? e.g.
interface nsIDOMXULBrowserElement {
readonly attribute boolean canGoBack;
readonly attribute boolean canGoForward;
void goBack();
void goForward();
void reload();
void reloadWithFlags(in unsigned long aReloadFlags);
void stop();
void loadURI(in wstring aURI, in nsIURI aReferrerURI, in aCharset);
void loadURIWithFlags(in wstring aURI, in unsigned long aFlags, in nsIURI
aReferrerURI, in wstring aCharset);
void gotoIndex(int long index);
readonly attribute nsIURI currentURI;
readonly attribute nsIDocShell docShell;
readonly attribute nsIWebNavigation webNavigation;
readonly attribute nsIWebBrowserFind webBrowserFind;
readonly attribute nsIWebProgress webProgress;
readonly attribute nsIDOMWindow contentWindow;
readonly attribute nsISHistory sessionHistory;
readonly attribute nsIMarkupDocumentViewer markupDocumentViewer;
readonly attribute nsIContentViewerEdit contentViewerEdit;
readonly attribute nsIContentViewerFile contentViewerFile;
readonly attribute nsIDocumentCharsetInfo documentCharsetInfo;
readonly attribute nsIDOMDocument contentDocument;
readonly attribute DOMString contentTitle;
void addProgressListener(in nsIWebProgressListener aListener);
void removeProgressListener(in nsIWebProgressListener aListener);
attribute nsISecureBrowserUI securityUI;
}
interface nsIDOMXULTabbrowserElement extends nsIDOMXULBrowserElement {
void setStripVisibilityTo(in boolean aVisibility);
boolean getStripVisibility();
nsIDOMXULElement addTab(in wstring aURI, in nsIURI aReferrerURI, in wstring
aCharset);
void removeAllTabsBut(in nsIDOMXULElement aTab);
void removeCurrentTab();
void removeTab(in nsIDOMXULElement aTab);
void reloadAllTabs();
void reloadTab(in nsIDOMXULElement aTab);
nsIDOMXULBrowserElement getBrowserForTab(in nsIDOMXULElement aTab);
attribute nsIDOMXULElement selectedTab;
readonly attribute nsIDOMXULBrowserElement selectedBrowser;
}
(This based on xpfe (tab)browser.xml)
Assignee | ||
Updated•16 years ago
|
Product: Core → SeaMonkey
Updated•16 years ago
|
Assignee: jag → nobody
QA Contact: pmac → tabbed-browser
You need to log in
before you can comment on or make changes to this bug.
Description
•