[email protected] wrote:
I'm trying to embed gecko in a MFC-Application with VisualStudio 6.0
as compiler. I'm using gecko-sdk-win32-msvc-1.8.0.4 because this seems
to be linkable with VisualStudio 6.0. Newer sdk versions 1.9.0.x gave
me linker errors so I'm using now sdk version 1.8.0.4.
And running against what gecko version?
LoadURI always gives me the return value 0x805e000a
(NS_ERROR_CONTENT_BLOCKED) even if i load some simple html files. It
seems, every content is blocked. How do I unblock content? Or is there
something completely wrong with my code?
The relevant code in nsDocShell.cpp is this:
7662 rv = NS_CheckContentLoadPolicy(contentType,
7663 aURI,
7664 loadingPrincipal,
7665 context,
7666 EmptyCString(), //mime guess
7667 nsnull, //extra
7668 &shouldLoad);
7669
7670 if (NS_FAILED(rv) || NS_CP_REJECTED(shouldLoad)) {
7671 if (NS_SUCCEEDED(rv) && shouldLoad ==
nsIContentPolicy::REJECT_TYPE) {
7672 return NS_ERROR_CONTENT_BLOCKED_SHOW_ALT;
7673 }
7674
7675 return NS_ERROR_CONTENT_BLOCKED;
7676 }
(in nsDocShell::InternalLoad). If you have debugging symbols, you might
want to step into that and see what's going on. I would suspect that rv
is ending up as an error code here or something...
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding