This commit is contained in:
morse%netscape.com 1999-09-09 06:43:15 +00:00
Родитель 328e7fdc2a
Коммит bba42751f6
19 изменённых файлов: 208 добавлений и 77 удалений

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

@ -1,3 +1,19 @@
/* for localization */
var Bundle = srGetStrBundle("chrome://wallet/locale/CookieViewer.properties");
var siteCookiename = Bundle.GetStringFromName("siteCookiename");
var cookiesTab = Bundle.GetStringFromName("cookiesTab");
var permissionsTab = Bundle.GetStringFromName("permissionsTab");
var cookiesStored = Bundle.GetStringFromName("cookiesStored");
var name = Bundle.GetStringFromName("name");
var value = Bundle.GetStringFromName("value");
var path = Bundle.GetStringFromName("path");
var secure = Bundle.GetStringFromName("secure");
var expires = Bundle.GetStringFromName("expires");
var permissionsStored = Bundle.GetStringFromName("permissionsStored");
var removeCmdLabel = Bundle.GetStringFromName("removeCmdLabel");
var okCmdLabel = Bundle.GetStringFromName("okCmdLabel");
var cancelCmdLabel = Bundle.GetStringFromName("cancelCmdLabel");
/* for xpconnect */
var cookieviewer =
Components.classes
@ -84,12 +100,12 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>View stored cookies</b>" +
"<b>" + cookiesTab + "</b>" +
"</font>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadPermissions();' href=''>" +
"<font size='2'>View sites that can or cannot store cookies</font>" +
"<font size='2'>" + permissionsTab + "</font>" +
"</a>" +
"</td>" +
"</tr>" +
@ -100,7 +116,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Cookies stored on your system");
("&nbsp;" + cookiesStored);
top.frames[title_frame].document.close();
top.frames[prop_frame].document.open();
@ -113,12 +129,12 @@
index = 8*(top.frames[list_frame].document.fSelectCookie.selname.selectedIndex) + 1;
top.frames[prop_frame].document.open();
top.frames[prop_frame].document.write(
"<nobr><b>Name: </b>" + cookieList[index+1] + "</nobr><br/>" +
"<nobr><b>Value: </b>" + cookieList[index+2] + "</nobr><br/>" +
"<nobr><b>" + name + "</b> " + cookieList[index+1] + "</nobr><br/>" +
"<nobr><b>" + value + "</b> " + cookieList[index+2] + "</nobr><br/>" +
"<nobr><b>" + cookieList[index+3] + ": </b>" + cookieList[index+4] + "</nobr><br/>" +
"<nobr><b>Path: </b>" + cookieList[index+5] + "</nobr><br/>" +
"<nobr><b>Secure: </b>" + cookieList[index+6] + "</nobr><br/>" +
"<nobr><b>Expires: </b>" + cookieList[index+7] + "</nobr><br/>"
"<nobr><b>" + path + "</b> " + cookieList[index+5] + "</nobr><br/>" +
"<nobr><b>" + secure + "</b> " + cookieList[index+6] + "</nobr><br/>" +
"<nobr><b>" + expires + "</b> " + cookieList[index+7] + "</nobr><br/>"
);
top.frames[prop_frame].document.close();
}
@ -128,7 +144,7 @@
top.frames[list_frame].document.write(
"<form name='fSelectCookie'>" +
"<p>" +
"<b>site:cookie-name</b>" +
"<b>" + Bundle.GetStringFromName("siteCookiename") + " </b>" +
"<table border='0'>" +
"<tr>" +
"<td width='100%' valign='top'>" +
@ -167,12 +183,12 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadCookies();' href=''>" +
"<font size='2'>View stored cookies</font>" +
"<font size='2'>" + cookiesTab + "</font>" +
"</a>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>View sites that can or cannot store cookies</b>" +
"<b>" + permissionsTab + "</b>" +
"</font>" +
"</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -184,7 +200,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Sites that can(+) or cannot(-) store cookies");
("&nbsp;" + permissionsStored + "");
top.frames[title_frame].document.close();
top.frames[prop_frame].document.open();
@ -233,11 +249,11 @@
"<form name='buttons'>" +
"<br/>" +
"&nbsp;" +
"<button onclick='top.DeleteItemSelected();'>Remove</button>" +
"<button onclick='top.DeleteItemSelected();'>" + removeCmdLabel + "</button>" +
"<div align='right'>" +
"<button onclick='parent.Save();'>OK</button>" +
"<button onclick='parent.Save();'>" + okCmdLabel + "</button>" +
" &nbsp;&nbsp;" +
"<button onclick='parent.Cancel();'>Cancel</button>" +
"<button onclick='parent.Cancel();'>" + cancelCmdLabel + "</button>" +
"</div>" +
"<input type='hidden' name='goneC' value='' size='-1'/>" +
"<input type='hidden' name='goneP' value='' size='-1'/>" +

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

@ -0,0 +1,13 @@
siteCookiename = site:cookie-name
cookiesTab = View stored cookies
permissionsTab = View sites that can or cannot store cookies
cookiesStored = Cookies stored on your system
permissionsStored = Sites that can(+) or cannot(-) store cookies
name = Name:
value = Value:
path = Path:
secure = Secure:
expires = Expires:
removeCmdLabel = Remove
okCmdLabel = OK
cancelCmdLabel = Cancel

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

@ -3,6 +3,7 @@
<xul:window xmlns="http://www.w3.org/TR/REC-html40"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://global/content/strres.js"/>
<script src="CookieViewer.js"/>
<frameset rows = "10,10,125,50" border="0" framespacing="0" onload="loadFrames();">

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

@ -49,7 +49,12 @@ libs:: $(LIBRARY)
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib
rm -f $(DIST)\bin\chrome\wallet\content\default\CookieViewer.xul
rm -f $(DIST)\bin\chrome\wallet\content\default\CookieViewer.js
rm -f $(DIST)\bin\chrome\wallet\locale\en-US\CookieViewer.properties
install:: $(DLL)
$(MAKE_INSTALL) CookieViewer.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) CookieViewer.js $(DIST)\bin\res\samples
$(MAKE_INSTALL) CookieViewer.xul $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) CookieViewer.js $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) CookieViewer.dtd $(DIST)\bin\chrome\wallet\locale\en-US
$(MAKE_INSTALL) CookieViewer.properties $(DIST)\bin\chrome\wallet\locale\en-US

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

@ -1,3 +1,14 @@
/* for localization */
var Bundle = srGetStrBundle("chrome://wallet/locale/WalletEditor.properties");
var manageData = Bundle.GetStringFromName("manageData");
var schemasHeading = Bundle.GetStringFromName("schemasHeading");
var valuesHeading = Bundle.GetStringFromName("valuesHeading");
var synonymsHeading = Bundle.GetStringFromName("synonymsHeading");
var addCmdLabel = Bundle.GetStringFromName("addCmdLabel");
var removeCmdLabel = Bundle.GetStringFromName("removeCmdLabel");
var okCmdLabel = Bundle.GetStringFromName("okCmdLabel");
var cancelCmdLabel = Bundle.GetStringFromName("cancelCmdLabel");
/* for xpconnect */
var walleteditor =
Components.classes
@ -384,7 +395,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write(
"<body bgcolor='#cccccc' name='schema'>" +
"<h3><center><b>Manage Personal Data</b></center></h3>" +
"<h3><center><b>" + manageData + "</b></center></h3>" +
"</body>"
);
top.frames[title_frame].document.close();
@ -393,7 +404,7 @@
top.frames[schema_frame].document.open();
top.frames[schema_frame].document.write(
"<body bgcolor='#cccccc' name='schema'>" +
"<b>Field Names:</b><br>" +
"<b>" + schemasHeading + "</b><br>" +
"<form name='schema'>" +
"<table border='0' width='50%' bgcolor='#cccccc'>" +
"<tr>" +
@ -418,18 +429,18 @@
"</tr>" +
"<tr>" +
"<td>" +
// "<button onclick='parent.deleteSchema();'>Remove</button>" +
// "<button onclick='parent.deleteSchema();'>" + removeCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.deleteSchema();',0)\">Remove</button>" +
"<button onclick=\"setTimeout('parent.deleteSchema();',0)\">" + removeCmdLabel + "</button>" +
"</td>" +
"</tr>" +
"<tr>" +
"<td>" +
"<nobr>" +
"<input type='text' size='8' name='newSchema'>" +
// "<button onclick='parent.addSchema();'>Add</button>" +
// "<button onclick='parent.addSchema();'>" + addCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.addSchema();',0)\">Add</button>" +
"<button onclick=\"setTimeout('parent.addSchema();',0)\">" + addCmdLabel + "</button>" +
"</nobr>" +
"</td>" +
"</tr>" +
@ -443,7 +454,7 @@
top.frames[value_frame].document.open();
top.frames[value_frame].document.write(
"<body bgcolor='#cccccc' name='schema'>" +
"<b>Entries for field:</b><br>" +
"<b>" + valuesHeading + "</b><br>" +
"<form name=value>" +
"<table border='0' width='50%' bgcolor='#cccccc'>" +
"<tr>" +
@ -468,15 +479,15 @@
"</select>" +
"</td>" +
"<td>" +
// "<button onclick='parent.deleteValue();'>Remove</button>" +
// "<button onclick='parent.deleteValue();'>" + removeCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.deleteValue();',0)\">Remove</button>" +
"<button onclick=\"setTimeout('parent.deleteValue();',0)\">" + removeCmdLabel + "</button>" +
"<br/>" +
"<nobr>" +
"<input type='text' size='8' name='newValue'>" +
// "<button onclick='parent.addValue();'>Add</button>" +
// "<button onclick='parent.addValue();'>" + addCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.addValue();',0)\">Add</button>" +
"<button onclick=\"setTimeout('parent.addValue();',0)\">" + addCmdLabel + "</button>" +
"</nobr>" +
"</td>" +
"</tr>" +
@ -490,7 +501,7 @@
top.frames[synonym_frame].document.open();
top.frames[synonym_frame].document.write(
"<body bgcolor='#cccccc' name='schema'>" +
"<b>Entries that mean the same as the above:</b><br>" +
"<b>" + synonymsHeading + "</b><br>" +
"<form name=synonym>" +
"<table border='0' width='50%' bgcolor='#cccccc'>" +
"<tr>" +
@ -513,15 +524,15 @@
"</select>" +
"</td>" +
"<td>" +
// "<button onclick='parent.deleteSynonymSchema();'>Remove</button>" +
// "<button onclick='parent.deleteSynonymSchema();'>" + removeCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.deleteSynonym();',0)\">Remove</button>" +
"<button onclick=\"setTimeout('parent.deleteSynonym();',0)\">" + removeCmdLabel + "</button>" +
"<br/>" +
"<nobr>" +
"<input type='text' size='8' name='newSynonym'>" +
// "<button onclick='parent.addSynonym();'>Add</button>" +
// "<button onclick='parent.addSynonym();'>" + addCmdLabel + "</button>" +
// (bug 3317 workaround)
"<button onclick=\"setTimeout('parent.addSynonym();',0)\">Add</button>" +
"<button onclick=\"setTimeout('parent.addSynonym();',0)\">" + addCmdLabel + "</button>" +
"</nobr>" +
"</td>" +
"</tr>" +
@ -538,9 +549,9 @@
"<hr/>" +
"<form name=button>" +
"<div align='right'>" +
"<button value='OK' onclick='parent.generateOutput(this.value);'>OK</button>" +
"<button value='OK' onclick='parent.generateOutput(this.value);'>" + okCmdLabel + "</button>" +
" &nbsp;&nbsp;" +
"<button value='Cancel' onclick='parent.generateOutput(this.value);'>Cancel</button>" +
"<button value='Cancel' onclick='parent.generateOutput(this.value);'>" + cancelCmdLabel + "</button>" +
"</div>" +
"</form>" +
"</body>"

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

@ -0,0 +1,8 @@
okCmdLabel = OK
cancelCmdLabel = Cancel
addCmdLabel = Add
removeCmdLabel = Remove
manageData = Manage Personal Data
schemasHeading = Field Names:
valuesHeading = Entries for field:
synonymsHeading = Entries that mean the same as the above:

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

@ -3,6 +3,7 @@
<xul:window xmlns="http://www.w3.org/TR/REC-html40"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://global/content/strres.js"/>
<script src="WalletEditor.js"/>
<frameset rows="15,115,30" frameborder="no" border="0" bordercolor="#cccccc" onload="loadFrames();">

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

@ -49,7 +49,11 @@ libs:: $(LIBRARY)
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib
rm -f $(DIST)\bin\chrome\wallet\content\default\WalletEditor.xul
rm -f $(DIST)\bin\chrome\wallet\content\default\WalletEditor.js
rm -f $(DIST)\bin\chrome\wallet\locale\en-US\WalletEditor.properties
install:: $(DLL)
$(MAKE_INSTALL) WalletEditor.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) WalletEditor.js $(DIST)\bin\res\samples
$(MAKE_INSTALL) WalletEditor.xul $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) WalletEditor.js $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) WalletEditor.properties $(DIST)\bin\chrome\wallet\locale\en-US

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

@ -1,3 +1,18 @@
/* for localization */
var Bundle = srGetStrBundle("chrome://wallet/locale/SignonViewer.properties");
var logonsSavedTab = Bundle.GetStringFromName("logonsSavedTab");
var logonsNotSavedTab = Bundle.GetStringFromName("logonsNotSavedTab");
var formsNotPreviewedTab = Bundle.GetStringFromName("formsNotPreviewedTab");
var formsNotSavedTab = Bundle.GetStringFromName("formsNotSavedTab");
var logonsSaved = Bundle.GetStringFromName("logonsSaved");
var siteUsername = Bundle.GetStringFromName("siteUsername");
var logonsNotSaved = Bundle.GetStringFromName("logonsNotSaved");
var formsNotPreviewed = Bundle.GetStringFromName("formsNotPreviewed");
var formsNotSaved = Bundle.GetStringFromName("formsNotSaved");
var removeCmdLabel = Bundle.GetStringFromName("removeCmdLabel");
var okCmdLabel = Bundle.GetStringFromName("okCmdLabel");
var cancelCmdLabel = Bundle.GetStringFromName("cancelCmdLabel");
/* for xpconnect */
var signonviewer =
@ -130,24 +145,24 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>Logons saved</b>" +
"<b>" + logonsSavedTab + "</b>" +
"</font>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadRejects();' href=''>" +
"<font size='2'>Logons not saved</font>" +
"<font size='2'>" + logonsNotSavedTab + "</font>" +
"</a>" +
"</td>" +
// "</tr>" +
// "<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadNopreviews();' href=''>" +
"<font size='2'>Forms not previewed</font>" +
"<font size='2'>" + formsNotPreviewedTab + "</font>" +
"</a>" +
"</td>" +
// "<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
// "<a onclick='top.loadNocaptures();' href=''>" +
// "<font size='2'>Forms not saved</font>" +
// "<font size='2'>" + formsNotSavedTab + "</font>" +
// "</a>" +
// "</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -159,7 +174,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Logon information that has been saved");
("&nbsp;" + logonsSaved + "");
top.frames[title_frame].document.close();
loadSignonsList();
@ -170,7 +185,7 @@
top.frames[list_frame].document.write(
"<form name='fSelectSignon'>" +
"<p>" +
"<b>site:username</b>" +
"<b>" + siteUsername + "</b>" +
"<table border='0'>" +
"<tr>" +
"<td width='100%' valign='top'>" +
@ -205,12 +220,12 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadSignons();' href=''>" +
"<font size='2'>Logons saved</font>" +
"<font size='2'>" + logonsSavedTab + "</font>" +
"</a>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>Logons not saved</b>" +
"<b>" + logonsNotSavedTab + "</b>" +
"</font>" +
"</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -218,12 +233,12 @@
// "<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadNopreviews();' href=''>" +
"<font size='2'>Forms not previewed</font>" +
"<font size='2'>" + formsNotPreviewedTab + "</font>" +
"</a>" +
"</td>" +
// "<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
// "<a onclick='top.loadNocaptures();' href=''>" +
// "<font size='2'>Forms not saved</font>" +
// "<font size='2'>" + formsNotSavedTab + "</font>" +
// "</a>" +
// "</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -235,7 +250,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Sites for which logon information won't be saved");
("&nbsp;" + logonsNotSaved + "");
top.frames[title_frame].document.close();
loadRejectsList();
@ -280,24 +295,24 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadSignons();' href=''>" +
"<font size='2'>Logons saved</font>" +
"<font size='2'>" + logonsSavedTab + "</font>" +
"</a>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadRejects();' href=''>" +
"<font size='2'>Logons not saved</font>" +
"<font size='2'>" + logonsNotSavedTab + "</font>" +
"</a>" +
"</td>" +
// "</tr>" +
// "<tr>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>Forms not previewed</b>" +
"<b>" + formsNotPreviewedTab + "</b>" +
"</font>" +
"</td>" +
// "<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
// "<a onclick='top.loadNocaptures();' href=''>" +
// "<font size='2'>Forms not saved</font>" +
// "<font size='2'>" + formsNotSavedTab + "</font>" +
// "</a>" +
// "</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -309,7 +324,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Forms that won't be previewed before being pre-filled");
("&nbsp;" + formsNotPreviewed + "");
top.frames[title_frame].document.close();
loadNopreviewsList();
@ -354,24 +369,24 @@
"<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadSignons();' href=''>" +
"<font size='2'>Logons saved</font>" +
"<font size='2'>" + logonsSavedTab + "</font>" +
"</a>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadRejects();' href=''>" +
"<font size='2'>Logons not saved</font>" +
"<font size='2'>" + logonsNotSavedTab + "</font>" +
"</a>" +
"</td>" +
"</tr>" +
"<tr>" +
"<td align='center' valign='middle' bgcolor='#c0c0c0'>" +
"<a onclick='top.loadNopreviews();' href=''>" +
"<font size='2'>Forms not previewed</font>" +
"<font size='2'>" + formsNotPreviewedTab + "</font>" +
"</a>" +
"</td>" +
"<td align='center' valign='middle' bgcolor='#ffffff'>" +
"<font size='2' color='#666666'>" +
"<b>Forms not saved</b>" +
"<b>" + formsNotSavedtab + "</b>" +
"</font>" +
"</td>" +
"<td>&nbsp;&nbsp;&nbsp;</td>" +
@ -383,7 +398,7 @@
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Forms that won't be saved");
("&nbsp;" + formsNotSaved + "");
top.frames[title_frame].document.close();
loadNocapturesList();
@ -425,11 +440,11 @@
"<form name='buttons'>" +
"<br/>" +
"&nbsp;" +
"<button onclick='top.DeleteItemSelected();'>Remove</button>" +
"<button onclick='top.DeleteItemSelected();'>" + removeCmdLabel + "</button>" +
"<div align='right'>" +
"<button onclick='parent.Save();'>OK</button>" +
"<button onclick='parent.Save();'>" + okCmdLabel + "</button>" +
" &nbsp;&nbsp;" +
"<button onclick='parent.Cancel();'>Cancel</button>" +
"<button onclick='parent.Cancel();'>" + cancelCmdLabel + "</button>" +
"</div>" +
"<input type='hidden' name='goneS' value='' size='-1'/>" +
"<input type='hidden' name='goneR' value='' size='-1'/>" +

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

@ -0,0 +1,12 @@
okCmdLabel = OK
cancelCmdLabel = Cancel
removeCmdLabel = Remove
logonsSavedTab = Logons saved
logonsNotSavedTab = Logons not saved
formsNotPreviewedTab = Forms not previewed
formsNotSavedTab = Forms not saved
logonsSaved = Logon information that has been saved
logonsNotSaved = Sites for which logon information won't be saved
formsNotPreviewed = Forms that won't be previewed before being pre-filled
formsNotSaved = Forms that won't be saved
siteUsername = site:username

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

@ -3,6 +3,7 @@
<xul:window xmlns="http://www.w3.org/TR/REC-html40"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://global/content/strres.js"/>
<script src="SignonViewer.js"/>
<frameset rows = "15,10,125,50" border="0" framespacing="0" onload="loadFrames();">

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

@ -49,7 +49,11 @@ libs:: $(LIBRARY)
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib
rm -f $(DIST)\bin\chrome\wallet\content\default\SignonViewer.xul
rm -f $(DIST)\bin\chrome\wallet\content\default\SignonViewer.js
rm -f $(DIST)\bin\chrome\wallet\locale\en-US\SignonViewer.properties
install:: $(DLL)
$(MAKE_INSTALL) SignonViewer.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) SignonViewer.js $(DIST)\bin\res\samples
$(MAKE_INSTALL) SignonViewer.xul $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) SignonViewer.js $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) SignonViewer.properties $(DIST)\bin\chrome\wallet\locale\en-US

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

@ -1,3 +1,10 @@
/* for localization */
var Bundle = srGetStrBundle("chrome://wallet/locale/WalletPreview.properties");
var heading = Bundle.GetStringFromName("bypass");
var bypass = Bundle.GetStringFromName("heading");
var okCmdLabel = Bundle.GetStringFromName("okCmdLabel");
var cancelCmdLabel = Bundle.GetStringFromName("cancelCmdLabel");
/* for xpconnect */
var walletpreview =
Components.classes
@ -24,7 +31,7 @@
function loadFillins(){
top.frames[title_frame].document.open();
top.frames[title_frame].document.write
("&nbsp;Following items can be pre-filled for you.");
("&nbsp;" + heading);
top.frames[title_frame].document.close();
top.frames[list_frame].document.open();
@ -77,14 +84,14 @@
"<form name=buttons>" +
"<br/>" +
"<input type='checkbox' name='skip'> " +
"Bypass this screen when prefilling this form in the future" +
bypass +
"</input> " +
"<br/>" +
"<br/>" +
"<div align='center'>" +
"<button onclick='parent.Save();'>OK</button>" +
"<button onclick='parent.Save();'>" + okCmdLabel + "</button>" +
" &nbsp;&nbsp;" +
"<button onclick='parent.Cancel();'>Cancel</button>" +
"<button onclick='parent.Cancel();'>" + cancelCmdLabel + "</button>" +
"</div>" +
"<input type='hidden' name='fillins' value=' ' size='-1'>" +
"<input type='hidden' name='list' value=' ' size='-1'>" +

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

@ -0,0 +1,4 @@
okCmdLabel = OK
cancelCmdLabel = Cancel
heading = The following items can be pre-filled for you.
bypass = Bypass this screen when prefilling this form in the future

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

@ -3,6 +3,7 @@
<xul:window xmlns="http://www.w3.org/TR/REC-html40"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="chrome://global/content/strres.js"/>
<script src="WalletPreview.js"/>
<frameset rows = "15,25,100,75"

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

@ -49,7 +49,11 @@ libs:: $(LIBRARY)
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib
rm -f $(DIST)\bin\chrome\wallet\content\default\WalletPreview.xul
rm -f $(DIST)\bin\chrome\wallet\content\default\WalletPreview.js
rm -f $(DIST)\bin\chrome\wallet\locale\en-US\WalletPreview.properties
install:: $(DLL)
$(MAKE_INSTALL) WalletPreview.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) WalletPreview.js $(DIST)\bin\res\samples
$(MAKE_INSTALL) WalletPreview.xul $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) WalletPreview.js $(DIST)\bin\chrome\wallet\content\default
$(MAKE_INSTALL) WalletPreview.properties $(DIST)\bin\chrome\wallet\locale\en-US

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

