Skip to content

Commit eef68c8

Browse files
committed
Bug 1990950 - Remove boilerplate code from privacy.js. r=akulyk
Differential Revision: https://phabricator.services.mozilla.com/D266254 UltraBlame original commit: 548a4b2e944000c564025f092de19bd7a3f1e9ee
1 parent da5b2e1 commit eef68c8

File tree

1 file changed

+0
-225
lines changed

1 file changed

+0
-225
lines changed

browser/components/preferences/privacy.js

Lines changed: 0 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -13984,225 +13984,6 @@ true
1398413984
*
1398513985
*
1398613986
*
13987-
Hides
13988-
non
13989-
technical
13990-
privacy
13991-
section
13992-
when
13993-
all
13994-
controls
13995-
within
13996-
are
13997-
hidden
13998-
.
13999-
*
14000-
/
14001-
updateNonTechnicalPrivacySectionVisibility
14002-
(
14003-
)
14004-
{
14005-
let
14006-
allDisabled
14007-
=
14008-
!
14009-
Preferences
14010-
.
14011-
get
14012-
(
14013-
"
14014-
privacy
14015-
.
14016-
globalprivacycontrol
14017-
.
14018-
functionality
14019-
.
14020-
enabled
14021-
"
14022-
)
14023-
.
14024-
value
14025-
&
14026-
&
14027-
!
14028-
Preferences
14029-
.
14030-
get
14031-
(
14032-
"
14033-
privacy
14034-
.
14035-
donottrackheader
14036-
.
14037-
enabled
14038-
"
14039-
)
14040-
.
14041-
value
14042-
;
14043-
let
14044-
nonTechnicalPrivacyGroup
14045-
=
14046-
document
14047-
.
14048-
getElementById
14049-
(
14050-
"
14051-
nonTechnicalPrivacyGroup
14052-
"
14053-
)
14054-
;
14055-
if
14056-
(
14057-
allDisabled
14058-
)
14059-
{
14060-
nonTechnicalPrivacyGroup
14061-
.
14062-
style
14063-
.
14064-
display
14065-
=
14066-
"
14067-
none
14068-
"
14069-
;
14070-
}
14071-
else
14072-
{
14073-
nonTechnicalPrivacyGroup
14074-
.
14075-
style
14076-
.
14077-
display
14078-
=
14079-
"
14080-
"
14081-
;
14082-
}
14083-
}
14084-
/
14085-
*
14086-
*
14087-
*
14088-
Sets
14089-
up
14090-
listeners
14091-
to
14092-
control
14093-
non
14094-
technical
14095-
privacy
14096-
section
14097-
visibility
14098-
.
14099-
*
14100-
/
14101-
initNonTechnicalPrivacySection
14102-
(
14103-
)
14104-
{
14105-
/
14106-
/
14107-
When
14108-
prefs
14109-
change
14110-
that
14111-
can
14112-
cause
14113-
all
14114-
settings
14115-
in
14116-
the
14117-
section
14118-
to
14119-
be
14120-
hidden
14121-
/
14122-
/
14123-
update
14124-
visibility
14125-
state
14126-
of
14127-
the
14128-
entire
14129-
section
14130-
.
14131-
Preferences
14132-
.
14133-
get
14134-
(
14135-
"
14136-
privacy
14137-
.
14138-
globalprivacycontrol
14139-
.
14140-
functionality
14141-
.
14142-
enabled
14143-
"
14144-
)
14145-
.
14146-
on
14147-
(
14148-
"
14149-
change
14150-
"
14151-
gPrivacyPane
14152-
.
14153-
updateNonTechnicalPrivacySectionVisibility
14154-
.
14155-
bind
14156-
(
14157-
gPrivacyPane
14158-
)
14159-
)
14160-
;
14161-
Preferences
14162-
.
14163-
get
14164-
(
14165-
"
14166-
privacy
14167-
.
14168-
donottrackheader
14169-
.
14170-
enabled
14171-
"
14172-
)
14173-
.
14174-
on
14175-
(
14176-
"
14177-
change
14178-
"
14179-
gPrivacyPane
14180-
.
14181-
updateNonTechnicalPrivacySectionVisibility
14182-
.
14183-
bind
14184-
(
14185-
gPrivacyPane
14186-
)
14187-
)
14188-
;
14189-
/
14190-
/
14191-
Initial
14192-
visiblity
14193-
state
14194-
.
14195-
gPrivacyPane
14196-
.
14197-
updateNonTechnicalPrivacySectionVisibility
14198-
(
14199-
)
14200-
;
14201-
}
14202-
/
14203-
*
14204-
*
14205-
*
1420613987
Sets
1420713988
up
1420813989
the
@@ -14302,12 +14083,6 @@ certificates
1430214083
;
1430314084
this
1430414085
.
14305-
initNonTechnicalPrivacySection
14306-
(
14307-
)
14308-
;
14309-
this
14310-
.
1431114086
_updateSanitizeSettingsButton
1431214087
(
1431314088
)

0 commit comments

Comments
 (0)