Bug 147456

Summary: LayoutTests/inspector frequently run slow and timeout when run in WebKit2 but not WebKit1
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, burg, commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2015-07-30 14:50:58 PDT
* SUMMARY
LayoutTests/inspector frequently run slow and timeout when run in WebKit2 but not WebKit1.

I suppose I could have used one of the existing bugs covering slow / flakey tests, but I started tackling this just as a generic issue.

* NOTES
It appears as though when running under WK2 the Inspector Process ends up throttling DOM Timers. So setTimeout(0) ends up taking ~1 second, leading to significantly slower tests.
Comment 1 Joseph Pecoraro 2015-07-30 14:51:41 PDT
<rdar://problem/22039803>
Comment 2 Joseph Pecoraro 2015-07-30 16:05:24 PDT
Created attachment 257864 [details]
[PATCH] Proposed Fix

This should address current unskipped flakey tests and make them run aster.

I'll have a separate change that rebases / unskips / unslows tests.
Comment 3 WebKit Commit Bot 2015-07-30 17:17:35 PDT
Comment on attachment 257864 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 257864

Committed r187627: <http://trac.webkit.org/changeset/187627>
Comment 4 WebKit Commit Bot 2015-07-30 17:17:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Alexey Proskuryakov 2015-07-30 17:53:35 PDT
Comment on attachment 257864 [details]
[PATCH] Proposed Fix

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

> Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm:265
> +- (void)_setHiddenPageDOMTimerThrottlingEnabled:(BOOL)hiddenPageDOMTimerRhrottlingEnabled

Rhottling!
Comment 6 Joseph Pecoraro 2015-07-31 14:11:22 PDT
(In reply to comment #5)
> Comment on attachment 257864 [details]
> [PATCH] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=257864&action=review
> 
> > Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm:265
> > +- (void)_setHiddenPageDOMTimerThrottlingEnabled:(BOOL)hiddenPageDOMTimerRhrottlingEnabled
> 
> Rhottling!

Oops! I'll quick fix.
Comment 7 Joseph Pecoraro 2015-07-31 14:26:48 PDT
https://trac.webkit.org/r187682