Bug 629275 - Recent nightly kills Win7 Taskbar Jumplists/Tasks. r=rstrong, a=blocking2.0-betaN

This commit is contained in:
Jim Mathies 2011-01-27 13:10:37 -08:00
Родитель 57d787a568
Коммит c40fa48f80
1 изменённых файлов: 8 добавлений и 4 удалений

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

@ -207,7 +207,11 @@ var WinTaskbarJumpList =
// Win shell shortcut maintenance. If we've gone through an update,
// this will update any pinned taskbar shortcuts. Not specific to
// jump lists, but this was a convienent place to call it.
this._shortcutMaintenance();
try {
// dev builds may not have helper.exe, ignore failures.
this._shortcutMaintenance();
} catch (ex) {
}
// Store our task list config data
this._tasks = tasksCfg;
@ -497,9 +501,9 @@ var WinTaskbarJumpList =
if (!items)
return;
var URIsToRemove = [];
var enum = items.enumerate();
while (enum.hasMoreElements()) {
let oldItem = enum.getNext().QueryInterface(Ci.nsIJumpListShortcut);
var e = items.enumerate();
while (e.hasMoreElements()) {
let oldItem = e.getNext().QueryInterface(Ci.nsIJumpListShortcut);
if (oldItem) {
try { // in case we get a bad uri
let uriSpec = oldItem.app.getParameter(0);