Commit 691543ee authored by Mark Banner's avatar Mark Banner
Browse files

Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/...

Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop

Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
parent f832b402
......@@ -27,7 +27,7 @@ class BrowserTabChild extends ActorChild {
case "MozDOMPointerLock:Entered":
this.mm.sendAsyncMessage("PointerLock:Entered", {
originNoSuffix: event.target.nodePrincipal.originNoSuffix
originNoSuffix: event.target.nodePrincipal.originNoSuffix,
});
break;
......
......@@ -497,7 +497,7 @@ class ContextMenuChild extends ActorChild {
characterSet: charSet,
baseURI,
referrer,
referrerPolicy
referrerPolicy,
} = doc;
docLocation = docLocation && docLocation.spec;
let frameOuterWindowID = WebNavigationFrames.getFrameId(doc.defaultView);
......@@ -823,7 +823,7 @@ class ContextMenuChild extends ActorChild {
currentSrc: context.target.currentSrc,
width: context.target.width,
height: context.target.height,
imageText: context.target.title || context.target.alt
imageText: context.target.title || context.target.alt,
};
const request = context.target.getRequest(Ci.nsIImageLoadingContent.CURRENT_REQUEST);
......
......@@ -65,7 +65,7 @@ class LightweightThemeChild extends ActorChild {
update(outerWindowID, content) {
const event = Cu.cloneInto({
detail: {
data: Services.cpmm.sharedData.get(`theme/${outerWindowID}`)
data: Services.cpmm.sharedData.get(`theme/${outerWindowID}`),
},
}, content);
content.dispatchEvent(new content.CustomEvent("LightweightTheme:Set",
......
......@@ -423,7 +423,7 @@ class NetErrorChild extends ActorChild {
certRange.notBefore < approximateDate && certRange.notAfter > approximateDate) {
clockSkew = true;
let formatter = new Services.intl.DateTimeFormat(undefined, {
dateStyle: "short"
dateStyle: "short",
});
let systemDate = formatter.format(new Date());
// negative difference means local time is behind server time
......@@ -455,7 +455,7 @@ class NetErrorChild extends ActorChild {
if (buildDate > systemDate && new Date(certRange.notAfter) > buildDate) {
clockSkew = true;
let formatter = new Services.intl.DateTimeFormat(undefined, {
dateStyle: "short"
dateStyle: "short",
});
doc.getElementById("wrongSystemTimeWithoutReference_URL")
......@@ -650,7 +650,7 @@ class NetErrorChild extends ActorChild {
changedCertPrefs: this.changedCertPrefs(),
automatic,
hideAddExceptionButton,
})
}),
}));
this.mm.sendAsyncMessage("Browser:SSLErrorReportTelemetry",
......@@ -668,7 +668,7 @@ class NetErrorChild extends ActorChild {
onSetAutomatic(evt) {
this.mm.sendAsyncMessage("Browser:SetSSLErrorReportAuto", {
automatic: evt.detail
automatic: evt.detail,
});
// If we're enabling reports, send a report for this failure.
......
......@@ -12,7 +12,7 @@ ChromeUtils.import("resource://gre/modules/ActorChild.jsm");
XPCOMUtils.defineLazyModuleGetters(this, {
Feeds: "resource:///modules/Feeds.jsm",
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm",
setTimeout: "resource://gre/modules/Timer.jsm"
setTimeout: "resource://gre/modules/Timer.jsm",
});
class PageInfoChild extends ActorChild {
......
......@@ -20,7 +20,7 @@ class PageStyleChild extends ActorChild {
mm.sendAsyncMessage("PageStyle:StyleSheets", {
filteredStyleSheets,
authorStyleDisabled: this.getViewer(content).authorStyleDisabled,
preferredStyleSheetSet: content.document.preferredStyleSheetSet
preferredStyleSheetSet: content.document.preferredStyleSheetSet,
});
}
......
......@@ -232,7 +232,7 @@ function prompt(aContentWindow, aWindowID, aCallID, aConstraints, aDevices, aSec
sharingScreen,
sharingAudio,
audioDevices,
videoDevices
videoDevices,
};
let mm = getMessageManagerForWindow(aContentWindow);
......@@ -292,7 +292,7 @@ function updateIndicators(aSubject, aTopic, aData) {
showGlobalIndicator: count > 0,
showCameraIndicator: false,
showMicrophoneIndicator: false,
showScreenSharingIndicator: ""
showScreenSharingIndicator: "",
};
Services.cpmm.sendAsyncMessage("webrtc:UpdatingIndicators");
......
......@@ -53,7 +53,7 @@ function toggleDisplay(node) {
const toggle = {
"": "block",
"none": "block",
"block": "none"
"block": "none",
};
return (node.style.display = toggle[node.style.display]);
}
......@@ -270,7 +270,7 @@ function initPage() {
"SSL_ERROR_PROTOCOL_VERSION_ALERT",
"SSL_ERROR_UNSUPPORTED_VERSION",
"SSL_ERROR_NO_CYPHER_OVERLAP",
"SSL_ERROR_NO_CIPHERS_SUPPORTED"
"SSL_ERROR_NO_CIPHERS_SUPPORTED",
].some((substring) => shortDesc.includes(substring));
// If it looks like an error that is user config based
if (getErrorCode() == "nssFailure2" && hasPrefStyleError && options && options.changedCertPrefs) {
......@@ -336,7 +336,7 @@ function initPageCertError() {
checkbox.addEventListener("change", function({target: {checked}}) {
document.dispatchEvent(new CustomEvent("AboutNetErrorSetAutomatic", {
detail: checked,
bubbles: true
bubbles: true,
}));
});
......
......@@ -141,8 +141,8 @@ function initPage() {
bubbles: true,
detail: {
url: this.getURL(),
err: error
}
err: error,
},
});
document.dispatchEvent(event);
}
......
......@@ -27,7 +27,7 @@ function removeNotificationOnEnd(notification, installs) {
onDownloadCancelled: maybeRemove,
onDownloadFailed: maybeRemove,
onInstallFailed: maybeRemove,
onInstallEnded: maybeRemove
onInstallEnded: maybeRemove,
});
}
}
......@@ -254,7 +254,7 @@ var gXPInstallObserver = {
accessKey: gNavigatorBundle.getString("xpinstallDisabledButton.accesskey"),
callback: function editPrefs() {
Services.prefs.setBoolPref("xpinstall.enabled", true);
}
},
};
secondaryActions = [{
......@@ -292,7 +292,7 @@ var gXPInstallObserver = {
callback() {
secHistogram.add(Ci.nsISecurityUITelemetry.WARNING_ADDON_ASKING_PREVENTED_CLICK_THROUGH);
installInfo.install();
}
},
};
let secondaryAction = {
label: gNavigatorBundle.getString("xpinstallPromptMessage.dontAllow"),
......@@ -461,7 +461,7 @@ var gXPInstallObserver = {
let notification = PopupNotifications.getNotification("addon-progress", aBrowser);
if (notification)
notification.remove();
}
},
};
var gExtensionsNotifications = {
......@@ -619,7 +619,7 @@ var LightWeightThemeWebInstaller = {
acceptKey: gNavigatorBundle.getString("lwthemeInstallRequest.allowButton.accesskey2"),
cancelText: gNavigatorBundle.getString("webextPerms.cancel.label"),
cancelKey: gNavigatorBundle.getString("webextPerms.cancel.accessKey"),
msgs: []
msgs: [],
};
ExtensionsUI.showPermissionsPrompt(gBrowser.selectedBrowser, strings, null,
"installWeb").then(answer => {
......@@ -635,7 +635,7 @@ var LightWeightThemeWebInstaller = {
if (notify) {
ExtensionsUI.showInstallNotification(gBrowser.selectedBrowser, newLWTheme);
}
}
},
};
AddonManager.addAddonListener(listener);
......
......@@ -64,5 +64,5 @@ var CompactTheme = {
uninit() {
Services.obs.removeObserver(this, "lightweight-theme-styling-update");
this.styleSheet = null;
}
},
};
......@@ -100,7 +100,7 @@ var tabPreviewPanelHelper = {
gBrowser.selectedTab = host.tabToSelect;
host.tabToSelect = null;
}
}
},
};
/**
......@@ -600,5 +600,5 @@ var ctrlTab = {
key_showAllTabs.removeAttribute("disabled");
else
key_showAllTabs.setAttribute("disabled", "true");
}
},
};
......@@ -75,5 +75,5 @@ var CustomizationHandler = {
cmd.removeAttribute("disabled");
gBrowser.selectedBrowser.focus();
}
},
};
......@@ -32,13 +32,13 @@ const SETTABLE_PREFS = new Set([
PREF_SELECTED_ACTION,
PREF_VIDEO_SELECTED_READER,
PREF_AUDIO_SELECTED_READER,
PREF_SELECTED_READER
PREF_SELECTED_READER,
]);
const EXECUTABLE_PREFS = new Set([
PREF_SELECTED_APP,
PREF_VIDEO_SELECTED_APP,
PREF_AUDIO_SELECTED_APP
PREF_AUDIO_SELECTED_APP,
]);
const VALID_ACTIONS = new Set(["ask", "reader", "bookmarks"]);
......@@ -450,7 +450,7 @@ var FeedHandler = {
const response = {
default: this._getReaderForType(Ci.nsIFeed.TYPE_FEED),
[Ci.nsIFeed.TYPE_AUDIO]: this._getReaderForType(Ci.nsIFeed.TYPE_AUDIO),
[Ci.nsIFeed.TYPE_VIDEO]: this._getReaderForType(Ci.nsIFeed.TYPE_VIDEO)
[Ci.nsIFeed.TYPE_VIDEO]: this._getReaderForType(Ci.nsIFeed.TYPE_VIDEO),
};
Services.mm.broadcastAsyncMessage("FeedWriter:PreferenceUpdated",
response);
......
......@@ -221,7 +221,7 @@ var PointerlockFsWarning = {
break;
}
}
}
},
};
var PointerLock = {
......@@ -242,7 +242,7 @@ var PointerLock = {
break;
}
}
}
},
};
var FullScreen = {
......@@ -586,7 +586,7 @@ var FullScreen = {
top: rect.top + 50,
bottom: rect.bottom,
left: rect.left,
right: rect.right
right: rect.right,
};
MousePosTracker.addListener(this);
}
......@@ -666,7 +666,7 @@ var FullScreen = {
navbar.appendChild(fullscreenctls);
}
fullscreenctls.hidden = !aEnterFS;
}
},
};
XPCOMUtils.defineLazyGetter(FullScreen, "useLionFullScreen", function() {
// We'll only use OS X Lion full screen if we're
......
......@@ -168,7 +168,7 @@ var FullZoom = {
handleCompletion: () => {
if (!hasPref && token.isCurrent)
this._applyPrefToZoom(undefined, browser);
}
},
});
},
......@@ -252,7 +252,7 @@ var FullZoom = {
}
this._applyPrefToZoom(value, browser,
this._notifyOnLocationChange.bind(this, browser));
}
},
});
},
......@@ -512,7 +512,7 @@ var FullZoom = {
handleCompletion: (reason) => {
this._globalValue = this._ensureValid(value);
resolve(this._globalValue);
}
},
});
});
},
......
......@@ -124,7 +124,7 @@ var gEMEHandler = {
// We're playing EME content! Remove any "we can't play because..." messages.
var box = gBrowser.getNotificationBox(browser);
["drmContentDisabled",
"drmContentCDMInstalling"
"drmContentCDMInstalling",
].forEach(function(value) {
var notification = box.getNotificationWithValue(value);
if (notification)
......@@ -158,7 +158,7 @@ var gEMEHandler = {
callback() {
openPreferences("general-drm", {origin: "browserMedia"});
},
dismiss: true
dismiss: true,
};
let options = {
dismissed: true,
......@@ -316,7 +316,7 @@ let gDecoderDoctorHandler = {
let baseURL = Services.urlFormatter.formatURLPref("app.support.baseURL");
openTrustedLinkIn(baseURL + sumo, "tab");
}
},
});
}
let endpoint = gDecoderDoctorHandler.getEndpointForReportIssueButton(type);
......@@ -346,7 +346,7 @@ let gDecoderDoctorHandler = {
params.append("details", JSON.stringify(details));
openTrustedLinkIn(endpoint + "?" + params.toString(), "tab");
}
},
});
}
......
......@@ -1247,7 +1247,7 @@ BrowserPageActions.shareURL = {
}
bodyNode.appendChild(fragment);
this._cached = true;
}
},
};
// Attach sharingService here so tests can override the implementation
......
......@@ -351,7 +351,7 @@ var StarUI = {
anchor = document.getElementById("PanelUI-menu-button");
}
ConfirmationHint.show(anchor, "pageBookmarked");
}
},
};
var PlacesCommandHook = {
......@@ -435,14 +435,14 @@ var PlacesCommandHook = {
let defaultInsertionPoint = new PlacesInsertionPoint({
parentId: PlacesUtils.bookmarksMenuFolderId,
parentGuid: PlacesUtils.bookmarks.menuGuid
parentGuid: PlacesUtils.bookmarks.menuGuid,
});
PlacesUIUtils.showBookmarkDialog({ action: "add",
type: "bookmark",
uri: makeURI(url),
title,
defaultInsertionPoint,
hiddenRows: [ "location", "keyword" ]
hiddenRows: [ "location", "keyword" ],
}, window.top);
},
......@@ -523,7 +523,7 @@ var PlacesCommandHook = {
async addLiveBookmark(url, feedTitle) {
let toolbarIP = new PlacesInsertionPoint({
parentId: PlacesUtils.toolbarFolderId,
parentGuid: PlacesUtils.bookmarks.toolbarGuid
parentGuid: PlacesUtils.bookmarks.toolbarGuid,
});
let feedURI = makeURI(url);
......@@ -536,7 +536,7 @@ var PlacesCommandHook = {
title,
defaultInsertionPoint: toolbarIP,
hiddenRows: [ "feedLocation",
"siteLocation" ]
"siteLocation" ],
}, window);
},
......@@ -567,10 +567,10 @@ var PlacesCommandHook = {
gURLBar.inputField.dispatchEvent(new KeyboardEvent("keypress", {
keyCode: code,
charCode: code,
bubbles: true
bubbles: true,
}));
}
}
},
};
ChromeUtils.defineModuleGetter(this, "RecentlyClosedTabsAndWindowsMenuUtils",
......@@ -719,7 +719,7 @@ HistoryMenu.prototype = {
triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(),
});
}
}
},
};
/**
......@@ -857,7 +857,7 @@ var BookmarksEventHandler = {
// Show tooltip.
return true;
}
},
};
// Handles special drag and drop functionality for Places menus that are not
......@@ -964,7 +964,7 @@ var PlacesMenuDNDHandler = {
onDragOver: function PMDH_onDragOver(event) {
let ip = new PlacesInsertionPoint({
parentId: PlacesUtils.bookmarksMenuFolderId,
parentGuid: PlacesUtils.bookmarks.menuGuid
parentGuid: PlacesUtils.bookmarks.menuGuid,
});
if (ip && PlacesControllerDragHelper.canDrop(ip, event.dataTransfer))
event.preventDefault();
......@@ -981,12 +981,12 @@ var PlacesMenuDNDHandler = {
// Put the item at the end of bookmark menu.
let ip = new PlacesInsertionPoint({
parentId: PlacesUtils.bookmarksMenuFolderId,
parentGuid: PlacesUtils.bookmarks.menuGuid
parentGuid: PlacesUtils.bookmarks.menuGuid,
});
PlacesControllerDragHelper.onDrop(ip, event.dataTransfer);
PlacesControllerDragHelper.currentDropTarget = null;
event.stopPropagation();
}
},
};
/**
......@@ -1330,9 +1330,9 @@ var BookmarkingUI = {
new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.menuGuid}`, {
extraClasses: {
entry: "subviewbutton",
footer: "panel-subview-footer"
footer: "panel-subview-footer",
},
insertionPoint: ".panel-subview-footer"
insertionPoint: ".panel-subview-footer",
});
},
......@@ -1787,8 +1787,8 @@ var BookmarkingUI = {
},
QueryInterface: ChromeUtils.generateQI([
Ci.nsINavBookmarkObserver
])
Ci.nsINavBookmarkObserver,
]),
};
var AutoShowBookmarksToolbar = {
......@@ -1811,5 +1811,5 @@ var AutoShowBookmarksToolbar = {
return;
setToolbarVisibility(toolbar, true);
}
},
};
......@@ -503,7 +503,7 @@ var gPluginHandler = {
Services.perms.addFromPrincipal(principal,
"plugin-hidden-notification",
Services.perms.DENY_ACTION);
}
},
},
{
label: gNavigatorBundle.getString("pluginActivateTrigger.label"),
......@@ -518,8 +518,8 @@ var gPluginHandler = {
if (curNotification) {
curNotification.reshow();
}
}
}
},
},
];
function notificationCallback(type) {
if (type == "dismissed") {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment