Bug 1401930 - Correct query selectors in DownloadsSubview code. r=Paolo
authorMike de Boer <mdeboer@mozilla.com>
Thu, 21 Sep 2017 14:01:37 +0200
changeset 382181 7bc96bcd3e238f35de6f38c1a73dbdab68fd8d3f
parent 382180 c8b5d382ff56fe57165c39eefce5fca248b850ab
child 382182 96757433b36d7b1467408283e76ff8bf8808695c
push id32551
push userkwierso@gmail.com
push dateThu, 21 Sep 2017 23:29:53 +0000
treeherdermozilla-central@d6d6fd889f7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersPaolo
bugs1401930
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1401930 - Correct query selectors in DownloadsSubview code. r=Paolo MozReview-Commit-ID: FDl7k7QkMv2
browser/components/downloads/DownloadsSubview.jsm
--- a/browser/components/downloads/DownloadsSubview.jsm
+++ b/browser/components/downloads/DownloadsSubview.jsm
@@ -55,20 +55,20 @@ class DownloadsSubview extends Downloads
     if (!contextMenu) {
       contextMenu = this.document.getElementById("downloadsContextMenu").cloneNode(true);
       contextMenu.setAttribute("closemenu", "none");
       contextMenu.setAttribute("id", this.context);
       contextMenu.removeAttribute("onpopupshown");
       contextMenu.setAttribute("onpopupshowing",
         "DownloadsSubview.updateContextMenu(document.popupNode, this);");
       contextMenu.setAttribute("onpopuphidden", "DownloadsSubview.onContextMenuHidden(this);")
-      let clearButton = contextMenu.querySelector("menuitem[command='downloadsCmd_clearDownloads'");
+      let clearButton = contextMenu.querySelector("menuitem[command='downloadsCmd_clearDownloads']");
       clearButton.hidden = false;
       clearButton.previousSibling.hidden = true;
-      contextMenu.querySelector("menuitem[command='cmd_delete'")
+      contextMenu.querySelector("menuitem[command='cmd_delete']")
         .setAttribute("command", "downloadsCmd_delete");
     }
     this.panelview.appendChild(contextMenu);
     this.container.setAttribute("context", this.context);
 
     this._downloadsData = DownloadsCommon.getData(this.window, true, true, true);
     this._downloadsData.addView(this);
   }