mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 987678 - Stop doing all the crazy stuff in xbl-marquee. r=bz
This commit is contained in:
parent
ecb4aeaf39
commit
cdd8e663e7
@ -259,14 +259,8 @@
|
|||||||
case "string":
|
case "string":
|
||||||
if (!aIgnoreNextCall) {
|
if (!aIgnoreNextCall) {
|
||||||
try {
|
try {
|
||||||
// Things to watch out for here:
|
// Function Xrays make this simple and safe. \o/
|
||||||
// * Weird |new| precedence.
|
this["_on" + aName] = new window.Function("event", aValue);
|
||||||
// * Getting the correct constructor (via Xrays).
|
|
||||||
// * Waiving the constructor before invoking it, so that we can
|
|
||||||
// call it (since XBL gets opaque non-callable wrappers to content).
|
|
||||||
// * The fact that contentFn is transitively waived, which we need
|
|
||||||
// in order to be able to invoke it.
|
|
||||||
this["_on" + aName] = new (XPCNativeWrapper.unwrap(window.Function))("event", aValue);
|
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user