New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 797011 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Proxy auto-config file imposes https for HTTP URLs

Reported by da...@code.davidpcaldwell.com, Dec 21 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36

Example URL:
N/A

Steps to reproduce the problem:
1. start Chrome with fresh user-data-dir and proxy-pac-url and direct it to http URL. Sample command-line arguments:
["--user-data-dir=/private/var/folders/_h/dcx4zqvn7qz8rhxb0wj_zw89_1nlml/T/jsh7331110360449534818.tmp/","--proxy-pac-url=http://127.0.0.1:58587/proxy.pac","http://foo/"]

chrome://net-internals#proxy shows:
Effective proxy settings
PAC script: http://127.0.0.1:58587/proxy.pac

Contents of PAC file at http://127.0.0.1:58587/proxy.pac:
function FindProxyForURL(url, host) {
	if (host == "foo") return "PROXY 127.0.0.1:58585";
	return "DIRECT";
}

What is the expected behavior?
The page at http://127.0.0.1:58585/ should be returned.

What went wrong?
1. If http:// URL is specified on command line, or typed into address bar, the browser force-redirects to https:// URL (nothing is shown for this in the DevTools Network tab).

2. The connection then fails with "ERR_TUNNEL_CONNECTION_FAILED"

Did this work before? Yes Unsure, but breakage is very recent, probably worked in Chrome 62

Chrome version: 63.0.3239.108  Channel: stable
OS Version: OS X 10.12.6
Flash Version: 

Also fails on Linux; other operating systems untested
 
In the test above, when I changed the string "foo" to "something," the test worked as expected. When I changed it to "fff," it also worked as expected.

Is "foo" used somewhere in the code? Or maybe is there some difference between "foo" and "something"/"fff" that triggers a bug?
Maybe this is by design? Just found this. https://chromium-review.googlesource.com/c/chromium/src/+/669396/10
Cc: lgar...@chromium.org
Labels: Needs-Triage-M63 Triaged-ET
As per comment#2 this seems to be intended. cc'ing owner of https://chromium-review.googlesource.com/c/chromium/src/+/669396/10 for further inputs on this.

Thanks!
Status: WontFix (was: Unconfirmed)
This is correct. "foo" is treated as a gTLD, as it has been assigned by ICANN, and the owner of .foo has requested HSTS be enabled for .foo and its subdomains.

You should use fully qualified domain names for your network interaction.

Sign in to add a comment