chrome.tabs.query does not find match if url property is an array

Fixed, flighted Issue #9107332

Details

Author
Emmanuel S.
Created
Sep 28, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Fixed in build #
15002
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Open two tabs :

In background code of a “chrome bridged” extension :
chrome.tabs.query({url:['https://www.microsoftstore.com/*','https://www.microsoft.com/*']}, function(tabsArray) {console.log(tabsArray);})
=> The array in the callback function is empty === no match

Then, call
chrome.tabs.query({url:['https://www.microsoftstore.com/*']}, function(tabsArray) {console.log(tabsArray);})
Then you have one match !

It seems query will check if all patterns match for a tab url…??

In Chrome extension : the query function returns tabs matching ANY of the pattern in the url array.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To from “Brad E.” to “Mohit R.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed” to “In code review”

      Changed Status from “In code review” to “Fixed, not yet flighted”

      Changed Status from “Fixed, not yet flighted” to “Fixed, flighted”

      Changed Assigned To to “Vasanth C.”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 15063 and is available in our latest Insider Preview build.

      Best Wishes,

      The MS Edge Team

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

    Sign in