Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish

Differential Revision: https://phabricator.services.mozilla.com/D177025
This commit is contained in:
Mark Banner
2023-05-20 12:26:49 +00:00
parent e77def00ee
commit 91fde42f7b
7797 changed files with 21984 additions and 23305 deletions

View File

@@ -895,7 +895,7 @@ Object.setPrototypeOf(
);
for (let methodName of ["load", "applyFilter", "selectNode", "selectItems"]) {
DownloadsPlacesView.prototype[methodName] = function() {
DownloadsPlacesView.prototype[methodName] = function () {
throw new Error(
"|" + methodName + "| is not implemented by the downloads view."
);
@@ -914,21 +914,21 @@ function goUpdateDownloadCommands() {
updateCommandsForObject(HistoryDownloadElementShell.prototype);
}
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function () {
let richListBox = document.getElementById("downloadsListBox");
richListBox.addEventListener("scroll", function(event) {
richListBox.addEventListener("scroll", function (event) {
return this._placesView.onScroll();
});
richListBox.addEventListener("keypress", function(event) {
richListBox.addEventListener("keypress", function (event) {
return this._placesView.onKeyPress(event);
});
richListBox.addEventListener("dblclick", function(event) {
richListBox.addEventListener("dblclick", function (event) {
return this._placesView.onDoubleClick(event);
});
richListBox.addEventListener("contextmenu", function(event) {
richListBox.addEventListener("contextmenu", function (event) {
return this._placesView.onContextMenu(event);
});
richListBox.addEventListener("dragstart", function(event) {
richListBox.addEventListener("dragstart", function (event) {
this._placesView.onDragStart(event);
});
let dropNode = richListBox;
@@ -938,13 +938,13 @@ document.addEventListener("DOMContentLoaded", function() {
if (document.documentElement.id == "contentAreaDownloadsView") {
dropNode = richListBox.parentNode;
}
dropNode.addEventListener("dragover", function(event) {
dropNode.addEventListener("dragover", function (event) {
richListBox._placesView.onDragOver(event);
});
dropNode.addEventListener("drop", function(event) {
dropNode.addEventListener("drop", function (event) {
richListBox._placesView.onDrop(event);
});
richListBox.addEventListener("select", function(event) {
richListBox.addEventListener("select", function (event) {
this._placesView.onSelect();
});
richListBox.addEventListener("focus", goUpdateDownloadCommands);

View File

@@ -45,6 +45,6 @@ var ContentAreaDownloadsView = {
},
};
window.onload = function() {
window.onload = function () {
ContentAreaDownloadsView.init();
};

View File

@@ -5,12 +5,12 @@
/* import-globals-from allDownloadsView.js */
/* import-globals-from /toolkit/content/globalOverlay.js */
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function () {
let downloadCommands = document.getElementById("downloadCommands");
downloadCommands.addEventListener("commandupdate", function() {
downloadCommands.addEventListener("commandupdate", function () {
goUpdateDownloadCommands();
});
downloadCommands.addEventListener("command", function(event) {
downloadCommands.addEventListener("command", function (event) {
let { id } = event.target;
goDoCommand(id);
});