diff options
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/AutoWindowModalState.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/embed/mozilla/AutoWindowModalState.cpp b/embed/mozilla/AutoWindowModalState.cpp index 20100e60c..c6185107b 100644 --- a/embed/mozilla/AutoWindowModalState.cpp +++ b/embed/mozilla/AutoWindowModalState.cpp @@ -27,12 +27,7 @@ AutoWindowModalState::AutoWindowModalState (nsIDOMWindow *aWindow) { #ifdef HAVE_GECKO_1_8_1 if (aWindow) { - nsresult rv; - nsCOMPtr<nsIDOMWindow> topWin; - rv = aWindow->GetTop (getter_AddRefs (topWin)); - if (NS_SUCCEEDED (rv)) { - mWindow = do_QueryInterface (topWin); - } + mWindow = do_QueryInterface (aWindow); NS_ASSERTION (mWindow, "Should have a window here!"); } |