/usr/lib/thunderbird-addons/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome/calendar/content/calendar/calendar-providerUninstall-dialog.js is in xul-ext-lightning 1:24.4.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Components.utils.import("resource://calendar/modules/calUtils.jsm");
function onLoad() {
let extension = window.arguments[0].extension;
document.getElementById("provider-name-label").value = extension.name;
let calendars = cal.getCalendarManager().getCalendars({})
.filter(function(x) x.providerID == extension.id);
document.getElementById("calendar-list-tree").calendars = calendars;
}
function onAccept() {
// Tell our caller that the extension should be uninstalled.
let args = window.arguments[0];
args.shouldUninstall = true;
// Unsubscribe from all selected calendars
let calendarList = document.getElementById("calendar-list-tree");
let calendars = calendarList.selectedCalendars || [];
let calMgr = cal.getCalendarManager();
calendars.forEach(calMgr.unregisterCalendar, calMgr);
return true;
}
function onCancel() {
let args = window.arguments[0];
args.shouldUninstall = false;
return true;
}
|