Changeset 283732 in webkit
- Timestamp:
- Oct 7, 2021, 12:12:57 PM (5 years ago)
- Location:
- trunk/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
-
trunk/Source/WTF/ChangeLog
r283676 r283732 1 2021-10-07 Chris Dumez <cdumez@apple.com> 2 3 Add feature flag for COOP / COEP violation reporting and turn off by default 4 https://bugs.webkit.org/show_bug.cgi?id=231371 5 6 Reviewed by Youenn Fablet. 7 8 Add feature flag for COOP / COEP violation reporting and turn off by default since our 9 implementation doesn't match the latest specification. 10 11 * Scripts/Preferences/WebPreferencesExperimental.yaml: 12 1 13 2021-10-06 Sihui Liu <sihui_liu@apple.com> 2 14 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml
r283676 r283732 332 332 default: false 333 333 334 CoopCoepViolationReportingEnabled: 335 type: bool 336 humanReadableName: "COOP and COEP violations reporting" 337 humanReadableDescription: "Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy reporting" 338 defaultValue: 339 WebKitLegacy: 340 default: false 341 WebKit: 342 default: false 343 WebCore: 344 default: false 345 334 346 CoreImageAcceleratedFilterRenderEnabled: 335 347 type: bool -
trunk/Source/WebCore/ChangeLog
r283726 r283732 1 2021-10-07 Chris Dumez <cdumez@apple.com> 2 3 Add feature flag for COOP / COEP violation reporting and turn off by default 4 https://bugs.webkit.org/show_bug.cgi?id=231371 5 6 Reviewed by Youenn Fablet. 7 8 Add feature flag for COOP / COEP violation reporting and turn off by default since our 9 implementation doesn't match the latest specification. 10 11 * loader/CrossOriginEmbedderPolicy.cpp: 12 (WebCore::sendCOEPPolicyInheritenceViolation): 13 (WebCore::sendCOEPCORPViolation): 14 * loader/CrossOriginOpenerPolicy.cpp: 15 (WebCore::sendViolationReportWhenNavigatingToCOOPResponse): 16 (WebCore::sendViolationReportWhenNavigatingAwayFromCOOPResponse): 17 1 18 2021-10-07 Antti Koivisto <antti@apple.com> 2 19 -
trunk/Source/WebCore/loader/CrossOriginEmbedderPolicy.cpp
r283069 r283732 114 114 void sendCOEPPolicyInheritenceViolation(Frame& frame, const WebCore::SecurityOriginData& embedderOrigin, const String& endpoint, COEPDisposition disposition, const String& type, const URL& blockedURL) 115 115 { 116 if (!frame.settings().coopCoepViolationReportingEnabled()) 117 return; 118 116 119 ASSERT(!endpoint.isEmpty()); 117 120 PingLoader::sendReportToEndpoint(frame, embedderOrigin, endpoint, "coep"_s, contextURLForReport(frame), frame.loader().userAgent(blockedURL), [&](auto& body) { … … 126 129 { 127 130 ASSERT(!endpoint.isEmpty()); 131 if (!frame.settings().coopCoepViolationReportingEnabled()) 132 return; 133 128 134 PingLoader::sendReportToEndpoint(frame, embedderOrigin, endpoint, "coep"_s, contextURLForReport(frame), frame.loader().userAgent(blockedURL), [&](auto& body) { 129 135 body.setString("disposition"_s, disposition == COEPDisposition::Reporting ? "reporting"_s : "enforce"_s); -
trunk/Source/WebCore/loader/CrossOriginOpenerPolicy.cpp
r283482 r283732 210 210 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) 211 211 { 212 if (!frame.settings().coopCoepViolationReportingEnabled()) 213 return; 214 212 215 auto& endpoint = coop.reportingEndpointForDisposition(disposition); 213 216 if (endpoint.isEmpty()) … … 226 229 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) 227 230 { 231 if (!frame.settings().coopCoepViolationReportingEnabled()) 232 return; 233 228 234 auto& endpoint = coop.reportingEndpointForDisposition(disposition); 229 235 if (endpoint.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.