-
Committer:
Chris Coulson
-
Date:
2012-09-21 00:54:59 UTC
-
Revision ID:
chris.coulson@canonical.com-20120921005459-ick245sl25vmphi4
Switch from nsIMutationObserver to the newer DOM MutationObserver. When using the former, it is unsafe to make further DOM mutations in any document during a notification, which we have been doing up until now. The usual mechanism for queueing further mutations until it is safe to run them (nsContentUtils::AddScriptRunner) is not available to addons, and it doesn't look like it's possible to reliably make sure that no document is in the middle of an update. The DOM MutationObserver notifications are queued and then dispatched after exitting from script and when there are no script blockers