Bug 96702
Summary: | Should have a DOMCriticalSection RAII class which forbids event dispatch, etc. while on the stack | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | abarth, ap, dglazkov, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 96706, 96717 | ||
Bug Blocks: |
Eric Seidel (no email)
Should have a DOMCriticalSection RAIA which forbids event dispatch, etc. while on the stack
Right now we do this manually, and rather ad-hoc. We should have some slicker tools for annotating when the DOM is in an inconsistent state and we do not expect JS to run.
This came up again while reviewing bug 93639
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Barth
forbidEventDispatch is something like that, but probably doesn't cover all the cases you'd like to cover.
Alexey Proskuryakov
A good idea, although I'm not a big fan of "DOMCriticalSection" name. Besides event dispatch, what forbidden code do you have in mind for these sections?
Ryosuke Niwa
(In reply to comment #2)
> A good idea, although I'm not a big fan of "DOMCriticalSection" name. Besides event dispatch, what forbidden code do you have in mind for these sections?
*WidgetHierarchyUpdates is a good candidate.