| 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 2874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2885 else if (equalIgnoringCase(equiv, "refresh")) | 2885 else if (equalIgnoringCase(equiv, "refresh")) |
| 2886 processHttpEquivRefresh(content); | 2886 processHttpEquivRefresh(content); |
| 2887 else if (equalIgnoringCase(equiv, "set-cookie")) | 2887 else if (equalIgnoringCase(equiv, "set-cookie")) |
| 2888 processHttpEquivSetCookie(content); | 2888 processHttpEquivSetCookie(content); |
| 2889 else if (equalIgnoringCase(equiv, "content-language")) | 2889 else if (equalIgnoringCase(equiv, "content-language")) |
| 2890 setContentLanguage(content); | 2890 setContentLanguage(content); |
| 2891 else if (equalIgnoringCase(equiv, "x-dns-prefetch-control")) | 2891 else if (equalIgnoringCase(equiv, "x-dns-prefetch-control")) |
| 2892 parseDNSPrefetchControlHeader(content); | 2892 parseDNSPrefetchControlHeader(content); |
| 2893 else if (equalIgnoringCase(equiv, "x-frame-options")) | 2893 else if (equalIgnoringCase(equiv, "x-frame-options")) |
| 2894 processHttpEquivXFrameOptions(content); | 2894 processHttpEquivXFrameOptions(content); |
| 2895 else if (equalIgnoringCase(equiv, "content-security-policy") | 2895 else if (equalIgnoringCase(equiv, "content-security-policy") || equalIgnorin
gCase(equiv, "content-security-policy-report-only")) |
| 2896 || equalIgnoringCase(equiv, "content-security-policy-report-only") | |
| 2897 || equalIgnoringCase(equiv, "x-webkit-csp") | |
| 2898 || equalIgnoringCase(equiv, "x-webkit-csp-report-only")) | |
| 2899 processHttpEquivContentSecurityPolicy(equiv, content); | 2896 processHttpEquivContentSecurityPolicy(equiv, content); |
| 2900 } | 2897 } |
| 2901 | 2898 |
| 2902 void Document::processHttpEquivContentSecurityPolicy(const AtomicString& equiv,
const AtomicString& content) | 2899 void Document::processHttpEquivContentSecurityPolicy(const AtomicString& equiv,
const AtomicString& content) |
| 2903 { | 2900 { |
| 2904 if (equalIgnoringCase(equiv, "content-security-policy")) | 2901 if (equalIgnoringCase(equiv, "content-security-policy")) |
| 2905 contentSecurityPolicy()->didReceiveHeader(content, ContentSecurityPolicy
::Enforce, ContentSecurityPolicy::HeaderSourceMeta); | 2902 contentSecurityPolicy()->didReceiveHeader(content, ContentSecurityPolicy
::Enforce, ContentSecurityPolicy::HeaderSourceMeta); |
| 2906 else if (equalIgnoringCase(equiv, "content-security-policy-report-only")) | 2903 else if (equalIgnoringCase(equiv, "content-security-policy-report-only")) |
| 2907 contentSecurityPolicy()->didReceiveHeader(content, ContentSecurityPolicy
::Report, ContentSecurityPolicy::HeaderSourceMeta); | 2904 contentSecurityPolicy()->didReceiveHeader(content, ContentSecurityPolicy
::Report, ContentSecurityPolicy::HeaderSourceMeta); |
| 2908 // FIXME: Remove deprecation messages after the next release branch. | |
| 2909 else if (equalIgnoringCase(equiv, "x-webkit-csp")) | |
| 2910 UseCounter::countDeprecation(this, UseCounter::PrefixedContentSecurityPo
licy); | |
| 2911 else if (equalIgnoringCase(equiv, "x-webkit-csp-report-only")) | |
| 2912 UseCounter::countDeprecation(this, UseCounter::PrefixedContentSecurityPo
licyReportOnly); | |
| 2913 else | 2905 else |
| 2914 ASSERT_NOT_REACHED(); | 2906 ASSERT_NOT_REACHED(); |
| 2915 } | 2907 } |
| 2916 | 2908 |
| 2917 void Document::processHttpEquivDefaultStyle(const AtomicString& content) | 2909 void Document::processHttpEquivDefaultStyle(const AtomicString& content) |
| 2918 { | 2910 { |
| 2919 // The preferred style set has been overridden as per section | 2911 // The preferred style set has been overridden as per section |
| 2920 // 14.3.2 of the HTML4.0 specification. We need to update the | 2912 // 14.3.2 of the HTML4.0 specification. We need to update the |
| 2921 // sheet used variable and then update our style selector. | 2913 // sheet used variable and then update our style selector. |
| 2922 // For more info, see the test at: | 2914 // For more info, see the test at: |
| (...skipping 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5419 void Document::defaultEventHandler(Event* event) | 5411 void Document::defaultEventHandler(Event* event) |
| 5420 { | 5412 { |
| 5421 if (frame() && frame()->remotePlatformLayer()) { | 5413 if (frame() && frame()->remotePlatformLayer()) { |
| 5422 frame()->chromeClient().forwardInputEvent(this, event); | 5414 frame()->chromeClient().forwardInputEvent(this, event); |
| 5423 return; | 5415 return; |
| 5424 } | 5416 } |
| 5425 Node::defaultEventHandler(event); | 5417 Node::defaultEventHandler(event); |
| 5426 } | 5418 } |
| 5427 | 5419 |
| 5428 } // namespace WebCore | 5420 } // namespace WebCore |
| OLD | NEW |