mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Bug 372102 - Exploit safeJSObject flaw to make things work again. ChatZilla only. r=gijs
This commit is contained in:
parent
e694e1cb5c
commit
ce7ef8914b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user