diff --git a/webshell/tests/viewer/nsBrowserWindow.cpp b/webshell/tests/viewer/nsBrowserWindow.cpp index ac617b0aaee..0a9169f9ea9 100644 --- a/webshell/tests/viewer/nsBrowserWindow.cpp +++ b/webshell/tests/viewer/nsBrowserWindow.cpp @@ -1343,12 +1343,8 @@ nsBrowserWindow::CreateToolBar(PRInt32 aWidth) widget->SetBackgroundColor(NS_RGB(255, 255, 255)); PRUint32 size; mLocation->SetText("",size); - nsIWidget* widget = nsnull; - if (NS_OK == mLocation->QueryInterface(kIWidgetIID,(void**)&widget)) - { - widget->EnableFileDrop(PR_TRUE); - NS_RELEASE(widget); - } + widget->EnableFileDrop(PR_TRUE); + NS_RELEASE(widget); } // Create and place throbber