queryinterface - Getting the current inner window ID in a Firefox 32 extension -


I'm trying to maintain a Firefox extension and it depends on getting the existing internal Window ID. Window 31 has a query interface in Window object:

  element / foo.js: Foo.prototype = {window: tap, ... init: function (aWindow) {this.window = XPCNativeWrapper .unwrap (aWindow); Var util = this.window.QueryInterface (Ci.nsIInterfaceRequestor) .get interface (Ci.nsIDOMWindowUtils); Dump ('your internal window id is:' + util.currentInnerWindowID + '\ n'); }, ... shutdown: function () {}}   

window in firefox 32 The JQuery interface object has disappeared and I wonder how to get the current internal window id.

Thank you.

Calling XPCnetwrapper.unwrap removes the query interface from a window.

  if (aWindow.QueryInterface) {util = XPCNativeWrapper.unwrap (aWindow.QueryInterface (Ci.nsIInterfaceRequestor) .get interface (Ci.nsIDOMWindowUtils)); Dump ('your internal window id is:' + util.currentInnerWindowID + '\ n'); }    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -