Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

is there a javascript function to obtain the tab id the script is working in?

We are trying to determine the browser tab id for a security patch

We are trying to determine the browser tab id for a security patch

Alle Antworten (1)

Sorry, but what do you mean by "browser tab id"?

Generally speaking, unprivileged scripts in web pages perceive themselves as running in a window object and have no knowledge of whether the window object is the only open tab or one of many tabs.

If you are developing an add-on, you might want to pose your question on this site: https://discourse.mozilla-community.org/c/add-ons