Boris Zbarsky wrote:
Michael A. Borisov wrote:
Ok, I tried another way which I learned from Galeon.
Here's when I have to ask some questions:
1) Why exactly do you need a docshell?
I need it for many things. For example, to change page zoom.
2) Does
nsCOMPtr<nsIDocShell> docShell = do_GetInterface(_browser);
not do what you want?
No, it returns 0.
// QI that back to a doc shell.
nsCOMPtr<nsIDocShell> ds;
if (!(ds = do_QueryInterface(contentItem)))
return CO_ERROR(Co::MSG_NO_INTERFACE, "nsIDocShell");
....
The last do_QueryInterface returns 0 in FF3.5. But everything is OK in
FF3.0.x.
Are you compiling against 3.0.x headers and running against 3.5?
No, I built FF3.5.1 myself. As I did FF3.0.11 before. So, I build and
run my browser against FF3.5.1.
Michael
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding