Bug 131697

Summary: Move DOM timer throttling out of the page throttler
Product: WebKit Reporter: Stephanie Lewis <slewis>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, slewis
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 131696    
Bug Blocks:    
Attachments:
Description Flags
patch
none
rebased patch
none
rebased patch for real
none
patch 4 barraclough: review+

Description Stephanie Lewis 2014-04-15 14:50:37 PDT
Created attachment 229405 [details]
patch

DOM timer throttling is currently part of the page throttler which uses per process state and per page state to determine when to throttle.  This led us to being overly conservative when turning DOM throttling off.  It should only respond to view state changes.

Additionally since creating extra Page Throttlers for WebKit1 views and SVG images caused bugs in tracking state we'll reserve the Page Throttler for WebKit2 views.  To avoid regressing we should move DOM timer throttling back to the page.

<rdar://problem/16473004> Throttling DOM timers should be per-page, not per-process
Comment 1 Darin Adler 2014-04-16 10:37:02 PDT
Comment on attachment 229405 [details]
patch

Patch didn’t apply. Could you post a new one that is rebased so it does apply?
Comment 2 Stephanie Lewis 2014-04-16 17:15:56 PDT
Created attachment 229501 [details]
rebased patch
Comment 3 Stephanie Lewis 2014-04-16 17:19:18 PDT
Created attachment 229503 [details]
rebased patch for real

oops that was the original patch
Comment 4 Stephanie Lewis 2014-04-16 17:27:38 PDT
Created attachment 229505 [details]
patch 4

Reversed the order of this patch and https://bugs.webkit.org/show_bug.cgi?id=131696 so it will apply cleanly
Comment 5 Gavin Barraclough 2014-04-17 20:06:18 PDT
Comment on attachment 229505 [details]
patch 4

View in context: https://bugs.webkit.org/attachment.cgi?id=229505&action=review

> Source/WebCore/ChangeLog:9
> +        No new tests since itâs not web exposed.

unicode character in change log.
Comment 6 Stephanie Lewis 2014-04-18 17:50:30 PDT
Committed http://trac.webkit.org/changeset/167522
Comment 7 Darin Adler 2014-04-19 14:35:12 PDT
Comment on attachment 229505 [details]
patch 4

View in context: https://bugs.webkit.org/attachment.cgi?id=229505&action=review

>> Source/WebCore/ChangeLog:9
>> +        No new tests since itâs not web exposed.
> 
> unicode character in change log.

Such characters are OK in Subversion and git, just not in the bugs.webkit.org patch review tool!