bug 468336 - remove MOZ_PLACES special-casing from suite/browser, r=Neil

This commit is contained in:
Robert Kaiser 2008-12-08 13:17:45 +01:00
Родитель f366405e11
Коммит 5ae1b594e4
3 изменённых файлов: 6 добавлений и 12 удалений

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

@ -50,6 +50,6 @@ comm.jar:
content/navigator/pageinfo/feeds.xml (pageinfo/feeds.xml)
content/navigator/pageinfo/pageInfo.css (pageinfo/pageInfo.css)
content/navigator/pageinfo/pageInfo.js (pageinfo/pageInfo.js)
* content/navigator/pageinfo/pageInfo.xul (pageinfo/pageInfo.xul)
content/navigator/pageinfo/pageInfo.xul (pageinfo/pageInfo.xul)
content/navigator/pageinfo/permissions.js (pageinfo/permissions.js)
* content/navigator/pageinfo/security.js (pageinfo/security.js)
content/navigator/pageinfo/security.js (pageinfo/security.js)

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

@ -506,7 +506,6 @@
<column flex="1"/>
</columns>
<rows>
#ifdef MOZ_PLACES
<row><!-- History -->
<label id="security-privacy-history-label"
control="security-privacy-history-value"
@ -516,7 +515,6 @@
value="&securityView.unknown;"
readonly="true"/>
</row>
#endif
<row><!-- Cookies -->
<label id="security-privacy-cookies-label"
control="security-privacy-cookies-value"

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

@ -223,7 +223,6 @@ function securityOnLoad() {
setText("security-privacy-passwords-value",
realmHasPasswords(info.fullLocation) ? yesStr : noStr);
#ifdef MOZ_PLACES
var visitCount = previousVisitCount(info.hostName);
if(visitCount > 1) {
setText("security-privacy-history-value",
@ -234,9 +233,8 @@ function securityOnLoad() {
pageInfoBundle.getString("securityOneVisit"));
}
else {
setText("security-privacy-history-value", noStr);
setText("security-privacy-history-value", noStr);
}
#endif
/* Set the Technical Detail section messages */
const pkiBundle = document.getElementById("pkiBundle");
@ -340,7 +338,6 @@ function realmHasPasswords(location) {
*/
}
#ifdef MOZ_PLACES
/**
* Return the number of previous visits recorded for host before today.
*
@ -349,13 +346,13 @@ function realmHasPasswords(location) {
function previousVisitCount(host, endTimeReference) {
if (!host)
return false;
var historyService = Components.classes["@mozilla.org/browser/nav-history-service;1"]
.getService(Components.interfaces.nsINavHistoryService);
var options = historyService.getNewQueryOptions();
options.resultType = options.RESULTS_AS_VISIT;
// Search for visits to this host before today
var query = historyService.getNewQuery();
query.endTimeReference = query.TIME_RELATIVE_TODAY;
@ -366,4 +363,3 @@ function previousVisitCount(host, endTimeReference) {
result.root.containerOpen = true;
return result.root.childCount;
}
#endif