Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Crossrider get handler in Firefox Extention

We cannot get the windows handle when we compile with crossrider? it does work fine when compile in firefox console.
other example code that works fine in console does not work with crossrider compiler. How can we get the handler.
var win = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator).getMostRecentWindow("navigator:browser");
var basewindow = win.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShellTreeItem)
.treeOwner
.QueryInterface(Ci.nsIInterfaceRequestor)
.nsIBaseWindow;
var nativehandle = basewindow.nativeHandle;
1 person has
this problem
+1
Reply