summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-29 21:08:33 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-29 21:08:33 +0000
commitaf6a8637f56dc2774690a3d92f9df772257ca82d (patch)
tree3f804a5f35d4744c60f3ceb669dcf1991dac4911
parent9f5c27ba479c54d4ebb1bd59b61fbf793f6df93f (diff)
parent5a9f8ae723892a58784968d15ac0a3a8f0c97357 (diff)
downloadUXP-RELBASE_20200930.tar
UXP-RELBASE_20200930.tar.gz
UXP-RELBASE_20200930.tar.lz
UXP-RELBASE_20200930.tar.xz
UXP-RELBASE_20200930.zip
Merge branch 'redwood' into releaseRELBASE_20200930
-rw-r--r--dom/base/ResizeObserverController.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/ResizeObserverController.cpp b/dom/base/ResizeObserverController.cpp
index 924bba10d..349cb66ba 100644
--- a/dom/base/ResizeObserverController.cpp
+++ b/dom/base/ResizeObserverController.cpp
@@ -59,6 +59,12 @@ ResizeObserverNotificationHelper::Register()
void
ResizeObserverNotificationHelper::Unregister()
{
+ if (!mOwner) {
+ // We've outlived our owner, so there's nothing registered anymore.
+ mRegistered = false;
+ return;
+ }
+
if (!mRegistered) {
return;
}