Calling browser.tabs.query to find tabs matching "ms-browser-extension://" does not work

Not reproducible Issue #8094141

Details

Author
Olivier B.
Created
Jul 6, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14352
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Consistently, calling browser.tabs.query from an extensions’ background page that has the tabs permissions enabled returns an empty array.

Using the following code, with an open extension tabs, returns an empty array:

browser.tabs.query({
  url: 'ms-browser-extension://' + browser.runtime.id + '/*'
}, function() {
  console.log(arguments)
})

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

    • Could you please provide us your sample? This will help our investigation.

      All the best,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    • This item of feedback will be
      closed out soon due to inactivity. Please provide any details that you have so
      that we can investigate further and prevent closure of the item.

      All the best,

      The MS Edge Team

    • I can confirm that this is a problem. I think all the details are in the issue description.
      Open an options page in any extension and try running

      browser.tabs.query({url: "ms-browser-extension://*/*"}, tabs => { console.log(tabs); });
      

      It should return at least one tab, but it returns an empty array.

      Hopefully https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8604703/ fixes this.

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

    Sign in