Bug 1005552 - Fuss around with marquee some more. r=bz, a=1.2.x+
authorBobby Holley <bobbyholley@gmail.com>
Wed, 28 May 2014 12:43:07 -0700
changeset 157144 96a1ab166184bb428241bb42df29abd4defda5c6
parent 157143 8f952940d1c1478d0aeeaa6152e90c7ce0fd888f
child 157145 851f136057577387ed70deb219bc507c9e5d2d7a
push id515
push userryanvm@gmail.com
push dateThu, 29 May 2014 13:18:02 +0000
reviewersbz, 1
bugs1005552
milestone26.0
Bug 1005552 - Fuss around with marquee some more. r=bz, a=1.2.x+
layout/style/xbl-marquee/xbl-marquee.xml
--- a/layout/style/xbl-marquee/xbl-marquee.xml
+++ b/layout/style/xbl-marquee/xbl-marquee.xml
@@ -259,17 +259,17 @@
             case "string":
               if (!aIgnoreNextCall) {
                 try {
                   // Work around bug 872772 by wrapping the cross-compartment-
                   // wrapped function in a function from this scope.
                   //
                   // NB: Make sure to wrap the constructor in parentheses to
                   // deal with the weird precedence of |new| in JS.
-                  this["_on" + aName] = new (XPCNativeWrapper.unwrap(window).Function)("event", aValue);
+                  this["_on" + aName] = function(e) { window.setTimeout((new (XPCNativeWrapper.unwrap(window).Function)("event", aValue)).bind(this, e), 0); };
                 }
                 catch(e) {
                   return false;
                 }
                 this.addEventListener(aName, this["_on" + aName], false);
               }
               else {
                 this["_on" + aName] = aValue;