зеркало из https://github.com/mozilla/pjs.git
Bug 629275 - Recent nightly kills Win7 Taskbar Jumplists/Tasks. r=rstrong, a=blocking2.0-betaN
This commit is contained in:
Родитель
57d787a568
Коммит
c40fa48f80
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче