browser.idle.onStateChanged is not implemented.

Fixed Issue #11579788

Details

Created
Apr 10, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

browser.idle.onStateChanged is not implemented.

I found MS Edge is already supported this API by this supported api page.
https://docs.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-apis

MS Edge must be supported idle.onStateChanged, but not implemented.

MS Edge does not run this code


function newState(state) {
console.log(“New state: ${state}”);
}

browser.idle.onStateChanged.addListener(newState);


Developers forgot to implement this function?

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

    Changed Assigned To from “Steven K.” to “James M.”

  • Hello,

    Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge with the information at hand. Please update this case with more details, such as the files of your Extension project so we can further test the problem.

    Best Wishes,
    The MS Edge Team

  • Hi, James.

    I uploaded tested log screen caputre.
    Please, check it.
    I got chrome and firefox and latest MS Edge captures.
    compare it.

    Chrome and FireFox have chrome.idle.onStateChanged function.
    But, MS Edge(latest version) does not.

  • Microsoft Edge Team

    Changed Status to “By design”

  • Hello,

    Thank you for providing extensive information about this issue. A Microsoft Edge Extension does not support the Promise model; this is a documented difference between Mozilla and Edge’s platform. Currently, we do not plan to release a fix, so you will need to use a function with a callback, instead.

    Best Wishes,
    The MS Edge Team

  • Hi, James.

    so you will need to use a function with a callback, instead.

    I don’t know how to use a function with a callback.
    Tell me it.

    https://docs.microsoft.com/en-us/microsoft-edge/extensions/api-support/supported-apis

    idle.onStateChanged is supported by this page.
    see The following idle APIs are supported LINE.

    I mean MS Edge does not have idle.onStateChanged function.
    Is it MS Edge’s design???

  • Changed Status from “By design”

  • Hi, James.

    It seems that the essence of the problem has not been conveyed.

    browser.onStateChanged function is supported API web page.
    but, latest MS Edge does not have browser.onStateChanged function.

    I uploaded supported API web page’s screen shot.
    Please check it.

    Please, Do not rush changing issue status to BY DESIGN.

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “Balaji B.”

    Changed Status to “Needs root cause”

    Changed Assigned To from “Balaji B.” to “Abigail C.”

    Changed Status from “Needs root cause” to “Fixed”

  • Hello,

    Thank you for reporting on this issue. The event is indeed not supported yet on the Edge extension platform, and we have updated our documentation to reflect this.

    Best Wishes,
    The MS Edge Team

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

Sign in