WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
155031
Unify determination of page timer alignment
https://bugs.webkit.org/show_bug.cgi?id=155031
Summary
Unify determination of page timer alignment
Gavin Barraclough
Reported
2016-03-04 12:16:09 PST
Currently this is scattered throughout Page - sites that call setDOMTimerAlignmentInterval have to determine the correct alignment interval. Instead, replace setDOMTimerAlignmentInterval with updateDOMTimerAlignmentInterval, and unify the policy decision here.
Attachments
Fix
(7.34 KB, patch)
2016-03-04 12:22 PST
,
Gavin Barraclough
cdumez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2016-03-04 12:22:04 PST
Created
attachment 273024
[details]
Fix
Chris Dumez
Comment 2
2016-03-04 12:44:12 PST
Comment on
attachment 273024
[details]
Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=273024&action=review
r=me
> Source/WebCore/page/Page.cpp:1260 > + else if (!m_timerAlignmentIntervalIncreaseTimer.isActive())
This is not new but is it possible for m_timerAlignmentInterval to change and for the timer to be active? If so, we currently fail to update the timer. I am guessing we may be working around this by disabling and then re-enabling throttling but if so, it is not very nice.
Gavin Barraclough
Comment 3
2016-03-04 12:56:31 PST
(In reply to
comment #2
)
> Comment on
attachment 273024
[details]
>
> This is not new but is it possible for m_timerAlignmentInterval to change > and for the timer to be active? If so, we currently fail to update the > timer. I am guessing we may be working around this by disabling and then > re-enabling throttling but if so, it is not very nice.
Per conversation with Chris, this is a deliberate part of the policy, as a simple solution to prevent timers from being pushed out infinitely.
Gavin Barraclough
Comment 4
2016-03-04 12:58:46 PST
Transmitting file data ... Committed revision 197581.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug