[Pkg-mozext-commits] [tabmixplus] 27/48: Event.originalTarget doesn't have getAttribute function when draggin tab background on Firefox 57

David Prévot taffit at moszumanska.debian.org
Sun Aug 20 03:14:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 7638c9f8fc0df5372e115a035ecb2d78badaf681
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Aug 9 22:42:31 2017 +0300

    Event.originalTarget doesn't have getAttribute function when draggin tab background on Firefox 57
---
 chrome/content/minit/minit.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/minit/minit.js b/chrome/content/minit/minit.js
index 401f7ce..6da0dc6 100644
--- a/chrome/content/minit/minit.js
+++ b/chrome/content/minit/minit.js
@@ -163,7 +163,8 @@ var TMP_tabDNDObserver = {
   onDragStart(event, tabmixDragstart) {
     // we get here on capturing phase before "tabbrowser-close-tab-button"
     // binding stop the event propagation
-    if (event.originalTarget.getAttribute("anonid") == "tmp-close-button") {
+    if (event.originalTarget && typeof event.originalTarget.getAttribute == "function" &&
+        event.originalTarget.getAttribute("anonid") == "tmp-close-button") {
       event.stopPropagation();
       return;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list