-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incognito Reauth: Fix reauth screen not restored when activity is killed
Under memory pressure (emulated by the "Don't keep activities" setting), IncognitoReauthController gets killed after starting the reauthentication flow. When restored, savedInstanceState is checked for incognitoReauthPending when re-initializing the IncognitoReauthController, to determine whether to resume the reauthentication flow. The problem lies when the SavedInstanceState is reset in ChromeTabbedActivity::onStartWithNative which sets it to null before it is checked for the incognitoReauthPending key in RootUiCoordinator::onFinishNativeInitialization, making mIsIncognitoReauthPendingOnRestore in IncognitoReauthController always return false and the reauth screen not getting restored when the activity is killed. This CL saves the incognitoReauthPending key value from SavedInstanceState in the the constructor of RootUiCoordinator before it is reset. (cherry picked from commit 318d0b3) Demo: https://drive.google.com/file/d/16nBDAFA3bIk065EsGGmynMLTY_zU7Uop/view?usp=sharing Bug: 1365633 Change-Id: I8a1484474ab8d7a75a9316b38cc0313199ec890e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4629112 Reviewed-by: Rohit Agarwal <roagarwal@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Reviewed-by: Boris Sazonov <bsazonov@chromium.org> Commit-Queue: Zaina Al-Mashni <zalmashni@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1162306} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4649429 Cr-Commit-Position: refs/branch-heads/5845@{#132} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Zaina Al-Mashni
authored and
Chromium LUCI CQ
committed
Jun 27, 2023
1 parent
67c0e2d
commit 8fe1cbc
Showing
6 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters