Hi guys :

When useing nsIIOService interface  to set offline in moblin
mhs-service . 

But it does not work.

Following  code about  set offline:
        
   nsresult rv;
   nsCOMPtr<nsIIOService> mIOService = do_GetIOService(&rv);
   mIOService->SetOffline(PR_TRUE);
 
Following  code is set javascript :


  nsCOMPtr<nsIPrefService> pref_service
    = do_GetService (NS_PREFSERVICE_CONTRACTID, &rv);

pref_service->SetBoolPref("javascript.enable",PR_FALSE);


But offline and javascript functions still can not work .


Maybe offline or javascript has be removed from xulrunner-headless?


_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to