mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 605077 - fix loop condition in CheckFrameOptions to check for top non-system docshell, r=jst, a=jst
This commit is contained in:
parent
3719d4480c
commit
94e9ec412b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user