diff --git a/js/about/preferences.js b/js/about/preferences.js
index 4eff89e3152..4efb2935e87 100644
--- a/js/about/preferences.js
+++ b/js/about/preferences.js
@@ -27,6 +27,7 @@ const SortableTable = require('../components/sortableTable')
const Button = require('../components/button')
const searchProviders = require('../data/searchProviders')
const moment = require('moment')
+const punycode = require('punycode')
const adblock = appConfig.resourceNames.ADBLOCK
const cookieblock = appConfig.resourceNames.COOKIEBLOCK
@@ -613,7 +614,10 @@ class GeneralTab extends ImmutableComponent {
)
})
- const homepageValue = getSetting(settings.HOMEPAGE, this.props.settings)
+ var homepageValue = getSetting(settings.HOMEPAGE, this.props.settings)
+ if (typeof homepageValue === 'string') {
+ homepageValue = punycode.toASCII(homepageValue)
+ }
const homepage = homepageValue && homepageValue.trim()
const disableShowHomeButton = !homepage || !homepage.length
const defaultLanguage = this.props.languageCodes.find((lang) => lang.includes(navigator.language)) || 'en-US'
@@ -638,7 +642,7 @@ class GeneralTab extends ImmutableComponent {
{
+ return val === 'https://www.brave.xn--com-7cd'
+ })
+ })
+ })
+ })
+})
diff --git a/test/lib/selectors.js b/test/lib/selectors.js
index 6b9951d9856..27569138060 100644
--- a/test/lib/selectors.js
+++ b/test/lib/selectors.js
@@ -50,6 +50,7 @@ module.exports = {
securityTab: '[data-l10n-id="security"]',
paymentsTab: '[data-l10n-id="payments"]',
saveButton: '[data-l10n-id="save"]',
+ homepageInput: '[data-l10n-id="homepageInput"]',
walletSwitch: '.enablePaymentsSwitch .switchBackground',
addFundsButton: '.addFunds',
fundsSelectBox: '#fundsSelectBox',