OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 4655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4666 return; | 4666 return; |
4667 } | 4667 } |
4668 | 4668 |
4669 // In the common case, create the security context from the currently | 4669 // In the common case, create the security context from the currently |
4670 // loading URL with a fresh content security policy. | 4670 // loading URL with a fresh content security policy. |
4671 m_cookieURL = m_url; | 4671 m_cookieURL = m_url; |
4672 enforceSandboxFlags(initializer.sandboxFlags()); | 4672 enforceSandboxFlags(initializer.sandboxFlags()); |
4673 if (initializer.shouldEnforceStrictMixedContentChecking()) | 4673 if (initializer.shouldEnforceStrictMixedContentChecking()) |
4674 enforceStrictMixedContentChecking(); | 4674 enforceStrictMixedContentChecking(); |
4675 setInsecureRequestsPolicy(initializer.insecureRequestsPolicy()); | 4675 setInsecureRequestsPolicy(initializer.insecureRequestsPolicy()); |
4676 if (initializer.insecureNavigationsToUpgrade()) { | |
4677 for (auto toUpgrade : *initializer.insecureNavigationsToUpgrade()) | |
4678 addInsecureNavigationUpgrade(toUpgrade); | |
4679 } | |
4680 setSecurityOrigin(isSandboxed(SandboxOrigin) ? SecurityOrigin::createUnique(
) : SecurityOrigin::create(m_url)); | 4676 setSecurityOrigin(isSandboxed(SandboxOrigin) ? SecurityOrigin::createUnique(
) : SecurityOrigin::create(m_url)); |
4681 | 4677 |
4682 if (importsController()) { | 4678 if (importsController()) { |
4683 // If this document is an HTML import, grab a reference to it's master d
ocument's Content | 4679 // If this document is an HTML import, grab a reference to it's master d
ocument's Content |
4684 // Security Policy. We don't call 'initContentSecurityPolicy' in this ca
se, as we can't | 4680 // Security Policy. We don't call 'initContentSecurityPolicy' in this ca
se, as we can't |
4685 // rebind the master document's policy object: its ExecutionContext need
s to remain tied | 4681 // rebind the master document's policy object: its ExecutionContext need
s to remain tied |
4686 // to the master document. | 4682 // to the master document. |
4687 setContentSecurityPolicy(importsController()->master()->contentSecurityP
olicy()); | 4683 setContentSecurityPolicy(importsController()->master()->contentSecurityP
olicy()); |
4688 } else { | 4684 } else { |
4689 initContentSecurityPolicy(); | 4685 initContentSecurityPolicy(); |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5726 #ifndef NDEBUG | 5722 #ifndef NDEBUG |
5727 using namespace blink; | 5723 using namespace blink; |
5728 void showLiveDocumentInstances() | 5724 void showLiveDocumentInstances() |
5729 { | 5725 { |
5730 WeakDocumentSet& set = liveDocumentSet(); | 5726 WeakDocumentSet& set = liveDocumentSet(); |
5731 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5727 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5732 for (Document* document : set) | 5728 for (Document* document : set) |
5733 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5729 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5734 } | 5730 } |
5735 #endif | 5731 #endif |
OLD | NEW |