Yes, you need to QueryInterface between nsIDOMWindow and nsPIDOMWindow. What are you actually doing with the Firefox SDK?
- Kyle On Wed, Feb 10, 2016 at 5:03 PM, Devan Shah <devan.sha...@gmail.com> wrote: > I tried to use nsPIDOMWindow, but issues is that functions like: > > Function GetContentDOMWindow in nsIWebBrowser is expecting: NS_IMETHOD > GetContentDOMWindow(nsIDOMWindow * *aContentDOMWindow) = 0; > (firefox-45.0b4\firefox-sdk\include\nsIWebBrowser.h) > Function: NS_IMETHOD GetPrompt(nsIDOMWindow *aParent, const nsIID & iid, > void **result) = 0; from nsIPromptFactory > > So makes it all not compatible. > > Is there any way I can rebuild the Firefox SDK with the old nsIDOMWindow > > On Wed, Feb 10, 2016 at 7:51 PM, Kyle Huey <m...@kylehuey.com> wrote: > >> Yeah, ok, nsPIDOMWindow then. >> >> - Kyle >> >> On Wed, Feb 10, 2016 at 4:49 PM, Devan Shah <devan.sha...@gmail.com> >> wrote: >> >>> Version 45, I am using the SDK from >>> https://ftp.mozilla.org/pub/firefox/releases/45.0b4/win32/en-US/firefox-45.0b4.sdk.zip. >>> Which I still see the nsIPromptFactory has >>> >>> /* void getPrompt (in nsIDOMWindow aParent, in nsIIDRef iid, [iid_is >>> (iid), retval] out nsQIResult result); */ >>> NS_IMETHOD GetPrompt(nsIDOMWindow *aParent, const nsIID & iid, void >>> **result) = 0; >>> >>> >>> >>> <https://ftp.mozilla.org/pub/firefox/releases/45.0b4/win32/en-US/firefox-45.0b4.sdk.zip> >>> >>> On Wed, Feb 10, 2016 at 7:43 PM, Kyle Huey <m...@kylehuey.com> wrote: >>> >>>> Ok ... ignoring the question of how you're using it from C++ since >>>> binary addons are gone, many of the methods on nsIDOMWindow moved to >>>> nsPIDOMWindow and then to nsPIDOMWindowInner/Outer, depending on what >>>> version of Gecko you're using. Today on trunk nsIPromptFactory takes a >>>> mozIDOMWindowProxy, which is a base interface of nsPIDOMWindowOuter. You >>>> can look at >>>> http://mxr.mozilla.org/mozilla-central/source/dom/base/nsPIDOMWindow.h >>>> to see what's there. Some methods on nsIDOMWindow that were unused were >>>> removed completely, though I don't think there were many. >>>> >>>> - Kyle >>>> >>>> On Wed, Feb 10, 2016 at 4:40 PM, Devan Shah <devan.sha...@gmail.com> >>>> wrote: >>>> >>>>> I am using it from c++ >>>>> >>>>> On Wed, Feb 10, 2016 at 7:38 PM, Kyle Huey <m...@kylehuey.com> wrote: >>>>> >>>>>> Are you using it from JS or C++? If you're using it from JS, nothing >>>>>> has changed. >>>>>> >>>>>> - Kyle >>>>>> >>>>>> On Wed, Feb 10, 2016 at 4:32 PM, Devan Shah <devan.sha...@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hello >>>>>>> >>>>>>> nsIDOMWindow is deprecated now according to: >>>>>>> https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMWindow >>>>>>> is there an alternative for this interface. I am using a lot of >>>>>>> functions >>>>>>> from this interface and also using nsIPromptFactory which relies on >>>>>>> nsIDOMWindow a lot for all of it functions. >>>>>>> >>>>>>> Is there any way to get an alternative with the same functionality >>>>>>> which requires minimal changes or is there a way that I can get the >>>>>>> nsIDOMWindow interface and all of its functionality back by adding the >>>>>>> interface locally and implementing the functions locally. >>>>>>> >>>>>>> Thanks >>>>>>> Devan Shah >>>>>>> _______________________________________________ >>>>>>> dev-platform mailing list >>>>>>> dev-platform@lists.mozilla.org >>>>>>> https://lists.mozilla.org/listinfo/dev-platform >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform