Chromium Code Reviews| Index: third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp |
| diff --git a/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp b/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp |
| index 812fc30e30b514a4a417bfda0d8d7f36cfe80fba..d8850e43a338f7c885f6d5339d96f3290bdc62e7 100644 |
| --- a/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp |
| +++ b/third_party/WebKit/Source/platform/weborigin/KnownPorts.cpp |
| @@ -47,6 +47,8 @@ bool isDefaultPortForProtocol(unsigned short port, |
| return protocol == "ftp"; |
| case 990: |
| return protocol == "ftps"; |
| + case 70: |
| + return protocol == "gopher"; |
|
Mike West
2016/10/11 08:38:33
This seems unrelated? Moreover, we don't actually
ncarter (slow)
2016/10/11 18:21:52
Agree, we don't handle gopher, and won't ever. I'v
|
| } |
| return false; |
| } |
| @@ -60,6 +62,8 @@ unsigned short defaultPortForProtocol(const WTF::String& protocol) { |
| return 21; |
| if (protocol == "ftps") |
| return 990; |
| + if (protocol == "gopher") |
| + return 70; |
| return 0; |
| } |