Skip to content
  • Jared Wein's avatar
    Bug 1576735 - Canceling the create login form when no logins are in the list... · 5041c8bd
    Jared Wein authored
    Bug 1576735 - Canceling the create login form when no logins are in the list should revert to the previous view. r=MattN
    
    If there are no stored logins, the Cancel button is hidden.
    If there are visible stored logins, clicking the Cancel button will exit and move to the first login in the list.
    If there are no visible stored logins, clicking the Cancel button will reset the search filter, exit, and move to the first login in the list.
    
    This patch also fixes a race condition where we could end up with multiple observer notifications if about:logins was loaded multiple times very quickly.
    
    Differential Revision: https://phabricator.services.mozilla.com/D43544
    
    --HG--
    extra : moz-landing-system : lando
    5041c8bd