File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ const updateDefaultPasswordManager = async function() {
1616 }
1717
1818 const passwordSavingEnabled = await browser . privacy . services . passwordSavingEnabled . get ( { } ) ;
19- if ( ( passwordSavingEnabled ?. levelOfControl === 'controlled_by_this_extension'
20- || passwordSavingEnabled ?. levelOfControl === 'controllable_by_this_extension' )
21- ) {
19+ if ( passwordSavingEnabled ?. levelOfControl === 'controllable_by_this_extension' ) {
2220 await browser . privacy . services . passwordSavingEnabled . set ( {
23- value : ! passwordSavingEnabled . value ,
21+ value : false ,
2422 } ) ;
23+ return true ;
24+ } else if ( passwordSavingEnabled ?. levelOfControl === 'controlled_by_this_extension' ) {
25+ await browser . privacy . services . passwordSavingEnabled . clear ( { } ) ;
2526 }
2627
27- return passwordSavingEnabled . value ;
28+ return false ;
2829} ;
You can’t perform that action at this time.
0 commit comments