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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 ResourceLoaderOptions options; | 721 ResourceLoaderOptions options; |
722 options.initiator_info.name = element_->InitiatorName(); | 722 options.initiator_info.name = element_->InitiatorName(); |
723 FetchParameters params(resource_request, options); | 723 FetchParameters params(resource_request, options); |
724 | 724 |
725 // "... cryptographic nonce, ..." | 725 // "... cryptographic nonce, ..." |
726 params.SetContentSecurityPolicyNonce(nonce); | 726 params.SetContentSecurityPolicyNonce(nonce); |
727 | 727 |
728 // "... integrity metadata, ..." | 728 // "... integrity metadata, ..." |
729 params.SetIntegrityMetadata(integrity_metadata); | 729 params.SetIntegrityMetadata(integrity_metadata); |
730 | 730 |
| 731 // "... integrity value, ..." |
| 732 params.MutableResourceRequest().SetFetchIntegrity( |
| 733 element_->IntegrityAttributeValue()); |
| 734 |
731 // "... parser state, ..." | 735 // "... parser state, ..." |
732 params.SetParserDisposition(parser_state); | 736 params.SetParserDisposition(parser_state); |
733 | 737 |
734 // "... CORS setting, ..." | 738 // "... CORS setting, ..." |
735 if (cross_origin != kCrossOriginAttributeNotSet) { | 739 if (cross_origin != kCrossOriginAttributeNotSet) { |
736 params.SetCrossOriginAccessControl(security_origin, cross_origin); | 740 params.SetCrossOriginAccessControl(security_origin, cross_origin); |
737 } | 741 } |
738 | 742 |
739 // "... and encoding." | 743 // "... and encoding." |
740 params.SetCharset(encoding); | 744 params.SetCharset(encoding); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 return false; | 1009 return false; |
1006 event_attribute = event_attribute.StripWhiteSpace(); | 1010 event_attribute = event_attribute.StripWhiteSpace(); |
1007 // 5. "If event is not an ASCII case-insensitive match for either the | 1011 // 5. "If event is not an ASCII case-insensitive match for either the |
1008 // string "onload" or the string "onload()", | 1012 // string "onload" or the string "onload()", |
1009 // then abort these steps at this point. The script is not executed. | 1013 // then abort these steps at this point. The script is not executed. |
1010 return DeprecatedEqualIgnoringCase(event_attribute, "onload") || | 1014 return DeprecatedEqualIgnoringCase(event_attribute, "onload") || |
1011 DeprecatedEqualIgnoringCase(event_attribute, "onload()"); | 1015 DeprecatedEqualIgnoringCase(event_attribute, "onload()"); |
1012 } | 1016 } |
1013 | 1017 |
1014 } // namespace blink | 1018 } // namespace blink |
OLD | NEW |