Skip to content

Commit

Permalink
remove gopher from URL special cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 18, 2019
1 parent 892c31c commit bd50bd5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 115 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Changelog
##### Unreleased
- `gopher` removed from `URL` special cases per [this issue](https://github.com/whatwg/url/issues/342) and [this PR](https://github.com/whatwg/url/pull/453)

##### 3.3.2 - 2019.10.14
- Fixed compatibility of `core-js-compat` with Node 6 and Yarn, [#669](https://github.com/zloirock/core-js/issues/669)

Expand Down
1 change: 0 additions & 1 deletion packages/core-js/modules/web.url.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ var percentEncode = function (char, set) {
var specialSchemes = {
ftp: 21,
file: null,
gopher: 70,
http: 80,
https: 443,
ws: 80,
Expand Down
24 changes: 0 additions & 24 deletions tests/wpt-url-resources/setters.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ export default {
protocol: 'http:',
},
},
{
href: 'gopher://example.net:1234',
newValue: 'file',
expected: {
href: 'gopher://example.net:1234/',
protocol: 'gopher:',
},
},
{
href: 'wss://x:x@example.net:1234',
newValue: 'file',
Expand All @@ -122,14 +114,6 @@ export default {
protocol: 'file:',
},
},
{
href: 'file:///test',
newValue: 'gopher',
expected: {
href: 'file:///test',
protocol: 'file:',
},
},
{
href: 'file:',
newValue: 'wss',
Expand Down Expand Up @@ -189,14 +173,6 @@ export default {
protocol: 'ssh:',
},
},
{
href: 'ssh://me@example.net',
newValue: 'gopher',
expected: {
href: 'ssh://me@example.net',
protocol: 'ssh:',
},
},
{
href: 'ssh://me@example.net',
newValue: 'file',
Expand Down
90 changes: 0 additions & 90 deletions tests/wpt-url-resources/urltestdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,21 +1074,6 @@ export default [
search: '',
hash: '',
},
{
input: 'gopher:/example.com/',
base: 'http://example.org/foo/bar',
href: 'gopher://example.com/',
origin: 'gopher://example.com',
protocol: 'gopher:',
username: '',
password: '',
host: 'example.com',
hostname: 'example.com',
port: '',
pathname: '/',
search: '',
hash: '',
},
{
input: 'ws:/example.com/',
base: 'http://example.org/foo/bar',
Expand Down Expand Up @@ -1239,21 +1224,6 @@ export default [
search: '',
hash: '',
},
{
input: 'gopher:example.com/',
base: 'http://example.org/foo/bar',
href: 'gopher://example.com/',
origin: 'gopher://example.com',
protocol: 'gopher:',
username: '',
password: '',
host: 'example.com',
hostname: 'example.com',
port: '',
pathname: '/',
search: '',
hash: '',
},
{
input: 'ws:example.com/',
base: 'http://example.org/foo/bar',
Expand Down Expand Up @@ -2493,36 +2463,6 @@ export default [
search: '',
hash: '',
},
{
input: 'gopher://foo:70/',
base: 'about:blank',
href: 'gopher://foo/',
origin: 'gopher://foo',
protocol: 'gopher:',
username: '',
password: '',
host: 'foo',
hostname: 'foo',
port: '',
pathname: '/',
search: '',
hash: '',
},
{
input: 'gopher://foo:443/',
base: 'about:blank',
href: 'gopher://foo:443/',
origin: 'gopher://foo:443',
protocol: 'gopher:',
username: '',
password: '',
host: 'foo:443',
hostname: 'foo',
port: '443',
pathname: '/',
search: '',
hash: '',
},
{
input: 'ws://foo:80/',
base: 'about:blank',
Expand Down Expand Up @@ -2732,21 +2672,6 @@ export default [
search: '',
hash: '',
},
{
input: 'gopher:/example.com/',
base: 'about:blank',
href: 'gopher://example.com/',
origin: 'gopher://example.com',
protocol: 'gopher:',
username: '',
password: '',
host: 'example.com',
hostname: 'example.com',
port: '',
pathname: '/',
search: '',
hash: '',
},
{
input: 'ws:/example.com/',
base: 'about:blank',
Expand Down Expand Up @@ -2897,21 +2822,6 @@ export default [
search: '',
hash: '',
},
{
input: 'gopher:example.com/',
base: 'about:blank',
href: 'gopher://example.com/',
origin: 'gopher://example.com',
protocol: 'gopher:',
username: '',
password: '',
host: 'example.com',
hostname: 'example.com',
port: '',
pathname: '/',
search: '',
hash: '',
},
{
input: 'ws:example.com/',
base: 'about:blank',
Expand Down

0 comments on commit bd50bd5

Please sign in to comment.