-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new feature new identity for more privacy
Showing
18 changed files
with
713 additions
and
2 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,5 +274,6 @@ | |
"gFindBar", | ||
"gFindBarInitialized", | ||
"gFindBarPromise", | ||
"BrowserSearch" | ||
"BrowserSearch", | ||
"NewIdentityButton" | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* 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/. */ | ||
|
||
#infoTitle { | ||
font-weight: 600; | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
browser/components/newidentity/content/newIdentityDialog.js
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,19 @@ | ||
/* 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/. */ | ||
|
||
document.addEventListener("dialogaccept", () => { | ||
const retvals = window.arguments[0]; | ||
retvals.confirmed = true; | ||
retvals.neverAskAgain = document.getElementById("neverAskAgain").checked; | ||
}); | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const dialog = document.getElementById("newIdentityDialog"); | ||
|
||
const accept = dialog.getButton("accept"); | ||
document.l10n.setAttributes(accept, "new-identity-dialog-confirm"); | ||
accept.classList.add("danger-button"); | ||
}); | ||
|
||
|
63 changes: 63 additions & 0 deletions
63
browser/components/newidentity/content/newIdentityDialog.xhtml
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,63 @@ | ||
<?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/. --> | ||
|
||
<!-- based on resetProfile.xhtml --> | ||
|
||
<window | ||
id="newIdentityDialogWindow" | ||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||
xmlns:html="http://www.w3.org/1999/xhtml" | ||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||
aria-labelledby="infoTitle" | ||
aria-describedby="infoBody" | ||
> | ||
<dialog id="newIdentityDialog" buttons="accept,cancel" defaultButton="accept"> | ||
<linkset> | ||
<html:link rel="stylesheet" href="chrome://global/skin/global.css" /> | ||
<html:link | ||
rel="stylesheet" | ||
href="chrome://global/content/commonDialog.css" | ||
/> | ||
<html:link | ||
rel="stylesheet" | ||
href="chrome://global/skin/commonDialog.css" | ||
/> | ||
<html:link | ||
rel="stylesheet" | ||
href="chrome://browser/content/newIdentityDialog.css" | ||
/> | ||
|
||
<html:link rel="localization" href="branding/brand.ftl" /> | ||
<html:link rel="localization" href="toolkit/global/base-browser.ftl" /> | ||
</linkset> | ||
|
||
<div xmlns="http://www.w3.org/1999/xhtml"> | ||
<div id="dialogGrid"> | ||
<div class="dialogRow" id="infoRow"> | ||
<div id="iconContainer"> | ||
<xul:image id="infoIcon" /> | ||
</div> | ||
<div id="infoContainer"> | ||
<xul:description | ||
id="infoTitle" | ||
data-l10n-id="new-identity-dialog-title" | ||
/> | ||
<xul:description | ||
id="infoBody" | ||
data-l10n-id="new-identity-dialog-description" | ||
/> | ||
<xul:checkbox | ||
id="neverAskAgain" | ||
data-l10n-id="new-identity-dialog-never-ask-checkbox" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="chrome://browser/content/newIdentityDialog.js" /> | ||
</dialog> | ||
</window> |
Oops, something went wrong.