-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Android: Authentication popup shown in the context of previous website #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
If dialog dismissed by activity, cancel authentication
|
@cmonfortep thanks for fixing this, I'll review it today. |
subsymbolic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of small suggestion otherwise this LGTM. Merge when you're ready.
| loadUrl(url = "http://example.com", isBrowserShowing = true) | ||
| testee.requiresAuthentication(authenticationRequest) | ||
|
|
||
| assertEquals("http://example.com", omnibarViewState().omnibarText) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the opposite test (the next one) checks that that the HideWebViewContent command is sent does it make sense to check that the HideWebViewContent command is not sent here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good 👍
|
|
||
| override fun onDismiss(dialog: DialogInterface) { | ||
| super.onDismiss(dialog) | ||
| //if listener is not null, user didn't press any button. We proceed to cancel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this self documenting? We could add a boolean method called didUserCompleteAuthentication or something similar and that would let us delete this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I didn't think about that. I like the idea of self documenting 💯
# Conflicts: # app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt
Task/Issue URL: https://app.asana.com/0/414730916066338/1173393687766921/f
Tech Design URL:
CC:
Description:
When authentication popup is show, previous website is still loaded in the background. This could add some confusion to users if the popup is triggered by an non related website.
Update the URL and hide web content if authentication popup is triggered by a host different to the website currently being displayed. Display content again when dialog dismissed.
Steps to test this PR:
Internal references:
Software Engineering Expectations
Technical Design Template