Bug 1243445 - Pasting an invalid URL breaks the Downloads View in the Library

Issue #121
This commit is contained in:
janekptacijarabaci 2018-04-25 20:27:42 +02:00 committed by Roy Tam
commit 45a39c1ff8

View file

@ -1443,6 +1443,10 @@ DownloadsPlacesView.prototype = {
},
doCommand: function DPV_doCommand(aCommand) {
// Commands may be invoked with keyboard shortcuts even if disabled.
if (!this.isCommandEnabled(aCommand)) {
return;
}
switch (aCommand) {
case "cmd_copy":
this._copySelectedDownloadsToClipboard();