Bug 1399997: Part 1 - Fix eval usage in Redux.jsm. r?standard8 draft
authorKris Maglione <maglione.k@gmail.com>
Thu, 14 Sep 2017 12:39:30 -0700
changeset 665020 6b4b7d6390d668638ea1d80cafa42209a8ac3122
parent 665019 97fbaf813dc6aaf4c1cb59d38268f4fe91950c54
child 665021 08c6e4a74bbaa57118b169b6a8d123fcca8fa84c
push id79900
push usermaglione.k@gmail.com
push dateThu, 14 Sep 2017 20:08:57 +0000
reviewersstandard8
bugs1399997
milestone57.0a1
Bug 1399997: Part 1 - Fix eval usage in Redux.jsm. r?standard8 MozReview-Commit-ID: KHeTEy4Os6U
browser/extensions/activity-stream/vendor/Redux.jsm
--- a/browser/extensions/activity-stream/vendor/Redux.jsm
+++ b/browser/extensions/activity-stream/vendor/Redux.jsm
@@ -1,14 +1,20 @@
 /**
  * Redux v.3.6.0
  *
  * This file has been reformatted as a Javascript Core Module
  */
 this.EXPORTED_SYMBOLS = ["redux"];
+
+// Defining these prevents redux from using indirect eval or `new
+// Function()` to get its global object.
+const self = this;
+this.Object = Object;
+
 this.redux =
 /******/ (function(modules) { // webpackBootstrap
 /******/ 	// The module cache
 /******/ 	var installedModules = {};
 
 /******/ 	// The require function
 /******/ 	function __webpack_require__(moduleId) {