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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
643 } | 643 } |
644 | 644 |
645 FrameLoadType FrameLoader::determineFrameLoadType(const FrameLoadRequest& reques t) | 645 FrameLoadType FrameLoader::determineFrameLoadType(const FrameLoadRequest& reques t) |
646 { | 646 { |
647 if (m_frame->tree().parent() && !m_stateMachine.committedFirstRealDocumentLo ad()) | 647 if (m_frame->tree().parent() && !m_stateMachine.committedFirstRealDocumentLo ad()) |
648 return FrameLoadTypeInitialInChildFrame; | 648 return FrameLoadTypeInitialInChildFrame; |
649 if (!m_frame->tree().parent() && !m_frame->page()->backForward().backForward ListCount()) | 649 if (!m_frame->tree().parent() && !m_frame->page()->backForward().backForward ListCount()) |
650 return FrameLoadTypeStandard; | 650 return FrameLoadTypeStandard; |
651 if (m_provisionalDocumentLoader && request.substituteData().failingURL() == m_provisionalDocumentLoader->url() && m_loadType == FrameLoadTypeBackForward) | 651 if (m_provisionalDocumentLoader && request.substituteData().failingURL() == m_provisionalDocumentLoader->url() && m_loadType == FrameLoadTypeBackForward) |
652 return FrameLoadTypeBackForward; | 652 return FrameLoadTypeBackForward; |
653 if (request.resourceRequest().cachePolicy() == ReloadIgnoringCacheData) | 653 if (request.resourceRequest().cachePolicy() == ReloadIgnoringCacheData || re quest.resourceRequest().cachePolicy() == ReloadBypassingCache) |
ppi
2014/06/01 23:57:04
I see that this just preserves the current behavio
clamy
2014/06/02 05:54:47
Good point. We could not return FrameLoadTypeReloa
| |
654 return FrameLoadTypeReload; | 654 return FrameLoadTypeReload; |
655 if (request.lockBackForwardList() || isScriptTriggeredFormSubmissionInChildF rame(request)) | 655 if (request.lockBackForwardList() || isScriptTriggeredFormSubmissionInChildF rame(request)) |
656 return FrameLoadTypeRedirectWithLockedBackForwardList; | 656 return FrameLoadTypeRedirectWithLockedBackForwardList; |
657 if (!request.originDocument() && request.resourceRequest().url() == m_docume ntLoader->urlForHistory()) | 657 if (!request.originDocument() && request.resourceRequest().url() == m_docume ntLoader->urlForHistory()) |
658 return FrameLoadTypeSame; | 658 return FrameLoadTypeSame; |
659 if (request.substituteData().failingURL() == m_documentLoader->urlForHistory () && m_loadType == FrameLoadTypeReload) | 659 if (request.substituteData().failingURL() == m_documentLoader->urlForHistory () && m_loadType == FrameLoadTypeReload) |
660 return FrameLoadTypeReload; | 660 return FrameLoadTypeReload; |
661 return FrameLoadTypeStandard; | 661 return FrameLoadTypeStandard; |
662 } | 662 } |
663 | 663 |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1439 { | 1439 { |
1440 SandboxFlags flags = m_forcedSandboxFlags; | 1440 SandboxFlags flags = m_forcedSandboxFlags; |
1441 if (LocalFrame* parentFrame = m_frame->tree().parent()) | 1441 if (LocalFrame* parentFrame = m_frame->tree().parent()) |
1442 flags |= parentFrame->document()->sandboxFlags(); | 1442 flags |= parentFrame->document()->sandboxFlags(); |
1443 if (FrameOwner* frameOwner = m_frame->ownerElement()) | 1443 if (FrameOwner* frameOwner = m_frame->ownerElement()) |
1444 flags |= frameOwner->sandboxFlags(); | 1444 flags |= frameOwner->sandboxFlags(); |
1445 return flags; | 1445 return flags; |
1446 } | 1446 } |
1447 | 1447 |
1448 } // namespace WebCore | 1448 } // namespace WebCore |
OLD | NEW |