Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74ab595af1f056614e05dd61124a38c7288ca5a3
https://github.com/WebKit/WebKit/commit/74ab595af1f056614e05dd61124a38c7288ca5a3
Author: Ada Chan <[email protected]>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M LayoutTests/TestExpectations
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-all-access-header-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-all-access-header.html
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-header-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-header.html
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-same-origin-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-same-origin.html
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-header-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-header.html
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-use-credentials-and-all-access-header-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-use-credentials-and-all-access-header.html
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-without-header-expected.txt
A
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-without-header.html
A LayoutTests/http/tests/security/resources/cube.usdz
A LayoutTests/http/tests/security/resources/model-access-control.py
M Source/WebCore/Modules/model-element/HTMLModelElement.cpp
M Source/WebCore/Modules/model-element/HTMLModelElement.h
Log Message:
-----------
[Model Element] Require CORS for loading model sources and environment maps
https://bugs.webkit.org/show_bug.cgi?id=293063
rdar://151364606
Reviewed by Youenn Fablet and Anne van Kesteren.
Make sure CORS is always enabled with model source and environment
map requests, by passing a non-null crossorigin attribute to
createPotentialAccessControlRequest().
Also make sure we null out m_model once source is reset.
* LayoutTests/TestExpectations:
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-all-access-header-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-all-access-header.html:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-header-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-header.html:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-same-origin-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-allowed-with-same-origin.html:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-header-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-header.html:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-use-credentials-and-all-access-header-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-with-use-credentials-and-all-access-header.html:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-without-header-expected.txt:
Added.
*
LayoutTests/http/tests/security/model-element/model-element-crossorigin-blocked-without-header.html:
Added.
* LayoutTests/http/tests/security/resources/cube.usdz: Added.
* LayoutTests/http/tests/security/resources/model-access-control.py: Added.
* Source/WebCore/Modules/model-element/HTMLModelElement.cpp:
(WebCore::HTMLModelElement::setSourceURL):
(WebCore::HTMLModelElement::environmentMapRequestResource):
Canonical link: https://commits.webkit.org/295219@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes