[Bug 16606] MutationObserver doesn't provide a safe way to suspend & resume observation

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16606

--- Comment #11 from Ryosuke Niwa <rniwa@webkit.org> 2012-04-03 08:13:29 UTC ---
(In reply to comment #10)
> Inside MutationObserver? You mean MutationObserver's callback?
> Well, if there are new records, the callback would be called again, if not,
> nothing would happen.

Right, and I don't think that's a desirable behavior (called again) because now
mutation observer callback can be called mutually recursively (with deliver())
without starting an event loop.

i.e. I prefer takeMutations() over deliver().

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 3 April 2012 08:13:37 UTC