diff options
author | Rider Linden <rider@lindenlab.com> | 2016-05-09 14:20:21 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2016-05-09 14:20:21 -0700 |
commit | 5fdc540e579b1a89e339814b851d1fd1e57d1d07 (patch) | |
tree | 09b5d559de1e21d3314bac399937161c2ba11dd1 /indra/newview/llviewermedia.cpp | |
parent | 94559950a2c670990db56bd74e65d26652421b8c (diff) |
MAINT-6392: Do not change the URL used for getting cookies (except to pass it to CEF) The original URL is used for HTTP Core access to profile functionality.
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rwxr-xr-x | indra/newview/llviewermedia.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index a7ad7c80d9..6ed063e066 100755 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1317,16 +1317,18 @@ void LLViewerMedia::getOpenIDCookieCoro(std::string url) // 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); + // MAINT-6392 - Rider: Do not change, however, the original URI requested, since it is used further + // down. + std::string cefUrl(std::string(sOpenIDURL.mURI) + "://" + std::string(sOpenIDURL.mAuthority)); - media_instance->getMediaPlugin()->setCookie(url, cookie_name, cookie_value, cookie_host, cookie_path, httponly, secure); + media_instance->getMediaPlugin()->setCookie(cefUrl, cookie_name, cookie_value, cookie_host, cookie_path, httponly, secure); } } } - // NOTE: this is the original OpenID cookie code, so of which is no longer needed now that we - // are using CEF - it's very intertwined with other code so, for the moment, I'm going to - // leave it alone and make a task to come back to it once we're sure the CEF cookie code is robust. + // Note: Rider: MAINT-6392 - Some viewer code requires access to the my.sl.com openid cookie for such + // actions as posting snapshots to the feed. This is handled through HTTPCore rather than CEF and so + // we must learn to SHARE the cookies. // Do a web profile get so we can store the cookie httpHeaders->append(HTTP_OUT_HEADER_ACCEPT, "*/*"); |