Changeset 246129 in webkit
- Timestamp:
- Jun 5, 2019, 3:09:25 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/security/contentSecurityPolicy/subframe-with-data-url-inheritance-expected.txt (added)
-
LayoutTests/http/tests/security/contentSecurityPolicy/subframe-with-data-url-inheritance.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246127 r246129 1 2019-06-05 Daniel Bates <dabates@apple.com> 2 3 [CSP] Data URLs should inherit their CSP policy 4 https://bugs.webkit.org/show_bug.cgi?id=198572 5 <rdar://problem/50660927> 6 7 Reviewed by Brent Fulgham. 8 9 Add a test to ensure that a framed data URL inherits its CSP policy from its parent document. 10 11 * http/tests/security/contentSecurityPolicy/subframe-with-data-url-inheritance-expected.txt: Added. 12 * http/tests/security/contentSecurityPolicy/subframe-with-data-url-inheritance.html: Added. 13 1 14 2019-06-05 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebCore/ChangeLog
r246128 r246129 1 2019-06-05 Daniel Bates <dabates@apple.com> 2 3 [CSP] Data URLs should inherit their CSP policy 4 https://bugs.webkit.org/show_bug.cgi?id=198572 5 <rdar://problem/50660927> 6 7 Reviewed by Brent Fulgham. 8 9 As per <https://w3c.github.io/webappsec-csp/#security-inherit-csp> (Editor's Draft, 28 February 2019) data 10 URLs should inherit their CSP policy from their parent (if they have one). 11 12 Test: http/tests/security/contentSecurityPolicy/subframe-with-data-url-inheritance.html 13 14 * dom/Document.cpp: 15 (WebCore::Document::shouldInheritContentSecurityPolicyFromOwner const): 16 1 17 2019-06-05 Saam Barati <sbarati@apple.com> 2 18 -
trunk/Source/WebCore/dom/Document.cpp
r246056 r246129 5904 5904 if (SecurityPolicy::shouldInheritSecurityOriginFromOwner(m_url)) 5905 5905 return true; 5906 if (m_url.protocolIsData()) 5907 return true; 5906 5908 if (!isPluginDocument()) 5907 5909 return false;
Note:
See TracChangeset
for help on using the changeset viewer.