RESOLVED FIXED 127865
Web Inspector: Run JSC Inspector EventLoop in a custom run loop mode to prevent default observers from running
https://bugs.webkit.org/show_bug.cgi?id=127865
Summary Web Inspector: Run JSC Inspector EventLoop in a custom run loop mode to preve...
Joseph Pecoraro
Reported 2014-01-29 16:20:03 PST
* SUMMARY When the main thread triggers a JSC event loop, an NSTimer scheduled to fire on the main thread can still run. Bad! We want to get as close to possible to having everything paused and have the debugger control execution going forward. Having NSTimers evaluate code in the context while paused is unexpected and could be bad. * NOTES As a temporary solution spin the runloop in a custom mode that won't fire default/common observers. We need to investigate better solutions for more complete pausing of the process, as this doesn't handle apps that may already have multiple threads accessing a JSContext concurrently.
Attachments
[PATCH] Proposed Fix (2.37 KB, patch)
2014-01-29 16:24 PST, Joseph Pecoraro
no flags
Joseph Pecoraro
Comment 1 2014-01-29 16:24:10 PST
Created attachment 222606 [details] [PATCH] Proposed Fix
Radar WebKit Bug Importer
Comment 2 2014-01-29 16:24:34 PST
Geoffrey Garen
Comment 3 2014-01-29 16:36:46 PST
Comment on attachment 222606 [details] [PATCH] Proposed Fix r=me
WebKit Commit Bot
Comment 4 2014-01-29 17:28:09 PST
Comment on attachment 222606 [details] [PATCH] Proposed Fix Clearing flags on attachment: 222606 Committed r163054: <http://trac.webkit.org/changeset/163054>
WebKit Commit Bot
Comment 5 2014-01-29 17:28:11 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.