diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-29 21:08:33 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-29 21:08:33 +0000 |
commit | af6a8637f56dc2774690a3d92f9df772257ca82d (patch) | |
tree | 3f804a5f35d4744c60f3ceb669dcf1991dac4911 | |
parent | 9f5c27ba479c54d4ebb1bd59b61fbf793f6df93f (diff) | |
parent | 5a9f8ae723892a58784968d15ac0a3a8f0c97357 (diff) | |
download | uxp-RELBASE_20200930.tar.gz |
Merge branch 'redwood' into releaseRELBASE_20200930
-rw-r--r-- | dom/base/ResizeObserverController.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/ResizeObserverController.cpp b/dom/base/ResizeObserverController.cpp index 924bba10d1..349cb66baf 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; } |