Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Tab hover gets stuck when opening a new tab (no mouseevents over webview) #13368

Closed
srirambv opened this issue Mar 2, 2018 · 11 comments
Closed

Comments

@srirambv
Copy link
Collaborator

srirambv commented Mar 2, 2018

Description

Sometimes tab hover gets stuck when opening a new tab

Steps to Reproduce

Possible steps but not sure about it

  1. Clean install 0.21.654
  2. Open a couple of tabs and load sites
  3. Open a new tab via keyboard shortcut and visit a site, drag mouse cursor down via other tabs, tab hover gets stuck for one of the previously opened tabs

Actual result:
Sometimes tab hover gets stuck when opening a new tab

Expected result:
Shouldn't hover over tabs until the time spent on tab is satisfied

Reproduces how often:
Sometimes can't really put a number on it

Brave Version

about:brave info:

Brave 0.21.654
V8 6.5.254.26
rev bc6272c
Muon 5.1.3
OS Release 10.0.16299
Update Channel Beta
OS Architecture x64
OS Platform Microsoft Windows
Node.js 7.9.0
Brave Sync v1.4.2
libchromiumcontent 65.0.3325.88

Reproducible on current live release:
No

Additional Information

Could be due to the fact that on hover able to click elements of a page could be the root cause

@srirambv srirambv added bug needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. regression feature/tab-preview labels Mar 2, 2018
@srirambv srirambv added this to the 0.21.x w/ Chromium 65 (Beta Channel) milestone Mar 2, 2018
@bsclifton bsclifton self-assigned this Mar 9, 2018
@bsclifton
Copy link
Member

Was easily able to repro- basically, the preview is stuck after you move mouse off of tab

Let's retry this once a new build comes out (which removes changes other than Chromium 65)

@srirambv
Copy link
Collaborator Author

Still seeing this issue on the C65 build 0.21.656

@kjozwiak
Copy link
Member

kjozwiak commented Mar 12, 2018

Added the release/blocking tag as we should fix this in this milestone. Even though this isn't a serious issue, it's annoying and breaks past functionality. We'll be updating users to a worse experience if this isn't addressed.

@srirambv
Copy link
Collaborator Author

This is an annoying bug. Have to disable tab preview to use. Definitely blocking the release.

@bsclifton bsclifton removed their assignment Mar 12, 2018
@petemill
Copy link
Member

Looks like it's to do with the <webview>, maybe something changed with that in C65. The webview is directly below the tab, and when the mouse moves down from the tab to the webview, the tab is not getting the mouseleave event. Simply making the webview visibility: hidden restores the correct mouseleave event on the tab. Conversely, the <div class='mainContainer'> element which contains the <webview> does not receive a mouseenter event even though it should. Seems like the webview plugin is not passing mouse events to the containing WebContents.

@cezaraugusto
Copy link
Contributor

@petemill did you tried on Windows? Wouldn't be surprised if this is somehow related to -webkit-app-region

@petemill petemill changed the title Sometimes tab hover gets stuck when opening a new tab Tab hover gets stuck when opening a new tab (no mouseevents over webview) Mar 13, 2018
@cezaraugusto
Copy link
Contributor

btw you can see it same way Pete described by just watching the close tab icon not fading away when you hover over tab then back to webview

@petemill
Copy link
Member

Reproducible 100% of the time on Mac and Windows when moving mouse down from tab element to content area. app-region value of source element container has no effect. Hiding webview via css 'fixes' issue.

@bsclifton bsclifton self-assigned this Mar 13, 2018
@petemill
Copy link
Member

I managed to mostly replicate the mouse events issue with C64 muon by commenting out the line owner_view->ProcessMouseEvent(*event, latency_info); in RenderWidgetHostInputEventRouter::RouteMouseEvent which stops mouse event from being sent to containing view (i.e. the window view).

And looks like that entire method has been refactored to a new render_widget_targeter.cc. Perhaps that's the origin of the issue we're seeing?

@bsclifton
Copy link
Member

Fixed with brave/muon@bf26683

Stay tuned for a new build... (will be Muon 4.9.2)

@kjozwiak
Copy link
Member

Also ensured that the Tab Preview Delay settings under about:preferences#tabs are working as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.