firebug / netexport

Firebug extension - export data from the Net panel
http://www.softwareishard.com/blog/netexport/
Other
35 stars 17 forks source link

__exposedProps__ is deprecated #17

Closed janodvarko closed 9 years ago

janodvarko commented 9 years ago

Using exposedProps to expose NetExport to the content is deprecated use the following construct instead:

var protectedFunctions = XPCNativeWrapper.unwrap(Cu.createObjectIn(win));
for (var p in functions)
    protectedFunctions[p] = protect(functions[p]);
Cu.makeObjectPropsNormal(protectedFunctions);
win.wrappedJSObject.NetExport = protectedFunctions;
janodvarko commented 9 years ago

Fixed as part of: https://github.com/firebug/firebug.next/issues/327

Honza