mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Fix UMRs in nsXBLWindowKeyHandler::WalkHandlers. Bug 260312, r+sr=bzbarsky.
This commit is contained in:
parent
c8e0e9cbec
commit
234716880e
@ -323,8 +323,12 @@ nsXBLWindowHandler::EnsureHandlers(PRBool *aIsEditor)
|
||||
{
|
||||
if (!sXBLSpecialDocInfo)
|
||||
sXBLSpecialDocInfo = new nsXBLSpecialDocInfo();
|
||||
if (!sXBLSpecialDocInfo)
|
||||
if (!sXBLSpecialDocInfo) {
|
||||
if (aIsEditor) {
|
||||
*aIsEditor = PR_FALSE;
|
||||
}
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
sXBLSpecialDocInfo->LoadDocInfo();
|
||||
|
||||
// Now determine which handlers we should be using.
|
||||
|
@ -110,12 +110,11 @@ nsXBLWindowKeyHandler::EnsureHandlers(PRBool *aIsEditor)
|
||||
{
|
||||
if (mElement) {
|
||||
// We are actually a XUL <keyset>.
|
||||
if (mHandler) {
|
||||
if (aIsEditor)
|
||||
*aIsEditor = PR_FALSE;
|
||||
if (aIsEditor)
|
||||
*aIsEditor = PR_FALSE;
|
||||
|
||||
if (mHandler)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
|
||||
BuildHandlerChain(content, &mHandler);
|
||||
|
Loading…
Reference in New Issue
Block a user