mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 04:39:31 +00:00
bug 126360, hide p3p choice if p3p is not installed, r=sgehani,sr=jag,a=asa
This commit is contained in:
parent
3e984aecf0
commit
757758df12
@ -42,6 +42,13 @@
|
||||
{
|
||||
parent.initPanel('chrome://cookie/content/pref-cookies.xul');
|
||||
setDisables();
|
||||
|
||||
const NS_COOKIECONSENT_CONTRACTID = '@mozilla.org/cookie-consent;1';
|
||||
if (NS_COOKIECONSENT_CONTRACTID in Components.classes) {
|
||||
var p3pRadioButton = document.getElementById("p3pRadioButton");
|
||||
p3pRadioButton.removeAttribute("hidden");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const cookies_disabled = "2";
|
||||
@ -94,7 +101,7 @@
|
||||
accesskey="&disableCookies.accesskey;" oncommand="setDisables();"/>
|
||||
<radio value="1" label="&accOrgCookiesRadio.label;"
|
||||
accesskey="&accOrgCookiesRadio.accesskey;" oncommand="setDisables();"/>
|
||||
<hbox>
|
||||
<hbox id="p3pRadioButton" hidden="true">
|
||||
<radio value="3" label="&accP3PCookiesRadio.label;"
|
||||
accesskey="&accP3PCookiesRadio.accesskey;" oncommand="setDisables();"/>
|
||||
<button label="&viewP3P.label;" accesskey="&viewP3P.accesskey;" oncommand="viewP3P();"
|
||||
|
Loading…
x
Reference in New Issue
Block a user