diff --git a/gfx/gl/GLContextProviderCGL.mm b/gfx/gl/GLContextProviderCGL.mm index ff0b53c09ea..b7dfc9166e9 100644 --- a/gfx/gl/GLContextProviderCGL.mm +++ b/gfx/gl/GLContextProviderCGL.mm @@ -430,9 +430,6 @@ GLContextProviderCGL::CreateForWindow(nsIWidget *aWidget) return nullptr; } - NSView *childView = (NSView *)aWidget->GetNativeData(NS_NATIVE_WIDGET); - [context setView:childView]; - // make the context transparent nsRefPtr glContext = new GLContextCGL(ContextFormat(ContextFormat::BasicRGB24), shareContext,