зеркало из https://github.com/mozilla/gecko-dev.git
9a81f2437f
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller compartment, which is okay because the current compartment is used in the following places and all of them are safe: 1. GlobalObject::CallerType(), that is ultimately passed to nsDocument::IsWebAnimationsEnabled in KeyframeEffectParamsFromUnion, to decide whether to copy mIterationComposite/mComposite to KeyframeEffectParams. GlobalObject::CallerType() can now be different than the target window's one, if the caller has the system principal and the target is web content, and in that case nsDocument::IsWebAnimationsEnabled there always returns true while Web Animations can be disabled on web content. honoring the mIterationComposite/mComposite properties is OK, since it just changes the animation behavior, and this is disabled by default until remaining spec issues are resolved. 2. GlobalObject::Context(), that is ultimately passed to KeyframeUtils::GetKeyframesFromObject and used while extracting information from passed-in keyframe object, with iterable/iterator protocols. Performing that operation in the caller side is okay, since the same thing can be done on caller, and the operation doesn't perform any GCThing allocation on the target window global. |
||
---|---|---|
.. | ||
tests | ||
README | ||
UPSTREAM | ||
WebIDL.py | ||
runtests.py |
README
A WebIDL parser written in Python to be used in Mozilla.