diff options
| author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-09-14 05:13:53 +0300 | 
|---|---|---|
| committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-09-14 05:13:53 +0300 | 
| commit | ddbe9583ff0732ac6b8832a476fed4c6e0d54a49 (patch) | |
| tree | 3af86f07efdc314ae1dfbf0639aaf4b77e0aa79c /indra/newview | |
| parent | a07b64d30e65c3b448879825150336a498e91a15 (diff) | |
Backed out changeset: a6398f90389a
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llviewermedia.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index a9eb79b649..d4487b22c9 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1731,10 +1731,12 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_  		std::string launcher_name = gDirUtilp->getLLPluginLauncher();  		std::string plugin_name = gDirUtilp->getLLPluginFilename(plugin_basename); -		// cookies now are stored in the CEF cache directory too (no more control over their location)  		std::string user_data_path_cache = gDirUtilp->getCacheDir(false);  		user_data_path_cache += gDirUtilp->getDirDelimiter(); +		std::string user_data_path_cookies = gDirUtilp->getOSUserAppDir(); +		user_data_path_cookies += gDirUtilp->getDirDelimiter(); +  		std::string user_data_path_cef_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "cef_log.txt");  		// Fix for EXT-5960 - make browser profile specific to user (cache, cookies etc.) @@ -1745,9 +1747,8 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_  		std::string linden_user_dir = gDirUtilp->getLindenUserDir();  		if ( ! linden_user_dir.empty() )  		{ -			// cookies now are stored in the CEF cache directory too (no more control over their location) -			user_data_path_cache = linden_user_dir; -			user_data_path_cache += gDirUtilp->getDirDelimiter(); +			user_data_path_cookies = linden_user_dir; +			user_data_path_cookies += gDirUtilp->getDirDelimiter();  		};  		// See if the plugin executable exists @@ -1766,7 +1767,7 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_  		{  			media_source = new LLPluginClassMedia(owner);  			media_source->setSize(default_width, default_height); -			media_source->setUserDataPath(user_data_path_cache, user_data_path_cef_log); +			media_source->setUserDataPath(user_data_path_cache, user_data_path_cookies, user_data_path_cef_log);  			media_source->setLanguageCode(LLUI::getLanguage());  			media_source->setZoomFactor(zoom_factor); | 
