mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 407481 - "Unicode ellipsis to be used in code as well" [p=masa141421356@gmail.com (Masahiro Yamada) r=gavin a1.9=beltzner]
This commit is contained in:
parent
d0ac6262bb
commit
f79d369980
@ -83,6 +83,11 @@ function nsContextMenu(aXulMenu, aBrowser) {
|
||||
this.shouldDisplay = true;
|
||||
this.isDesignMode = false;
|
||||
this.possibleSpellChecking = false;
|
||||
this.ellipsis = "\u2026";
|
||||
try {
|
||||
this.ellipsis = gPrefService.getComplexValue("intl.ellipsis",
|
||||
Ci.nsIPrefLocalizedString).data;
|
||||
} catch (e) { }
|
||||
|
||||
// Initialize new menu.
|
||||
this.initMenu(aXulMenu, aBrowser);
|
||||
@ -249,7 +254,7 @@ nsContextMenu.prototype = {
|
||||
if (hostLabel) {
|
||||
var shortenedUriHost = hostLabel.replace(/^www\./i,"");
|
||||
if (shortenedUriHost.length > 15)
|
||||
shortenedUriHost = shortenedUriHost.substr(0,15) + "...";
|
||||
shortenedUriHost = shortenedUriHost.substr(0,15) + this.ellipsis;
|
||||
blockImage.label = gNavigatorBundle.getFormattedString("blockImages", [shortenedUriHost]);
|
||||
|
||||
if (this.isImageBlocked())
|
||||
@ -1035,7 +1040,7 @@ nsContextMenu.prototype = {
|
||||
return false;
|
||||
|
||||
if (selectedText.length > 15)
|
||||
selectedText = selectedText.substr(0,15) + "...";
|
||||
selectedText = selectedText.substr(0,15) + this.ellipsis;
|
||||
|
||||
// Use the current engine if the search bar is visible, the default
|
||||
// engine otherwise.
|
||||
|
Loading…
Reference in New Issue
Block a user