self.location.href is incorrect in shared workers in case of redirects. It should be the URL of the last request, not the first one.
Created attachment 451323 [details] Patch
Created attachment 451370 [details] Patch
Created attachment 451383 [details] Patch
Comment on attachment 451383 [details] Patch r=me
Committed r289483 (247024@main): <https://commits.webkit.org/247024@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451383 [details].
<rdar://problem/88700147>