diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index 65be8887ae5..e4d98e7561f 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -1817,6 +1817,7 @@ NSEvent* gLastDragEvent = nil; - (id)initWithFrame:(NSRect)inFrame geckoChild:(nsChildView*)inChild eventSink:(nsIEventSink*)inSink { if ((self = [super initWithFrame:inFrame])) { + mWindow = nil; mGeckoChild = inChild; mIsPluginView = NO; mCurKeyEvent = nil;