| 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 return false; | 520 return false; |
| 521 if (document->fetcher()->requestCount()) | 521 if (document->fetcher()->requestCount()) |
| 522 return false; | 522 return false; |
| 523 if (document->isDelayingLoadEvent()) | 523 if (document->isDelayingLoadEvent()) |
| 524 return false; | 524 return false; |
| 525 return allDescendantsAreComplete(document->frame()); | 525 return allDescendantsAreComplete(document->frame()); |
| 526 } | 526 } |
| 527 | 527 |
| 528 static bool shouldSendFinishNotification(LocalFrame* frame) | 528 static bool shouldSendFinishNotification(LocalFrame* frame) |
| 529 { | 529 { |
| 530 // Don't send stop notifications for inital empty documents, since they don'
t generate start notifications. | 530 // Don't send stop notifications for initial empty documents, since they don
't generate start notifications. |
| 531 if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad()) | 531 if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad()) |
| 532 return false; | 532 return false; |
| 533 | 533 |
| 534 // Don't send didFinishLoad more than once per DocumentLoader. | 534 // Don't send didFinishLoad more than once per DocumentLoader. |
| 535 if (frame->loader().documentLoader()->sentDidFinishLoad()) | 535 if (frame->loader().documentLoader()->sentDidFinishLoad()) |
| 536 return false; | 536 return false; |
| 537 | 537 |
| 538 // We might have declined to run the load event due to an imminent content-i
nitiated navigation. | 538 // We might have declined to run the load event due to an imminent content-i
nitiated navigation. |
| 539 if (!frame->document()->loadEventFinished()) | 539 if (!frame->document()->loadEventFinished()) |
| 540 return false; | 540 return false; |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 // FIXME: We need a way to propagate insecure requests policy flags to | 1550 // FIXME: We need a way to propagate insecure requests policy flags to |
| 1551 // out-of-process frames. For now, we'll always use default behavior. | 1551 // out-of-process frames. For now, we'll always use default behavior. |
| 1552 if (!parentFrame->isLocalFrame()) | 1552 if (!parentFrame->isLocalFrame()) |
| 1553 return nullptr; | 1553 return nullptr; |
| 1554 | 1554 |
| 1555 ASSERT(toLocalFrame(parentFrame)->document()); | 1555 ASSERT(toLocalFrame(parentFrame)->document()); |
| 1556 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; | 1556 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 } // namespace blink | 1559 } // namespace blink |
| OLD | NEW |