Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 1 reply
  • 1 has this problem
  • 4 views
  • آخر ردّ كتبه jscher2000

more options

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

All Replies (1)

more options

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