Discussion:
Getting a Firefox Tab window handle using the DOM?
Yotam
2010-05-12 06:57:09 UTC
Permalink
I have the gBrowser.selectedTab and I'm trying to get the window
handle (MS windows)
Is it possible to retrieve the window handle?
Rob Arnold
2010-05-12 16:15:15 UTC
Permalink
It is possible with some native code but at some point in the future it will
not be as tabs will no longer have native HWNDs. For now, all you need is
the nsIDocShell associated with the tab (gBrowser.selectedTab.docShell I
believe). Once you have that, in native code you can do something like this:
http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/WinTaskbar.cpp#70

-Rob
Post by Yotam
I have the gBrowser.selectedTab and I'm trying to get the window
handle (MS windows)
Is it possible to retrieve the window handle?
_______________________________________________
dev-tech-dom mailing list
https://lists.mozilla.org/listinfo/dev-tech-dom
Loading...