gecko-dev/dom/animation
Tom Ritter 8285198060 Bug 1387894 - Fix the WPT and mochitest test_document-timeline.html for unconditional clamping. r=birtles
We fix this by clamping the requestAnimationFrame timestamp in the test before comparing it.
We don't clamp the requestAnimationFrame timestamp normally because it would be meaningless:
rAF fires on a regular frequency and someone perfoming a fine-grained timing attack will be
able to determine the timestamp from when it fires.

We need to use parseFloat to knock off any extra epislon we gain.

This shouldn't cause any major blow-ups because timelines are disabled in release and beta,
so at least any potential fallout would be constrained.

Differential Revision: https://phabricator.services.mozilla.com/D38807

Depends on D38806

--HG--
extra : rebase_source : d6f6170ae3082022d422f925e8d5619400e845ed
2019-08-02 07:36:09 +02:00
..
test Bug 1387894 - Fix the WPT and mochitest test_document-timeline.html for unconditional clamping. r=birtles 2019-08-02 07:36:09 +02:00
Animation.cpp Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles 2019-06-28 18:18:08 +00:00
Animation.h Bug 1253476 - Implement Animation.commitStyles; r=boris,emilio,bzbarsky,smaug 2019-05-20 06:04:23 +00:00
AnimationComparator.h
AnimationEffect.cpp Bug 1518403 - Make IsCurrent return false for animations with playback rate == 0 that are in before/active phase; r=hiro 2019-01-10 01:03:24 +00:00
AnimationEffect.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
AnimationEventDispatcher.cpp
AnimationEventDispatcher.h
AnimationPerformanceWarning.cpp Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles 2019-06-28 18:18:08 +00:00
AnimationPerformanceWarning.h Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles 2019-06-28 18:18:08 +00:00
AnimationPropertySegment.h
AnimationTarget.h Bug 1253476 - Add DefaultHasher implementation for OwningAnimationTarget; r=njn 2019-05-20 05:22:07 +00:00
AnimationTimeline.cpp Bug 1516366 - Move nsOnloadBlocker and nsDocumentOnStack to nsDocument.cpp, and shrink nsDocument.h to the minimmum. r=smaug 2018-12-29 20:41:42 +01:00
AnimationTimeline.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
AnimationUtils.cpp Bug 1518816 - Rework AnimationUtils::EffectSetContainsAnimatedScale to handle looking up the effect set correctly; r=hiro 2019-03-18 04:12:10 +00:00
AnimationUtils.h Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug 2019-03-29 15:11:04 +00:00
ComputedTiming.h
ComputedTimingFunction.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
ComputedTimingFunction.h Bug 1517715 - Move nsSMILCSSProperty, nsSMILKeySpline and nsSMILParserUtils to the mozilla namespace r=bbirtles 2019-01-08 07:55:14 +00:00
CSSPseudoElement.cpp Bug 1553021 - Update naming of parameter to getAnimations to match spec; r=bzbarsky 2019-05-22 05:40:36 +00:00
CSSPseudoElement.h Bug 1553021 - Update naming of parameter to getAnimations to match spec; r=bzbarsky 2019-05-22 05:40:36 +00:00
DocumentTimeline.cpp Bug 1253476 - Run microtask checkpoint for updating timing after updating all timelines; r=hiro 2019-05-20 05:22:03 +00:00
DocumentTimeline.h Bug 1518374 - Fix a bunch of fallout from changes to mozilla::dom::Document; r=hiro 2019-01-08 06:45:18 +00:00
EffectCompositor.cpp Bug 1534884 - Add new animation warning for animations overridden by important rules. r=birtles 2019-06-28 18:18:08 +00:00
EffectCompositor.h Bug 1253476 - Implement Animation.commitStyles; r=boris,emilio,bzbarsky,smaug 2019-05-20 06:04:23 +00:00
EffectSet.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-03-31 15:12:55 +00:00
EffectSet.h Bug 1540785 - Part 1: Introduce nsDisplayItemBase r=mattwoodrow 2019-04-22 19:57:59 +00:00
Keyframe.h
KeyframeEffect.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
KeyframeEffect.h Bug 1289211 - Rename InfallibleTArray to nsTArray in dom/animation/ r=mattwoodrow 2019-07-10 03:25:03 +00:00
KeyframeEffectParams.h
KeyframeUtils.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
KeyframeUtils.h Bug 1525955 - Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag. r=heycam 2019-02-19 13:44:33 +00:00
moz.build Bug 1541767 - Don't post animation restyles when unbinding an element; r=hiro 2019-04-18 06:49:25 +00:00
PendingAnimationTracker.cpp Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio 2019-03-29 15:12:47 +00:00
PendingAnimationTracker.h Bug 1518374 - Fix a bunch of fallout from changes to mozilla::dom::Document; r=hiro 2019-01-08 06:45:18 +00:00
PostRestyleMode.h Bug 1541767 - Don't post animation restyles when unbinding an element; r=hiro 2019-04-18 06:49:25 +00:00
PseudoElementHashEntry.h Bug 1525955 - Include anon boxes in CSSPseudoElementType, to remove ComputedStyle::mPseudoTag. r=heycam 2019-02-19 13:44:33 +00:00
TimingParams.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
TimingParams.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00