mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1124409 - Fix intermittent browser_bug1015721.js failures by ensuring the EventStateManager has a document before trying to dispatch ZoomChangeUsingMouseWheel r=smaug
This commit is contained in:
parent
981d22478b
commit
04f8760f82
@ -2002,6 +2002,7 @@ EventStateManager::DoScrollZoom(nsIFrame* aTargetFrame,
|
||||
} else {
|
||||
ChangeTextSize(change);
|
||||
}
|
||||
EnsureDocument(mPresContext);
|
||||
nsContentUtils::DispatchChromeEvent(mDocument, static_cast<nsIDocument*>(mDocument),
|
||||
NS_LITERAL_STRING("ZoomChangeUsingMouseWheel"),
|
||||
true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user