Bug 83313 "Open File" doesn't work on Mac when no windows are open p=bugs.mano@mail-central.com r=pedemonte sr=me

This commit is contained in:
neil%parkwaycc.co.uk 2005-01-19 17:18:39 +00:00
Родитель a26ffcdd41
Коммит 01d566cc2e
2 изменённых файлов: 11 добавлений и 1 удалений

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

@ -1643,6 +1643,14 @@ function hiddenWindowStartup()
broadcaster.setAttribute("disabled", "true");
}
// Get the preferences service
var prefService = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
pref = prefService.getBranch(null);
// init global strings bundle
gNavigatorBundle = document.getElementById("bundle_navigator");
// now load bookmarks after a delay
setTimeout(hiddenWindowLoadBookmarksCallback, 0);
}

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

@ -77,7 +77,9 @@
<script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarks.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksMenu.js"/>
<stringbundleset id="stringbundleset"/>
<stringbundleset id="stringbundleset">
<stringbundle id="bundle_navigator" src="chrome://navigator/locale/navigator.properties"/>
</stringbundleset>
<!-- keys are appended from the overlay -->
<keyset id="tasksKeys">