Fix for bug 119091 - applescript window z order issues
r=timeless, sr=smfr git-svn-id: svn://10.0.0.236/trunk@131117 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
69c5401d2c
commit
a251c20ceb
@ -320,7 +320,7 @@ WindowPtr nsWindowUtils::GetIndexedWindowOfKind(TWindowKind windowKind, TAEListI
|
||||
ThrowErrIfNil(windowMediator, paramErr);
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> windowEnumerator;
|
||||
if (NS_FAILED(windowMediator->GetXULWindowEnumerator(nsnull, getter_AddRefs(windowEnumerator))))
|
||||
if (NS_FAILED(windowMediator->GetZOrderXULWindowEnumerator(nsnull, PR_TRUE, getter_AddRefs(windowEnumerator))))
|
||||
ThrowOSErr(paramErr); // need a better error
|
||||
|
||||
WindowPtr windowPtr = NULL;
|
||||
@ -367,7 +367,7 @@ TAEListIndex nsWindowUtils::GetWindowIndex(TWindowKind windowKind, WindowPtr the
|
||||
ThrowErrIfNil(windowMediator, paramErr);
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> windowEnumerator;
|
||||
if (NS_FAILED(windowMediator->GetXULWindowEnumerator(nsnull, getter_AddRefs(windowEnumerator))))
|
||||
if (NS_FAILED(windowMediator->GetZOrderXULWindowEnumerator(nsnull, PR_TRUE, getter_AddRefs(windowEnumerator))))
|
||||
ThrowOSErr(paramErr); // need a better error
|
||||
|
||||
TAEListIndex index = 0L;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user