@@ -212,7 +212,8 @@ class BraveryPanel extends React.Component {
212
212
props . noScriptEnabled = braverySettings . noScript
213
213
props . httpsEnabled = braverySettings . httpsEverywhere
214
214
props . adControl = braverySettings . adControl
215
- props . isFpEnabled = braverySettings . fingerprintingProtection
215
+ props . isFpEnabled = braverySettings . fingerprintingProtection !== 'allowAllFingerprinting'
216
+ props . fingerprintingProtection = braverySettings . fingerprintingProtection
216
217
props . cookieControl = braverySettings . cookieControl
217
218
props . safeBrowsing = braverySettings . safeBrowsing
218
219
props . isCompactBraveryPanel = getSetting ( settings . COMPACT_BRAVERY_PANEL )
@@ -515,7 +516,7 @@ class BraveryPanel extends React.Component {
515
516
516
517
< SwitchControl className = { css (
517
518
! this . props . isCompactBraveryPanel && gridStyles . row3col1 ,
518
- this . props . isCompactBraveryPanel && gridStyles . row5col1 ,
519
+ this . props . isCompactBraveryPanel && gridStyles . row7col1 ,
519
520
this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__switchControl
520
521
) }
521
522
onClick = { this . onToggleHTTPSE }
@@ -527,7 +528,7 @@ class BraveryPanel extends React.Component {
527
528
528
529
< SwitchControl className = { css (
529
530
! this . props . isCompactBraveryPanel && gridStyles . row4col1 ,
530
- this . props . isCompactBraveryPanel && gridStyles . row6col1 ,
531
+ this . props . isCompactBraveryPanel && gridStyles . row8col1 ,
531
532
this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__switchControl
532
533
) }
533
534
onClick = { this . onToggleNoScript }
@@ -559,24 +560,48 @@ class BraveryPanel extends React.Component {
559
560
</ BraveryPanelDropdown >
560
561
</ div >
561
562
562
- < SwitchControl className = { css (
563
+ < div data-l10n-id = 'fingerprintingProtection' className = { css (
564
+ ! this . props . shieldsUp && styles . braveryPanel__body__advanced__control__forms__title_disabled ,
563
565
! this . props . isCompactBraveryPanel && gridStyles . row3col2 ,
564
- this . props . isCompactBraveryPanel && gridStyles . row7col1 ,
565
- this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__switchControl
566
- ) }
567
- customInfoButtonClassName = { css ( styles . braveryPanel__body__advanced__control__switchControl__infoButton ) }
568
- onClick = { this . onToggleFp }
569
- rightl10nId = 'fingerprintingProtection'
570
- checkedOn = { this . props . isFpEnabled }
571
- disabled = { ! this . props . shieldsUp }
572
- onInfoClick = { this . onInfoClick }
573
- infoTitle = { config . fingerprintingInfoUrl }
574
- testId = 'fingerprintingProtectionSwitch'
566
+ ! this . props . isCompactBraveryPanel && styles . braveryPanel__body__advanced__control__forms__title ,
567
+ this . props . isCompactBraveryPanel && gridStyles . row5col1 ,
568
+ this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__forms__title
569
+ ) } />
570
+ < span className = { cx ( {
571
+ [ css ( gridStyles . row3col2 ) ] : ! this . props . isCompactBraveryPanel ,
572
+ [ css ( gridStyles . row5col1 ) ] : this . props . isCompactBraveryPanel ,
573
+ [ css ( styles . braveryPanel__body__advanced__control__forms__title_disabled ) ] : ! this . props . shieldsUp ,
574
+ [ css ( styles . braveryPanel_compact__body__advanced__control__forms__title ) ] : this . props . isCompactBraveryPanel ,
575
+ [ css ( styles . braveryPanel__body__advanced__control__forms__title ) ] : ! this . props . isCompactBraveryPanel ,
576
+ fa : true ,
577
+ pullRight : true ,
578
+ 'fa-question-circle' : true
579
+ } ) }
580
+ title = { config . fingerprintingInfoUrl }
581
+ onClick = { this . onInfoClick }
575
582
/>
576
583
577
- < SwitchControl className = { css (
584
+ < div className = { css (
585
+ ! this . props . shieldsUp && styles . braveryPanel__body__advanced__control__forms__dropdown_disabled ,
578
586
! this . props . isCompactBraveryPanel && gridStyles . row4col2 ,
579
- this . props . isCompactBraveryPanel && gridStyles . row8col1 ,
587
+ ! this . props . isCompactBraveryPanel && styles . braveryPanel__body__advanced__control__forms__dropdown ,
588
+ this . props . isCompactBraveryPanel && gridStyles . row6col1 ,
589
+ this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__forms__dropdown
590
+ ) } >
591
+ < BraveryPanelDropdown
592
+ data-test-id = 'fpControl'
593
+ value = { this . props . fingerprintingProtection }
594
+ onChange = { this . onToggleFp }
595
+ disabled = { ! this . props . shieldsUp } >
596
+ < option data-l10n-id = 'block3rdPartyFingerprinting' data-test-id = 'block3rdPartyFingerprinting' value = 'block3rdPartyFingerprinting' />
597
+ < option data-l10n-id = 'allowAllFingerprinting' data-test-id = 'allowAllFingerprinting' value = 'allowAllFingerprinting' />
598
+ < option data-l10n-id = 'blockAllFingerprinting' data-test-id = 'blockAllFingerprinting' value = 'blockAllFingerprinting' />
599
+ </ BraveryPanelDropdown >
600
+ </ div >
601
+
602
+ < SwitchControl className = { css (
603
+ ! this . props . isCompactBraveryPanel && gridStyles . row5col1 ,
604
+ this . props . isCompactBraveryPanel && gridStyles . row9col1 ,
580
605
this . props . isCompactBraveryPanel && styles . braveryPanel_compact__body__advanced__control__switchControl
581
606
) }
582
607
onClick = { this . onToggleSafeBrowsing }
0 commit comments