Bug 145089 - Web Inspector: TimelineAgent needs to handle nested runloops
Summary: Web Inspector: TimelineAgent needs to handle nested runloops
Status: RESOLVED DUPLICATE of bug 145090
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-15 20:05 PDT by Matt Baker
Modified: 2015-05-15 20:21 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Baker 2015-05-15 20:05:35 PDT
* SUMMARY
TimelineAgent needs to handle nested runloops.

Pausing script execution in the Web Inspector starts a nested runloop, which causes the TimelineAgent to pop the current rendering frame record before the outer runloop completes. We should track the runloop nesting level, and only push/pop rendering frame records when the stack depth is zero.

* STEPS TO REPRODUCE
Run the following inspector test: LayoutTests/inspector/timeline/debugger-paused-while-recording.html
Comment 1 Radar WebKit Bug Importer 2015-05-15 20:05:59 PDT
<rdar://problem/20986377>
Comment 2 Matt Baker 2015-05-15 20:21:50 PDT

*** This bug has been marked as a duplicate of bug 145090 ***