зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c367212e49
Коммит
b611e11acd
|
@ -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…
|
||||
|
|
Загрузка…
Ссылка в новой задаче