summaryrefslogtreecommitdiffstats
path: root/dom/base
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2018-04-13 15:43:09 -0400
committerGitHub <noreply@github.com>2018-04-13 15:43:09 -0400
commit501db456d4d84a9345374e9b15775f6e10883a41 (patch)
tree279b8777ec467e25e157eed36d1ff30514ec9c17 /dom/base
parent356c948bbde4271d17692abac0422e0eb5e609ed (diff)
parent84e449502f51e192d337eb793946d5b03f4c6460 (diff)
downloadUXP-501db456d4d84a9345374e9b15775f6e10883a41.tar
UXP-501db456d4d84a9345374e9b15775f6e10883a41.tar.gz
UXP-501db456d4d84a9345374e9b15775f6e10883a41.tar.lz
UXP-501db456d4d84a9345374e9b15775f6e10883a41.tar.xz
UXP-501db456d4d84a9345374e9b15775f6e10883a41.zip
Merge pull request #151 from janekptacijarabaci/js_dom_selection_crash_1
moebius#76: JS - DOM - Selection API - crashes
Diffstat (limited to 'dom/base')
-rw-r--r--dom/base/nsRange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsRange.cpp b/dom/base/nsRange.cpp
index 37ba147af..4b4ce7885 100644
--- a/dom/base/nsRange.cpp
+++ b/dom/base/nsRange.cpp
@@ -3194,7 +3194,7 @@ nsRange::AutoInvalidateSelection::~AutoInvalidateSelection()
mIsNested = false;
::InvalidateAllFrames(mCommonAncestor);
nsINode* commonAncestor = mRange->GetRegisteredCommonAncestor();
- if (commonAncestor != mCommonAncestor) {
+ if (commonAncestor && commonAncestor != mCommonAncestor) {
::InvalidateAllFrames(commonAncestor);
}
}