From ea7da1c6abfa87614a9dd484afc26cccf93cf37f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 6 Oct 2006 17:17:12 +0000 Subject: Revert part of the last change, we don't need the top window here. 2006-10-06 Christian Persch * embed/mozilla/AutoWindowModalState.cpp: Revert part of the last change, we don't need the top window here. --- ChangeLog | 6 ++++++ embed/mozilla/AutoWindowModalState.cpp | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01092d1f9..6ef61e652 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-06 Christian Persch + + * embed/mozilla/AutoWindowModalState.cpp: + + Revert part of the last change, we don't need the top window here. + 2006-10-06 Christian Persch * embed/mozilla/AutoWindowModalState.cpp: 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 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!"); } -- cgit v1.2.3