gecko-dev/dom
Chris Pearce d2ec5f2f3e Bug 1307546 - Ensure we don't set timers with negative intervals in to update A/V sync. r=jya
Our logic to do A/V sync sets a timer to drop expired frames based on the
start time of the next frame in the queue. If the frames in the queue are
badly muxed and don't have monotonically increasing start times, we can
end up setting a timer with a negative interval. This causes us to reevaluate
the frames in the VideoSink's queue immediately, set the same timer again,
and so we end up hot-looping.

This is a simple low-risk fix that detects when we're about to set a negative
interval timer, and instead sets the timer 1/30th of a second in the future.

This fix is deliberately low risk, such that it's suitable for uplift. I have
an idea how to do this better, but the lower risk this is most suitable for
uplift.

MozReview-Commit-ID: CDOqJJodx4l

--HG--
extra : rebase_source : b2833382d95143ee1845f2ea32dcc77a1903dc00
2016-11-04 16:42:24 +13:00
..
animation Bug 1168759 - Part 2: Use waitForAllPaints() instead of animation.ready. r=boris 2016-10-27 16:34:04 +09:00
apps Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00
archivereader
asmjscache
audiochannel Bug 1302350 - part3 : provide a method to know the media-block-state before connecting to the AudioChannelService r=baku 2016-11-01 17:46:11 +08:00
base Merge m-c to autoland 2016-11-03 20:02:24 -07:00
battery Bug 1313580 - Part 3: Remove web content access to Battery API. r=baku 2016-10-28 18:45:36 -07:00
bindings Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00
broadcastchannel Backed out changeset 1fc115bbc7be (bug 1310967) for failing test_messageEvent_init.html. r=backout 2016-10-24 19:14:38 +02:00
browser-element Bug 1301340 - part5: Turning off some tests temporarily to enable e10s-multi. r=mrbkap 2016-11-03 19:28:15 +01:00
cache Bug 1312022 - Fix some leaky tests. r=mrbkap 2016-11-02 11:13:49 +01:00
canvas Merge m-c to autoland 2016-11-03 20:02:24 -07:00
console
crypto Bug 1308890 - Make use of ScopedAutoSECItem in CryptoKey.cpp. r=rbarnes 2016-10-14 10:36:54 +08:00
devicestorage Bug 1310895 - Remove support for app default and manifest CSP enforcement; r=baku 2016-10-18 09:40:41 -04:00
downloads Bug 1261019 - Part 3: Remove Navigator.mozApps and code depending on it; r=myk,jryans,fabrice,mcmanus,peterv 2016-10-13 13:18:41 -04:00
encoding Bug 1301655 - pt 0 - Add an optional parameter to nsIChromeRegistry.getSelectedLocale to allow callers to request the locale be returned as a valid BCP47 lang tag. r=gandalf 2016-10-28 12:04:06 +01:00
events Merge m-c to autoland 2016-11-03 20:02:24 -07:00
fetch Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-13 15:43:54 +08:00
filehandle
filesystem Bug 1284987 - Entries API - part 6 - BlobCallback renamed, r=smaug 2016-11-03 07:57:34 +01:00
flyweb Bug 1278275 - Update Headers::GetAll and Headers::Get to match the specification. r=jdm, r=bkelly 2016-10-10 22:50:14 +05:30
gamepad Bug 1313585 - Part 1: Removing gamepads while nsGlobalWindow is removed in GamepadManager; r=lenzak800,qdot 2016-10-28 15:58:22 +08:00
geolocation Bug 1300474 - Replace nsAutoPtr usages in geolocation with UniquePtr. r=jdm 2016-10-24 14:40:18 +08:00
grid
html Merge m-c to autoland 2016-11-03 20:02:24 -07:00
imptests
indexedDB Backed out changeset 2e8791563f4d (bug 1309527) for Win8 timeouts in idbobjectstore-rename-store.html 2016-11-02 19:22:18 -07:00
inputmethod
inputport
interfaces Merge m-c to a CLOSED TREE m-i 2016-10-27 20:36:38 -07:00
ipc Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00
json
jsurl Bug 1306472. Back out bug 1268047, because the spec it tried to implement backs the web. r=smaug 2016-10-13 12:10:23 -04:00
locales Bug 1304140 - Part 1: Implement support for the Large-Allocation header behind the dom.largeAllocationHeader.enabled pref, r=smaug 2016-10-31 16:38:54 -04:00
manifest Bug 1295456 - Update Gecko tests for css-color-4 color function changes. r=dholbert 2016-10-16 03:15:36 +08:00
mathml
media Bug 1307546 - Ensure we don't set timers with negative intervals in to update A/V sync. r=jya 2016-11-04 16:42:24 +13:00
messagechannel Bug 1313006 - Remove of MessageEvent.setSource, r=qdot 2016-10-26 22:00:43 +02:00
network Bug 1307491 - (Part 3) Remove support for per-app-offline in don/network [nukeb2g] r=baku 2016-10-17 03:58:59 +02:00
notification Bug 1310910 - Remove ChromeNotifications; r=baku 2016-10-18 09:41:56 -04:00
offline Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug 2016-10-26 10:20:16 -07:00
performance
permission Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00
phonenumberutils
plugins Bug 1314812 - Remove code that manually times out loads in favor of relying on the test harness. r=Gijs 2016-11-02 16:03:11 -07:00
power
presentation Bug 1311375 - promise reject when there is an unsettled presentation start procedure. r=smaug 2016-10-31 15:49:32 +08:00
promise Bug 1298414 - Properly handle resolve/reject callbacks on xray'd promises. r=bz,efaust 2016-11-03 19:08:56 +01:00
push Bug 1307577 - Switch to `createCodebasePrincipal` in `PushRecord`. r=mt 2016-10-20 10:29:58 -07:00
quota Bug 1301333 - Add mark-initialisation-func annotation to functions Init and DoInitOnMainThread from GetUsageOp. r=baku 2016-10-18 12:57:57 +03:00
res
secureelement Bug 1261019 - Part 3: Remove Navigator.mozApps and code depending on it; r=myk,jryans,fabrice,mcmanus,peterv 2016-10-13 13:18:41 -04:00
security Bug 1312680 - Test that require-sri-for blocks style loads via @import r=francois 2016-11-03 03:18:00 +01:00
settings
smil Bug 1272549 - Part 9: Compute distance for mismatched transform lists. r=birtles 2016-10-05 15:36:16 +08:00
speakermanager
storage Bug 1308287 part 1. Change [NeedsSubjectPrincipal] to only do the Maybe thing for interfaces that can be exposed to workers. r=baku 2016-10-10 21:07:48 -04:00
svg Bug 1241898 - Fix SVGFilteElement typo in test_SVGUnitTypes.html. 2016-10-23 18:25:43 -04:00
system Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00
tests Bug 1304140 - Part 2: Add tests for the Large-Allocation header, r=smaug 2016-10-31 16:38:54 -04:00
tethering
time
u2f Bug 1308868 - Add ignore-initialization-check annotation to mErrorCode from U2FStatus. r=baku 2016-10-17 16:10:17 +03:00
url Bug 1305204 - (Part 2) Backout bug 1275746 a=backout 2016-10-23 14:24:45 +02:00
vr Bug 1306422 - VRDisplay.exitPresent must only be allowed by content that started VR Presentation,r=gwright 2016-10-11 15:26:57 -07:00
webidl Merge m-c to autoland 2016-11-03 20:02:24 -07:00
wifi
workers Bug 1289001 - NeckoParent::GetValidatedAppInfo should consider ServiceWorkers when validating HttpChannel requests, r=bkelly, r=valentin, f=asuth 2016-11-03 08:18:51 +01:00
xbl Bug 1308919 - Don't make Handles to Heap<T> as it avoids the read barrier r=bz 2016-10-14 09:45:28 +01:00
xhr Bug 1303167 P6 Rename new suspend and freeze methods to final names. r=smaug 2016-10-26 10:20:16 -07:00
xml Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
xslt Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug 2016-10-27 15:53:35 -04:00
xul Bug 1301655 - pt 0 - Add an optional parameter to nsIChromeRegistry.getSelectedLocale to allow callers to request the locale be returned as a valid BCP47 lang tag. r=gandalf 2016-10-28 12:04:06 +01:00
jar.mn
moz.build Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst 2016-11-03 13:55:36 -07:00