Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Issue 345013002: Notify the browser when the page lost interest about gamepads (Closed)

Created:
6 years, 6 months ago by kbalazs
Modified:
6 years, 6 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Notify the browser when the page lost interest about gamepads The page visibility logic used in NavigatorGamepad via DeviceEventControllerBase assumes that we only want to tell the dispatcher that we are uninterested in events if we have an event listener. This is not perfect for gamepad. If the page doesn't add event listener for gamepad events it can still poll the data via navigator.getGamepads() at which point we tell the browser that we need gamepad data. We also want to tell the browser if we are not interested so that it can suspend the polling thread. Long story short, we shouldn't check m_hasEventListener in pageVisibilityChanged. This CL doesn't change visible behavior thus no tests. Visibility related tests should be added for gamepad though, I will do that later. BUG=386846 R=bajones@chromium.org TBR=abarth@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176618

Patch Set 1 #

Patch Set 2 : fixed for relanding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M Source/core/frame/DeviceEventControllerBase.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 1 4 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kbalazs
6 years, 6 months ago (2014-06-20 00:10:58 UTC) #1
abarth-chromium
lgtm
6 years, 6 months ago (2014-06-20 00:18:04 UTC) #2
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 6 months ago (2014-06-20 13:42:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/345013002/1
6 years, 6 months ago (2014-06-20 13:43:13 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-20 14:54:49 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 15:40:57 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/19882)
6 years, 6 months ago (2014-06-20 15:40:58 UTC) #7
kbalazs
The CQ bit was checked by b.kelemen@samsung.com
6 years, 6 months ago (2014-06-20 15:43:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/345013002/1
6 years, 6 months ago (2014-06-20 15:44:08 UTC) #9
commit-bot: I haz the power
Change committed as 176618
6 years, 6 months ago (2014-06-20 15:45:04 UTC) #10
jamesr
I suspect this patch is causing crashes on a few content_browsertests: http://build.chromium.org/p/chromium.webkit/builders/Linux%20Tests/builds/37409/steps/content_browsertests/logs/ReloadWhileSwappedOut RenderViewImplTest.ReloadWhileSwappedOut (run #1): ...
6 years, 6 months ago (2014-06-20 19:09:17 UTC) #11
jamesr
6 years, 6 months ago (2014-06-20 19:10:12 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/348083003/ by jamesr@chromium.org.

The reason for reverting is: Causing content_browsertest crashes on all
platforms.

Powered by Google App Engine
This is Rietveld 408576698