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:
Tim Taubert 2015-03-17 22:05:06 +01:00
parent 981d22478b
commit 04f8760f82

View File

@ -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);