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

Issue 1988113004: Clear the login webview when SAML flow is canceled (Closed)

Created:
4 years, 7 months ago by emaxx
Modified:
4 years, 6 months ago
Reviewers:
afakhry, xiyuan, achuithb
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear the login webview when SAML flow is canceled Previously, the SAML webview running third-party website was kept running in the background even after the SAML login flow is canceled. This CL adds a redirection of the SAML webview to a blank page each time the login screen mode is changed. BUG=613245 TEST=existing login tests, manual testing with going to camera-capturing SAML web page and checking that the camera lid is off once the SAML flow is canceled manually or terminated due to a timeout or canceled due to network disconnection CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9ac3388d7cb865125b9af3c4e562a9677412e206 Cr-Commit-Position: refs/heads/master@{#399769}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reset SAML webview with 'about:blank'. Reset when network is disconnected. #

Total comments: 3

Patch Set 3 : Add comment #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Fix test failures: fire 'ready' event for 'about:blank' page too #

Patch Set 7 : Reset the webview only when the containing screen was shown and is about to be hidden #

Patch Set 8 : Make LoginTest.GaiaAuthOffline test work #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -5 lines) Patch
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/resources/gaia_auth_host/authenticator.js View 1 2 3 4 5 6 7 6 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (13 generated)
emaxx
Hi Achuith and Kevin, PTAL. https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right): https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js#newcode926 chrome/browser/resources/chromeos/login/screen_gaia_signin.js:926: this.gaiaAuthHost_.reload(); Authenticator.prototype.reload does the ...
4 years, 7 months ago (2016-05-19 19:02:16 UTC) #3
xiyuan
+afakhry https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right): https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js#newcode926 chrome/browser/resources/chromeos/login/screen_gaia_signin.js:926: this.gaiaAuthHost_.reload(); On 2016/05/19 19:02:16, emaxx wrote: > Authenticator.prototype.reload ...
4 years, 7 months ago (2016-05-19 22:47:09 UTC) #5
achuithb
On 2016/05/19 22:47:09, xiyuan wrote: > +afakhry > > https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js > File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right): > ...
4 years, 7 months ago (2016-05-19 23:21:56 UTC) #6
afakhry
https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right): https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js#newcode926 chrome/browser/resources/chromeos/login/screen_gaia_signin.js:926: this.gaiaAuthHost_.reload(); On 2016/05/19 22:47:08, xiyuan wrote: > On 2016/05/19 ...
4 years, 7 months ago (2016-05-20 00:14:21 UTC) #7
emaxx
https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js File chrome/browser/resources/chromeos/login/screen_gaia_signin.js (right): https://codereview.chromium.org/1988113004/diff/1/chrome/browser/resources/chromeos/login/screen_gaia_signin.js#newcode926 chrome/browser/resources/chromeos/login/screen_gaia_signin.js:926: this.gaiaAuthHost_.reload(); On 2016/05/20 00:14:21, afakhry wrote: > On 2016/05/19 ...
4 years, 7 months ago (2016-05-23 15:00:49 UTC) #8
xiyuan
lgtm
4 years, 7 months ago (2016-05-24 19:27:12 UTC) #9
xiyuan
On 2016/05/24 19:27:12, xiyuan wrote: > lgtm Please update the CL description as well.
4 years, 7 months ago (2016-05-24 19:27:59 UTC) #10
achuithb
lgtm https://codereview.chromium.org/1988113004/diff/20001/chrome/browser/resources/gaia_auth_host/authenticator.js File chrome/browser/resources/gaia_auth_host/authenticator.js (right): https://codereview.chromium.org/1988113004/diff/20001/chrome/browser/resources/gaia_auth_host/authenticator.js#newcode216 chrome/browser/resources/gaia_auth_host/authenticator.js:216: this.webview_.src = 'about:blank'; Is it worthwhile adding a ...
4 years, 7 months ago (2016-05-24 23:29:27 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988113004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1988113004/20001
4 years, 6 months ago (2016-05-27 20:19:48 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/177461)
4 years, 6 months ago (2016-05-27 21:04:33 UTC) #15
emaxx
Hi all, looks like I'm stuck with trying to make all tests work. The problem ...
4 years, 6 months ago (2016-06-08 19:21:20 UTC) #18
xiyuan
On 2016/06/08 19:21:20, emaxx wrote: > Hi all, looks like I'm stuck with trying to ...
4 years, 6 months ago (2016-06-08 19:42:12 UTC) #19
emaxx
On 2016/06/08 19:42:12, xiyuan wrote: > How about loading > > this.idpOrigin_ + EMBEDDED_SETUP_CHROMEOS_ENDPOINT > ...
4 years, 6 months ago (2016-06-09 01:19:56 UTC) #20
xiyuan
I thought we are trying to the get 'ready' event to be fired and use ...
4 years, 6 months ago (2016-06-09 17:18:41 UTC) #21
emaxx
On 2016/06/09 17:18:41, xiyuan wrote: > I thought we are trying to the get 'ready' ...
4 years, 6 months ago (2016-06-13 15:15:44 UTC) #23
emaxx
I changed the implementation now so that it resets the webview only when containing screen ...
4 years, 6 months ago (2016-06-13 15:16:02 UTC) #24
xiyuan
On 2016/06/13 15:16:02, emaxx wrote: > I changed the implementation now so that it resets ...
4 years, 6 months ago (2016-06-13 16:23:11 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988113004/140001
4 years, 6 months ago (2016-06-13 16:38:06 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-13 17:18:50 UTC) #29
achuithb
lgtm
4 years, 6 months ago (2016-06-14 17:45:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1988113004/140001
4 years, 6 months ago (2016-06-14 18:53:51 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-14 20:08:12 UTC) #34
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 20:08:21 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/9ac3388d7cb865125b9af3c4e562a9677412e206 Cr-Commit-Position: refs/heads/master@{#399769}
4 years, 6 months ago (2016-06-14 20:09:31 UTC) #37
jdufault
4 years, 6 months ago (2016-06-15 16:36:28 UTC) #38
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2068953003/ by jdufault@chromium.org.

The reason for reverting is: Makes SAMLPolicyTest.SAMLInterstitialNext extremely
flaky. See crbug.com/620353.
.

Powered by Google App Engine
This is Rietveld 408576698