зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1509989 - Make sure that CutContents doesn't remove nodes that isn't supposed to remove. r=mats
Depends on D13071 Differential Revision: https://phabricator.services.mozilla.com/D13072 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a40dd78966
Коммит
aa3d33ef4e
|
@ -1977,6 +1977,10 @@ nsRange::CutContents(DocumentFragment** aFragment)
|
|||
*aFragment = nullptr;
|
||||
}
|
||||
|
||||
if (!CanAccess(*mStart.Container()) || !CanAccess(*mEnd.Container())) {
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = mStart.Container()->OwnerDoc();
|
||||
|
||||
ErrorResult res;
|
||||
|
|
Загрузка…
Ссылка в новой задаче