tabs.query for active tab after tab.create

Not reproducible Issue #12093789

Details

Author
Igor K.
Created
May 22, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. call tabs.create and open a new tab (‘about:blank’)
  2. call tabs.query({active: true}, cb) in callback you receive an empty tabs array. But you expect to see an array with an active tab.
    If you call tabs.query({}, cb) - you will see that newly created tab has status: 'loading', active: false

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Hi Igor,

      Is this code being used in an extension?

      I wanted to make you aware of the namespace requirement for Edge Extensions supported APIs.  See the “Note” at the top of the following page.

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

      “For Microsoft Edge, all extension APIs are under the browser namespace, e.g. browser.browserAction.disable().”

      If this was not your main issue, send a repro that we can test.

      Also, the example “QR code” demo extension shows the tabs API with a non-empty tabs array being returned.

      https://blogs.msdn.microsoft.com/micl/2016/09/03/edge-extension-create-a-custom-edge-extension/

      The MS Edge Team

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

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

    Sign in