Changeset 285174 in webkit
- Timestamp:
- Nov 2, 2021, 12:31:47 PM (5 years ago)
- Location:
- branches/safari-612-branch/Source
- Files:
-
- 5 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/Scripts/Preferences/WebPreferencesExperimental.yaml (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/loader/CrossOriginEmbedderPolicy.cpp (modified) (2 diffs)
-
WebCore/loader/CrossOriginOpenerPolicy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612-branch/Source/WTF/ChangeLog
r284950 r285174 1 2021-11-02 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r283732. rdar://problem/84349027 4 5 Add feature flag for COOP / COEP violation reporting and turn off by default 6 https://bugs.webkit.org/show_bug.cgi?id=231371 7 8 Reviewed by Youenn Fablet. 9 10 Add feature flag for COOP / COEP violation reporting and turn off by default since our 11 implementation doesn't match the latest specification. 12 13 Source/WebCore: 14 15 * loader/CrossOriginEmbedderPolicy.cpp: 16 (WebCore::sendCOEPPolicyInheritenceViolation): 17 (WebCore::sendCOEPCORPViolation): 18 * loader/CrossOriginOpenerPolicy.cpp: 19 (WebCore::sendViolationReportWhenNavigatingToCOOPResponse): 20 (WebCore::sendViolationReportWhenNavigatingAwayFromCOOPResponse): 21 22 Source/WTF: 23 24 * Scripts/Preferences/WebPreferencesExperimental.yaml: 25 26 27 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283732 268f45cc-cd09-0410-ab3c-d52691b4dbfc 28 29 2021-10-07 Chris Dumez <cdumez@apple.com> 30 31 Add feature flag for COOP / COEP violation reporting and turn off by default 32 https://bugs.webkit.org/show_bug.cgi?id=231371 33 34 Reviewed by Youenn Fablet. 35 36 Add feature flag for COOP / COEP violation reporting and turn off by default since our 37 implementation doesn't match the latest specification. 38 39 * Scripts/Preferences/WebPreferencesExperimental.yaml: 40 1 41 2021-10-26 Alan Coon <alancoon@apple.com> 2 42 -
branches/safari-612-branch/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
r284431 r285174 310 310 default: false 311 311 312 CoopCoepViolationReportingEnabled: 313 type: bool 314 humanReadableName: "COOP and COEP violations reporting" 315 humanReadableDescription: "Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy reporting" 316 defaultValue: 317 WebKitLegacy: 318 default: false 319 WebKit: 320 default: false 321 WebCore: 322 default: false 323 312 324 CoreImageAcceleratedFilterRenderEnabled: 313 325 type: bool -
branches/safari-612-branch/Source/WebCore/ChangeLog
r284989 r285174 1 2021-11-02 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r283732. rdar://problem/84349027 4 5 Add feature flag for COOP / COEP violation reporting and turn off by default 6 https://bugs.webkit.org/show_bug.cgi?id=231371 7 8 Reviewed by Youenn Fablet. 9 10 Add feature flag for COOP / COEP violation reporting and turn off by default since our 11 implementation doesn't match the latest specification. 12 13 Source/WebCore: 14 15 * loader/CrossOriginEmbedderPolicy.cpp: 16 (WebCore::sendCOEPPolicyInheritenceViolation): 17 (WebCore::sendCOEPCORPViolation): 18 * loader/CrossOriginOpenerPolicy.cpp: 19 (WebCore::sendViolationReportWhenNavigatingToCOOPResponse): 20 (WebCore::sendViolationReportWhenNavigatingAwayFromCOOPResponse): 21 22 Source/WTF: 23 24 * Scripts/Preferences/WebPreferencesExperimental.yaml: 25 26 27 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283732 268f45cc-cd09-0410-ab3c-d52691b4dbfc 28 29 2021-10-07 Chris Dumez <cdumez@apple.com> 30 31 Add feature flag for COOP / COEP violation reporting and turn off by default 32 https://bugs.webkit.org/show_bug.cgi?id=231371 33 34 Reviewed by Youenn Fablet. 35 36 Add feature flag for COOP / COEP violation reporting and turn off by default since our 37 implementation doesn't match the latest specification. 38 39 * loader/CrossOriginEmbedderPolicy.cpp: 40 (WebCore::sendCOEPPolicyInheritenceViolation): 41 (WebCore::sendCOEPCORPViolation): 42 * loader/CrossOriginOpenerPolicy.cpp: 43 (WebCore::sendViolationReportWhenNavigatingToCOOPResponse): 44 (WebCore::sendViolationReportWhenNavigatingAwayFromCOOPResponse): 45 1 46 2021-10-28 Alan Coon <alancoon@apple.com> 2 47 -
branches/safari-612-branch/Source/WebCore/loader/CrossOriginEmbedderPolicy.cpp
r283922 r285174 102 102 void sendCOEPPolicyInheritenceViolation(Frame& frame, const WebCore::SecurityOriginData& embedderOrigin, const String& endpoint, COEPDisposition disposition, const String& type, const URL& blockedURL) 103 103 { 104 if (!frame.settings().coopCoepViolationReportingEnabled()) 105 return; 106 104 107 ASSERT(!endpoint.isEmpty()); 105 108 PingLoader::sendReportToEndpoint(frame, embedderOrigin, endpoint, "coep"_s, contextURLForReport(frame), frame.loader().userAgent(blockedURL), [&](auto& body) { … … 114 117 { 115 118 ASSERT(!endpoint.isEmpty()); 119 if (!frame.settings().coopCoepViolationReportingEnabled()) 120 return; 121 116 122 PingLoader::sendReportToEndpoint(frame, embedderOrigin, endpoint, "coep"_s, contextURLForReport(frame), frame.loader().userAgent(blockedURL), [&](auto& body) { 117 123 body.setString("disposition"_s, disposition == COEPDisposition::Reporting ? "reporting"_s : "enforce"_s); -
branches/safari-612-branch/Source/WebCore/loader/CrossOriginOpenerPolicy.cpp
r283929 r285174 206 206 void sendViolationReportWhenNavigatingToCOOPResponse(Frame& frame, CrossOriginOpenerPolicy coop, COOPDisposition disposition, const URL& coopURL, const URL& previousResponseURL, const SecurityOrigin& coopOrigin, const SecurityOrigin& previousResponseOrigin, const String& referrer, const String& userAgent) 207 207 { 208 if (!frame.settings().coopCoepViolationReportingEnabled()) 209 return; 210 208 211 auto& endpoint = coop.reportingEndpointForDisposition(disposition); 209 212 if (endpoint.isEmpty()) … … 222 225 void sendViolationReportWhenNavigatingAwayFromCOOPResponse(Frame& frame, CrossOriginOpenerPolicy coop, COOPDisposition disposition, const URL& coopURL, const URL& nextResponseURL, const SecurityOrigin& coopOrigin, const SecurityOrigin& nextResponseOrigin, bool isCOOPResponseNavigationSource, const String& userAgent) 223 226 { 227 if (!frame.settings().coopCoepViolationReportingEnabled()) 228 return; 229 224 230 auto& endpoint = coop.reportingEndpointForDisposition(disposition); 225 231 if (endpoint.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.