[Webkit-unassigned] [Bug 135830] Promise reactions in the Inspector page do not run when the debugger is paused on the inspected page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 28 09:54:06 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135830





--- Comment #5 from Brian Burg <burg at cs.washington.edu>  2014-08-28 09:54:12 PST ---
To fix this in WebCore we would need a per-Page function queue, mutex, and have multiple callers to scheduleDispatchOnMainThread. I don't know that code well enough to tell if this is easy or hard (due to some subtle invariants). There are a lot of uses of callOnMainThread throughout WebCore and many of those don't have a Page context, so only some of the callbacks would be tied to a Page. So we might have to think carefully about what other parts of the code should/should not be suspended.

I wrote a quick workaround which defines WebInspector.Promise = RSVP.Promise, and uses WebInspector.Promise everywhere. RSVP (https://github.com/tildeio/rsvp.js) is an MIT-licensed promise library in JS. It should be easy to remove this workaround after we land a fix in WebCore or make progress towards multi-process Inspector.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list