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
parent
524fd399bb
commit
4bf715c512
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -6577,7 +6577,7 @@ Mute everyone?
|
|||
<notification
|
||||
name="AuthRequest"
|
||||
type="browser">
|
||||
Enter user name and password to continue.
|
||||
The site at '<nolink>[HOST_NAME]</nolink>' in realm '[REALM]' requires a user name and password.
|
||||
<form name="form">
|
||||
<input name="username" type="text" text="User Name"/>
|
||||
<input name="password" type="password" text="Password"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue