Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptLoader.cpp

Issue 2941883003: [ServiceWorker] Fetch event should return integrity value (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ResourceLoaderOptions options; 735 ResourceLoaderOptions options;
736 options.initiator_info.name = element_->InitiatorName(); 736 options.initiator_info.name = element_->InitiatorName();
737 FetchParameters params(resource_request, options); 737 FetchParameters params(resource_request, options);
738 738
739 // "... cryptographic nonce, ..." 739 // "... cryptographic nonce, ..."
740 params.SetContentSecurityPolicyNonce(nonce); 740 params.SetContentSecurityPolicyNonce(nonce);
741 741
742 // "... integrity metadata, ..." 742 // "... integrity metadata, ..."
743 params.SetIntegrityMetadata(integrity_metadata); 743 params.SetIntegrityMetadata(integrity_metadata);
744 744
745 // "... integrity value, ..."
746 params.MutableResourceRequest().SetFetchIntegrity(
747 element_->IntegrityAttributeValue());
748
745 // "... parser state, ..." 749 // "... parser state, ..."
746 params.SetParserDisposition(parser_state); 750 params.SetParserDisposition(parser_state);
747 751
748 // "... CORS setting, ..." 752 // "... CORS setting, ..."
749 if (cross_origin != kCrossOriginAttributeNotSet) { 753 if (cross_origin != kCrossOriginAttributeNotSet) {
750 params.SetCrossOriginAccessControl(security_origin, cross_origin); 754 params.SetCrossOriginAccessControl(security_origin, cross_origin);
751 } 755 }
752 756
753 // "... and encoding." 757 // "... and encoding."
754 params.SetCharset(encoding); 758 params.SetCharset(encoding);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 return false; 999 return false;
996 event_attribute = event_attribute.StripWhiteSpace(); 1000 event_attribute = event_attribute.StripWhiteSpace();
997 // 5. "If event is not an ASCII case-insensitive match for either the 1001 // 5. "If event is not an ASCII case-insensitive match for either the
998 // string "onload" or the string "onload()", 1002 // string "onload" or the string "onload()",
999 // then abort these steps at this point. The script is not executed. 1003 // then abort these steps at this point. The script is not executed.
1000 return DeprecatedEqualIgnoringCase(event_attribute, "onload") || 1004 return DeprecatedEqualIgnoringCase(event_attribute, "onload") ||
1001 DeprecatedEqualIgnoringCase(event_attribute, "onload()"); 1005 DeprecatedEqualIgnoringCase(event_attribute, "onload()");
1002 } 1006 }
1003 1007
1004 } // namespace blink 1008 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698