summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2016-04-14 11:46:19 -0700
committerRider Linden <rider@lindenlab.com>2016-04-14 11:46:19 -0700
commitc04f632218df5472a822e2c709b915cf1c4e3bf7 (patch)
treee4a106aa25a3ad5d786ae8645dc3ca90eca5e979 /indra/newview
parentf9f5003f4a65c110c44fc3da7c465823ca267938 (diff)
parent09ab4b7cdd7336fa1bb8ccbeb11968fa141abcde (diff)
Merged lindenlab/viewer-bear into default
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llviewermedia.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 3e027e3d05..a7ad7c80d9 100755
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -1312,6 +1312,13 @@ void LLViewerMedia::getOpenIDCookieCoro(std::string url)
if (parseRawCookie(sOpenIDCookie, cookie_name, cookie_value, cookie_path, httponly, secure) &&
media_instance->getMediaPlugin())
{
+ // MAINT-5711 - inexplicably, the CEF setCookie function will no longer set the cookie if the
+ // url and domain are not the same. This used to be my.sl.com and id.sl.com respectively and worked.
+ // For now, we use the URL for the OpenID POST request since it will have the same authority
+ // as the domain field.
+ // (Feels like there must be a less dirty way to construct a URL from component LLURL parts)
+ url = std::string(sOpenIDURL.mURI) + "://" + std::string(sOpenIDURL.mAuthority);
+
media_instance->getMediaPlugin()->setCookie(url, cookie_name, cookie_value, cookie_host, cookie_path, httponly, secure);
}
}