| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
| 8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 return false; | 522 return false; |
| 523 if (document->fetcher()->requestCount()) | 523 if (document->fetcher()->requestCount()) |
| 524 return false; | 524 return false; |
| 525 if (document->isDelayingLoadEvent()) | 525 if (document->isDelayingLoadEvent()) |
| 526 return false; | 526 return false; |
| 527 return allDescendantsAreComplete(document->frame()); | 527 return allDescendantsAreComplete(document->frame()); |
| 528 } | 528 } |
| 529 | 529 |
| 530 static bool shouldSendFinishNotification(LocalFrame* frame) | 530 static bool shouldSendFinishNotification(LocalFrame* frame) |
| 531 { | 531 { |
| 532 // Don't send stop notifications for inital empty documents, since they don'
t generate start notifications. | 532 // Don't send stop notifications for initial empty documents, since they don
't generate start notifications. |
| 533 if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad()) | 533 if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad()) |
| 534 return false; | 534 return false; |
| 535 | 535 |
| 536 // Don't send didFinishLoad more than once per DocumentLoader. | 536 // Don't send didFinishLoad more than once per DocumentLoader. |
| 537 if (frame->loader().documentLoader()->sentDidFinishLoad()) | 537 if (frame->loader().documentLoader()->sentDidFinishLoad()) |
| 538 return false; | 538 return false; |
| 539 | 539 |
| 540 // We might have declined to run the load event due to an imminent content-i
nitiated navigation. | 540 // We might have declined to run the load event due to an imminent content-i
nitiated navigation. |
| 541 if (!frame->document()->loadEventFinished()) | 541 if (!frame->document()->loadEventFinished()) |
| 542 return false; | 542 return false; |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 // FIXME: We need a way to propagate insecure requests policy flags to | 1547 // FIXME: We need a way to propagate insecure requests policy flags to |
| 1548 // out-of-process frames. For now, we'll always use default behavior. | 1548 // out-of-process frames. For now, we'll always use default behavior. |
| 1549 if (!parentFrame->isLocalFrame()) | 1549 if (!parentFrame->isLocalFrame()) |
| 1550 return nullptr; | 1550 return nullptr; |
| 1551 | 1551 |
| 1552 ASSERT(toLocalFrame(parentFrame)->document()); | 1552 ASSERT(toLocalFrame(parentFrame)->document()); |
| 1553 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; | 1553 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; |
| 1554 } | 1554 } |
| 1555 | 1555 |
| 1556 } // namespace blink | 1556 } // namespace blink |
| OLD | NEW |