Bug 372102 - Exploit safeJSObject flaw to make things work again. ChatZilla only. r=gijs

This commit is contained in:
silver%warwickcompsoc.co.uk 2007-02-28 17:21:38 +00:00
parent e694e1cb5c
commit ce7ef8914b

View File

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