mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
moebius#76: JS - DOM - Selection API - crashes
https://github.com/MoonchildProductions/moebius/pull/76
This commit is contained in:
parent
acfa05e886
commit
81228c3a44
3 changed files with 24 additions and 1 deletions
|
|
@ -3194,7 +3194,7 @@ nsRange::AutoInvalidateSelection::~AutoInvalidateSelection()
|
|||
mIsNested = false;
|
||||
::InvalidateAllFrames(mCommonAncestor);
|
||||
nsINode* commonAncestor = mRange->GetRegisteredCommonAncestor();
|
||||
if (commonAncestor != mCommonAncestor) {
|
||||
if (commonAncestor && commonAncestor != mCommonAncestor) {
|
||||
::InvalidateAllFrames(commonAncestor);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue