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
--- 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;
}
}
},