by czottmann · 3y ago · 0 comments
Getting anything out of FF on macOS, locally, is a major pain in the ass, actually. Try to grab the current URL from the active tab…
I think it's a super-solid browser that unfortunately doesn't give a shit about the platform it's running on. Irritatingly, it's fine with being a black box, so much more than the Chromiums are (for all their various faults).
For example, years later Firefox still doesn’t support macOS password autofill api. https://bugzilla.mozilla.org/show_bug.cgi?id=1650212
Seems like launching a browser tab with:
from selenium import webdriver
driver = webdriver.Firefox()
and navigating to duckduckgo.com: print(driver.current_url) # https://duckduckgo.com/
works.My point is that there is zero local API surface for interacting with the application. That's the reason why tools like Keyboard Maestro support Chromium-based browsers but not Firefox. Which, in return, doesn't help Firefox's popularity, because it's nigh impossible to work with it from other apps.
Disclaimer: I am in a weird spot here, for I am serious about automation both as a consumer and as a software maker -- I write macOS automation tools myself, e.g. https://actions.work/browser-actions