[webkit-changes] [WebKit/WebKit] 404960: Ensure resources from blob URL are correctly saved...
Sihui
noreply at github.com
Mon Oct 9 21:33:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 40496031556f61808a583fe254d60fb9380580ab
https://github.com/WebKit/WebKit/commit/40496031556f61808a583fe254d60fb9380580ab
Author: Sihui Liu <sihui_liu at apple.com>
Date: 2023-10-09 (Mon, 09 Oct 2023)
Changed paths:
M Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm
Log Message:
-----------
Ensure resources from blob URL are correctly saved to disk
https://bugs.webkit.org/show_bug.cgi?id=262904
rdar://116690714
Reviewed by Ryosuke Niwa.
This patch fixes an issue that an empty html file is created when iframe's src attribute is a blob url, by skipping
empty url when generating file names. Also, this patch adds regression test for saving resources from blob URL.
API Test: WebArchive.SaveResourcesBlobURL
* Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:
Canonical link: https://commits.webkit.org/269129@main
More information about the webkit-changes
mailing list