gecko-dev/layout
Timothy Nikkel 97ff865eba Bug 1749004. Call CancelManagedPostRefreshObservers after frame tree is destroyed. r=emilio
nsPresContest::RegisterManagedPostRefreshObserver still lets us add a managed post refresh observer until the mPresShell pointer on the prescontent is nulled out. That means that between the call to CancelManagedPostRefreshObservers and mPresContext->DetachPresShell() (which nulls out the mPresShell pointer on the prescontext) in PresShell::Destroy we can add a managed post refresh observer that will never get removed. Notably, destroying the frame tree happens between these two calls.

So move the CancelManagedPostRefreshObservers call to happen right after we null out the mPresShell pointer on the prescontext.

In bug 1737503 I want to add a managed post refresh observer when we destroy a subdocument frame (it's only interested in the recreate frames case not the destruction case, but not an easy way to tell them apart afaik), so it triggers this bug. The patch and test I have for that bug exercise this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D135340
2022-01-12 12:59:44 +00:00
..
base Bug 1749004. Call CancelManagedPostRefreshObservers after frame tree is destroyed. r=emilio 2022-01-12 12:59:44 +00:00
build Bug 1707963: Let the PermissionManager be initialized lazily but not after shutdown started. r=permissions-reviewers,timhuang,janv 2021-12-14 18:39:41 +00:00
docs Bug 1735445 - Add a few more examples to the CSS Gap Decorations draft spec. NPOTB DONTBUILD 2021-12-18 16:58:27 +00:00
forms Bug 1746758 - Correctly compute meter position in nsNativeBasicTheme. r=spohl 2021-12-22 18:16:21 +00:00
generic Bug 1748574 - Rewrite the helper that computes scrollbar's intrinsic size. r=dholbert 2022-01-07 04:13:42 +00:00
inspector Bug 1746683 - Remove hwba since it's not a thing (hwb function supports alpha). 2021-12-20 02:53:31 +00:00
ipc Bug 1728914 - Convert a few uses of AsLayerManager to use WebRenderLayerManager. r=gfx-reviewers,aosmond 2021-09-05 02:16:38 +00:00
mathml Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
media
painting Bug 1748216 - Ensure that we invalidate previously decoded images without a surface ready. r=jrmuizel 2022-01-04 22:01:26 +00:00
printing Bug 1749003 - Remove unnecessary includes and other mentions of nsIWebBrowserPrint. r=jfkthame 2022-01-07 14:46:30 +00:00
reftests Backed out changeset 68e326b1f0de (bug 1746662) for causing reftest failures 2021-12-22 09:17:42 +02:00
style Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
svg Bug 1743761 - Ensure we invalidate substituted images when the preferred size is ready. r=tnikkel 2021-12-03 03:14:01 +00:00
tables Bug 1741148 - part 3: Make users of nsINode::ComputeIndexOf_Deprecated() use nsINode::ComputeIndexOf() if the result is not set to int32_t nor return as int32_t r=smaug 2021-12-09 11:55:36 +00:00
tools Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu 2022-01-07 20:30:45 +00:00
xul Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
moz.build Bug 1728240 - Remove DrawTargetWrapAndRecord and gfx.2d.recording pref. r=jrmuizel 2021-08-31 02:03:58 +00:00