diff options
author | andreykproductengine <akleshchev@productengine.com> | 2016-08-26 17:56:59 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2016-08-26 17:56:59 +0300 |
commit | f73b0ecd106c86eb71d27003f5b7e69322214f0a (patch) | |
tree | 46ed1b00c6f8d198509936ba2048bf00529ac98f /indra/newview/llmediactrl.cpp | |
parent | db230ec3ac9761600e83322fb890342de3e38981 (diff) |
MAINT-6658 Profile was opening app url in browser.
Diffstat (limited to 'indra/newview/llmediactrl.cpp')
-rw-r--r-- | indra/newview/llmediactrl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp index 9cf3249983..00043d1e72 100644 --- a/indra/newview/llmediactrl.cpp +++ b/indra/newview/llmediactrl.cpp @@ -1007,7 +1007,11 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event) std::string uuid = self->getClickUUID(); LL_DEBUGS("Media") << "Media event: MEDIA_EVENT_CLICK_LINK_HREF, target is \"" << target << "\", uri is " << url << LL_ENDL; - LLWeb::loadURL(url, target, std::string()); + // try as slurl first + if (!LLURLDispatcher::dispatch(url, "clicked", NULL, mTrusted)) + { + LLWeb::loadURL(url, target, std::string()); + } // CP: removing this code because we no longer support popups so this breaks the flow. // replaced with a bare call to LLWeb::LoadURL(...) |