diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 1417d93eff..08b1a917d1 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1554,7 +1554,7 @@ gfx::NativeWindow NativeWindowMac::GetNativeWindow() const { } gfx::AcceleratedWidget NativeWindowMac::GetAcceleratedWidget() const { - return inspectable_web_contents()->GetView()->GetNativeView(); + return [window_ contentView]; } void NativeWindowMac::SetProgressBar(double progress, const NativeWindow::ProgressState state) {