Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/options.js

Issue 29772555: Issue 6647 - Stop converting domains from punycode to unicode (Closed)
Patch Set: Created May 6, 2018, 2:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/options.js
===================================================================
--- a/lib/options.js
+++ b/lib/options.js
@@ -19,7 +19,6 @@
"use strict";
-const {getDecodedHostname} = require("./url");
const {checkWhitelisted} = require("./whitelisting");
const info = require("../buildtools/info");
@@ -214,7 +213,7 @@
action: "showPageOptions",
args: [
{
- host: getDecodedHostname(currentPage.url).replace(/^www\./, ""),
+ host: currentPage.url.hostname.replace(/^www\./, ""),
Manish Jethani 2018/05/06 18:37:13 Should we also display the encoded hostname in the
Sebastian Noack 2018/05/06 18:47:40 Whatever we do here, it will be inconsistent with
Manish Jethani 2018/05/07 17:03:45 I remember when I was testing ABP on Firefox for A
whitelisted: !!checkWhitelisted(currentPage)
}
]
« lib/csp.js ('K') | « lib/notificationHelper.js ('k') | lib/popupBlocker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld