SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Add cookie URL validation check to prevent crash (#55787)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55787

Add defensive check to validate components.URL before using it to load cookies.
If NSURLComponents fails to parse the URL or returns nil for components.URL, this prevents passing nil to cookiesForURL which could cause issues in the network stack.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D94375528

fbshipit-source-id: 499b9ed9c7661b43819b0a2b15edd62775d380f7
V
Vitali Zaidman committed
312d58eb012487c45b193792618da2a650846bc7
Parent: d5b2827
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 3/3/2026, 7:26:02 AM