Bug 149390 - Web Inspector: requestAnimationFrame continues to be called after stopping the timeline recording
Summary: Web Inspector: requestAnimationFrame continues to be called after stopping th...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Matt Baker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-20 14:00 PDT by Matt Baker
Modified: 2015-09-21 09:30 PDT (History)
8 users (show)

See Also:


Attachments
[Patch] Proposed Fix (1.91 KB, patch)
2015-09-20 14:05 PDT, Matt Baker
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2015-09-20 14:00:34 PDT
* SUMMARY
requestAnimationFrame continues to be called after stopping the timeline recording. This only happens if no records are added to the recording.

* STEPS TO REPRODUCE
1. Open Inspector > Timelines
2. Inspect the Inspector
3. Set a logging breakpoint in TimelineRecordingContentView's _update method.
4. Press 'Start Recording' button (don't reload Inspected page)
5. Don't take any actions on inspected page (don't generate any timeline records)
6. Stop recording
  => Update messages continue to be logged to the console in Inspector²

* NOTES
TimelineRecordingContentView correctly sets "_updating" to false, but the animation frame callback will continue to self register until the recording start time is >= the end time. Since no records were added to the recording, the end time is NaN and the test always fails.
Comment 1 Radar WebKit Bug Importer 2015-09-20 14:00:56 PDT
<rdar://problem/22774849>
Comment 2 Matt Baker 2015-09-20 14:05:26 PDT
Created attachment 261612 [details]
[Patch] Proposed Fix
Comment 3 BJ Burg 2015-09-21 08:43:12 PDT
Comment on attachment 261612 [details]
[Patch] Proposed Fix

r=me
Comment 4 WebKit Commit Bot 2015-09-21 09:30:41 PDT
Comment on attachment 261612 [details]
[Patch] Proposed Fix

Clearing flags on attachment: 261612

Committed r190058: <http://trac.webkit.org/changeset/190058>
Comment 5 WebKit Commit Bot 2015-09-21 09:30:44 PDT
All reviewed patches have been landed.  Closing bug.