Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c4128f14edcdb020e360a2c45ad00ff31f388366
https://github.com/WebKit/WebKit/commit/c4128f14edcdb020e360a2c45ad00ff31f388366
Author: Alex Christensen <[email protected]>
Date: 2025-04-15 (Tue, 15 Apr 2025)
Changed paths:
M Source/WebCore/Modules/fetch/WindowOrWorkerGlobalScopeFetch.cpp
M Source/WebCore/page/Quirks.cpp
M Source/WebCore/page/Quirks.h
M Source/WebCore/page/QuirksData.h
Log Message:
-----------
Make codrops WebGPU demo load in Safari
https://bugs.webkit.org/show_bug.cgi?id=291590
rdar://143839620
Reviewed by Mike Wyrzykowski.
https://tympanus.net/Tutorials/WebGPUFluid/ is a really cool WebGPU demo
that works with WebKit's WebGPU implementation. However, it relies on a
Chrome-only loading behavior that immediately fails to load URLs that have
a newline and a less than character in them, specifically with this line:
try{return await(await fetch(n)).text()}catch{return n}
Chrome doesn't even try to load the string as a URL, Firefox and Safari do.
This adds a quirk to make the variable in their JS named Hr hit the same
load failure as it does in Chrome, which then lets the page proceed to
load the demo.
* Source/WebCore/Modules/fetch/WindowOrWorkerGlobalScopeFetch.cpp:
(WebCore::WindowOrWorkerGlobalScopeFetch::fetch):
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldBlockFetchWithNewlineAndLessThan const):
(WebCore::handleTympanusQuirks):
(WebCore::Quirks::determineRelevantQuirks):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:
Canonical link: https://commits.webkit.org/293729@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