зеркало из https://github.com/mozilla/pjs.git
Fix bug 212221 XUL error pages do not play nicely with IM button in Addressbook (SeaMonkey patch) r=mnyromyr,sr=neil.parkwaycc.co.uk
This commit is contained in:
Родитель
c406cdea4d
Коммит
eb4ca96c5a
|
@ -216,6 +216,12 @@ function OnLoadAddressBook()
|
|||
|
||||
var dirTree = GetDirTree();
|
||||
dirTree.addEventListener("click",DirPaneClick,true);
|
||||
|
||||
// Ensure we don't load xul error pages into the main window
|
||||
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIWebNavigation)
|
||||
.QueryInterface(Components.interfaces.nsIDocShell)
|
||||
.useErrorPages = false;
|
||||
}
|
||||
|
||||
function OnLoadDirTree() {
|
||||
|
@ -848,9 +854,11 @@ function IsCardViewAndAbResultsPaneSplitterCollapsed()
|
|||
|
||||
function LaunchUrl(url)
|
||||
{
|
||||
var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance(Components.interfaces.nsIMessenger);
|
||||
messenger.SetWindow(window, null);
|
||||
messenger.OpenURL(url);
|
||||
// Doesn't matter if this bit fails, window.location contains its own prompts
|
||||
try {
|
||||
window.location = url;
|
||||
}
|
||||
catch (ex) {}
|
||||
}
|
||||
|
||||
function AbIMSelected()
|
||||
|
|
Загрузка…
Ссылка в новой задаче