DescriptionHave ScreenOrientationController use a timer for async event dispatch again
Essentially revert r193927's switch to using a task to queue handling of
change event dispatch for ScreenOrientationController. Queuing a task
via the execution context / Document is unsafe for this controller object
as its lifetime is that of its frame. Should the frame be detached and
finalized while the Document remains alive, the queued task risks accessing
a freed ScreenOrientationController upon running.
Go back to using a one-shot timer; as these are now task based, the
original motivation for r193927 has additionally fallen away (wean Blink
off from using one-shot shared timers.)
R=mlamouri
BUG=501888
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197466
Patch Set 1 #
Total comments: 3
Patch Set 2 : add clarifying comment to test #
Total comments: 3
Messages
Total messages: 13 (3 generated)
|