From dc18fb87b64427f9a271efc89eb613afc0be5f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Dom=C3=ADnguez?= Date: Sun, 1 Dec 2024 00:09:49 +0100 Subject: [PATCH] Fixed reading the address bar in Firefox 133. --- addon/appModules/firefox.py | 4 +++- buildVars.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addon/appModules/firefox.py b/addon/appModules/firefox.py index 977a73d..5eb0030 100644 --- a/addon/appModules/firefox.py +++ b/addon/appModules/firefox.py @@ -129,8 +129,10 @@ def script_url(self, gesture): path = (("id", "nav-bar"), ("id", "identity-box"), ("id", "identity-icon")) elif ffVersion < 87: path = (("id", "nav-bar"), ("id", "identity-box")) + elif ffVersion < 133: + path = (("id", "nav-bar"), ("class" ,"urlbar-input-box"), ("id","urlbar-input")) else: - path = (("id", "nav-bar"), ("class","urlbar-input-box"), ("id","urlbar-input")) + path = (("id","nav-bar"),("id","urlbar"),("class","urlbar-input-box")) secInfoButton = shared.searchObject(path) if secInfoButton: securInfo = secInfoButton.description # This has changed in FF 57. Keeping this line for compatibility with earlier versions. diff --git a/buildVars.py b/buildVars.py index 3a22d46..32b52b9 100644 --- a/buildVars.py +++ b/buildVars.py @@ -25,7 +25,7 @@ def _(arg): # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description": _("""Provides accessibility features for Mozilla Firefox and Thunderbird."""), # version - "addon_version": "2024.1.2", + "addon_version": "2024.1.3", # Author(s) "addon_author": "Javi Dominguez ", # URL for the add-on documentation support