Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f99559013074175c3a128e0f935f57b8878eb6cc
https://github.com/WebKit/WebKit/commit/f99559013074175c3a128e0f935f57b8878eb6cc
Author: Chirag M Shah <[email protected]>
Date: 2023-03-27 (Mon, 27 Mar 2023)
Changed paths:
A LayoutTests/js/fetch-response-json-crash-expected.txt
A LayoutTests/js/fetch-response-json-crash.html
M Source/WebCore/Modules/fetch/FetchResponse.cpp
Log Message:
-----------
Fix crash in FetchResponse::jsonForBindings
https://bugs.webkit.org/show_bug.cgi?id=254536
rdar://107265435
Reviewed by Youenn Fablet.
Make sure context.globalObject() is non-null before passing it to
JSC::JSONStringify which tries to dereference it.
* LayoutTests/js/fetch-response-json-crash-expected.txt: Added.
* LayoutTests/js/fetch-response-json-crash.html: Added.
* Source/WebCore/Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::jsonForBindings):
Canonical link: https://commits.webkit.org/262171@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes