Bug 510424 - Geolocation notification does not show requester of location for file:// URLs. r=dougt/gavin ui=beltzner

--HG--
extra : rebase_source : 3e333d15f04581e2901906b60a19aa3d548ed7c3
This commit is contained in:
Martin McNickle 2009-12-12 13:39:26 -08:00
Родитель c367212e49
Коммит b611e11acd
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -1201,8 +1201,16 @@ GeolocationPrompt.prototype = {
},
}];
var message = browserBundle.formatStringFromName("geolocation.siteWantsToKnow",
[request.requestingURI.host], 1);
var message;
// Different message/info if it is a local file
if (request.requestingURI.schemeIs("file")) {
message = browserBundle.formatStringFromName("geolocation.fileWantsToKnow",
[request.requestingURI.path], 1);
} else {
message = browserBundle.formatStringFromName("geolocation.siteWantsToKnow",
[request.requestingURI.host], 1);
}
var newBar = notificationBox.appendNotification(message,
"geolocation",

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

@ -196,6 +196,7 @@ geolocation.shareLocation.accesskey=a
geolocation.dontShareLocation=Don't Share
geolocation.dontShareLocation.accesskey=o
geolocation.siteWantsToKnow=%S wants to know your location.
geolocation.fileWantsToKnow=The file %S wants to know your location.
# LOCALIZATION NOTE (geolocation.learnMore): Use the unicode ellipsis char, \u2026,
# or use "..." if \u2026 doesn't suit traditions in your locale.
geolocation.learnMore=Learn More…