@ -195,6 +195,30 @@
</chrome>
<chrome about="chrome://wallet/">
<skin>
<RDF:Description about="chrome://wallet/skin/">
<base>resource:/chrome/wallet/skin/default/</base>
<main>wallet.css</main>
</RDF:Description>
</skin>
<content>
<RDF:Description about="chrome://wallet/content/">
<base>resource:/chrome/wallet/content/default/</base>
<main>CookieViewer.xul</main>
</RDF:Description>
</content>
<locale>
<RDF:Description about="chrome://wallet/locale/">
<name>en-US</name>
</RDF:Description>
</locale>
</chrome>
<chrome about="chrome://bookmarks/">
<content>

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

@ -897,7 +897,7 @@ nsBrowserAppCore::WalletEditor(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char *urlstr = "resource:/res/samples/WalletEditor.xul";
char *urlstr = "chrome://wallet/content/WalletEditor.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -950,7 +950,7 @@ nsBrowserAppCore::SignonViewer(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char * urlstr = "resource:/res/samples/SignonViewer.xul";
char * urlstr = "chrome://wallet/content/SignonViewer.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -1002,7 +1002,7 @@ nsBrowserAppCore::CookieViewer(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char *urlstr = "resource:/res/samples/CookieViewer.xul";
char *urlstr = "chrome://wallet/content/CookieViewer.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -1084,7 +1084,7 @@ nsBrowserAppCore::WalletPreview(nsIDOMWindow* aWin, nsIDOMWindow* aForm)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char * urlstr = "resource:/res/samples/WalletPreview.xul";
char * urlstr = "chrome://wallet/content/WalletPreview.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else

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

@ -855,7 +855,7 @@ nsBrowserAppCore::WalletEditor(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char *urlstr = "resource:/res/samples/WalletEditor.xul";
char *urlstr = "chrome://wallet/content/WalletEditor.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -908,7 +908,7 @@ nsBrowserAppCore::SignonViewer(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char * urlstr = "resource:/res/samples/SignonViewer.xul";
char * urlstr = "chrome://wallet/content/SignonViewer.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -960,7 +960,7 @@ nsBrowserAppCore::CookieViewer(nsIDOMWindow* aWin)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char *urlstr = "resource:/res/samples/CookieViewer.xul";
char *urlstr = "chrome://wallet/content/CookieViewer.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else
@ -1042,7 +1042,7 @@ nsBrowserAppCore::WalletPreview(nsIDOMWindow* aWin, nsIDOMWindow* aForm)
window = nsnull;
nsCOMPtr<nsIURI> urlObj;
char * urlstr = "resource:/res/samples/WalletPreview.xul";
char * urlstr = "chrome://wallet/content/WalletPreview.xul";
#ifndef NECKO
rv = NS_NewURL(getter_AddRefs(urlObj), urlstr);
#else