Mozilla 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

Access tab from webextension

  • कोई प्रतियुत्तर नहीं
  • 3
  • 1 view
more options

We want to migrate our add-on from xul based add-on to webextension and having some trouble. We need to interact with window document object of tabs from our extension, browser.tabs.executeScript() is not suitable, because sometimes we need to return value. E.g. we need to check if element is present in document from our extension. Is there a way to do that? if yes, how?

We want to migrate our add-on from xul based add-on to webextension and having some trouble. We need to interact with window document object of tabs from our extension, browser.tabs.executeScript() is not suitable, because sometimes we need to return value. E.g. we need to check if element is present in document from our extension. Is there a way to do that? if yes, how?