Host Permissions required for SelectionText of info object in Thunderbird 68?

167 Views Asked by At

The documentation for menus API of Thunderbird 68 says :

The following properties are only set if the extension has host permissions for the given context: linkUrl, linkText, srcUrl, pageUrl, frameUrl, selectionText.

In my manifest.json, following are the list of permissions i had requested from host:

"permissions": [
    "menus",
    "activeTab",
    "tabs",
    "<all_urls>"
],
"content_scripts": [
   {
      "matches": ["<all_urls>"]
   }
]

But, when a text is selected in content of email, the selected text is not being included in the info object.

{"menuItemId":"open_link","parentMenuItemId":"context_customlinks","editable":false,"modifiers":[],"button":0}

Earlier the selection of text worked fine in my XUL based extension. But, after porting it to WebExtension the selection text is not being passed leading to missing functionality in my extension.

I tried searching relevant information in all the places (Thunderbird Documentation, Webextension Documentation, GitHub, Stackoverflow, Google, etc.,) to get the idea of host permissions required for info.SelectionText, but the information couldn't be found anywhere.

Requesting help in resolving this issue.

0

There are 0 best solutions below