зеркало из https://github.com/mozilla/gecko-dev.git
Bug #281717 This is the code half of this (other half is policy). Adding a privacy link under the report wizardpage so users can view privacy any time they want, make clear email isn't required. p=me r=mconnor@steelgryphon.com a=asa
This commit is contained in:
Родитель
7243f7850e
Коммит
11a288b859
|
@ -31,7 +31,12 @@
|
|||
<!ENTITY reportForm.gecko.title "Gecko:">
|
||||
<!ENTITY reportForm.useragent.title "Useragent:">
|
||||
<!ENTITY reportForm.language.title "Language:">
|
||||
<!ENTITY reportForm.email.title "Email:">
|
||||
|
||||
<!-- Make sure this has "(Optional)" at the end. This is important for the user to know -->
|
||||
<!ENTITY reportForm.email.title "Email (Optional):">
|
||||
|
||||
<!ENTITY reportForm.privacyPolicy.title "Privacy Policy">
|
||||
<!ENTITY reportForm.privacyPolicy.tooltip "View Privacy Policy">
|
||||
|
||||
<!ENTITY reportResults.showDetail.title "Show Details">
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
pref("extensions.reporter.privacyURL", "http://reporter-test.mozilla.org/privacy/?plain");
|
||||
// Make sure there are trailing slashes!
|
||||
pref("extensions.reporter.privacyURL", "http://reporter-test.mozilla.org/privacy/");
|
||||
pref("extensions.reporter.serviceURL", "http://reporter-test.mozilla.org/service/");
|
||||
|
||||
|
|
|
@ -85,6 +85,10 @@ function getCharPref(prefname, aDefault) {
|
|||
}
|
||||
}
|
||||
|
||||
function openPrivacyPolicy() {
|
||||
var url = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/");
|
||||
openDialog("chrome://browser/content/browser.xul", "_blank", "chrome,all,dialog=no", url, null, null);
|
||||
}
|
||||
|
||||
function initPrivacyNotice() {
|
||||
var reportWizard = document.getElementById('reportWizard');
|
||||
|
@ -97,8 +101,8 @@ function initPrivacyNotice() {
|
|||
document.getElementById("dontShowPrivacyStatement").setAttribute("checked", "true");
|
||||
|
||||
// Load Privacy Policy
|
||||
var privacyURL = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/?plain");
|
||||
document.getElementById("privacyStatement").setAttribute("src", privacyURL);
|
||||
var privacyURL = getCharPref("privacyURL", "http://reporter-test.mozilla.org/privacy/");
|
||||
document.getElementById("privacyStatement").setAttribute("src", privacyURL+"?plain");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -107,6 +107,14 @@
|
|||
<label control="email" value="&reportForm.email.title;"/>
|
||||
<textbox id="email" size="60" class="noborder"/>
|
||||
</row>
|
||||
<row>
|
||||
<spacer/>
|
||||
<label id="privacyPolicy"
|
||||
onclick="openPrivacyPolicy();"
|
||||
onkeypress="if (event.keyCode == event.DOM_VK_ENTER || event.keyCode == event.DOM_VK_RETURN) openPrivacyPolicy();"
|
||||
value="&reportForm.privacyPolicy.title;"
|
||||
tooltiptext="&reportForm.privacyPolicy.tooltip;"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</wizardpage>
|
||||
|
|
|
@ -50,3 +50,15 @@
|
|||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#privacyPolicy {
|
||||
color: #0000FF;
|
||||
text-decoration: underline !important;
|
||||
cursor: pointer;
|
||||
text-align: right;
|
||||
-moz-user-focus: normal;
|
||||
}
|
||||
|
||||
#privacyPolicy:focus {
|
||||
outline: 1px dotted invert ! important;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче