gecko-dev/xpcom
Sean Feng e903455002 Bug 1708070 - Change InputVsyncState in InputPriorityController::WillRunTask r=smaug
Before this patch, we use InputPriorityController::DidRunTask to change
InputVsyncState which is problematic.

Consider this scenario
  1. Two events are in the queue, vsync(V1) and input(I1)
  2. I1 runs and starts an inner event loop (We only expect one input
     event to be run because there's only one input event)
  3. Another input event(I2) arrives
  4. Inner event loop picks I2 to run
  5. When I2 is finished, it sets the InputVsyncState to `RunVsync`
  6. I1's DidRunTask is called and crashed because the state shouldn't
     be `RunVsync`.

This patch moves the code which checks InputVsyncState from `DidRunTask`
to `WillRunTask` so that the state is correctly checked and updated
before the input task is about to run.

Differential Revision: https://phabricator.services.mozilla.com/D117336
2021-06-09 17:01:30 +00:00
..
base Bug 1714561 - Allow single-zone JS holders to contain pointers into the atoms zone r=mccr8,sfink 2021-06-07 15:19:29 +00:00
build Backed out changeset f9eb0924a327 (bug 1711398) for causing xpcshell failures in test_TelemetryLateWrites.js. 2021-06-07 21:54:55 +03:00
components Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2021-05-31 17:00:15 +00:00
docs Bug 1702245 - Expand XPCOM's in-tree documentation, r=xpcom-reviewers,kmag 2021-04-05 15:56:18 +00:00
ds Backed out 3 changesets (bug 1714349) for Browser-chrome failures in browser/components/places/tests/browser/browser_addBookmarkForFrame.js. CLOSED TREE 2021-06-09 04:48:41 +03:00
glue Bug 1704683 - Avoid loop for closing fd r=jld 2021-05-11 07:45:16 +00:00
idl-parser Bug 1714376 - Replace a number of "exception.message" usages. r=mhentges,jgraham 2021-06-08 15:50:10 +00:00
io Bug 1709887: Add missing #define in mingw builds. r=xpcom-reviewers,nika 2021-05-07 14:02:26 +00:00
libxpt/xptcall
reflect Bug 1711627 - Avoid xptdata.h being (indirectly) included so much. r=xpcom-reviewers,nika 2021-05-19 20:41:39 +00:00
rust Bug 1709935 - Support XPCOM refcount logging with rust-xpcom, r=xpcom-reviewers,mccr8 2021-05-19 17:29:23 +00:00
string Bug 1707096 - fix `deprecated-copy` detected by clang-trunk. r=sfink,jandem 2021-05-26 10:20:32 +00:00
system Bug 1682030 - Remove NPAPI plugin process from GeckoChildProcess r=jld,gsvelto 2021-04-06 19:28:20 +00:00
tests Bug 1714561 - Fix black lint. r=fix CLOSED TREE 2021-06-07 18:52:35 +03:00
threads Bug 1708070 - Change InputVsyncState in InputPriorityController::WillRunTask r=smaug 2021-06-09 17:01:30 +00:00
windbgdlg Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
xpidl Bug 1670357 - Remove `make` targets for cleaning: `clean`, `realclean`, `clobber`, `distclean`, `clobber_all`, `everything` r=firefox-build-system-reviewers,mhentges 2020-10-15 20:37:18 +00:00
moz.build Bug 1695954: Move Gecko Logging MDN Page In-tree r=nika 2021-03-09 16:27:29 +00:00
xpcom-config.h.in