Bug 991965 - revert to using originalTarget in onDownloadMouseOut draft
authorGeorge Pîrlea <george@dranov.ro>
Sat, 21 Jan 2017 12:58:10 +0000
changeset 464628 256371e082432a1de74ede0bf483a93bc3700c97
parent 464627 b26f15df97fb6edf289e9134403287a91e055af0
child 542951 14039076d291cd741b9fceb6b8153c5b2eb86d47
push id42387
push userbmo:george@dranov.ro
push dateSat, 21 Jan 2017 12:59:09 +0000
bugs991965
milestone53.0a1
Bug 991965 - revert to using originalTarget in onDownloadMouseOut The alerts for potentially dangerous files (or at least the mochitests for that) seem to depend it. I can't figure out why, though. Without this, mochitests don't complete. MozReview-Commit-ID: I2ofYEbGXvd
browser/components/downloads/content/downloads.js
--- a/browser/components/downloads/content/downloads.js
+++ b/browser/components/downloads/content/downloads.js
@@ -1035,21 +1035,21 @@ const DownloadsView = {
     if (!this.contextMenuOpen &&
         aEvent.target.parentNode == this.richListBox) {
       this.richListBox.selectedItem = aEvent.target;
     }
   },
 
   onDownloadMouseOut(aEvent) {
     if (!this.contextMenuOpen &&
-        aEvent.target.parentNode == this.richListBox) {
+        aEvent.originalTarget.parentNode == this.richListBox) {
       // If the destination element is outside of the richlistitem, clear the
       // selection.
       let element = aEvent.relatedTarget;
-      while (element && element != aEvent.target) {
+      while (element && element != aEvent.originalTarget) {
         element = element.parentNode;
       }
       if (!element) {
         this.richListBox.selectedIndex = -1;
       }
     }
   },