From 7c5d96f91efc7146b8cf6471cbc4c1dda50b9a93 Mon Sep 17 00:00:00 2001 From: callum Date: Tue, 14 Dec 2010 16:16:58 -0800 Subject: SOCIAL-383 FIX Sites with no titles do not show web address in title bar in Web Content Browser --- indra/newview/llfloaterwebcontent.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra/newview/llfloaterwebcontent.cpp') diff --git a/indra/newview/llfloaterwebcontent.cpp b/indra/newview/llfloaterwebcontent.cpp index b4fa41e3f4..4d7c80ad6c 100644 --- a/indra/newview/llfloaterwebcontent.cpp +++ b/indra/newview/llfloaterwebcontent.cpp @@ -289,7 +289,11 @@ void LLFloaterWebContent::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent else if(event == MEDIA_EVENT_NAME_CHANGED ) { std::string page_title = self->getMediaName(); - setTitle( page_title ); + // simulate browser behavior - title is empty, use the current URL + if ( page_title.length() > 0 ) + setTitle( page_title ); + else + setTitle( mCurrentURL ); } else if(event == MEDIA_EVENT_LINK_HOVERED ) { -- cgit v1.2.3