Bug 1623476 - Fix an incorrect assertion in PresShell about capturing content. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D67516

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2020-03-23 22:20:44 +00:00
Родитель 8ee14bcbbe
Коммит c2743ac5d0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -6717,7 +6717,7 @@ nsresult PresShell::EventHandler::HandleEventUsingCoordinates(
eventTargetData.mFrame->GetContent(), capturingContent))) {
// A check was already done above to ensure that capturingContent is
// in this presshell.
NS_ASSERTION(capturingContent->GetComposedDoc() == GetDocument(),
NS_ASSERTION(capturingContent->OwnerDoc() == GetDocument(),
"Unexpected document");
nsIFrame* capturingFrame = capturingContent->GetPrimaryFrame();
if (capturingFrame) {
@ -7466,7 +7466,7 @@ PresShell::EventHandler::ComputeRootFrameToHandleEventWithCapturingContent(
// A check was already done above to ensure that aCapturingContent is
// in this presshell.
NS_ASSERTION(aCapturingContent->GetComposedDoc() == GetDocument(),
NS_ASSERTION(aCapturingContent->OwnerDoc() == GetDocument(),
"Unexpected document");
nsIFrame* captureFrame = aCapturingContent->GetPrimaryFrame();
if (!captureFrame) {