diff --git a/modules/plugin/base/src/nsPluginHost.cpp b/modules/plugin/base/src/nsPluginHost.cpp index 473fd512219e..9812540df0ab 100644 --- a/modules/plugin/base/src/nsPluginHost.cpp +++ b/modules/plugin/base/src/nsPluginHost.cpp @@ -3706,16 +3706,16 @@ CheckForDisabledWindows() if (widget && !widget->GetParent() && NS_SUCCEEDED(widget->IsVisible(aFlag)) && aFlag == PR_TRUE && NS_SUCCEEDED(widget->IsEnabled(&aFlag)) && aFlag == PR_FALSE) { - nsIWidget * child = widget->GetFirstChild(); - PRBool enable = PR_TRUE; - while (child) { - nsWindowType aType; - if (NS_SUCCEEDED(child->GetWindowType(aType)) && - aType == eWindowType_dialog) { - enable = PR_FALSE; - break; - } - child = child->GetNextSibling(); + nsIWidget * child = widget->GetFirstChild(); + PRBool enable = PR_TRUE; + while (child) { + nsWindowType aType; + if (NS_SUCCEEDED(child->GetWindowType(aType)) && + aType == eWindowType_dialog) { + enable = PR_FALSE; + break; + } + child = child->GetNextSibling(); } if (enable) { widget->Enable(PR_TRUE);