diff options
| author | callum_linden <none@none> | 2018-01-26 17:06:19 -0800 | 
|---|---|---|
| committer | callum_linden <none@none> | 2018-01-26 17:06:19 -0800 | 
| commit | 8b09a997c5de48d30dc732a10ba3aeda6bc82d44 (patch) | |
| tree | ecb22a24a693b888aecf1ea752f4efe7ca162c97 /indra/media_plugins | |
| parent | 94f88e0121678cde7c4888d6adac9a1db1434292 (diff) | |
Fixes for: MAINT-8244 Text in CEF cannot be selected with the mouse. MAINT-8245 Expose CEF log file and logging severity to viewer and MAINT-8246 Expose the CEF remote debugging system to the viewer
Diffstat (limited to 'indra/media_plugins')
| -rw-r--r-- | indra/media_plugins/cef/media_plugin_cef.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp index 88317655ab..bdd394da4b 100644 --- a/indra/media_plugins/cef/media_plugin_cef.cpp +++ b/indra/media_plugins/cef/media_plugin_cef.cpp @@ -96,6 +96,8 @@ private:  	bool mCanPaste;  	std::string mCachePath;  	std::string mCookiePath; +	std::string mCefLogFile; +	bool mCefLogVerbose;  	std::vector<std::string> mPickedFiles;  	VolumeCatcher mVolumeCatcher;  	F32 mCurVolume; @@ -126,6 +128,8 @@ MediaPluginBase(host_send_func, host_user_data)  	mCanPaste = false;  	mCachePath = "";  	mCookiePath = ""; +	mCefLogFile = ""; +	mCefLogVerbose = false;  	mPickedFiles.clear();  	mCurVolume = 0.0; @@ -511,6 +515,8 @@ void MediaPluginCEF::receiveMessage(const char* message_string)  				settings.plugins_enabled = mPluginsEnabled;  				settings.user_agent_substring = mCEFLib->makeCompatibleUserAgentString(mUserAgentSubtring);  				settings.webgl_enabled = true; +				settings.log_file = mCefLogFile; +				settings.log_verbose = mCefLogVerbose;  				std::vector<std::string> custom_schemes(1, "secondlife");  				mCEFLib->setCustomSchemes(custom_schemes); @@ -540,8 +546,11 @@ void MediaPluginCEF::receiveMessage(const char* message_string)  			{  				std::string user_data_path_cache = message_in.getValue("cache_path");  				std::string user_data_path_cookies = message_in.getValue("cookies_path"); +  				mCachePath = user_data_path_cache + "cef_cache";  				mCookiePath = user_data_path_cookies + "cef_cookies"; +				mCefLogFile = message_in.getValue("cef_log_file"); +				mCefLogVerbose = message_in.getValueBoolean("cef_verbose_log");  			}  			else if (message_name == "size_change")  			{ | 
