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

Fixed, flighted Issue #9107332


Sep 28, 2016
This issue is public.
Found in
  • Microsoft Edge
Fixed in build #
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:['*','*']}, function(tabsArray) {console.log(tabsArray);})
=> The array in the callback function is empty === no match

Then, call
chrome.tabs.query({url:['*']}, 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.


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.”

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

    Sign in