diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 2fa9a2a6126..1417d93eff8 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1546,7 +1546,7 @@ void NativeWindowMac::SetParentWindow(NativeWindow* parent) { } gfx::NativeView NativeWindowMac::GetNativeView() const { - return inspectable_web_contents()->GetView()->GetNativeView(); + return [window_ contentView]; } gfx::NativeWindow NativeWindowMac::GetNativeWindow() const {