зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8ee14bcbbe
Коммит
c2743ac5d0
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче