question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] CookieManager.get with useWebKit crash if argument is not a url

See original GitHub issue

Bug

This crashes.

CookieManager.get("google.com", true);

Environment info

React native info output:

System:
    OS: macOS 10.15.2
    CPU: (8) x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
    Memory: 539.84 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 13.6.0 - /var/folders/z1/7nfybp6x3ns9gzz58cm53m480000gn/T/yarn--1579114313928-0.6154963038500227/node
    Yarn: 1.21.1 - /var/folders/z1/7nfybp6x3ns9gzz58cm53m480000gn/T/yarn--1579114313928-0.6154963038500227/yarn
    npm: 6.13.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 27, 28, 29
      Build Tools: 27.0.3, 28.0.3, 29.0.2
      System Images: android-23 | Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.6010548
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5

Library version: 1.0.1

Steps To Reproduce

Run this and crash. Won’t crash if it’s a url like https://google.com

CookieManager.get("google.com", true);

Reproducible sample code

CookieManager.get("google.com", true);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
safaiyehcommented, Feb 7, 2020

Apparently not, can you create an issue with the CLI team?

https://github.com/react-native-community/cli

1reaction
safaiyehcommented, Feb 6, 2020

Thanks @DIGITALSQUAD I’ll try to reproduce it tonight

Read more comments on GitHub >

github_iconTop Results From Across the Web

[iOS] CookieManager.get with useWebKit crash if argument is ...
Bug This crashes. CookieManager.get("google.com", true); Environment info React native info output: System: OS: macOS 10.15.2 CPU: (8) x64 ...
Read more >
How can get cookie which is set in webview in react-native?
You can try the following trick without using any native modules. just go through the Code or URL. // @flow import React, {...
Read more >
WebKit | Apple Developer Forums
Our iOS Application use HTTPServer to get a map data and use WKWebView to display ... the urls but I'm not sure exactly...
Read more >
React Native Cookies - npm
This special implementation of the WebView component stores the cookies not in NSHTTPCookieStorage anymore. The new cookie-storage is ...
Read more >
react-native-community/cookies: Docs & Community - Openbase
React Native Cookies - A Cookie Manager for React Native. Cookie Manager for React Native. This module was ported from joeferraro/react-native-cookies.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found