brave / brave-ios

Brave iOS Browser
https://brave.com
Mozilla Public License 2.0
1.7k stars 440 forks source link

Fix #8253: Don't navigate to javascript:// URLs from the omnibox #8456

Closed soner-yuksel closed 12 months ago

soner-yuksel commented 12 months ago

Adding isUserDefinedURLNavigation checks to determine if url navigation is should be executed for bookmarklets.

This is caused by https://github.com/brave/brave-ios/pull/8306, in the process of removing visit type

Summary of Changes

This pull request fixes #8453

Submitter Checklist:

Test Plan:

  1. Go to any webpage
  2. Type javascript:alert(123) in the url bar
  3. Press enter

Screenshots:

https://github.com/brave/brave-ios/assets/6643505/09ce56d8-03cf-4cf1-8fb5-23917b0e6e0c

Reviewer Checklist: