Fix for bug 138299 - switch consumers of nsIWindowMediator service to use the non-RDF contractID, in preparation for bug 132175

r=danm, sr=jag
This commit is contained in:
alecf%netscape.com 2006-09-14 06:04:16 +00:00
Родитель c8bab7b04b
Коммит c142e1dfef
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -818,7 +818,7 @@ function OpenSearch(tabName, forceDialogFlag, searchStr, newWindowFlag)
if (forceDialogFlag || searchMode == 1) { if (forceDialogFlag || searchMode == 1) {
// Use a single search dialog // Use a single search dialog
var windowManager = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator); .getService(Components.interfaces.nsIWindowMediator);
var searchWindow = windowManager.getMostRecentWindow("search:window"); var searchWindow = windowManager.getMostRecentWindow("search:window");
@ -942,7 +942,7 @@ function enableBookmarks()
function BrowserEditBookmarks() function BrowserEditBookmarks()
{ {
// Use a single sidebar bookmarks dialog // Use a single sidebar bookmarks dialog
var windowManager = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"] var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator); .getService(Components.interfaces.nsIWindowMediator);
var bookmarksWindow = windowManager.getMostRecentWindow("bookmarks:manager"); var bookmarksWindow = windowManager.getMostRecentWindow("bookmarks:manager");
@ -1729,7 +1729,7 @@ function toHistory()
{ {
// Use a single sidebar history dialog // Use a single sidebar history dialog
var cwindowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var cwindowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
var iwindowManager = Components.interfaces.nsIWindowMediator; var iwindowManager = Components.interfaces.nsIWindowMediator;
var windowManager = cwindowManager.QueryInterface(iwindowManager); var windowManager = cwindowManager.QueryInterface(iwindowManager);

Просмотреть файл

@ -36,7 +36,7 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
const mediatorContractId = "@mozilla.org/rdf/datasource;1?name=window-mediator"; const mediatorContractId = "@mozilla.org/appshell/window-mediator;1";
const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome;
function nsBrowserContentListener(toplevelWindow, contentWindow) function nsBrowserContentListener(toplevelWindow, contentWindow)