mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
[DOM] Add nullcheck on mDoc in GetEventTargetParent
This commit is contained in:
parent
f2c576b12c
commit
2811d30051
1 changed files with 3 additions and 1 deletions
|
|
@ -3545,7 +3545,9 @@ nsGlobalWindow::GetEventTargetParent(EventChainPreVisitor& aVisitor)
|
|||
|
||||
aVisitor.mCanHandle = true;
|
||||
// Middle/right click shouldn't dispatch click event, use auxclick to instead.
|
||||
if (mDoc->IsXULDocument()) {
|
||||
// Note: mDoc should always exist here, but check just in case someone yanked
|
||||
// it out from under us.
|
||||
if (mDoc && mDoc->IsXULDocument()) {
|
||||
aVisitor.mForceContentDispatch = true; //FIXME! Bug 329119
|
||||
}
|
||||
if (msg == eResize && aVisitor.mEvent->IsTrusted()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue