Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 538543003: Fix copying of SAML IdP cookies on subsequent logins (Closed)

Created:
6 years, 3 months ago by bartfab (slow)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, erikwright (departed), oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix copying of SAML IdP cookies on subsequent logins The code that copies cookies set by a SAML IdP on subsequent logins is wrong as it uses a method which modifies the cookie being copied by prepending a dot to the domain name. This CL fixes the problem by switching to the method that is used during initial login. The method is also renamed to make it clearer that it may be used on subsequent logins too. BUG=410416 TEST=unit_tests updated to detect this problem TBR=dbeam (wallet_signin_helper_unittest.cc) Committed: https://crrev.com/a13acdf708616561b245fdb5184cf13e6f8b8a66 Cr-Commit-Position: refs/heads/master@{#293524}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -56 lines) Patch
M chrome/browser/chromeos/login/profile_auth_data.cc View 1 chunk +5 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/login/profile_auth_data_unittest.cc View 5 chunks +38 lines, -32 lines 0 comments Download
M components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/cookies/cookie_monster.h View 1 chunk +3 lines, -2 lines 0 comments Download
M net/cookies/cookie_monster.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cookies/cookie_monster_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
bartfab (slow)
Hi Denis, Could you please review chrome/browser/chromeos/login/*? Hi Erik, Could you please review net/cookies/cookie_monster.*?
6 years, 3 months ago (2014-09-03 18:58:11 UTC) #2
erikwright (departed)
net/cookies LGTM
6 years, 3 months ago (2014-09-04 15:09:04 UTC) #3
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/538543003/diff/1/chrome/browser/chromeos/login/profile_auth_data_unittest.cc File chrome/browser/chromeos/login/profile_auth_data_unittest.cc (right): https://chromiumcodereview.appspot.com/538543003/diff/1/chrome/browser/chromeos/login/profile_auth_data_unittest.cc#newcode279 chrome/browser/chromeos/login/profile_auth_data_unittest.cc:279: void ProfileAuthDataTest::QuitLoop(const net::CookieList& ignored) { What is the reason ...
6 years, 3 months ago (2014-09-04 15:54:44 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/538543003/diff/1/chrome/browser/chromeos/login/profile_auth_data_unittest.cc File chrome/browser/chromeos/login/profile_auth_data_unittest.cc (right): https://chromiumcodereview.appspot.com/538543003/diff/1/chrome/browser/chromeos/login/profile_auth_data_unittest.cc#newcode279 chrome/browser/chromeos/login/profile_auth_data_unittest.cc:279: void ProfileAuthDataTest::QuitLoop(const net::CookieList& ignored) { On 2014/09/04 15:54:44, Denis ...
6 years, 3 months ago (2014-09-04 17:02:44 UTC) #5
Denis Kuznetsov (DE-MUC)
Ah, I see. lgtm.
6 years, 3 months ago (2014-09-05 11:40:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/538543003/1
6 years, 3 months ago (2014-09-05 11:52:18 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/2634) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/5639) win_chromium_x64_rel_swarming ...
6 years, 3 months ago (2014-09-05 12:11:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/538543003/20001
6 years, 3 months ago (2014-09-05 12:38:56 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 585871ef3e26e5813a96b0372d83284acdddbdb5
6 years, 3 months ago (2014-09-05 15:08:29 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:39:42 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a13acdf708616561b245fdb5184cf13e6f8b8a66
Cr-Commit-Position: refs/heads/master@{#293524}

Powered by Google App Engine
This is Rietveld 408576698