author | Kartikaya Gupta <kgupta@mozilla.com> |
Thu, 23 Mar 2017 17:22:26 -0400 | |
changeset 349767 | e299338a1e4f1289c451d18d5d94e03129ad3e44 |
parent 349766 | fabfa956af08398c59db5a2a051035bb36284b74 |
child 349768 | 4b47e1e71f378cba4ed5b66bb567da41d4fd0cd1 |
push id | 31561 |
push user | kwierso@gmail.com |
push date | Mon, 27 Mar 2017 21:21:48 +0000 |
treeherder | mozilla-central@a6f35285bd1e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | tnikkel |
bugs | 1335745 |
milestone | 55.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
view/nsView.cpp | file | annotate | diff | comparison | revisions |
--- a/view/nsView.cpp +++ b/view/nsView.cpp @@ -1077,18 +1077,19 @@ nsView::DidCompositeWindow(uint64_t aTra const TimeStamp& aCompositeEnd) { nsIPresShell* presShell = mViewManager->GetPresShell(); if (presShell) { nsAutoScriptBlocker scriptBlocker; nsPresContext* context = presShell->GetPresContext(); nsRootPresContext* rootContext = context->GetRootPresContext(); - MOZ_ASSERT(rootContext, "rootContext must be valid."); - rootContext->NotifyDidPaintForSubtree(aTransactionId, aCompositeEnd); + if (rootContext) { + rootContext->NotifyDidPaintForSubtree(aTransactionId, aCompositeEnd); + } // If the two timestamps are identical, this was likely a fake composite // event which wouldn't be terribly useful to display. if (aCompositeStart == aCompositeEnd) { return; } nsIDocShell* docShell = context->GetDocShell();