Implemented ability to start up cookie viewer in the image tab

This commit is contained in:
morse%netscape.com 2000-03-26 21:18:15 +00:00
Родитель e2002f766d
Коммит 1bfd0227f7
10 изменённых файлов: 75 добавлений и 21 удалений

Просмотреть файл

@ -1,8 +1,8 @@
<!ENTITY tab.cookiesonsystem.label "Stored Cookies">
<!ENTITY tab.bannedservers.label "Cookie Sites">
<!ENTITY div.bannedservers.label "Select Internet websites that can and cannot store cookies on your computer.">
<!ENTITY div.bannedservers.label "Internet websites that can and cannot store cookies on your computer.">
<!ENTITY tab.bannedimages.label "Image Sites">
<!ENTITY div.bannedimages.label "Select Internet websites from which images are or are not fetched.">
<!ENTITY div.bannedimages.label "Internet websites from which images are or are not fetched.">
<!ENTITY div.cookiesonsystem.label "View and Remove Cookies that are stored on your computer.">
<!ENTITY treehead.cookiename.label "Cookie Name">
<!ENTITY treehead.cookiedomain.label "Site">

Просмотреть файл

@ -75,6 +75,20 @@ function Startup()
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
try {
if (pref.GetBoolPref("cookieviewer.cookieTab")) {
element = document.getElementById("cookiesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","0" );
} else {
element = document.getElementById("imagesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","2" );
}
} catch(e) {
}
try {
if (pref.GetBoolPref("imageblocker.enabled")) {
var element;

Просмотреть файл

@ -42,12 +42,12 @@
<tabcontrol flex="100%" align="vertical">
<tabbox>
<tab selected="true" value="&tab.cookiesonsystem.label;"/>
<tab id="cookiesTab" value="&tab.cookiesonsystem.label;"/>
<tab value="&tab.bannedservers.label;"/>
<tab id="imagesTab" style="display:none" value="&tab.bannedimages.label;"/>
<spring flex="1"/>
</tabbox>
<tabpanel align="horizontal" style="width: 400px;">
<tabpanel id="panel" align="horizontal" style="width: 400px;">
<box class="tabpanel" id="system" flex="100%" align="vertical">
<box><html:div>&div.cookiesonsystem.label;</html:div></box>
<spring style="height: 10px;"/>

Просмотреть файл

@ -75,6 +75,20 @@ function Startup()
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
try {
if (pref.GetBoolPref("cookieviewer.cookieTab")) {
element = document.getElementById("cookiesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","0" );
} else {
element = document.getElementById("imagesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","2" );
}
} catch(e) {
}
try {
if (pref.GetBoolPref("imageblocker.enabled")) {
var element;

Просмотреть файл

@ -42,12 +42,12 @@
<tabcontrol flex="100%" align="vertical">
<tabbox>
<tab selected="true" value="&tab.cookiesonsystem.label;"/>
<tab id="cookiesTab" value="&tab.cookiesonsystem.label;"/>
<tab value="&tab.bannedservers.label;"/>
<tab id="imagesTab" style="display:none" value="&tab.bannedimages.label;"/>
<spring flex="1"/>
</tabbox>
<tabpanel align="horizontal" style="width: 400px;">
<tabpanel id="panel" align="horizontal" style="width: 400px;">
<box class="tabpanel" id="system" flex="100%" align="vertical">
<box><html:div>&div.cookiesonsystem.label;</html:div></box>
<spring style="height: 10px;"/>

Просмотреть файл

@ -1,11 +1,11 @@
<!ENTITY tab.cookiesonsystem.label "Stored Cookies">
<!ENTITY tab.bannedservers.label "Blocked Cookies">
<!ENTITY div.bannedservers.label "Select Internet websites that can and cannot store Cookies on your computer.">
<!ENTITY tab.bannedimages.label "Blocked Images">
<!ENTITY div.bannedimages.label "Select Internet websites from which images are not fetched.">
<!ENTITY tab.bannedservers.label "Cookie Sites">
<!ENTITY div.bannedservers.label "Internet websites that can and cannot store cookies on your computer.">
<!ENTITY tab.bannedimages.label "Image Sites">
<!ENTITY div.bannedimages.label "Internet websites from which images are or are not fetched.">
<!ENTITY div.cookiesonsystem.label "View and Remove Cookies that are stored on your computer.">
<!ENTITY treehead.cookiename.label "Cookie Name">
<!ENTITY treehead.cookiedomain.label "Cookie Domain">
<!ENTITY treehead.cookiedomain.label "Site">
<!ENTITY treehead.infoselected.label "Information about the selected Cookie">
<!ENTITY button.removecookie.label "Remove Cookie">
<!ENTITY button.removeallcookies.label "Remove All Cookies">
@ -17,7 +17,7 @@
<!ENTITY props.secure.label "Is Cookie secure?">
<!ENTITY props.expires.label "Cookie will expire on:">
<!ENTITY treehead.sitename.label "Domain Name">
<!ENTITY treehead.sitename.label "Site">
<!ENTITY treehead.status.label "Status">
<!ENTITY windowtitle.label "Cookie Manager">

Просмотреть файл

@ -75,6 +75,20 @@ function Startup()
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
try {
if (pref.GetBoolPref("cookieviewer.cookieTab")) {
element = document.getElementById("cookiesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","0" );
} else {
element = document.getElementById("imagesTab");
element.setAttribute("selected","true" );
element = document.getElementById("panel");
element.setAttribute("index","2" );
}
} catch(e) {
}
try {
if (pref.GetBoolPref("imageblocker.enabled")) {
var element;

Просмотреть файл

@ -42,12 +42,12 @@
<tabcontrol flex="100%" align="vertical">
<tabbox>
<tab selected="true" value="&tab.cookiesonsystem.label;"/>
<tab id="cookiesTab" value="&tab.cookiesonsystem.label;"/>
<tab value="&tab.bannedservers.label;"/>
<tab id="imagesTab" style="display:none" value="&tab.bannedimages.label;"/>
<spring flex="1"/>
</tabbox>
<tabpanel align="horizontal" style="width: 400px;">
<tabpanel id="panel" align="horizontal" style="width: 400px;">
<box class="tabpanel" id="system" flex="100%" align="vertical">
<box><html:div>&div.cookiesonsystem.label;</html:div></box>
<spring style="height: 10px;"/>

Просмотреть файл

@ -1,11 +1,11 @@
<!ENTITY tab.cookiesonsystem.label "Stored Cookies">
<!ENTITY tab.bannedservers.label "Blocked Cookies">
<!ENTITY div.bannedservers.label "Select Internet websites that can and cannot store Cookies on your computer.">
<!ENTITY tab.bannedimages.label "Blocked Images">
<!ENTITY div.bannedimages.label "Select Internet websites from which images are not fetched.">
<!ENTITY tab.bannedservers.label "Cookie Sites">
<!ENTITY div.bannedservers.label "Internet websites that can and cannot store cookies on your computer.">
<!ENTITY tab.bannedimages.label "Image Sites">
<!ENTITY div.bannedimages.label "Internet websites from which images are or are not fetched.">
<!ENTITY div.cookiesonsystem.label "View and Remove Cookies that are stored on your computer.">
<!ENTITY treehead.cookiename.label "Cookie Name">
<!ENTITY treehead.cookiedomain.label "Cookie Domain">
<!ENTITY treehead.cookiedomain.label "Site">
<!ENTITY treehead.infoselected.label "Information about the selected Cookie">
<!ENTITY button.removecookie.label "Remove Cookie">
<!ENTITY button.removeallcookies.label "Remove All Cookies">
@ -17,7 +17,7 @@
<!ENTITY props.secure.label "Is Cookie secure?">
<!ENTITY props.expires.label "Cookie will expire on:">
<!ENTITY treehead.sitename.label "Domain Name">
<!ENTITY treehead.sitename.label "Site">
<!ENTITY treehead.status.label "Status">
<!ENTITY windowtitle.label "Cookie Manager">

Просмотреть файл

@ -33,6 +33,18 @@
<html:script language="JavaScript">
function viewCookies()
{
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
pref.SetBoolPref("cookieviewer.cookieTab", true);
window.openDialog("chrome://wallet/content/CookieViewer.xul","","modal=yes,chrome,resizable=no");
}
function viewImages()
{
pref = Components.classes['component://netscape/preferences'];
pref = pref.getService();
pref = pref.QueryInterface(Components.interfaces.nsIPref);
pref.SetBoolPref("cookieviewer.cookieTab", false);
window.openDialog("chrome://wallet/content/CookieViewer.xul","","modal=yes,chrome,resizable=no");
}
</html:script>
@ -131,7 +143,7 @@
<box align="horizontal" flex="1">
<spring flex="1"/>
<titledbutton value="&viewImages.label;" class="dialog push" onclick="viewCookies();"/>
<titledbutton value="&viewImages.label;" class="dialog push" onclick="viewImages();"/>
</box>
</titledbox>