diff options
| author | Richard Linden <none@none> | 2010-09-16 00:45:27 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-09-16 00:45:27 -0700 |
| commit | 387011a1ff519d0e339b446ff5d02f0d009b7e5d (patch) | |
| tree | 4bf7a49fa856a0bd067071386f12553e6aa886f2 /indra/newview/llviewermedia.cpp | |
| parent | 0336487e34425c1630cd84da45dc64bc7c7c03be (diff) | |
EXP-29 WIP Implement popup blocking
added web popup notification overlay
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
| -rw-r--r-- | indra/newview/llviewermedia.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 012a4d2920..31e4753553 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -2819,24 +2819,6 @@ void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginCla case MEDIA_EVENT_CLICK_LINK_HREF: { LL_DEBUGS("Media") << "Media event: MEDIA_EVENT_CLICK_LINK_HREF, target is \"" << plugin->getClickTarget() << "\", uri is " << plugin->getClickURL() << LL_ENDL; - // retrieve the event parameters - std::string url = plugin->getClickURL(); - std::string target = plugin->getClickTarget(); - U32 target_type = plugin->getClickTargetType(); - - switch (target_type) - { - case LLPluginClassMedia::TARGET_NONE: - // ignore this click and let media plugin handle it - break; - default: - if(gSavedSettings.getBOOL("MediaEnablePopups")) - { - // loadURL now handles distinguishing between _blank, _external, and other named targets. - LLWeb::loadURL(url, target); - } - break; - } }; break; case MEDIA_EVENT_PLUGIN_FAILED_LAUNCH: |
