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

Issue 828983002: Do not (re)start NavigatorGamepad updating once detached. (Closed)

Created:
5 years, 11 months ago by sof
Modified:
5 years, 11 months ago
Reviewers:
oilpan-reviews, haraken
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Do not (re)start NavigatorGamepad updating once detached. Following r187750, NavigatorGamepad uses DOMWindowProperty::frame() to access its window and document, dispatching and handling events via those when activated and receiving platform event updates. With Oilpan enabled, a DOMWindowProperty instance will be informed of frame & document detachment via willDetachGlobalObjectFromFrame(), with the frame remaining alive until the next GC sweep. Without Oilpan, frame destruction is synchronous. Consequently, a NavigatorGamepad with a now-detached frame() should not reactivate itself, as the weak frame() reference will become null once the next GC has struck. NavigatorGamepad relies on frame() being non-null when activated. Insist on the frame being non-detached to (re)activate. The difference in behavior from the previous check is only observable with Oilpan enabled, hence no need to make it suitably conditional. R=haraken BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187811

Patch Set 1 #

Patch Set 2 : Simply refuse to (re)start updating when detached #

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

Messages

Total messages: 6 (2 generated)
sof
Please take a look. Bots reporting some flaky gamepad crashes, https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win_Oilpan__dbg_/4772/layout-test-results/gamepad/page-visibility-crash-log.txt Locally reproducible, but GC ...
5 years, 11 months ago (2015-01-01 07:56:41 UTC) #2
haraken
LGTM, thanks for the investigation and fix.
5 years, 11 months ago (2015-01-01 09:49:43 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/828983002/20001
5 years, 11 months ago (2015-01-01 09:53:10 UTC) #5
commit-bot: I haz the power
5 years, 11 months ago (2015-01-01 09:55:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187811

Powered by Google App Engine
This is Rietveld 408576698