On Tue, 22 Jun 2004 08:12:59 -0700, Ed Burns wrote: >> Naturally, the next step is to fix the new NavigationTest.testHttpLoad(). > > Hello, I'm trying to use nsIWebNavigation to load an http URI: > > nsresult rv = > nativeBrowserControl->mNavigation->LoadURI(urlStringChars, > > nsIWebNavigation::LOAD_FLAGS_NONE, > nsnull, nsnull, > nsnull); > > However, I find that when this command executes, the URL doesn't load. > file:/// urls load fine however. I investigated and found that > > nsPromptService::Alert(nsIDOMWindow *parent, > const PRUnichar *dialogTitle, const PRUnichar > *text) > > is getting called, and the "text" argument is: > > "This document cannot be displayed while offline. To go online, > uncheck Work Offline from the File menu." > > However, my embedding app has no such choice to work offline. Does > anyone know how to fix this?
As a workaround, I manually obtain the nsIIOService and call SetOffline(PR_FALSE). I'd like to not have to do this however. -- Modify my email address before replying to remove spam block. _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
