зеркало из https://github.com/mozilla/pjs.git
Make sidebar display in the event that the windows integration dialog appeared.
b = 119975; r = law; sr = dveditz
This commit is contained in:
Родитель
423a678ad4
Коммит
44be7a2b4b
|
@ -1399,13 +1399,21 @@ function URLBarKeyupHandler(aEvent)
|
||||||
function checkForDefaultBrowser()
|
function checkForDefaultBrowser()
|
||||||
{
|
{
|
||||||
const NS_WINHOOKS_CONTRACTID = "@mozilla.org/winhooks;1";
|
const NS_WINHOOKS_CONTRACTID = "@mozilla.org/winhooks;1";
|
||||||
|
var dialogShown = false;
|
||||||
if (NS_WINHOOKS_CONTRACTID in Components.classes) {
|
if (NS_WINHOOKS_CONTRACTID in Components.classes) {
|
||||||
try {
|
try {
|
||||||
Components.classes[NS_WINHOOKS_CONTRACTID]
|
dialogShown = Components.classes[NS_WINHOOKS_CONTRACTID]
|
||||||
.getService(Components.interfaces.nsIWindowsHooks)
|
.getService(Components.interfaces.nsIWindowsHooks)
|
||||||
.checkSettings(window);
|
.checkSettings(window);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dialogShown)
|
||||||
|
{
|
||||||
|
// Force the sidebar to build since the windows
|
||||||
|
// integration dialog may have come up.
|
||||||
|
SidebarRebuild();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче