Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -682,9 +682,16 @@ void LLViewerMediaImpl::navigateTo(const std::string& url, const std::string& mi
|
||||
LLURI uri(url);
|
||||
std::string scheme = uri.scheme();
|
||||
|
||||
if(scheme.empty() || "http" == scheme || "https" == scheme)
|
||||
if(scheme.empty() || ("http" == scheme || "https" == scheme))
|
||||
{
|
||||
LLHTTPClient::getHeaderOnly( url, new LLMimeDiscoveryResponder(this));
|
||||
if(mime_type.empty())
|
||||
{
|
||||
LLHTTPClient::getHeaderOnly( url, new LLMimeDiscoveryResponder(this));
|
||||
}
|
||||
else if(initializeMedia(mime_type) && (plugin = getMediaPlugin()))
|
||||
{
|
||||
plugin->loadURI( url );
|
||||
}
|
||||
}
|
||||
else if("data" == scheme || "file" == scheme || "about" == scheme)
|
||||
{
|
||||
|
||||
@@ -100,7 +100,7 @@ std::string AIFilePicker::get_folder(std::string const& default_path, std::strin
|
||||
{
|
||||
// This is the last resort when all else failed. Open the file chooser in directory 'home'.
|
||||
#if LL_WINDOWS
|
||||
char const* envname = "HOMEPATH";
|
||||
char const* envname = "USERPROFILE";
|
||||
#else
|
||||
char const* envname = "HOME";
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user