This is the implementation bug for HTTPS Upgrading. Please see https://github.com/whatwg/fetch/pull/1655 for the proposal.
<rdar://problem/116485430>