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

Issue 2901283002: Avoid treating the load of about:blank as a failure in the web auth flow. (Closed)

Created:
3 years, 7 months ago by msarda
Modified:
3 years, 6 months ago
Reviewers:
Michael Courage
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid treating the load of about:blank as a failure in the web auth flow. As part of the OAUth 2.0 protocol with GAIA, at the end of the web authorization flow, GAIA redirects to a custom scheme URL of type |com.googleusercontent.apps.123:/<extension_id>|, where |com.googleusercontent.apps.123| is the reverse DNS notation of the client ID. It look like this URL is not an web accessible URL from within a Guest WebView, so during the load of this URL, Chrome validates and changes it to "about:blank", which then fails to be loaded within the context of the Identity Scope Approval Dialog extension. Note that in fact, it is better to avoid the load of |about:blank| as the dialog will actually be closed right after this load fails. This CL avoids treating the failure of loading |about:blank| as a failure of the web auth flow. BUG=722323 Review-Url: https://codereview.chromium.org/2901283002 Cr-Commit-Position: refs/heads/master@{#475894} Committed: https://chromium.googlesource.com/chromium/src/+/a8f5066a367be8011a77a7be6a32853d3448ec06

Patch Set 1 : Better comment #

Total comments: 2

Patch Set 2 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M chrome/browser/extensions/api/identity/web_auth_flow.cc View 1 2 chunks +25 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
msarda
Please take a look.
3 years, 7 months ago (2017-05-24 13:35:57 UTC) #2
Michael Courage
lgtm https://codereview.chromium.org/2901283002/diff/60001/chrome/browser/extensions/api/identity/web_auth_flow.cc File chrome/browser/extensions/api/identity/web_auth_flow.cc (right): https://codereview.chromium.org/2901283002/diff/60001/chrome/browser/extensions/api/identity/web_auth_flow.cc#newcode218 chrome/browser/extensions/api/identity/web_auth_flow.cc:218: // This URL is not an accessible URL ...
3 years, 6 months ago (2017-05-30 22:55:39 UTC) #11
msarda
https://codereview.chromium.org/2901283002/diff/60001/chrome/browser/extensions/api/identity/web_auth_flow.cc File chrome/browser/extensions/api/identity/web_auth_flow.cc (right): https://codereview.chromium.org/2901283002/diff/60001/chrome/browser/extensions/api/identity/web_auth_flow.cc#newcode218 chrome/browser/extensions/api/identity/web_auth_flow.cc:218: // This URL is not an accessible URL from ...
3 years, 6 months ago (2017-05-31 12:26:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2901283002/80001
3 years, 6 months ago (2017-05-31 12:26:31 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 13:26:52 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a8f5066a367be8011a77a7be6a32...

Powered by Google App Engine
This is Rietveld 408576698