ResourceRequestBase::partitionName() should not return the empty string for localhost. The safer thing is to return the domain.
This was solved through https://bugs.webkit.org/show_bug.cgi?id=170798.