chrome.tabs.query is always returning 0 length array in chrome

469 views
Skip to first unread message

spec777

unread,
Jul 6, 2017, 7:07:29 AM7/6/17
to Chromium-Extensions-Announce
I'm finding that chrome.tabs.query({active: true, currentWindow: true} is always returning 0 length array in chrome, any ideas?

spec777

unread,
Jul 6, 2017, 7:11:52 AM7/6/17
to Chromium-Extensions-Announce
Screen Shot 2017-07-06 at 12.11.01.png

spec777

unread,
Jul 6, 2017, 7:44:56 AM7/6/17
to Chromium-Extensions-Announce
only happens when chrome.tabs.query has active:true


On Thursday, July 6, 2017 at 12:07:29 PM UTC+1, spec777 wrote:

PhistucK

unread,
Jul 6, 2017, 12:55:30 PM7/6/17
to spec777, Chromium-Extensions-Announce
Your own screenshot shows an array with a single item (not 0), so what were you trying to show here?


PhistucK

On Thu, Jul 6, 2017 at 2:11 PM, spec777 <nkats...@gmail.com> wrote:


On Thursday, July 6, 2017 at 12:07:29 PM UTC+1, spec777 wrote:
I'm finding that chrome.tabs.query({active: true, currentWindow: true} is always returning 0 length array in chrome, any ideas?

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f70ab9bb-d735-4b7f-b557-c0b9fa279cf7%40chromium.org.

spec777

unread,
Jul 6, 2017, 1:30:50 PM7/6/17
to Chromium-Extensions-Announce
opps my mistake sorry


On Thursday, July 6, 2017 at 12:07:29 PM UTC+1, spec777 wrote:
Reply all
Reply to author
Forward
0 new messages