Detecting Navigation Redirect Chains

I'm building a macOS extension that needs to track multi-step navigation chains (A → B → C) to adjust behavior based on where users came from.

Current approach: Using webNavigation.onBeforeNavigate to detect intermediate steps, but experiencing issues in Safari that don't occur on Chrome/Firefox/Edge.

Questions:

  1. Is webNavigation the right API for tracking redirect chains in Safari?
  2. Does ITP/Private Browsing affect event delivery?
  3. Any alternative approaches recommended?

(Safari version 26.0.1)

Any guidance appreciated!

It's possible the problems you're seeing could be related to Safari's privacy features or settings. Can you provide more information about the type of issues you are encountering?

Detecting Navigation Redirect Chains
 
 
Q