[Pkg-mozext-commits] [tabmixplus] 107/147: Follow up bug 1338585 - Add an eslint rule to require using .ownerGlobal instead of .ownerDocument.defaultView ownerGlobal doesn't exist in content privileged windows

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:42 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 255e1deb2579e221359f582d91e450005379adb0
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Feb 14 18:51:42 2017 +0200

    Follow up bug 1338585 - Add an eslint rule to require using .ownerGlobal instead of .ownerDocument.defaultView
    ownerGlobal doesn't exist in content privileged windows
---
 .eslintrc.js             | 1 +
 modules/ContentClick.jsm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/.eslintrc.js b/.eslintrc.js
index 9288fc3..0e4d327 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -20,6 +20,7 @@ module.exports = {
     "tabmix/no-single-arg-cu-import": 2,
     "tabmix/no-import-into-var-and-global": 2,
     "tabmix/no-useless-parameters": 2,
+    "tabmix/use-ownerGlobal": 2,
     "no-alert": 2,
     "no-array-constructor": 2,
     "no-bitwise": 0,
diff --git a/modules/ContentClick.jsm b/modules/ContentClick.jsm
index 69f0ff1..5405a8e 100644
--- a/modules/ContentClick.jsm
+++ b/modules/ContentClick.jsm
@@ -1,3 +1,4 @@
+/* eslint "tabmix/use-ownerGlobal": 0 */
 "use strict";
 
 this.EXPORTED_SYMBOLS = ["TabmixContentClick"];

-- 
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