Bug 605077 - fix loop condition in CheckFrameOptions to check for top non-system docshell, r=jst, a=jst

This commit is contained in:
Brandon Sterne 2010-10-20 15:01:49 -07:00
parent 3719d4480c
commit 94e9ec412b

View File

@ -327,8 +327,8 @@ bool nsDSURIContentListener::CheckFrameOptions(nsIRequest* request)
// Traverse up the parent chain to the top docshell that doesn't have
// a system principal
while (NS_SUCCEEDED(curDocShellItem->GetParent(getter_AddRefs(parentDocShellItem)) &&
parentDocShellItem)) {
while (NS_SUCCEEDED(curDocShellItem->GetParent(getter_AddRefs(parentDocShellItem))) &&
parentDocShellItem) {
PRBool system = PR_FALSE;
topDoc = do_GetInterface(parentDocShellItem);
if (topDoc) {