Hi,

I'd like to load a "Warning: ... Content has expired" page or just write
that text in the browser.

First I tried to just change the current page to "about:blank" like this

nsCOMPtr<nsIBrowserInstance> serv = do_GetService
(NS_BROWSERINSTANCE_CONTRACTID);
/* Check service pointer :=) */
serv->LoadUrl (NS_ConvertASCIItoUCS2("about:blank").GetUnicode());

When I run this I get
ASSERTION: Reinitializing Content Variables without a window will cause a
crash, see Bugzilla bug 46454: 'mDOMWindow', file nsBrowserInstance.cpp,
line 469

Then I tried to use nsITextContent and its SetText method in how that I
could say, "Display this text for me.." but it lacks a ContractID (just has
a IID).


Any hints on how I can change the current page ?

Regards,
    Per



Reply via email to