Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

tab-specific notifications should only be shown on the active tab and be cleared on navigation #1928

Closed
tetrode opened this issue May 26, 2016 · 5 comments
Assignees
Milestone

Comments

@tetrode
Copy link

tetrode commented May 26, 2016

Go to a page where you can fill in a username / password and where brave offers to save the password. The yellow bar is shown at the top with choices Yes / No / Never for this site

Browse away to another site.

Expected: the bar is removed

Actual: the bar stays until the end of the browser session

  • Platform Win7
  • Brave Version:
    Brave: 0.10.0
    Electron: 0.37.8
    libchromiumcontent: 50.0.2661.102
    V8: 5.0.71.48
    Node.js: 5.10.0
    Update channel: dev
@diracdeltas
Copy link
Member

This was the intended behavior because I figured people might want to browse without having to deal with their browser notifications until later. (The notifications start to disappear after there's 3 of them so they won't take up the entire window.) But I think it is probably better to just clear them when their frame's location changes.

@diracdeltas diracdeltas self-assigned this May 27, 2016
@diracdeltas diracdeltas added this to the 0.10.2dev milestone May 27, 2016
@tetrode
Copy link
Author

tetrode commented May 29, 2016

Thinking about it, this could create an issue in the following situation:
1 go to a domain A, put in username, password
2 after submit, domain A does a redirect to another domain B
3 domain B does more / other validation and redirect to domain A or domain C
When clearing the message on domain change, the message is gone at 2. Perhaps insert a timer that clears the message after x sec.
Also, the Yes / No / Never for this site buttons were not 100% clear for me. Can you insert hover-over help messages? E.g. for No is this 'Not this time, but next time Brave will ask you again?'

@diracdeltas
Copy link
Member

Hover-over tooltips are a good idea, thanks

I think we can avoid the redirect issue by only having the password notification cleared when the user manually navigates the tab or when the tab is closed

@diracdeltas diracdeltas modified the milestones: 0.10.5dev, 0.10.4dev Jun 6, 2016
@bbondy bbondy modified the milestones: 0.10.5dev, 0.11.0dev Jun 16, 2016
@bradleyrichter
Copy link
Contributor

We decided to limit the tab-specific notifications to the tab that invoked it. It should also cancel on it's own when the page address changes or otherwise is no longer valid in that tab.

@bbondy bbondy modified the milestones: 0.11.2dev, 0.11.1dev Jul 13, 2016
@diracdeltas diracdeltas changed the title Remember password stays active even when I browse away from the particular page to another domain tab-specific notifications should only be shown on the active tab and be cleared on navigation Jul 18, 2016
@bbondy bbondy modified the milestones: 0.11.2dev, 0.11.3dev Jul 21, 2016
@luixxiul luixxiul modified the milestones: 0.11.2dev, 0.11.3dev Jul 27, 2016
@diracdeltas
Copy link
Member

Thinking about it, this could create an issue in the following situation:
1 go to a domain A, put in username, password
2 after submit, domain A does a redirect to another domain B
3 domain B does more / other validation and redirect to domain A or domain C
When clearing the message on domain change, the message is gone at 2. Perhaps insert a timer that clears the message after x sec.

This turns out to be a very common case and is causing a lot of support issues, so I am going to revert this change for passwords for now. #2957

diracdeltas added a commit that referenced this issue Jan 10, 2017
fix #2957
note that this partially un-fixes #1928.

Auditors: @alexwykoff

Test Plan:
1. go to developer.apple.com
2. click on 'Account' in the top right
3. enter your apple username and password
4. the login page should redirect to https://developer.apple.com/
5. after the redirect, you should still see a password manager dialog from Brave that says 'Would you like Brave to remember the password for [username] on https://idmsa.apple.com?'
bkilrain pushed a commit to bkilrain/browser-laptop that referenced this issue Jan 13, 2017
fix brave#2957
note that this partially un-fixes brave#1928.

Auditors: @alexwykoff

Test Plan:
1. go to developer.apple.com
2. click on 'Account' in the top right
3. enter your apple username and password
4. the login page should redirect to https://developer.apple.com/
5. after the redirect, you should still see a password manager dialog from Brave that says 'Would you like Brave to remember the password for [username] on https://idmsa.apple.com?'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants