When sending error report from content script, idToken is undefined which causes 401 Unauthorized error on FES.
It happens because in doSendErrorToSharedTenantFes we try to parse acctEmail from current url, but there is no such url parameter in content script, need to fetch current acctEmail from storage.
When sending error report from content script,
idToken
isundefined
which causes401 Unauthorized
error on FES.It happens because in doSendErrorToSharedTenantFes we try to parse
acctEmail
from current url, but there is no such url parameter in content script, need to fetch currentacctEmail
from storage.