Calling i18n.getMessage from a content script throws an exception when using multiple substitutions

Not reproducible Issue #10063392

Details

Author
Oleksandr P.
Created
Dec 5, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Based on specification browser.i18n.getMessage should be able to accept second parameter as an array. It should also be possible to use it from a content script. However passing

browser.i18n.getMessage("message", ["substitute"]) 

from within the content script throws an exception with a message "Invalid argument".

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To from “Brad E.” to “Chee C.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Chee C.” to “Anshul K.”

      Changed Assigned To from “Anshul K.” to “Anushree B.”

      Changed Status from “Confirmed” to “Not reproducible”

    • Tested the scenario mentioned with a sample extension which I have shared alongwith. The api was working fine with background as well as content script. Hence, marking the bug as Not Repro. In case, you have a repro extension, please share the sample.
      The sample extension pops an alert with the test message(which uses substitutions)

      1. On load of background script -> Observed as soon as extension is installed.
      2. On Load of content script-> which can be observed on a url navigation.

    You need to sign in to your Microsoft account to add a comment.

    Sign in