Closed Bug 1164625 Opened 5 years ago Closed 5 years ago

Assertion failure: mPresContext->mLayoutPhaseCount[eLayoutPhase_Paint] == 0

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: ehsan, Assigned: mstange)

Details

Attachments

(1 file)

Rough steps to reproduce:

This is on a debug build under a debugger so the build is kind of slow.  I closed the window that opened up after running ./mach run --debug and opened a new one from the OSX menu pretty much immediately afterwards, and I got this assertion failure:

(lldb) bt
* thread #1: tid = 0x678af0, 0x0000000105c27daa XUL`nsAutoLayoutPhase::Enter(this=0x00007fff5fbedde8) + 154 at nsAutoLayoutPhase.cpp:34, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000105c27daa XUL`nsAutoLayoutPhase::Enter(this=0x00007fff5fbedde8) + 154 at nsAutoLayoutPhase.cpp:34
    frame #1: 0x0000000105c27d03 XUL`nsAutoLayoutPhase::nsAutoLayoutPhase(this=0x00007fff5fbedde8, aPresContext=0x0000000135fd5000, aPhase=eLayoutPhase_Paint) + 51 at nsAutoLayoutPhase.cpp:20
    frame #2: 0x0000000105c281d3 XUL`nsAutoLayoutPhase::nsAutoLayoutPhase(this=0x00007fff5fbedde8, aPresContext=0x0000000135fd5000, aPhase=eLayoutPhase_Paint) + 35 at nsAutoLayoutPhase.cpp:21
    frame #3: 0x0000000105d09805 XUL`PresShell::Paint(this=0x000000013e841800, aViewToPaint=0x000000013e8bc080, aDirtyRegion=0x00007fff5fbede70, aFlags=1) + 469 at nsPresShell.cpp:6252
    frame #4: 0x000000010578f40d XUL`nsViewManager::ProcessPendingUpdatesPaint(this=0x000000013e8fc380, aWidget=0x000000013e840800) + 525 at nsViewManager.cpp:456
    frame #5: 0x000000010578f04c XUL`nsViewManager::ProcessPendingUpdatesForView(this=0x000000013e8fc380, aView=0x000000013e8bc080, aFlushDirtyRegion=true) + 700 at nsViewManager.cpp:396
    frame #6: 0x00000001057900a4 XUL`nsViewManager::ProcessPendingUpdates(this=0x000000013e8fc380) + 132 at nsViewManager.cpp:1086
    frame #7: 0x000000010578ff9a XUL`nsViewManager::WillPaintWindow(this=0x000000013e8fc380, aWidget=0x000000013e840800) + 138 at nsViewManager.cpp:690
    frame #8: 0x000000010578cd79 XUL`nsView::WillPaintWindow(this=0x000000013e8bc080, aWidget=0x000000013e840800) + 57 at nsView.cpp:1037
    frame #9: 0x00000001057ec335 XUL`nsChildView::WillPaintWindow(this=0x000000013e840800) + 149 at nsChildView.mm:1480
    frame #10: 0x00000001057f8f89 XUL`-[ChildView viewWillDraw](self=0x000000013bbd17a0, _cmd=0x00007fff86ba4738) + 569 at nsChildView.mm:3777
    frame #11: 0x00007fff862c0083 AppKit`-[NSView viewWillDraw] + 1138
    frame #12: 0x00007fff862c0083 AppKit`-[NSView viewWillDraw] + 1138
    frame #13: 0x00007fff862bf3c0 AppKit`-[NSView _sendViewWillDrawInRect:clipRootView:] + 1417
    frame #14: 0x00007fff869a1c5b AppKit`-[NSView displayIfNeededInRect:] + 680
    frame #15: 0x0000000105842df3 XUL`-[ToolbarWindow setTitlebarNeedsDisplayInRect:sync:](self=0x000000012fff9ec0, _cmd=0x000000010963cf19, aRect=(origin = (x = 0, y = 748), size = (width = 1235, height = 22)), aSync='\x01') + 579 at nsCocoaWindow.mm:3245
    frame #16: 0x0000000105843350 XUL`-[ToolbarWindow setUnifiedToolbarHeight:](self=0x000000012fff9ec0, _cmd=0x0000000109639a79, aHeight=0) + 272 at nsCocoaWindow.mm:3285
    frame #17: 0x00000001057f292a XUL`nsChildView::UpdateThemeGeometries(this=0x000000013e840800, aThemeGeometries=0x00007fff5fbef6e0) + 474 at nsChildView.mm:2444
    frame #18: 0x0000000105cd6259 XUL`nsLayoutUtils::PaintFrame(aRenderingContext=0x0000000000000000, aFrame=0x000000013e8c0538, aDirtyRegion=0x00007fff5fbefad0, aBackstop=4294967295, aFlags=772) + 4617 at nsLayoutUtils.cpp:3275
    frame #19: 0x0000000105d09e63 XUL`PresShell::Paint(this=0x000000013e841800, aViewToPaint=0x000000013e8bc080, aDirtyRegion=0x00007fff5fbefad0, aFlags=1) + 2099 at nsPresShell.cpp:6356
    frame #20: 0x000000010578f40d XUL`nsViewManager::ProcessPendingUpdatesPaint(this=0x000000013e8fc380, aWidget=0x000000013e840800) + 525 at nsViewManager.cpp:456
    frame #21: 0x000000010578f04c XUL`nsViewManager::ProcessPendingUpdatesForView(this=0x000000013e8fc380, aView=0x000000013e8bc080, aFlushDirtyRegion=true) + 700 at nsViewManager.cpp:396
    frame #22: 0x00000001057900a4 XUL`nsViewManager::ProcessPendingUpdates(this=0x000000013e8fc380) + 132 at nsViewManager.cpp:1086
    frame #23: 0x000000010578ff9a XUL`nsViewManager::WillPaintWindow(this=0x000000013e8fc380, aWidget=0x000000013e840800) + 138 at nsViewManager.cpp:690
    frame #24: 0x000000010578cd79 XUL`nsView::WillPaintWindow(this=0x000000013e8bc080, aWidget=0x000000013e840800) + 57 at nsView.cpp:1037
    frame #25: 0x00000001057ec335 XUL`nsChildView::WillPaintWindow(this=0x000000013e840800) + 149 at nsChildView.mm:1480
    frame #26: 0x00000001057f8f89 XUL`-[ChildView viewWillDraw](self=0x000000013bbd17a0, _cmd=0x00007fff86ba4738) + 569 at nsChildView.mm:3777
    frame #27: 0x00007fff862c0083 AppKit`-[NSView viewWillDraw] + 1138
    frame #28: 0x00007fff862c0083 AppKit`-[NSView viewWillDraw] + 1138
    frame #29: 0x00007fff862bf3c0 AppKit`-[NSView _sendViewWillDrawInRect:clipRootView:] + 1417
    frame #30: 0x00007fff8627902a AppKit`-[NSView displayIfNeeded] + 1216
    frame #31: 0x00007fff86278b19 AppKit`-[NSWindow displayIfNeeded] + 236
    frame #32: 0x00007fff8631b5b2 AppKit`-[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1991
    frame #33: 0x00007fff869b8893 AppKit`__71-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:]_block_invoke3064 + 88
    frame #34: 0x00007fff862d0ceb AppKit`NSPerformWithScreenUpdatesDisabled + 65
    frame #35: 0x00007fff8631a9db AppKit`-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1153
    frame #36: 0x00007fff8631a4eb AppKit`-[NSWindow orderWindow:relativeTo:] + 159
    frame #37: 0x00007fff86311ab2 AppKit`-[NSWindow makeKeyAndOrderFront:] + 47
    frame #38: 0x0000000105838b45 XUL`nsCocoaWindow::Show(this=0x000000012fff9d00, bState=true) + 2693 at nsCocoaWindow.mm:806
    frame #39: 0x00000001064422b6 XUL`nsXULWindow::SetVisibility(this=0x00000001397ef8a0, aVisibility=true) + 262 at nsXULWindow.cpp:813
    frame #40: 0x000000010643b809 XUL`nsXULWindow::OnChromeLoaded(this=0x00000001397ef8a0) + 873 at nsXULWindow.cpp:1016
    frame #41: 0x000000010643b1c8 XUL`nsWebShellWindow::OnStateChange(this=0x00000001397ef8a0, aProgress=0x000000011c41c028, aRequest=0x000000012f6b1d70, aStateFlags=786448, aStatus=2153578529) + 648 at nsWebShellWindow.cpp:573
    frame #42: 0x000000010643be35 XUL`non-virtual thunk to nsWebShellWindow::OnStateChange(this=0x00000001397ef988, aProgress=0x000000011c41c028, aRequest=0x000000012f6b1d70, aStateFlags=786448, aStatus=2153578529) + 69 at nsWebShellWindow.cpp:577
    frame #43: 0x00000001030e2802 XUL`nsDocLoader::DoFireOnStateChange(this=0x000000011c41c000, aProgress=0x000000011c41c028, aRequest=0x000000012f6b1d70, aStateFlags=0x00007fff5fbf0dd0, aStatus=2153578529) + 674 at nsDocLoader.cpp:1257
    frame #44: 0x00000001030e233f XUL`nsDocLoader::doStopDocumentLoad(this=0x000000011c41c000, request=0x000000012f6b1d70, aStatus=2153578529) + 495 at nsDocLoader.cpp:849
    frame #45: 0x00000001030e0e65 XUL`nsDocLoader::DocLoaderIsEmpty(this=0x000000011c41c000, aFlushLayout=true) + 997 at nsDocLoader.cpp:728
    frame #46: 0x00000001030e1d17 XUL`nsDocLoader::OnStopRequest(this=0x000000011c41c000, aRequest=0x000000013e8655e0, aCtxt=0x0000000000000000, aStatus=NS_OK) + 1303 at nsDocLoader.cpp:612
    frame #47: 0x00000001030e20cd XUL`non-virtual thunk to nsDocLoader::OnStopRequest(this=0x000000011c41c008, aRequest=0x000000013e8655e0, aCtxt=0x0000000000000000, aStatus=NS_OK) + 61 at nsDocLoader.cpp:616
    frame #48: 0x00000001020904bf XUL`nsLoadGroup::RemoveRequest(this=0x000000012bb15890, request=0x000000013e8655e0, ctxt=0x0000000000000000, aStatus=NS_OK) + 1823 at nsLoadGroup.cpp:652
    frame #49: 0x000000010389c2d4 XUL`nsDocument::DoUnblockOnload(this=0x000000013e8ff000) + 404 at nsDocument.cpp:9160
    frame #50: 0x00000001038e5554 XUL`nsUnblockOnloadEvent::Run(this=0x000000014bc2d300) + 36 at nsDocument.cpp:9113
    frame #51: 0x0000000101f24c9f XUL`nsThread::ProcessNextEvent(this=0x0000000100433310, aMayWait=true, aResult=0x00007fff5fbf150e) + 2095 at nsThread.cpp:866
    frame #52: 0x0000000101f81767 XUL`NS_ProcessNextEvent(aThread=0x0000000100433310, aMayWait=true) + 151 at nsThreadUtils.cpp:265
    frame #53: 0x000000010644104f XUL`nsXULWindow::ShowModal(this=0x00000001397f1ee0) + 223 at nsXULWindow.cpp:367
    frame #54: 0x000000010643367e XUL`nsContentTreeOwner::ShowAsModal(this=0x000000014bb465e0) + 142 at nsContentTreeOwner.cpp:556
    frame #55: 0x00000001064336ac XUL`non-virtual thunk to nsContentTreeOwner::ShowAsModal(this=0x000000014bb465f8) + 28 at nsContentTreeOwner.cpp:557
    frame #56: 0x00000001063c09b8 XUL`nsWindowWatcher::OpenWindowInternal(this=0x000000011a178ce0, aParent=0x00000001272e3020, aUrl=0x000000014bbaa340, aName=0x000000012b37e3e0, aFeatures=0x000000014bbaa370, aCalledFromJS=false, aDialog=true, aNavigate=true, aOpeningTab=0x0000000000000000, aArgv=0x000000014bb9fe20, aResult=0x00007fff5fbf23f8) + 11880 at nsWindowWatcher.cpp:1043
    frame #57: 0x00000001063bd423 XUL`nsWindowWatcher::OpenWindow(this=0x000000011a178ce0, aParent=0x00000001272e3c20, aUrl=0x000000014bbaa340, aName=0x000000012b37e3e0, aFeatures=0x000000014bbaa370, aArguments=0x000000014bbbee20, aResult=0x00007fff5fbf23f8) + 371 at nsWindowWatcher.cpp:363
    frame #58: 0x0000000101f4f211 XUL`NS_InvokeByIndex(that=0x000000011a178ce0, methodIndex=3, paramCount=6, params=0x00007fff5fbf2380) + 561 at xptcinvoke_x86_64_unix.cpp:174
    frame #59: 0x0000000102e6c6d8 XUL`CallMethodHelper::Invoke(this=0x00007fff5fbf2338) + 88 at XPCWrappedNative.cpp:2080
    frame #60: 0x0000000102e5cc37 XUL`CallMethodHelper::Call(this=0x00007fff5fbf2338) + 263 at XPCWrappedNative.cpp:1417
    frame #61: 0x0000000102e3b724 XUL`XPCWrappedNative::CallMethod(ccx=0x00007fff5fbf2510, mode=CALL_METHOD) + 260 at XPCWrappedNative.cpp:1384
    frame #62: 0x0000000102e3d8f3 XUL`XPC_WN_CallMethod(cx=0x00000001004289f0, argc=5, vp=0x000000011a1476b0) + 931 at XPCWrappedNativeJSOps.cpp:1141
    frame #63: 0x0000000107b6dffb XUL`js::CallJSNative(cx=0x00000001004289f0, native=0x0000000102e3d550, args=0x00007fff5fbf2f50)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) + 187 at jscntxtinlines.h:235
    frame #64: 0x0000000107aff225 XUL`js::Invoke(cx=0x00000001004289f0, args=CallArgs at 0x00007fff5fbf2f50, construct=NO_CONSTRUCT) + 1269 at Interpreter.cpp:727
    frame #65: 0x0000000107b1a615 XUL`Interpret(cx=0x00000001004289f0, state=0x00007fff5fbf6240) + 55333 at Interpreter.cpp:2955
    frame #66: 0x0000000107b0ccfe XUL`js::RunScript(cx=0x00000001004289f0, state=0x00007fff5fbf6240) + 718 at Interpreter.cpp:677
    frame #67: 0x0000000107aff366 XUL`js::Invoke(cx=0x00000001004289f0, args=CallArgs at 0x00007fff5fbf6a40, construct=NO_CONSTRUCT) + 1590 at Interpreter.cpp:746
    frame #68: 0x0000000107ae6634 XUL`js::Invoke(cx=0x00000001004289f0, thisv=0x00007fff5fbf6c50, fval=0x00007fff5fbf74f0, argc=9, argv=0x000000014bad0f80, rval=JS::MutableHandleValue at 0x00007fff5fbf6b40) + 900 at Interpreter.cpp:783
    frame #69: 0x0000000108222a01 XUL`JS_CallFunctionValue(cx=0x00000001004289f0, obj=JS::HandleObject at 0x00007fff5fbf6c98, fval=JS::HandleValue at 0x00007fff5fbf6c90, args=0x00007fff5fbf71d0, rval=JS::MutableHandleValue at 0x00007fff5fbf6c88) + 337 at jsapi.cpp:4390
    frame #70: 0x0000000102e2ebe9 XUL`nsXPCWrappedJSClass::CallMethod(this=0x000000014bbbe420, wrapper=0x000000014bad0d00, methodIndex=7, info_=0x0000000117ab5318, nativeParams=0x00007fff5fbf79a0) + 6425 at XPCWrappedJSClass.cpp:1212
    frame #71: 0x0000000102e2d2bb XUL`nsXPCWrappedJS::CallMethod(this=0x000000014bad0d00, methodIndex=7, info=0x0000000117ab5318, params=0x00007fff5fbf79a0) + 187 at XPCWrappedJS.cpp:525
    frame #72: 0x0000000101f50d59 XUL`PrepareAndDispatch(self=0x000000014bb9f620, methodIndex=7, args=0x00007fff5fbf7ac0, gpregs=0x00007fff5fbf7a40, fpregs=0x00007fff5fbf7a70) + 1673 at xptcstubs_x86_64_darwin.cpp:122
    frame #73: 0x0000000101f4f75b XUL`SharedStub + 91
    frame #74: 0x0000000101f4f211 XUL`NS_InvokeByIndex(that=0x000000014bb9f620, methodIndex=7, paramCount=10, params=0x0000000133659f08) + 561 at xptcinvoke_x86_64_unix.cpp:174
    frame #75: 0x0000000102e6c6d8 XUL`CallMethodHelper::Invoke(this=0x00007fff5fbf7cd8) + 88 at XPCWrappedNative.cpp:2080
    frame #76: 0x0000000102e5cc37 XUL`CallMethodHelper::Call(this=0x00007fff5fbf7cd8) + 263 at XPCWrappedNative.cpp:1417
    frame #77: 0x0000000102e3b724 XUL`XPCWrappedNative::CallMethod(ccx=0x00007fff5fbf7eb0, mode=CALL_METHOD) + 260 at XPCWrappedNative.cpp:1384
    frame #78: 0x0000000102e3d8f3 XUL`XPC_WN_CallMethod(cx=0x000000011c9ca940, argc=9, vp=0x000000011a147368) + 931 at XPCWrappedNativeJSOps.cpp:1141
    frame #79: 0x0000000107b6dffb XUL`js::CallJSNative(cx=0x000000011c9ca940, native=0x0000000102e3d550, args=0x00007fff5fbf88f0)(JSContext*, unsigned int, JS::Value*), JS::CallArgs const&) + 187 at jscntxtinlines.h:235
    frame #80: 0x0000000107aff225 XUL`js::Invoke(cx=0x000000011c9ca940, args=CallArgs at 0x00007fff5fbf88f0, construct=NO_CONSTRUCT) + 1269 at Interpreter.cpp:727
    frame #81: 0x0000000107b1a615 XUL`Interpret(cx=0x000000011c9ca940, state=0x00007fff5fbfbbe0) + 55333 at Interpreter.cpp:2955
    frame #82: 0x0000000107b0ccfe XUL`js::RunScript(cx=0x000000011c9ca940, state=0x00007fff5fbfbbe0) + 718 at Interpreter.cpp:677
    frame #83: 0x0000000107aff366 XUL`js::Invoke(cx=0x000000011c9ca940, args=CallArgs at 0x00007fff5fbfc3e0, construct=NO_CONSTRUCT) + 1590 at Interpreter.cpp:746
    frame #84: 0x0000000107ae6634 XUL`js::Invoke(cx=0x000000011c9ca940, thisv=0x00007fff5fbfc8d0, fval=0x00007fff5fbfc728, argc=1, argv=0x00007fff5fbfc7f8, rval=JS::MutableHandleValue at 0x00007fff5fbfc4e0) + 900 at Interpreter.cpp:783
    frame #85: 0x0000000108222b24 XUL`JS::Call(cx=0x000000011c9ca940, thisv=JS::HandleValue at 0x00007fff5fbfc638, fval=JS::HandleValue at 0x00007fff5fbfc630, args=0x00007fff5fbfc6e8, rval=JS::MutableHandleValue at 0x00007fff5fbfc628) + 228 at jsapi.cpp:4402
    frame #86: 0x00000001046207ec XUL`mozilla::dom::EventHandlerNonNull::Call(this=0x0000000127da1a30, cx=0x000000011c9ca940, aThisVal=Handle<JS::Value> at 0x00007fff5fbfc7b0, event=0x000000014bac9660, aRetVal=MutableHandle<JS::Value> at 0x00007fff5fbfc7a8, aRv=0x00007fff5fbfcbe8) + 796 at EventHandlerBinding.cpp:259
    frame #87: 0x0000000104b15b66 XUL`void mozilla::dom::EventHandlerNonNull::Call<nsISupports*>(this=0x0000000127da1a30, thisVal=0x0000000127da19b8, event=0x000000014bac9660, aRetVal=MutableHandle<JS::Value> at 0x00007fff5fbfc920, aRv=0x00007fff5fbfcbe8, aExecutionReason=0x0000000108662515, aExceptionHandling=eReportExceptions, aCompartment=0x0000000000000000) + 566 at EventHandlerBinding.h:351
    frame #88: 0x0000000104b08899 XUL`mozilla::JSEventHandler::HandleEvent(this=0x0000000127da19a0, aEvent=0x000000014bac9660) + 3049 at JSEventHandler.cpp:215
    frame #89: 0x0000000104add8ad XUL`mozilla::EventListenerManager::HandleEventSubType(this=0x00000001278238b0, aListener=0x000000012ff2f858, aDOMEvent=0x000000014bac9660, aCurrentTarget=0x00000001272e3c00) + 381 at EventListenerManager.cpp:979
    frame #90: 0x0000000104addffe XUL`mozilla::EventListenerManager::HandleEventInternal(this=0x00000001278238b0, aPresContext=0x0000000127b4c800, aEvent=0x00007fff5fbfd780, aDOMEvent=0x00007fff5fbfd470, aCurrentTarget=0x00000001272e3c00, aEventStatus=0x00007fff5fbfd478) + 1262 at EventListenerManager.cpp:1127
    frame #91: 0x0000000104af5b69 XUL`mozilla::EventListenerManager::HandleEvent(this=0x00000001278238b0, aPresContext=0x0000000127b4c800, aEvent=0x00007fff5fbfd780, aDOMEvent=0x00007fff5fbfd470, aCurrentTarget=0x00000001272e3c00, aEventStatus=0x00007fff5fbfd478) + 345 at EventListenerManager.h:329
    frame #92: 0x0000000104ae26d4 XUL`mozilla::EventTargetChainItem::HandleEvent(this=0x00000001256b3008, aVisitor=0x00007fff5fbfd460, aCd=0x00007fff5fbfd540) + 484 at EventDispatcher.cpp:206
    frame #93: 0x0000000104ad761d XUL`mozilla::EventTargetChainItem::HandleEventTargetChain(aChain=0x00007fff5fbfd538, aVisitor=0x00007fff5fbfd460, aCallback=0x0000000000000000, aCd=0x00007fff5fbfd540) + 653 at EventDispatcher.cpp:299
    frame #94: 0x0000000104ad8ec7 XUL`mozilla::EventDispatcher::Dispatch(aTarget=0x00000001272e3020, aPresContext=0x0000000127b4c800, aEvent=0x00007fff5fbfd780, aDOMEvent=0x0000000000000000, aEventStatus=0x00007fff5fbfd84c, aCallback=0x0000000000000000, aTargets=0x0000000000000000) + 4967 at EventDispatcher.cpp:633
    frame #95: 0x0000000104abb98b XUL`mozilla::EventDispatcher::DispatchDOMEvent(aTarget=0x00000001272e3020, aEvent=0x00007fff5fbfd780, aDOMEvent=0x0000000000000000, aPresContext=0x0000000127b4c800, aEventStatus=0x00007fff5fbfd84c) + 443 at EventDispatcher.cpp:700
    frame #96: 0x00000001036933c7 XUL`nsGlobalWindow::DispatchDOMEvent(this=0x00000001272e3000, aEvent=0x00007fff5fbfd780, aDOMEvent=0x0000000000000000, aPresContext=0x0000000127b4c800, aEventStatus=0x00007fff5fbfd84c) + 71 at nsGlobalWindow.cpp:3326
    frame #97: 0x0000000106438900 XUL`nsWebShellWindow::RequestWindowClose(this=0x000000011d191dc0, aWidget=0x0000000126b3a4c0) + 752 at nsWebShellWindow.cpp:311
    frame #98: 0x0000000106438a1f XUL`non-virtual thunk to nsWebShellWindow::RequestWindowClose(this=0x000000011d191eb0, aWidget=0x0000000126b3a4c0) + 47 at nsWebShellWindow.cpp:318
    frame #99: 0x000000010583f89c XUL`-[WindowDelegate windowShouldClose:](self=0x00000001272ef700, _cmd=0x00007fff86bcfa27, sender=0x0000000126b3a680) + 156 at nsCocoaWindow.mm:2430
    frame #100: 0x00007fff8655db63 AppKit`__19-[NSWindow __close]_block_invoke + 134
    frame #101: 0x00007fff8655dad0 AppKit`-[NSWindow __close] + 312
    frame #102: 0x00007fff82a8ccd7 libsystem_trace.dylib`_os_activity_initiate + 75
    frame #103: 0x00007fff86438fb1 AppKit`-[NSApplication sendAction:to:from:] + 452
    frame #104: 0x00007fff8644ea46 AppKit`-[NSControl sendAction:to:] + 86
    frame #105: 0x00007fff8644e962 AppKit`__26-[NSCell _sendActionFrom:]_block_invoke + 131
    frame #106: 0x00007fff82a8ccd7 libsystem_trace.dylib`_os_activity_initiate + 75
    frame #107: 0x00007fff8644e8bf AppKit`-[NSCell _sendActionFrom:] + 144
    frame #108: 0x00007fff82a8ccd7 libsystem_trace.dylib`_os_activity_initiate + 75
    frame #109: 0x00007fff8644cdb3 AppKit`-[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2821
    frame #110: 0x00007fff864a545f AppKit`-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 770
    frame #111: 0x00007fff8644b466 AppKit`-[NSControl mouseDown:] + 714
    frame #112: 0x00007fff8652bdfd AppKit`-[_NSThemeWidget mouseDown:] + 315
    frame #113: 0x00007fff869b52fc AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 14125
    frame #114: 0x00007fff86344d76 AppKit`-[NSWindow sendEvent:] + 470
    frame #115: 0x0000000105843f4d XUL`-[ToolbarWindow sendEvent:](self=0x0000000126b3a680, _cmd=0x00007fff86b97534, anEvent=0x000000014bac90c0) + 365 at nsCocoaWindow.mm:3447
    frame #116: 0x00007fff86341312 AppKit`-[NSApplication sendEvent:] + 2504
    frame #117: 0x000000010582f1c2 XUL`-[GeckoNSApplication sendEvent:](self=0x0000000117de4b30, _cmd=0x00007fff86b97534, anEvent=0x000000014bac90c0) + 146 at nsAppShell.mm:107
    frame #118: 0x00007fff8626ac68 AppKit`-[NSApplication run] + 711
    frame #119: 0x00000001058310fc XUL`nsAppShell::Run(this=0x000000011a121380) + 172 at nsAppShell.mm:651
    frame #120: 0x000000010677dfa1 XUL`nsAppStartup::Run(this=0x0000000117dd6ce0) + 161 at nsAppStartup.cpp:280
    frame #121: 0x00000001068329fd XUL`XREMain::XRE_mainRun(this=0x00007fff5fbfee40) + 6157 at nsAppRunner.cpp:4079
    frame #122: 0x0000000106833342 XUL`XREMain::XRE_main(this=0x00007fff5fbfee40, argc=5, argv=0x00007fff5fbff748, aAppData=0x00007fff5fbff0c8) + 1010 at nsAppRunner.cpp:4159
    frame #123: 0x0000000106833802 XUL`XRE_main(argc=5, argv=0x00007fff5fbff748, aAppData=0x00007fff5fbff0c8, aFlags=0) + 98 at nsAppRunner.cpp:4248
    frame #124: 0x0000000100002b6a firefox`do_main(argc=5, argv=0x00007fff5fbff748, xreDirectory=0x000000010040e100) + 1834 at nsBrowserApp.cpp:214
    frame #125: 0x0000000100001f45 firefox`main(argc=5, argv=0x00007fff5fbff748) + 293 at nsBrowserApp.cpp:478
    frame #126: 0x00000001000019c4 firefox`start + 52
Flags: needinfo?(mstange)
-[ToolbarWindow setTitlebarNeedsDisplayInRect:sync:] isn't meant to be able to cause Gecko painting. It only does that because we have Gecko content in the titlebar, and in that case we don't need to call it at all.
Assignee: nobody → mstange
Flags: needinfo?(mstange)
OS: Unspecified → Mac OS X
Hardware: Unspecified → All
Attached patch patchSplinter Review
This should fix it.
Attachment #8609027 - Flags: review?(smichaud)
Comment on attachment 8609027 [details] [diff] [review]
patch

Makes sense to me.
Attachment #8609027 - Flags: review?(smichaud) → review+
https://hg.mozilla.org/mozilla-central/rev/7eb6bac89ff4
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.