OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 frame->securityContext()->getSecurityOrigin()); | 1019 frame->securityContext()->getSecurityOrigin()); |
1020 } | 1020 } |
1021 frame->securityContext()->initializeFeaturePolicy( | 1021 frame->securityContext()->initializeFeaturePolicy( |
1022 parsedHeader, containerPolicy, parentFeaturePolicy); | 1022 parsedHeader, containerPolicy, parentFeaturePolicy); |
1023 | 1023 |
1024 for (auto& message : messages) { | 1024 for (auto& message : messages) { |
1025 document->addConsoleMessage( | 1025 document->addConsoleMessage( |
1026 ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, | 1026 ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, |
1027 "Error with Feature-Policy header: " + message)); | 1027 "Error with Feature-Policy header: " + message)); |
1028 } | 1028 } |
1029 if (!parsedHeader.isEmpty()) | 1029 if (!parsedHeader.empty()) |
1030 frame->client()->didSetFeaturePolicyHeader(parsedHeader); | 1030 frame->client()->didSetFeaturePolicyHeader(parsedHeader); |
1031 } | 1031 } |
1032 | 1032 |
1033 void DocumentLoader::installNewDocument( | 1033 void DocumentLoader::installNewDocument( |
1034 const DocumentInit& init, | 1034 const DocumentInit& init, |
1035 const AtomicString& mimeType, | 1035 const AtomicString& mimeType, |
1036 const AtomicString& encoding, | 1036 const AtomicString& encoding, |
1037 InstallNewDocumentReason reason, | 1037 InstallNewDocumentReason reason, |
1038 ParserSynchronizationPolicy parsingPolicy, | 1038 ParserSynchronizationPolicy parsingPolicy, |
1039 const KURL& overridingURL) { | 1039 const KURL& overridingURL) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 InstallNewDocumentReason::kJavascriptURL, | 1082 InstallNewDocumentReason::kJavascriptURL, |
1083 ForceSynchronousParsing, KURL()); | 1083 ForceSynchronousParsing, KURL()); |
1084 if (!source.isNull()) | 1084 if (!source.isNull()) |
1085 m_writer->appendReplacingData(source); | 1085 m_writer->appendReplacingData(source); |
1086 endWriting(); | 1086 endWriting(); |
1087 } | 1087 } |
1088 | 1088 |
1089 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 1089 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
1090 | 1090 |
1091 } // namespace blink | 1091 } // namespace blink |
OLD | NEW |