From ce7ef8914b60dd002b3083b97727c9a182b9f5d4 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Wed, 28 Feb 2007 17:21:38 +0000 Subject: [PATCH] Bug 372102 - Exploit safeJSObject flaw to make things work again. ChatZilla only. r=gijs --- extensions/irc/xul/content/static.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/irc/xul/content/static.js b/extensions/irc/xul/content/static.js index 28de2cf77bf4..945f7ef4757d 100644 --- a/extensions/irc/xul/content/static.js +++ b/extensions/irc/xul/content/static.js @@ -672,11 +672,14 @@ function importFromFrame(method) try { - var window = getContentWindow(this.frame) + var window = getContentWindow(this.frame); if (window && "initialized" in window && window.initialized && method in window) { - return window[method]; + return function import_wrapper_apply() + { + window[method].apply(this, arguments); + }; } } catch (ex)