browser.tabs.query() expects a callback instead of returning a promise

Confirmed Issue #9421085 • Assigned to Chee C.


Wladimir P.
Oct 19, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In an extension, use the following code:

browser.tabs.query({}).then(result => console.log(result));

This throws an exception:

Invocation of form tabs.query(object) doesn’t match definition tabs.query(object queryInfo, function callback).

This API is supposed to be supported and links to There it says: “This API is also available as browser.tabs.query() in a version that returns a promise.” So it is supposed to return a promise, just like all the other APIs - yet currently it expects a callback, just like chrome.tabs.query(). All other calls on browser.tabs appear to have the same issue.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

      Changed Assigned To from “Ibrahim O.” to “Chee C.”

      Changed Status to “Confirmed”

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

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

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

    Sign in