Cocoa: Why web view loses focus when in fullscreen mode?

215 views
Skip to first unread message

Zhao Cheng

unread,
Nov 17, 2012, 9:01:49 AM11/17/12
to chromium-dev
Hi chromium-dev,

(This is a problem on OS X.)

I just observed a strange problem in content shell, after entering
fullscreen mode, all mouse move events stopped being sent and ":hover"
CSS rules would have no effect. You can regenerate this problem by
opening the page in https://gist.github.com/4096104 in content shell
and then enter the fullscreen mode, you can see when you move your
mouse in the rectangle the code in "onmove" is not executed.

The only reason for this seems to be that the web view lost focus in
fullscreen mode. However the chrome browser didn't has this problem,
I've looked into the cocoa code about fullscreen but didn't see any
code on this, does anyone know why? Thanks.

--
Cheng
Intel Open Source Technology Center

Sailesh Agrawal

unread,
Nov 17, 2012, 6:26:18 PM11/17/12
to zcb...@gmail.com, chromium-dev, Avi Drissman
Yea, this is pretty weird. If you show the menu bar (by moving the mouse to the top of the screen) and then hide it, it fixes the problem.

Seems like a weird OS bug to me but I'm not sure.

+avi who might know more.


--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages