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

Fixed Issue #9107332


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

      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