Alexey 'Spry' Pelykh wrote: > 1) So, now the load of my cookies cache, preferences etc. is made > somewhere inside > nsr = nsProfileDirProvider->SetProfileDir(nsLocalAppDataDir); > ?
Not exactly. SetProfileDir just sets up a "directory service provider". Then other code can at any time ask "what is the profile directory" and the provider will respond. > 2) So, if the above statement is somehow correct, it means, that a > single instance of Mozilla environment(embedding env.) is bindned to > some profile directory, where it stores some settings, etc.? Mostly, yes: in order to save any cookies/history/preferences, you have to have a profile directory. You can only have one profile directory per process. > 4) If #3 statement is correct, then I have to manually load/store my > preferences via nsIPref? I'm not sure I understand the question, but I'll take a guess: The normal way to do keep users preferences is 1) select a profile directory 2) use nsIPrefService/nsIPrefBranch to save named preferences --BDS _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
