diff --git a/layout/base/src/nsPluginViewer.cpp b/layout/base/src/nsPluginViewer.cpp index 2710db97cf95..16142f47b253 100644 --- a/layout/base/src/nsPluginViewer.cpp +++ b/layout/base/src/nsPluginViewer.cpp @@ -796,7 +796,7 @@ NS_IMETHODIMP pluginInstanceOwner :: CreateWidget(void) } else if (nsnull != mWindow) { - mPluginWindow.window = (nsPluginPort *)mWindow->GetNativeData(NS_NATIVE_WINDOW); + mPluginWindow.window = (nsPluginPort *)mWindow->GetNativeData(NS_NATIVE_PLUGIN_PORT); mPluginWindow.type = nsPluginWindowType_Window; } else