MFH: r503205

www/firefox: unbreak language selection after r495403

PR:		221916
Approved by:	ports-secteam blanket
This commit is contained in:
Jan Beich 2019-06-01 00:48:06 +00:00
parent 1cb237752d
commit fd864ea1a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=503210
2 changed files with 31 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= firefox
DISTVERSION= 67.0.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www ipv6
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \

View File

@ -0,0 +1,30 @@
commit f8d21e08c1e4
Author: Gijs Kruitbosch <gijskruitbosch@gmail.com>
Date: Fri May 31 13:55:56 2019 +0000
Bug 1554744 - make button state in browser language dialog correct when there's no available languages, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D33273
--HG--
extra : moz-landing-system : lando
---
browser/components/preferences/browserLanguages.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git browser/components/preferences/browserLanguages.js browser/components/preferences/browserLanguages.js
index f8bae44b52c9..4c39f55fdafd 100644
--- browser/components/preferences/browserLanguages.js
+++ browser/components/preferences/browserLanguages.js
@@ -78,9 +78,9 @@ class OrderedListBox {
setButtonState() {
let {upButton, downButton, removeButton} = this;
let {selectedIndex, itemCount} = this.richlistbox;
- upButton.disabled = selectedIndex == 0;
+ upButton.disabled = selectedIndex <= 0;
downButton.disabled = selectedIndex == itemCount - 1;
- removeButton.disabled = itemCount == 1 || !this.selectedItem.canRemove;
+ removeButton.disabled = itemCount <= 1 || !this.selectedItem.canRemove;
}
moveUp() {