Extension does not seem to support previousVersion field during OnInstaller event and "Update" Scenario

Not reproducible Issue #23505341


Rakuten D.
Sep 19, 2019
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

We want to update user settings during extension update as we have updated new features and old settings are incompatible with new version. But the browser does not seem to be supporting “previousVersion” field during “OnInstalled” even when “details.reason” is "update", thought MDN lists it as supported by Edge. Can you confirm or Deny that?


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

    • Hi Rakuten!

      Thank you for contacting us! I am unsure of the exact api you are referencing so I will try to cover my bases. According to the documentation browser.management.onInstalled is not supported, whereas browser.runtime.onInstalled is. If you believe you have found a code defect then please provide me with a way to reproduce this locally.


    • Yes it is “browser.runtime.onInstalled” it provides a variable called “detail” which is supposed to have a property called “previousVersion” (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled) That is “missing” as per our tests. Can you confirm on this? Or tell us we are doing something silly and it exists.

    • Hi Rakuten!

      previousVersion is optional and is only provided if the runtime.OnInstalledReason value is "update". Of course, I cannot confirm that you have found a bug without a minimal reproduction. Could you provide me with your extension?


    • I do know and understand that “previousVersion” is available on the “Update” scenario only. I followed the documentation here (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled).

      For our case, we have found another way to fulfill the needs, so time I have to develop the reproduction is not much. In any case, can you confirm that “previousVersion” is available during Update case as our experience is that it is not.

    • Hi Rakuten!

      I see no documentation which suggests that we would have removed support for this api. Are you unable to provide me with a minimal reproduction?



    • Hi!

      For now, I will resolve this issue as "Not Reproducible". If you are still experiencing this problem then please feel free to reopen this issue with the information requested and I will resume my investigation. 


    • Microsoft Edge Team

      Changed Status to “Not reproducible”

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

    Sign in