summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcallum <none@none>2010-12-13 14:21:30 -0800
committercallum <none@none>2010-12-13 14:21:30 -0800
commit4bf715c512cf431dd2af7fc2d9256c1823b051d6 (patch)
tree0e2b7efe97dfe283c4c72c22a00fbed2155e44c7
parent524fd399bbc208049762654676883a4a34c8c602 (diff)
SOCIAL-367 FIX HTTP Auth dialog does not indicate what server a user is entering a user name and password for in Webkit 4.7
-rw-r--r--indra/newview/llmediactrl.cpp8
-rw-r--r--indra/newview/skins/default/xui/en/notifications.xml2
2 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp
index 7fb75bd42a..69e0e12a36 100644
--- a/indra/newview/llmediactrl.cpp
+++ b/indra/newview/llmediactrl.cpp
@@ -1052,6 +1052,14 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event)
{
LLNotification::Params auth_request_params;
auth_request_params.name = "AuthRequest";
+
+ // pass in host name and realm for site (may be zero length but will always exist)
+ LLSD args;
+ LLURL raw_url( self->getAuthURL().c_str() );
+ args["HOST_NAME"] = raw_url.getAuthority();
+ args["REALM"] = self->getAuthRealm();
+
+ auth_request_params.substitutions = args;
auth_request_params.payload = LLSD().with("media_id", mMediaTextureID);
auth_request_params.functor.function = boost::bind(&LLViewerMedia::onAuthSubmit, _1, _2, mMediaSource->getMediaPlugin());
LLNotifications::instance().add(auth_request_params);
diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml
index 39d623b246..76f221f481 100644
--- a/indra/newview/skins/default/xui/en/notifications.xml
+++ b/indra/newview/skins/default/xui/en/notifications.xml
@@ -6577,7 +6577,7 @@ Mute everyone?
<notification
name="AuthRequest"
type="browser">
- Enter user name and password to continue.
+The site at &apos;&lt;nolink&gt;[HOST_NAME]&lt;/nolink&gt;&apos; in realm &apos;[REALM]&apos; requires a user name and password.
<form name="form">
<input name="username" type="text" text="User Name"/>
<input name="password" type="password" text="Password"/>