mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Changes for qnx/photon platform only. It should not affect other platforms.
Added the memory_cache_kb_size setting.
This commit is contained in:
parent
4b696584d3
commit
621e529bcc
@ -932,8 +932,6 @@ static void mozilla_set_default_pref( nsIPref *pref )
|
||||
nsIPref *pref = moz->EmbedRef->GetPrefs();
|
||||
*/
|
||||
|
||||
/* ATENTIE */ printf( "In mozilla_set_default_pref\n" );
|
||||
|
||||
/* translation set = Western European (ISO 8859-1) */
|
||||
pref->SetUnicharPref( "intl.charset.default", NS_ConvertASCIItoUCS2("iso8859-1").get());
|
||||
|
||||
|
@ -641,6 +641,13 @@ mozilla_set_pref( PtWidget_t *widget, char *option, char *value )
|
||||
else if( !strcmp( option, "clear_main_cache_on_exit" ) ) ; /* not used */
|
||||
else if( !strcmp( option, "keep_index_file_updated" ) ) ; /* not used */
|
||||
|
||||
/* memory cache options */
|
||||
else if( !strcmp( option, "memory_cache_kb_size" ) || !strcmp( option, "image_cache_size_KB" ) ) {
|
||||
int kb = atoi( value );
|
||||
if( kb <= 0 ) kb = 100; /* have a minimum threshold */
|
||||
pref->SetIntPref( "browser.cache.memory.capacity", kb );
|
||||
}
|
||||
|
||||
/* Miscellaneous options */
|
||||
else if( !strcmp( option, "History_Expire" ) )
|
||||
pref->SetIntPref( "browser.history_expire_days", atoi( value ) );
|
||||
|
Loading…
Reference in New Issue
Block a user