зеркало из https://github.com/mozilla/gecko-dev.git
part of bug 46200, remove a bit more stuff from nsIBrowserInstance, r=jag sr=alecf
This commit is contained in:
Родитель
fefb00520b
Коммит
74b9ef466c
|
@ -23,7 +23,6 @@
|
|||
|
||||
const pageLoaderIface = Components.interfaces.nsIWebPageDescriptor;
|
||||
var gBrowser = null;
|
||||
var appCore = null;
|
||||
var gPrefs = null;
|
||||
|
||||
try {
|
||||
|
@ -51,18 +50,6 @@ function viewSource(url)
|
|||
if (!url)
|
||||
return false; // throw Components.results.NS_ERROR_FAILURE;
|
||||
|
||||
try {
|
||||
appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"]
|
||||
.createInstance(Components.interfaces.nsIBrowserInstance);
|
||||
|
||||
// Initialize browser instance..
|
||||
appCore.setWebShellWindow(window);
|
||||
} catch(ex) {
|
||||
// Give up.
|
||||
window.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
var loadFromURL = true;
|
||||
//
|
||||
// Parse the 'arguments' supplied with the dialog.
|
||||
|
|
Загрузка…
Ссылка в новой задаче