Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Wrappers & TypeError: can't access dead object

313 views
Skip to first unread message

Jan Honza Odvarko

unread,
May 3, 2012, 11:29:09 AM5/3/12
to
Since "Bug 695480 - Remove support for Chrome -> Content leaks" landed

...I am now seeing bunch of "TypeError: can't access dead object".
This sounds good in general (since useful for mem leaks), but I am
also seeing the exception for the following code:

var object = gBrowser.selectedBrowser.contentWindow.wrappedJSObject;
var parent = Object.getPrototypeOf(object);
Object.keys(parent); // EXCEPTION

If the object is set to be
"gBrowser.selectedBrowser.contentWindow" (no wrapper) it works.

Is it expected? Is it reported?

Honza


Boris Zbarsky

unread,
May 3, 2012, 12:23:25 PM5/3/12
to
On 5/3/12 11:29 AM, Jan Honza Odvarko wrote:
> Is it expected? Is it reported?

"I believe not" and "no".

Please file and cc Kyle?.

-Boris

Jan Honza Odvarko

unread,
May 3, 2012, 1:23:54 PM5/3/12
to
0 new messages