aw-watcher-window icon indicating copy to clipboard operation
aw-watcher-window copied to clipboard

feat: add support for extracting URLs from Firefox browsers

Open BelKed opened this issue 9 months ago • 1 comments

[!IMPORTANT] Adds support for extracting URLs from Firefox browsers using AppleScript in the MainThing class.

  • Behavior:
    • Adds support for extracting URLs from Firefox browsers using AppleScript in MainThing class.
    • Handles Firefox, Firefox Developer Edition, and Firefox Nightly.
    • Uses AppleScript to extract URL from Firefox's UI hierarchy.
  • Code:
    • Adds FIREFOX_BROWSERS list in MainThing.
    • Implements getFirefoxURL() function in windowTitleChanged() to extract URL.
    • Updates pollActiveWindow() to detect Firefox browsers and extract URLs.

This description was created by Ellipsis for e1975ee948d23f8cc176b1bb45a0be74fcc719a0. It will automatically update as commits are pushed.

BelKed avatar Mar 07 '25 03:03 BelKed

No, Firefox does not expose the same Apple Events APIs for accessing tab and window information like Chrome and Safari do on macOS. This is why we have to use AppleScript to interact with Firefox's UI elements through the Accessibility framework instead :)

BelKed avatar Mar 07 '25 13:03 BelKed