gecko-dev/dom/animation/test/chrome
Tooru Fujisawa 9a81f2437f Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
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.
2018-02-17 17:21:13 +09:00
..
file_animate_xrays.html Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles 2018-02-17 17:21:13 +09:00
test_animate_xrays.html Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles 2018-02-17 17:21:13 +09:00
test_animation_observers_async.html Bug 1424644 - Check pending state to make sure the animation has been paused or not. r=birtles 2017-12-11 06:46:46 +09:00
test_animation_observers_sync.html Bug 1424644 - Check pending state to make sure the animation has been paused or not. r=birtles 2017-12-11 06:46:46 +09:00
test_animation_performance_warning.html Bug 1436642 - Make target element size larger to be unable to send transform animations to the compositor. r=jaws 2018-02-10 06:52:23 +09:00
test_animation_properties.html Bug 1417200: Make -moz-border-colors chrome only. r=xidorn 2017-12-01 23:25:01 +01:00
test_cssanimation_missing_keyframes.html Bug 1339332 - Part 3: Test for missing keyframes in CSS Animation. r=hiro 2017-03-08 10:07:09 +09:00
test_generated_content_getAnimations.html Bug 1434819 part 7. Remove the SHOW_* constants from nsIDOMNodeFilter. r=qdot 2018-02-01 14:26:12 -05:00
test_keyframe_effect_xrays.html Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles 2018-02-17 17:21:13 +09:00
test_running_on_compositor.html Bug 1415042 - Wait for two requestAnimationFrames to ensure that animations have been tried to send to the compositor in test_running_on_compositor.html. r=birtles 2017-11-07 14:50:15 +09:00
test_simulate_compute_values_failure.html Bug 1305325 - Part 6: Handle missing keyframe whose offset 0 or 1 on the main thread. r=birtles 2016-12-04 08:07:40 +09:00