diff options
author | callum_linden <none@none> | 2016-05-06 13:40:29 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2016-05-06 13:40:29 -0700 |
commit | c5d6bfe8ae61e3311c260626b590586d3cde4b6e (patch) | |
tree | 4b731e4be618f6b9048bcc7e6dadf663f0baec49 /indra/newview/llviewermedia.cpp | |
parent | 811a0b5726ed965f9f21ace2d3ec97bb95a91311 (diff) | |
parent | 94559950a2c670990db56bd74e65d26652421b8c (diff) |
Merge with viewer-release
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rwxr-xr-x | indra/newview/llviewermedia.cpp | 7 |
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); } } |