It does not change, when I suppress currentWindow. As you can see in the attached screenshot, i get some information about the tab. But i miss the url info, which is what i need.
As permission, i have not set tabs, but i have enabled activeTab. It works as expected on the desktop, but not on Android. The screenshot is from the Dev console, with USB Debugging enabled.
BTW: Currently I install an AddOn in Firefox Android by releasing a new version on AMO and installing it in Nightly with a custom collection. I have not found a way, to install a extension without AMO, so that i can test it before releasing a new version. If someone knows a way, please let me know.
Thanks. It seems to me like you’re querying tab info from somewhere that isn’t considered a user interaction for some reason. So I repeat the question: when/where are you running this?
I have a popup which is displayed when I click the browserAction icon. I have not found a other way to add custom menus. That’s why, i use the popup. In this popup i have placed a dynamic menu structure. When I click one of this menu entrys, the above code should be executed. This works at least on the desktop but not on Android.
Many thx for that link. This helped a lot. I have tried it now with “tabs” permission and it worked as a workaround and i get the correct url in my callback. I hope this bug will be fixed soon, since i only need “activeTab” as permission in reality.
Many thx for helping also with installing temporary on Android. I never used npm or nodejs before. But now i can pre-test before releasing a new version.