brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.94k stars 2.35k forks source link

Brave crashes if using `REWRITE` when sending a query if Leo is opened via `NTP` #42443

Open hffvld opened 9 hours ago

hffvld commented 9 hours ago

Description

Brave crashes if using REWRITE when sending a query if Leo is opened via NTP.

Steps to reproduce

  1. Launch Brave
  2. Open NTP
  3. Launch Leo
  4. Open slash tools by tapping [/]
  5. Choose any option from REWRITE
  6. Type a query > Send > Observe, Brave crashes

Actual result

Brave crashes if using REWRITE when sending a query if Leo is opened via NTP.


https://github.com/user-attachments/assets/ee61ab3a-9d42-44b7-adcb-7a8fa892dbc4

Expected result

Brave must not crash when using the REWRITE option to send a query.

Reproduces how often

Easily reproduced

Brave version

Brave build: 1.73 (91) BraveCore: 1.73.91 (131.0.6778.85)

Device/iOS version

Affected browser versions

Reproducibility

Miscellaneous information

No response