forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1231375 - Add a dialog to manage DNT settings. r=past
- Loading branch information
Paolo Amadini
committed
Jan 8, 2016
1 parent
0bd8b01
commit c2e781d
Showing
8 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
|
||
<?xml-stylesheet href="chrome://global/skin/"?> | ||
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?> | ||
|
||
<!DOCTYPE prefwindow SYSTEM "chrome://browser/locale/preferences/donottrack.dtd" > | ||
|
||
<prefwindow id="DoNotTrackDialog" type="child" | ||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||
xmlns:html="http://www.w3.org/1999/xhtml" | ||
title="&window.title;" | ||
style="width: &window.width;; height: &window.height;;" | ||
dlgbuttons="accept,cancel"> | ||
<prefpane> | ||
<preferences> | ||
<preference id="privacy.donottrackheader.enabled" | ||
name="privacy.donottrackheader.enabled" | ||
type="bool"/> | ||
</preferences> | ||
<hbox align="center" pack="start"> | ||
<!-- Work around focus ring not showing properly. --> | ||
<spacer style="width: 1em;"/> | ||
<checkbox label="&doNotTrackCheckbox.label;" | ||
accesskey="&doNotTrackCheckbox.accesskey;" | ||
preference="privacy.donottrackheader.enabled"/> | ||
<label class="text-link doNotTrackLearnMore" | ||
value="&doNotTrackLearnMore.label;" | ||
href="https://www.mozilla.org/dnt"/> | ||
</hbox> | ||
</prefpane> | ||
</prefwindow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
browser/locales/en-US/chrome/browser/preferences/donottrack.dtd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
|
||
<!ENTITY window.title "Do Not Track"> | ||
<!ENTITY window.width "40em"> | ||
<!ENTITY window.height "8em"> | ||
|
||
<!ENTITY doNotTrackCheckbox.label "Use Do Not Track"> | ||
<!ENTITY doNotTrackCheckbox.accesskey "U"> | ||
|
||
<!ENTITY doNotTrackLearnMore.label "Learn More"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters