Reputation: 7128
When calling browser.i18n.getMessage('myKey')
in a Firefox WebExtension, an exception is shown in the background Console if 'myKey' does not exist:
Unknown localization message myKey
In Chrome, it fails silently and returns an empty string.
At other times, I find that it returns a string of ??
. This is not the same as Chome.
Upvotes: 0
Views: 366
Reputation: 7128
This was opened as a bug here, with further discussion here. It looks like it will be fixed to return an empty string.
Upvotes: 0