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?
2) Does

  nsCOMPtr<nsIDocShell> docShell = do_GetInterface(_browser);

   not do what you want?

    // 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?

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to