OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/loader/HttpEquiv.h" | 5 #include "core/loader/HttpEquiv.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/dom/ScriptableDocumentParser.h" | 8 #include "core/dom/ScriptableDocumentParser.h" |
9 #include "core/dom/StyleEngine.h" | 9 #include "core/dom/StyleEngine.h" |
10 #include "core/fetch/ClientHintsPreferences.h" | 10 #include "core/fetch/ClientHintsPreferences.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 UseCounter::count(document, UseCounter::MetaSetCookie); | 124 UseCounter::count(document, UseCounter::MetaSetCookie); |
125 if (!document.contentSecurityPolicy()->allowInlineScript( | 125 if (!document.contentSecurityPolicy()->allowInlineScript( |
126 element, KURL(), "", OrdinalNumber(), "", | 126 element, KURL(), "", OrdinalNumber(), "", |
127 ContentSecurityPolicy::SuppressReport)) { | 127 ContentSecurityPolicy::SuppressReport)) { |
128 UseCounter::count(document, | 128 UseCounter::count(document, |
129 UseCounter::MetaSetCookieWhenCSPBlocksInlineScript); | 129 UseCounter::MetaSetCookieWhenCSPBlocksInlineScript); |
130 } | 130 } |
131 | 131 |
132 // Exception (for sandboxed documents) ignored. | 132 // Exception (for sandboxed documents) ignored. |
133 document.setCookie(content, IGNORE_EXCEPTION); | 133 document.setCookie(content, IGNORE_EXCEPTION_FOR_TESTING); |
134 } | 134 } |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
OLD | NEW |