chrome.windows.update({focused:true}) works differently in Chrome 12 and 13

1,951 views
Skip to first unread message

shiweiwei

unread,
Jul 8, 2011, 10:33:21 AM7/8/11
to Chromium-extensions
Hi there,

I am using chrome.windows.update to bring an extension window to
front. I see different behaviors between Chrome 12 and 13.
In Chrome 12 the extension window will be taken to front no matter
which window is currently focused.
Chrome 13 will make the window flicker in taskbar but won't force it
to be focused.

Is this something fixed intentionally in Chrome 13?
Btw, when will Chrome 13 roll out to stable channel?

Thanks,
Weiwei

shiweiwei

unread,
Jul 23, 2011, 10:13:27 PM7/23/11
to Chromium-extensions
I have filed a bug about this. http://code.google.com/p/chromium/issues/detail?id=90014
Call chrome.windows.update(windowId, {focused: true}) will always
steal the focus from other windows.
It is really annoying when you are typing in one window and the
extension window pops up and steals the focus.
I tried stable, beta and dev channels, all have the same issue. It is
reproducible on Windows XP, 7 and Mac. (Windows Vista is an exception)

How soon can I get an update on this?

Thanks,
Weiwei

Arne Roomann-Kurrik

unread,
Jul 25, 2011, 3:27:29 PM7/25/11
to shiweiwei, Chromium-extensions
Are you asking that {focused: true} not take focus from other windows?  What happens if you use {focused: false}?

~Arne


2011/7/23 shiweiwei <shiwe...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


shiweiwei

unread,
Jul 25, 2011, 9:47:59 PM7/25/11
to Chromium-extensions
Use {focused:false} doesn't notify user when there is a new message.

On 7月26日, 上午3时27分, Arne Roomann-Kurrik <kur...@chromium.org> wrote:
> Are you asking that {focused: true} not take focus from other windows? What
> happens if you use {focused: false}?
>
> ~Arne
>
> 2011/7/23 shiweiwei <shiweiwe...@gmail.com>
> > To post to this group, send email to chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> > chromium-extensions+unsubscr...@chromium.org.

Arne Roomann-Kurrik

unread,
Aug 1, 2011, 3:11:00 PM8/1/11
to shiweiwei, Chromium-extensions
From the bug, it looks like drawAttention is what you want.  That should be available on Dev channel now:

~Arne


2011/7/25 shiweiwei <shiwe...@gmail.com>
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
Reply all
Reply to author
Forward
0 new messages