Port bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks). rs=bustage-fix
This commit is contained in:
Родитель
016f171f59
Коммит
faf3ae81c7
|
@ -11,7 +11,6 @@ const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|||
* https://developer.mozilla.org/en-US/docs/Mozilla/Chrome_Registration
|
||||
*/
|
||||
class ChromeManifest {
|
||||
|
||||
/**
|
||||
* Constucts the chrome.manifest parser
|
||||
*
|
||||
|
@ -38,7 +37,6 @@ class ChromeManifest {
|
|||
this.skin = new Map();
|
||||
this.resource = new Map();
|
||||
this.override = new Map();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -310,7 +308,6 @@ class DefaultMap extends Map {
|
|||
constructor(_default, iterable) {
|
||||
super(iterable);
|
||||
this._default = _default;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -460,7 +460,6 @@ function addNewToolbar() {
|
|||
doneButton.disabled = true;
|
||||
|
||||
while (true) {
|
||||
|
||||
if (!promptService.prompt(window, title, message, name, null, {})) {
|
||||
doneButton.disabled = false;
|
||||
return;
|
||||
|
|
|
@ -226,23 +226,18 @@ function getTrueState(addon, addonRef) {
|
|||
ExtensionSupport.loadedLegacyExtensions.has(addon.id)) {
|
||||
returnObject.stringName = "warnLegacyUninstall";
|
||||
returnObject.undoCommand = `${addonRef}.cancelUninstall()`;
|
||||
|
||||
} else if (state.pendingOperation == "install") {
|
||||
returnObject.stringName = "warnLegacyInstall";
|
||||
returnObject.undoCommand = `${addonRef}.uninstall()`;
|
||||
|
||||
} else if (addon.userDisabled) {
|
||||
returnObject.stringName = "warnLegacyDisable";
|
||||
returnObject.undoCommand = `${addonRef}.enable()`;
|
||||
|
||||
} else if (state.pendingOperation == "enable") {
|
||||
returnObject.stringName = "warnLegacyEnable";
|
||||
returnObject.undoCommand = `${addonRef}.disable()`;
|
||||
|
||||
} else if (state.pendingOperation == "upgrade") {
|
||||
returnObject.stringName = "warnLegacyUpgrade";
|
||||
returnObject.version = state.version;
|
||||
|
||||
} else if (state.pendingOperation == "downgrade") {
|
||||
returnObject.stringName = "warnLegacyDowngrade";
|
||||
returnObject.version = state.version;
|
||||
|
|
|
@ -169,7 +169,6 @@ var editContactInlineUI = {
|
|||
"chrome,modal,resizable=no,centerscreen",
|
||||
{ abURI: this._cardDetails.book.URI,
|
||||
card: this._cardDetails.card });
|
||||
|
||||
},
|
||||
|
||||
deleteContact() {
|
||||
|
|
|
@ -427,7 +427,6 @@ class MozFacetDiscrete extends HTMLElement {
|
|||
this.barHoverGone(event.originalTarget.parentNode, true);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
|
@ -1201,7 +1200,6 @@ class MozFacetResultMessage extends HTMLElement {
|
|||
FacetContext.fakeResultAttr,
|
||||
this.message, [this.message]);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
|
|
|
@ -747,7 +747,6 @@ var FacetContext = {
|
|||
clearTimeout(this._brushTimeout);
|
||||
this._brushTimeout = setTimeout(this._timeoutHoverWrapper,
|
||||
this._HOVER_STABILITY_DURATION_MS, this);
|
||||
|
||||
},
|
||||
_timeoutHover() {
|
||||
this._brushTimeout = null;
|
||||
|
|
|
@ -51,7 +51,6 @@ var CompactTheme = {
|
|||
} else {
|
||||
this._toggleStyleSheet(false);
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -401,7 +401,6 @@ function SaveAsFile(uris) {
|
|||
}
|
||||
|
||||
function GenerateFilenameFromMsgHdr(msgHdr) {
|
||||
|
||||
function MakeIS8601ODateString(date) {
|
||||
function pad(n) { return n < 10 ? "0" + n : n; }
|
||||
return date.getFullYear() + "-" +
|
||||
|
@ -422,7 +421,6 @@ function GenerateFilenameFromMsgHdr(msgHdr) {
|
|||
filename += MakeIS8601ODateString(new Date(msgHdr.date / 1000));
|
||||
|
||||
return filename;
|
||||
|
||||
}
|
||||
|
||||
function saveAsUrlListener(aUri, aIdentity) {
|
||||
|
|
|
@ -330,7 +330,6 @@ function onViewToolbarsPopupShowing(aEvent, toolboxIds, aInsertPoint) {
|
|||
}
|
||||
|
||||
for (let toolbarElement of potentialToolbars) {
|
||||
|
||||
// We have to bind to toolbar because Javascript doesn't do fresh
|
||||
// let-bindings per Iteration.
|
||||
let toolbar = toolbarElement;
|
||||
|
|
|
@ -599,7 +599,6 @@
|
|||
// do it when necessary for possible early loop exit to display
|
||||
// (X more).
|
||||
if (!all) {
|
||||
|
||||
// Calculate width and lines, consider the i+1 comma node if we have to
|
||||
// <http://www.w3.org/TR/cssom-view/#client-attributes>
|
||||
// <https://developer.mozilla.org/en/Determining_the_dimensions_of_elements>
|
||||
|
|
|
@ -1010,7 +1010,6 @@ function InitRecentlyClosedTabsPopup(menuPopup) {
|
|||
|
||||
// Rebuild the recently closed tab list
|
||||
for (let i = 0; i < tabs.length; i++) {
|
||||
|
||||
let menuItem = document.createElement("menuitem");
|
||||
menuItem.setAttribute("label", tabs[i].title);
|
||||
menuItem.setAttribute("oncommand", `document.getElementById("tabmail").undoCloseTab(${i});`);
|
||||
|
@ -1585,7 +1584,6 @@ function BatchMessageMover() {
|
|||
BatchMessageMover.prototype = {
|
||||
|
||||
archiveMessages(aMsgHdrs) {
|
||||
|
||||
if (!aMsgHdrs.length)
|
||||
return;
|
||||
|
||||
|
|
|
@ -303,7 +303,6 @@ function initInlineToolbox(toolboxId, toolbarId, popupId, customizeChange) {
|
|||
let toolbar = document.getElementById(toolbarId);
|
||||
if (toolbox && toolbar) {
|
||||
if (!toolbox.getAttribute("mode")) {
|
||||
|
||||
/* set toolbox attributes to default values */
|
||||
let mode = toolbox.getAttribute("defaultmode");
|
||||
let align = toolbox.getAttribute("defaultlabelalign");
|
||||
|
@ -908,7 +907,6 @@ function EnsureMinimumNumberOfHeaders(headerTable) {
|
|||
gDummyHeaderIdIndex++;
|
||||
numEmptyHeaders--;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1528,7 +1526,6 @@ function EditContact(emailAddressNode) {
|
|||
* @param aEvent the event object when user triggers the menuitem
|
||||
*/
|
||||
function SendMailToNode(addressNode, aEvent) {
|
||||
|
||||
addressNode = addressNode.hasAttribute("newsgroup") ?
|
||||
addressNode.closest("mail-newsgroup") :
|
||||
addressNode.closest("mail-emailaddress");
|
||||
|
|
|
@ -1068,7 +1068,6 @@ function ClearMessagePane() {
|
|||
* aSingleSelect then we create a transient single-row selection.
|
||||
*/
|
||||
function ChangeSelectionWithoutContentLoad(event, tree, aSingleSelect) {
|
||||
|
||||
var treeSelection = tree.view.selection;
|
||||
|
||||
var row = tree.getRowAt(event.clientX, event.clientY);
|
||||
|
|
|
@ -81,7 +81,6 @@ function FindNextFolder() {
|
|||
// go up to the parent, and start at the folder after the current one
|
||||
// unless we are at a server, in which case bail out.
|
||||
for (folder = gDBView.msgFolder; !folder.isServer;) {
|
||||
|
||||
var parent = folder.parent;
|
||||
folder = FindNextChildFolder(parent, folder);
|
||||
if (folder)
|
||||
|
|
|
@ -554,7 +554,6 @@ nsContextMenu.prototype = {
|
|||
elem instanceof HTMLAreaElement && elem.href ||
|
||||
elem instanceof HTMLLinkElement ||
|
||||
elem.getAttributeNS("http://www.w3.org/1999/xlink", "type") == "simple")) {
|
||||
|
||||
// Target is a link or a descendant of a link.
|
||||
this.onLink = true;
|
||||
this.onMetaDataItem = true;
|
||||
|
|
|
@ -63,7 +63,6 @@ var gPhishingDetector = {
|
|||
Ci.nsMsgFolderFlags.Templates | Ci.nsMsgFolderFlags.Queue;
|
||||
if (folder.isSpecialFolder(outgoingFlags, true))
|
||||
return;
|
||||
|
||||
} catch (ex) {
|
||||
if (ex.result != Cr.NS_ERROR_FAILURE)
|
||||
throw ex;
|
||||
|
|
|
@ -360,7 +360,6 @@ var QuickFilterBarMuxer = {
|
|||
}
|
||||
|
||||
collapsibleButtonBox.setAttribute("shrink", "true");
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -78,7 +78,6 @@ Sanitizer.prototype = {
|
|||
// facility for timespan-based eviction. Wipe it.
|
||||
Services.cache2.clear();
|
||||
} catch (ex) {}
|
||||
|
||||
},
|
||||
|
||||
get canClear() {
|
||||
|
@ -139,7 +138,6 @@ Sanitizer.prototype = {
|
|||
var branch = Services.prefs.getBranch("geo.wifi.access_token.");
|
||||
branch.deleteBranch("");
|
||||
} catch (e) {}
|
||||
|
||||
},
|
||||
|
||||
get canClear() {
|
||||
|
|
|
@ -1049,7 +1049,6 @@
|
|||
let tabs = state.tabs = [];
|
||||
|
||||
for (let [iTab, tab] of this.tabInfo.entries()) {
|
||||
|
||||
let persistTab = this.persistTab(tab);
|
||||
|
||||
if (!persistTab)
|
||||
|
@ -1106,7 +1105,6 @@
|
|||
let tabs = aPersistedState.tabs;
|
||||
let indexToSelect = null;
|
||||
for (let [iTab, tabState] of tabs.entries()) {
|
||||
|
||||
if (tabState.state.firstTab && aDontRestoreFirstTab)
|
||||
tabState.state.dontRestoreFirstTab = aDontRestoreFirstTab;
|
||||
|
||||
|
@ -1297,7 +1295,6 @@
|
|||
|
||||
let evt = new CustomEvent("TabSelect", { bubbles: true, detail: { tabInfo: tab } });
|
||||
this.tabContainer.selectedItem.dispatchEvent(evt);
|
||||
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
|
@ -2437,7 +2434,6 @@
|
|||
// keeps hovering over a tab, we assume he wants to switch to this tab.
|
||||
if ((dt.mozTypesAt(0)[0] != "application/x-moz-tabmail-tab")
|
||||
&& (dt.mozTypesAt(0)[1] != "application/x-moz-tabmail-json")) {
|
||||
|
||||
let tab = this._getDragTargetTab(event);
|
||||
|
||||
if (!tab)
|
||||
|
@ -2466,7 +2462,6 @@
|
|||
// moved to a different or new window. We should not show
|
||||
// a dropmarker in such a case
|
||||
if (!dt.mozGetDataAt("application/x-moz-tabmail-json", 0)) {
|
||||
|
||||
let draggedTab = dt.mozGetDataAt("application/x-moz-tabmail-tab", 0);
|
||||
|
||||
if (!draggedTab)
|
||||
|
@ -2486,7 +2481,6 @@
|
|||
|
||||
// Let's scroll
|
||||
if (this.hasAttribute("overflow")) {
|
||||
|
||||
let target = event.originalTarget.getAttribute("anonid");
|
||||
|
||||
let pixelsToScroll = 0;
|
||||
|
@ -2528,7 +2522,6 @@
|
|||
var newMargin;
|
||||
|
||||
if (newIndex == this.childNodes.length) {
|
||||
|
||||
let tabRect = this.childNodes[newIndex - 1].getBoundingClientRect();
|
||||
|
||||
if (ltr)
|
||||
|
@ -2536,7 +2529,6 @@
|
|||
else
|
||||
newMargin = rect.right - tabRect.left;
|
||||
} else {
|
||||
|
||||
let tabRect = this.childNodes[newIndex].getBoundingClientRect();
|
||||
|
||||
if (ltr)
|
||||
|
@ -2594,7 +2586,6 @@
|
|||
|
||||
// Is the tab one of our children?
|
||||
if (this.tabmail.tabContainer.getIndexOfItem(draggedTab) == -1) {
|
||||
|
||||
// It's a tab from an other window, so we have to trigger session
|
||||
// restore to get our tab
|
||||
|
||||
|
@ -2650,7 +2641,6 @@
|
|||
|
||||
// check if the drop point is horizontally within the window
|
||||
if (eX > wX && eX < (wX + window.outerWidth)) {
|
||||
|
||||
let bo = this.arrowScrollbox.boxObject;
|
||||
// also avoid detaching if the the tab was dropped too close to
|
||||
// the tabbar (half a tab)
|
||||
|
|
|
@ -453,7 +453,6 @@ PopupNotifications.prototype = {
|
|||
let isActiveWindow = Services.focus.activeWindow == this.window;
|
||||
|
||||
if (isActiveWindow) {
|
||||
|
||||
// Autofocus if the notification requests focus.
|
||||
if (options && !options.dismissed && options.autofocus) {
|
||||
this.panel.removeAttribute("noautofocus");
|
||||
|
@ -1100,7 +1099,6 @@ PopupNotifications.prototype = {
|
|||
if (notification.options.extraAttr) {
|
||||
anchorElm.setAttribute("extraAttr", notification.options.extraAttr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -39,7 +39,6 @@ var MailInstrumentation = {
|
|||
MailInstrumentation.addEvent("msgSent", true);
|
||||
else if (aTopic == "mail:setAsDefault")
|
||||
MailInstrumentation.addEvent("setAsDefault", true);
|
||||
|
||||
},
|
||||
msgAdded(aMsg) {
|
||||
MailServices.mfn.removeListener(this);
|
||||
|
@ -54,7 +53,6 @@ var MailInstrumentation = {
|
|||
MailInstrumentation._removeObserver(
|
||||
"mail.accountmanager.accounts",
|
||||
MailInstrumentation._accountsChanged);
|
||||
|
||||
}
|
||||
},
|
||||
_smtpServerAdded() {
|
||||
|
|
|
@ -330,7 +330,6 @@ var MailMigrator = {
|
|||
|
||||
// Update the migration version.
|
||||
Services.prefs.setIntPref(UI_VERSION_PREF, UI_VERSION);
|
||||
|
||||
} catch (e) {
|
||||
Cu.reportError("Migrating from UI version " + currentUIVersion + " to " +
|
||||
UI_VERSION + " failed. Error message was: " + e + " -- " +
|
||||
|
|
|
@ -93,7 +93,6 @@ var SessionStoreManager = {
|
|||
await this.store.load();
|
||||
this._initialState = this.store.data.toSource() == {}.toSource() ?
|
||||
null : this.store.data;
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -128,7 +128,6 @@ function* test_sort_secondary_explicit() {
|
|||
"secondary sort order should be descending");
|
||||
yield async_view_refresh(viewWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -49,7 +49,6 @@ function* test_real_folder_update() {
|
|||
// remove the second set of messages (some -> none)
|
||||
yield async_trash_messages(setTwo);
|
||||
verify_empty_view(viewWrapper);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -646,7 +646,6 @@ EmailConfigWizard.prototype = {
|
|||
}
|
||||
});
|
||||
call.setAbortable(fetch);
|
||||
|
||||
} catch (e) { // e.g. when entering an invalid domain like "c@c.-com"
|
||||
this.showErrorMsg(e);
|
||||
this.removeStatusLines();
|
||||
|
|
|
@ -282,7 +282,6 @@ function readAutoDiscoverXML(autoDiscoverXML, username) {
|
|||
}
|
||||
|
||||
// else unknown or unsupported protocol
|
||||
|
||||
} catch (e) { logException(e); }
|
||||
}
|
||||
|
||||
|
|
|
@ -205,7 +205,6 @@ FetchHTTP.prototype = {
|
|||
if (success && this._request.status >= 200 &&
|
||||
this._request.status < 300) { // HTTP level success
|
||||
try {
|
||||
|
||||
// response
|
||||
var mimetype = this._request.getResponseHeader("Content-Type");
|
||||
if (!mimetype)
|
||||
|
@ -225,7 +224,6 @@ FetchHTTP.prototype = {
|
|||
// ddump("mimetype: " + mimetype + " only supported as text");
|
||||
this.result = this._request.responseText;
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
success = false;
|
||||
errorStr = getStringBundle(
|
||||
|
@ -283,7 +281,6 @@ FetchHTTP.prototype = {
|
|||
logException(e);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
// error in our fetchhttp._response() code
|
||||
logException(e);
|
||||
|
|
|
@ -150,7 +150,6 @@ function guessConfig(domain, progressCallback, successCallback, errorCallback,
|
|||
errorCallback(e);
|
||||
} catch (e) { errorInCallback(e); }
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -265,7 +265,6 @@ urlListener.prototype = {
|
|||
"chrome://messenger/locale/accountCreationModel.properties")
|
||||
.GetStringFromName("cannot_login.error");
|
||||
this.mErrorCallback(new Exception(errorMsg));
|
||||
|
||||
},
|
||||
|
||||
_cleanup() {
|
||||
|
|
|
@ -187,7 +187,6 @@ var activityObject = {
|
|||
// internal list
|
||||
this._activityMgrListener = new this.ActivityMgrListener();
|
||||
activityManager.addListener(this._activityMgrListener);
|
||||
|
||||
} catch (e) {
|
||||
this._activityLogger.error("Exception: " + e);
|
||||
}
|
||||
|
|
|
@ -103,7 +103,6 @@ var sendLaterModule = {
|
|||
contextDisplayText = this._identity.email;
|
||||
|
||||
aActivity.contextDisplayText = contextDisplayText;
|
||||
|
||||
} else {
|
||||
aActivity.groupingStyle = Ci.nsIActivity.GROUPING_STYLE_STANDALONE;
|
||||
}
|
||||
|
@ -142,12 +141,10 @@ var sendLaterModule = {
|
|||
onStartSending(aTotalMessageCount) {
|
||||
if (!aTotalMessageCount) {
|
||||
this.log.error("onStartSending called with zero messages\n");
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
onMessageStartSending(aCurrentMessage, aTotalMessageCount, aMessageHeader, aIdentity) {
|
||||
|
||||
// We want to use the identity and subject later, so store them for now.
|
||||
this._identity = aIdentity;
|
||||
if (aMessageHeader)
|
||||
|
|
|
@ -1265,7 +1265,6 @@ var filePhotoHandler = {
|
|||
aDocument.getElementById("PhotoFile").setAttribute("PhotoURI", photoURI);
|
||||
|
||||
filePhotoHandler.onShow(aCard, aDocument, "photo");
|
||||
|
||||
};
|
||||
|
||||
gImageDownloader.savePhoto(photoURI, cbSuccess,
|
||||
|
@ -1335,7 +1334,6 @@ var webPhotoHandler = {
|
|||
newPhotoAdded(newPhotoName, aCard);
|
||||
|
||||
webPhotoHandler.onShow(aCard, aDocument, "photo");
|
||||
|
||||
};
|
||||
|
||||
gImageDownloader.savePhoto(photoURI, cbSuccess,
|
||||
|
|
|
@ -612,7 +612,6 @@ function DirPaneClick(event) {
|
|||
// if the user clicks on the header / trecol, do nothing
|
||||
if (event.originalTarget.localName == "treecol") {
|
||||
event.stopPropagation();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ function contactsListOnClick(aEvent) {
|
|||
// for single right click, so we also let this trigger for the second
|
||||
// click of right double-click.
|
||||
gAbView.selection.clearSelection();
|
||||
|
||||
}
|
||||
} else if (aEvent.button == 0 && aEvent.detail == 2) {
|
||||
// Any click on results tree rows.
|
||||
|
|
|
@ -262,7 +262,6 @@ function GetCurrentPrefs() {
|
|||
if (showPhoneticFields == "true")
|
||||
document.getElementById("cmd_SortBy_PhoneticName")
|
||||
.setAttribute("hidden", "false");
|
||||
|
||||
}
|
||||
|
||||
function SetNameColumn(cmd) {
|
||||
|
|
|
@ -26,7 +26,6 @@ var appIdleManager = {
|
|||
_timerCallback() {
|
||||
appIdleManager._appIdle = true;
|
||||
Services.obs.notifyObservers(null, "mail:appIdle", "idle");
|
||||
|
||||
},
|
||||
|
||||
onBlur() {
|
||||
|
|
|
@ -58,7 +58,6 @@ var cloudFileAccounts = new class extends EventEmitter {
|
|||
// Pick a unique account key (TODO: this is a dumb way to do it, probably)
|
||||
let existingKeys = this._accountKeys;
|
||||
for (let n = 1; ; n++) {
|
||||
|
||||
if (!existingKeys.includes("account" + n))
|
||||
return "account" + n;
|
||||
}
|
||||
|
|
|
@ -333,7 +333,6 @@ var stateListener = {
|
|||
NotifyComposeBodyReady() {
|
||||
// Look all the possible compose types (nsIMsgComposeParams.idl):
|
||||
switch (gComposeType) {
|
||||
|
||||
case Ci.nsIMsgCompType.MailToUrl:
|
||||
gBodyFromArgs = true;
|
||||
case Ci.nsIMsgCompType.New:
|
||||
|
@ -1920,7 +1919,6 @@ function MessageComposeOfflineStateChanged(goingOffline) {
|
|||
|
||||
function DoCommandClose() {
|
||||
if (ComposeCanClose()) {
|
||||
|
||||
// Notify the SendListener that Send has been aborted and Stopped
|
||||
if (gMsgCompose)
|
||||
gMsgCompose.onSendNotPerformed(null, Cr.NS_ERROR_ABORT);
|
||||
|
@ -2689,7 +2687,6 @@ function ComposeStartup(aParams) {
|
|||
let msg = getComposeBundle().getFormattedString("errorLoadFileMessageMessage",
|
||||
[args.message]);
|
||||
Services.prompt.alert(null, title, msg);
|
||||
|
||||
} finally {
|
||||
if (cstream)
|
||||
cstream.close();
|
||||
|
|
|
@ -604,7 +604,6 @@ function awAppendNewRow(setFocus) {
|
|||
* @return This returns the menulist (not its child menupopup), despite the function name.
|
||||
*/
|
||||
function awGetPopupElement(row) {
|
||||
|
||||
return document.getElementById("addressCol1#" + row);
|
||||
}
|
||||
|
||||
|
|
|
@ -282,7 +282,6 @@ var gBigFileObserver = {
|
|||
let message = this.formatString("cloudFilePrivacyNotification");
|
||||
nb.appendNotification(message, kPrivacyNotificationValue, "null",
|
||||
nb.PRIORITY_WARNING_MEDIUM, null);
|
||||
|
||||
},
|
||||
|
||||
_anyUploadsInProgress() {
|
||||
|
|
|
@ -458,7 +458,6 @@ var gCloudAttachmentLinkManager = {
|
|||
if (msgType == Ci.nsIMsgCompDeliverMode.Now ||
|
||||
msgType == Ci.nsIMsgCompDeliverMode.Later ||
|
||||
msgType == Ci.nsIMsgCompDeliverMode.Background) {
|
||||
|
||||
const kIDs = ["cloudAttachmentList", "cloudAttachmentListRoot",
|
||||
"cloudAttachmentListHeader"];
|
||||
let mailDoc = document.getElementById("content-frame").contentDocument;
|
||||
|
|
|
@ -101,7 +101,6 @@ imContextMenu.prototype = {
|
|||
|
||||
// Set various context menu attributes based on the state of the world.
|
||||
setTarget(aNode) {
|
||||
|
||||
// Initialize contextual info.
|
||||
this.onLink = false;
|
||||
this.linkURL = "";
|
||||
|
@ -123,7 +122,6 @@ imContextMenu.prototype = {
|
|||
(elem instanceof HTMLAreaElement && elem.href) ||
|
||||
elem instanceof HTMLLinkElement ||
|
||||
elem.getAttributeNS("http://www.w3.org/1999/xlink", "type") == "simple")) {
|
||||
|
||||
// Target is a link or a descendant of a link.
|
||||
this.onLink = true;
|
||||
|
||||
|
|
|
@ -279,7 +279,6 @@ GlodaIMSearcher.prototype = {
|
|||
|| term.length >= 3
|
||||
)
|
||||
fulltextQueryString += '"' + term + '"';
|
||||
|
||||
}
|
||||
|
||||
query.fulltextMatches(fulltextQueryString);
|
||||
|
|
|
@ -134,7 +134,6 @@ TracingListener.prototype = {
|
|||
onStopRequest(/* nsIRequest */ aRequest,
|
||||
/* nsISupports */ aContext,
|
||||
/* int */ aStatusCode) {
|
||||
|
||||
// Why don't people use JSMs? Sigh...
|
||||
let accountCreationFuncs = {};
|
||||
Services.scriptloader.loadSubScript(
|
||||
|
|
|
@ -237,7 +237,6 @@ var nsMailDefaultHandler = {
|
|||
Services.ww.openWindow(null,
|
||||
"chrome://messenger/content/preferences/preferences.xul",
|
||||
"_blank", features, null);
|
||||
|
||||
}
|
||||
|
||||
// The URI might be passed as the argument to the file parameter
|
||||
|
|
|
@ -191,7 +191,6 @@ var gAdvancedPane = {
|
|||
window.addEventListener("unload", this);
|
||||
|
||||
Services.obs.addObserver(this, AUTO_UPDATE_CHANGED_TOPIC);
|
||||
|
||||
}
|
||||
|
||||
this.mInitialized = true;
|
||||
|
|
|
@ -165,7 +165,6 @@ var gPermissionManager = {
|
|||
if (!isNewPermission) {
|
||||
this._permissionsToDelete.set(aPermission.principal.origin, aPermission);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
_handleCapabilityChange() {
|
||||
|
@ -398,11 +397,9 @@ var gPermissionManager = {
|
|||
},
|
||||
|
||||
_addPermissionToList(aPermission) {
|
||||
|
||||
if (aPermission.type == this._type &&
|
||||
(!this._manageCapability ||
|
||||
(aPermission.capability == this._manageCapability))) {
|
||||
|
||||
var principal = aPermission.principal;
|
||||
var capabilityString = this._getCapabilityString(aPermission.capability);
|
||||
var p = new Permission(principal,
|
||||
|
|
|
@ -74,7 +74,6 @@ var gSendOptionsDialog = {
|
|||
this.addItemToDomainList(listbox, domainName);
|
||||
document.getElementById("SendOptionsDialogPane").userChangedValue(listbox);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
domainAlreadyPresent(aDomainName) {
|
||||
|
|
|
@ -77,7 +77,6 @@ function initializeMailViewOverrides() {
|
|||
// andButton.setAttribute('label', 'All of the following');
|
||||
// matchAll doesn't make sense for views, since views are a single folder
|
||||
hideMatchAllItem();
|
||||
|
||||
}
|
||||
|
||||
function UpdateAfterCustomHeaderChange() {
|
||||
|
|
|
@ -67,7 +67,6 @@ function GetListValue(mailList, doAdd) {
|
|||
var pos = 0;
|
||||
var inputField, fieldValue, cardproperty;
|
||||
while ((inputField = awGetInputElement(i))) {
|
||||
|
||||
fieldValue = inputField.value;
|
||||
|
||||
if (doAdd || pos >= oldTotal)
|
||||
|
|
|
@ -19,7 +19,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
classID: NS_ABLDAPATTRIBUTEMAP_CID,
|
||||
|
||||
getAttributeList(aProperty) {
|
||||
|
||||
if (!(aProperty in this.mPropertyMap)) {
|
||||
return null;
|
||||
}
|
||||
|
@ -29,7 +28,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
getAttributes(aProperty, aCount, aAttrs) {
|
||||
|
||||
// fail if no entry for this
|
||||
if (!(aProperty in this.mPropertyMap)) {
|
||||
throw Cr.NS_ERROR_FAILURE;
|
||||
|
@ -41,7 +39,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
getFirstAttribute(aProperty) {
|
||||
|
||||
// fail if no entry for this
|
||||
if (!(aProperty in this.mPropertyMap)) {
|
||||
return null;
|
||||
|
@ -51,7 +48,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
setAttributeList(aProperty, aAttributeList, aAllowInconsistencies) {
|
||||
|
||||
var attrs = aAttributeList.split(",");
|
||||
|
||||
// check to make sure this call won't allow multiple mappings to be
|
||||
|
@ -81,7 +77,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
getProperty(aAttribute) {
|
||||
|
||||
if (!(aAttribute in this.mAttrMap)) {
|
||||
return null;
|
||||
}
|
||||
|
@ -104,7 +99,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
getAllCardProperties(aCount) {
|
||||
|
||||
var props = [];
|
||||
for (var prop in this.mPropertyMap) {
|
||||
props.push(prop);
|
||||
|
@ -132,7 +126,6 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
setCardPropertiesFromLDAPMessage(aMessage, aCard) {
|
||||
|
||||
var cardValueWasSet = false;
|
||||
|
||||
var msgAttrCount = {};
|
||||
|
@ -144,15 +137,12 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
|
||||
// deal with each addressbook property
|
||||
for (var prop in this.mPropertyMap) {
|
||||
|
||||
// go through the list of possible attrs in precedence order
|
||||
for (var attr of this.mPropertyMap[prop]) {
|
||||
|
||||
attr = attr.toLowerCase();
|
||||
|
||||
// find the first attr that exists in this message
|
||||
if (msgAttrs.includes(attr)) {
|
||||
|
||||
try {
|
||||
var values = aMessage.getValues(attr, {});
|
||||
// strip out the optional label from the labeledURI
|
||||
|
@ -178,13 +168,11 @@ nsAbLDAPAttributeMap.prototype = {
|
|||
},
|
||||
|
||||
checkState() {
|
||||
|
||||
var attrsSeen = [];
|
||||
|
||||
for (var prop in this.mPropertyMap) {
|
||||
let attrArray = this.mPropertyMap[prop];
|
||||
for (var attr of attrArray) {
|
||||
|
||||
// multiple attributes that mapped to the empty string are permitted
|
||||
if (!attr.length) {
|
||||
continue;
|
||||
|
@ -214,7 +202,6 @@ nsAbLDAPAttributeMapService.prototype = {
|
|||
mAttrMaps: {},
|
||||
|
||||
getMapForPrefBranch(aPrefBranchName) {
|
||||
|
||||
// if we've already got this map, return it
|
||||
if (aPrefBranchName in this.mAttrMaps) {
|
||||
return this.mAttrMaps[aPrefBranchName];
|
||||
|
|
|
@ -838,7 +838,6 @@ FeedParser.prototype = {
|
|||
|
||||
nodeValue = nodeValue.replace(/[\n\r\t]+/g, " ");
|
||||
return this.removeUnprintableASCII(nodeValue);
|
||||
|
||||
},
|
||||
|
||||
getRDFTargetValueFormatted(ds, source, property) {
|
||||
|
@ -848,7 +847,6 @@ FeedParser.prototype = {
|
|||
}
|
||||
|
||||
return this.removeUnprintableASCIIexCRLFTAB(nodeValue);
|
||||
|
||||
},
|
||||
|
||||
getRDFTargetValueRaw(ds, source, property) {
|
||||
|
|
|
@ -308,7 +308,6 @@ function openComposeWindowForRSSArticle(aMsgComposeWindow, aMsgHdr, aMessageUri,
|
|||
// The user is viewing the summary.
|
||||
MailServices.compose.OpenComposeWindow(aMsgComposeWindow, aMsgHdr, aMessageUri,
|
||||
aType, aFormat, aIdentity, aMsgWindow);
|
||||
|
||||
} else {
|
||||
// Set up the compose message and get the feed message's web page link.
|
||||
let msgHdr = aMsgHdr;
|
||||
|
@ -356,7 +355,6 @@ function openComposeWindowForRSSArticle(aMsgComposeWindow, aMsgHdr, aMessageUri,
|
|||
MailServices.compose.OpenComposeWindow(aMsgComposeWindow, aMsgHdr, aMessageUri,
|
||||
aType, aFormat, aIdentity, aMsgWindow);
|
||||
}
|
||||
|
||||
}, false, {saneBodySize: true});
|
||||
} catch (ex) {
|
||||
// Error getting header, use the summary.
|
||||
|
|
|
@ -11,7 +11,6 @@ load("../../../resources/POP3pump.js");
|
|||
const {PromiseTestUtils} = ChromeUtils.import("resource://testing-common/mailnews/PromiseTestUtils.jsm");
|
||||
|
||||
add_task(async function runPump() {
|
||||
|
||||
gPOP3Pump.files = ["../../../data/bugmail1",
|
||||
"../../../data/bugmail1",
|
||||
"../../../data/bugmail1",
|
||||
|
|
|
@ -43,7 +43,6 @@ var tests = [
|
|||
MailServices.copy.CopyFileMessage(gMsgFile2, gTargetFolder, null, false, 0,
|
||||
"", asyncCopyListener, null);
|
||||
yield false;
|
||||
|
||||
},
|
||||
|
||||
function* firstUpdate() {
|
||||
|
|
|
@ -15,7 +15,6 @@ function test_discoverSubFolders() {
|
|||
let mailbox = setup_mailbox("none", create_temporary_directory());
|
||||
|
||||
mailbox.msgStore.discoverSubFolders(mailbox, true);
|
||||
|
||||
}
|
||||
|
||||
function run_all_tests() {
|
||||
|
|
|
@ -45,5 +45,4 @@ function run_test() {
|
|||
let transaction = server.playTransaction();
|
||||
do_check_transaction(transaction[transaction.length - 1],
|
||||
["MODE READER", "GROUP test1", "ARTICLE 1"]);
|
||||
|
||||
}
|
||||
|
|
|
@ -96,7 +96,6 @@ function run_test() {
|
|||
});
|
||||
|
||||
do_test_pending();
|
||||
|
||||
} catch (e) {
|
||||
server.stop();
|
||||
do_throw(e);
|
||||
|
|
|
@ -55,7 +55,6 @@ add_task(async function() {
|
|||
"AUTHINFO pass pass2",
|
||||
"GROUP test.filter",
|
||||
"XOVER 1-8"]);
|
||||
|
||||
} catch (e) {
|
||||
dump("NNTP Protocol test " + test + " failed for type RFC 977:\n");
|
||||
try {
|
||||
|
|
|
@ -31,7 +31,6 @@ add_task(async function() {
|
|||
do_check_transaction(transaction, ["MODE READER", "LIST",
|
||||
"AUTHINFO user testnews",
|
||||
"AUTHINFO pass newstest", "LIST"]);
|
||||
|
||||
} catch (e) {
|
||||
dump("NNTP Protocol test " + test + " failed for type RFC 977:\n");
|
||||
try {
|
||||
|
|
|
@ -77,7 +77,6 @@ add_task(async function() {
|
|||
"AUTHINFO pass newstest", "LIST"]);
|
||||
incomingServer.QueryInterface(Ci.nsISubscribableServer)
|
||||
.subscribeCleanup();
|
||||
|
||||
} catch (e) {
|
||||
dump("NNTP Protocol test " + test + " failed for type RFC 977:\n");
|
||||
try {
|
||||
|
|
|
@ -17,7 +17,6 @@ function getMessageHeaderFromUrl(aUrl) {
|
|||
}
|
||||
|
||||
function run_test() {
|
||||
|
||||
// This is crash test for Bug 392729
|
||||
try {
|
||||
// msgkey is invalid for news:// protocol
|
||||
|
|
Загрузка…
Ссылка в новой задаче