Fix `searchParams` dropping request options inherited from a `Request` input
Before adoption: this commit came in with the history the project adopted, so no landing records it.
When `searchParams` is set, the request is rebuilt with the new URL from the options alone, so `credentials`, `cache`, `redirect`, `integrity`, `referrer`, and `referrerPolicy` set on a `Request` input were reset to their defaults. In browsers this silently stopped sending cookies for `credentials: 'include'` requests. The rebuilt request now reads those options back from the request that was already constructed, so inherited values survive and explicit options still win.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+70 added−1 removed
- tests:+52 added−0 removed
- other:+18 added−1 removed