WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
257849
Inconsistent firing of onBeforeNavigate event in webNavigation API in Safari
https://bugs.webkit.org/show_bug.cgi?id=257849
Summary
Inconsistent firing of onBeforeNavigate event in webNavigation API in Safari
Mykola
Reported
2023-06-08 02:47:02 PDT
The webNavigation API in Safari exhibits inconsistent behavior in firing the onBeforeNavigate event compared to Chrome. Steps to Reproduce: 1. Navigate from a website using a URL (the onBeforeNavigate event fires correctly). 2. Open a URL in a new tab (via context menu or command) (the onBeforeNavigate event fires correctly). 3. Open a URL in a new window (via context menu) (the onBeforeNavigate event fires correctly). 4. Manually enter a URL in the search field (it does not fire the onBeforeNavigate event, unlike Chrome). Expected Behavior: The onBeforeNavigate event should consistently fire in all navigation scenarios, including manually entering a URL in the search field. Actual Behavior: In Safari, the onBeforeNavigate event does not fire when manually entering a URL in the search field. Additional Details: Safari version: 16.5 (18615.2.9.11.4) macOS version: 13.4 (22F66) Please consider the provided information to address the inconsistency in the firing of the onBeforeNavigate event in Safari.
Attachments
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2023-06-12 16:13:39 PDT
Do you have "Preload Top Hit in Background" checked in your Safari Search Settings? If you have that checked, we defer firing those onBeforeNavigate events. Can you try turning that off and seeing if the bug still reproduces?
Mykola
Comment 2
2023-06-14 05:08:28 PDT
(In reply to Brian Weinstein from
comment #1
)
> Do you have "Preload Top Hit in Background" checked in your Safari Search > Settings? > > If you have that checked, we defer firing those onBeforeNavigate events. Can > you try turning that off and seeing if the bug still reproduces?
Yes, "Preload Top Hit in Background" was enabled by default. I turned it off, but unfortunately, the situation didn't change for me. I still have the issue that Safari does not fire the onBeforeNavigate event.
Radar WebKit Bug Importer
Comment 3
2023-06-15 02:47:16 PDT
<
rdar://problem/110828492
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug