Timeline
May 3, 2022:
- 11:25 PM Changeset in webkit [293762] by
-
- 1 edit in trunk/Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp
REGRESSION(r293285): ASSERTION FAILED: m_isConstructed /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/WebKitBuild/Debug/usr/local/include/wtf/NeverDestroyed.h(152) : ..... [T = const WTF::AtomString, AccessTraits = WTF::MainThreadAccessTraits]
https://bugs.webkit.org/show_bug.cgi?id=240051
Reviewed by Yusuke Suzuki.
Make sure the tests initialize CommonAtomStrings since the implementation being tested seems
to rely on them.
- Tools/TestWebKitAPI/Tests/WebCore/DocumentOrder.cpp:
(TestWebKitAPI::createDocument):
Canonical link: https://commits.webkit.org/250241@main
- 11:19 PM Changeset in webkit [293761] by
-
- 1 edit in trunk/Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm
REGRESSION(r293703):[ BigSur+ iOS ] TestWTF.WTF_URLExtras.URLExtras_ParsingError (API-Test) is a constant failure
https://bugs.webkit.org/show_bug.cgi?id=240049
Reviewed by Yusuke Suzuki.
We need to pass the length of the string, which is the number of characters without the null terminator.
However, we were passing utf16.size(), which was one too many since the utf16 array contains the null
terminator at the end.
- Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/250239@main
- 11:18 PM Changeset in webkit [293760] by
-
- 15 edits in trunk/Source
Replace String::remove() by a makeStringByRemoving() free function
https://bugs.webkit.org/show_bug.cgi?id=239995
Reviewed by Yusuke Suzuki.
Replace String::remove() by a makeStringByRemoving() free function. This is a
step towards making String immutable.
- Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::lastCNAMEDomain):
- Source/WebKit/UIProcess/Inspector/win/InspectorResourceURLSchemeHandler.cpp:
(WebKit::InspectorResourceURLSchemeHandler::platformStartTask):
- Source/WTF/wtf/URL.cpp:
(WTF::URL::remove):
- Source/WTF/wtf/text/WTFString.cpp:
(WTF::makeStringByRemoving):
(WTF::String::removeInternal): Deleted.
(WTF::String::remove): Deleted.
- Source/WTF/wtf/text/WTFString.h:
- Source/WebCore/Modules/mediastream/RTCDTMFSender.cpp:
(WebCore::RTCDTMFSender::playNextTone):
- Source/WebCore/dom/CharacterData.cpp:
(WebCore::CharacterData::deleteData):
- Source/WebCore/dom/FragmentDirectiveParser.cpp:
(WebCore::FragmentDirectiveParser::parseFragmentDirective):
- Source/WebCore/dom/Range.cpp:
(WebCore::processContentsBetweenOffsets):
- Source/WebCore/editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::deleteInsignificantText):
- Source/WebCore/inspector/InspectorOverlayLabel.cpp:
(WebCore::InspectorOverlayLabel::draw):
- Source/WebCore/inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::deleteRule):
- Source/WebCore/platform/graphics/gstreamer/mse/GStreamerMediaDescription.cpp:
(WebCore::GStreamerMediaDescription::extractCodecName):
- Source/WebCore/platform/network/curl/CookieJarDB.cpp:
(WebCore::CookieJarDB::deleteCookie):
- Source/WebCore/platform/text/win/LocaleWin.cpp:
(WebCore::LocaleWin::shortTimeFormat):
Canonical link: https://commits.webkit.org/250239@main
- 11:14 PM Changeset in webkit [293759] by
-
- 3 edits in trunk/Source/JavaScriptCore
[RISCV64] Implement MacroAssemblerRISCV64 move-conditionally methods
https://bugs.webkit.org/show_bug.cgi?id=239998
Reviewed by Yusuke Suzuki.
Provide implementations for the variants of the move-conditionally
operation in MacroAssemblerRISCV64. These are true macro operations,
often requiring scratch registers and branches to implement the
behavior since the RISC-V ISA doesn't provide appropriate instructions
out-of-the-box.
Test cases in testmasm are also enabled, including some additional
guards to avoid unused-variable warnings at build-time.
- assembler/MacroAssemblerRISCV64.h:
(JSC::MacroAssemblerRISCV64::moveConditionally32):
(JSC::MacroAssemblerRISCV64::moveConditionally64):
(JSC::MacroAssemblerRISCV64::moveConditionallyFloat):
(JSC::MacroAssemblerRISCV64::moveConditionallyDouble):
(JSC::MacroAssemblerRISCV64::moveConditionallyTest32):
(JSC::MacroAssemblerRISCV64::moveConditionallyTest64):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionally32):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionally64):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionallyFloat):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionallyDouble):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionallyTest32):
(JSC::MacroAssemblerRISCV64::moveDoubleConditionallyTest64):
(JSC::MacroAssemblerRISCV64::branchForMoveConditionally):
- assembler/testmasm.cpp:
(JSC::testProbeModifiesStackPointer):
(JSC::testProbeModifiesStackValues):
- 8:17 PM Changeset in webkit [293758] by
-
- 5 edits in trunk/Source/WebKit
Add logging related to Launch Services database
https://bugs.webkit.org/show_bug.cgi?id=240032
Reviewed by Geoffrey Garen.
We have reports indicating that it can sometime take unexpectedly long time for the Network process to provide
the Launch Services database to the WebContent and GPU process. Add some logging to help diagnose the issue.
There are also some related selector response checks that can be removed now.
- NetworkProcess/cocoa/LaunchServicesDatabaseObserver.mm:
(WebKit::LaunchServicesDatabaseObserver::LaunchServicesDatabaseObserver):
(WebKit::LaunchServicesDatabaseObserver::startObserving):
(WebKit::LaunchServicesDatabaseObserver::~LaunchServicesDatabaseObserver):
(WebKit::databaseContext): Deleted.
- UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::NetworkProcessProxy):
(WebKit::NetworkProcessProxy::didFinishLaunching):
- UIProcess/Network/NetworkProcessProxyCocoa.mm:
(WebKit::NetworkProcessProxy::sendXPCEndpointToProcess):
- WebProcess/cocoa/LaunchServicesDatabaseManager.mm:
(WebKit::LaunchServicesDatabaseManager::handleEvent):
- 7:27 PM Changeset in webkit [293757] by
-
- 9 edits in trunk/Source
[JSC] Initialize empty and null AtomString at compile time
https://bugs.webkit.org/show_bug.cgi?id=240031
Reviewed by Mark Lam.
Because they are initialized from static data, we can just initialize them
at compile time, and we do not need to haveAtomString::init
.
- Source/WebKit/WebAuthnProcess/WebAuthnProcess.cpp:
(WebKit::WebAuthnProcess::initializeWebAuthnProcess):
- Source/WTF/wtf/Threading.cpp:
(WTF::initialize):
- Source/WTF/wtf/text/AtomString.cpp:
(WTF::AtomString::init): Deleted.
- Source/WTF/wtf/text/AtomString.h:
(WTF::StaticAtomString::StaticAtomString):
(WTF::nullAtom):
(WTF::emptyAtom):
- Source/WebCore/dom/make_names.pl:
(printInit):
Canonical link: https://commits.webkit.org/250236@main
- 6:44 PM Changeset in webkit [293756] by
-
- 2 edits in trunk/LayoutTests
webgl/1.0.3/conformance/state/gl-object-get-calls.html times out after turning WebGL in GPUP on by default
https://bugs.webkit.org/show_bug.cgi?id=238691
<rdar://problem/91191670>
Unreviewed test gardening.
Patch by Dan Glastonbury <djg@apple.com> on 2022-05-03
- webgl/TestExpectations:
- 5:40 PM Changeset in webkit [293755] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 143
Added a tag for Safari Technology Preview release 143.
- 5:40 PM Changeset in webkit [293754] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 132
Added a tag for Safari Technology Preview release 132.
- 5:39 PM Changeset in webkit [293753] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 131
Added a tag for Safari Technology Preview release 131.
- 5:39 PM Changeset in webkit [293752] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 130
Added a tag for Safari Technology Preview release 130.
- 5:37 PM Changeset in webkit [293751] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 129
Added a tag for Safari Technology Preview release 129.
- 5:37 PM Changeset in webkit [293750] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 128
Added a tag for Safari Technology Preview release 128.
- 5:36 PM Changeset in webkit [293749] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 127
Added a tag for Safari Technology Preview release 127.
- 5:36 PM Changeset in webkit [293748] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 126
Added a tag for Safari Technology Preview release 126.
- 5:36 PM Changeset in webkit [293747] by
-
- 1 copy in releases/Apple/Safari Technology Preview/Safari Technology Preview 125
Added a tag for Safari Technology Preview release 125.
- 4:27 PM Changeset in webkit [293746] by
-
- 7 edits in trunk/Source/JavaScriptCore
[JSC] Extend Structure heap size from 1GB to 4GB
https://bugs.webkit.org/show_bug.cgi?id=240028
Reviewed by Saam Barati.
1GB was much smaller compared to StructureIDTable (which allowed 7GB).
This patch extends 1GB to 4GB, that's maximum limit of the current encoding scheme (we can
extend it further to 64GB if we introduce shift based on alignment, but currently not used).
We use this 4GB on platforms which has enough virtual address space.
- Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- Source/JavaScriptCore/jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitNonNullDecodeStructureID):
- Source/JavaScriptCore/runtime/JSCConfig.h:
Canonical link: https://commits.webkit.org/250234@main
- 4:02 PM Changeset in webkit [293745] by
-
- 2 edits in trunk/LayoutTests
Some layout tests are failing on EWS but not post commit testing due to a OS difference
https://bugs.webkit.org/show_bug.cgi?id=239564
Unreviewed test gardening.
- LayoutTests/platform/ios/TestExpectations:
Canonical link: https://commits.webkit.org/250233@main
- 3:55 PM Changeset in webkit [293744] by
-
- 5 edits in trunk/Source/WebKit
Unreviewed, reverting r293743.
https://bugs.webkit.org/show_bug.cgi?id=240042
Introduced debug assert
Reverted changeset:
"Add logging related to Launch Services database"
https://bugs.webkit.org/show_bug.cgi?id=240032
https://commits.webkit.org/r293743
- 3:23 PM Changeset in webkit [293743] by
-
- 5 edits in trunk/Source/WebKit
Add logging related to Launch Services database
https://bugs.webkit.org/show_bug.cgi?id=240032
Reviewed by Geoffrey Garen.
We have reports indicating that it can sometime take unexpectedly long time for the Network process to provide
the Launch Services database to the WebContent and GPU process. Add some logging to help diagnose the issue.
There are also some related selector response checks that can be removed now.
- NetworkProcess/cocoa/LaunchServicesDatabaseObserver.mm:
(WebKit::LaunchServicesDatabaseObserver::LaunchServicesDatabaseObserver):
(WebKit::LaunchServicesDatabaseObserver::startObserving):
(WebKit::LaunchServicesDatabaseObserver::~LaunchServicesDatabaseObserver):
(WebKit::databaseContext): Deleted.
- UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::NetworkProcessProxy):
(WebKit::NetworkProcessProxy::didFinishLaunching):
- UIProcess/Network/NetworkProcessProxyCocoa.mm:
(WebKit::NetworkProcessProxy::sendXPCEndpointToProcess):
- WebProcess/cocoa/LaunchServicesDatabaseManager.mm:
(WebKit::LaunchServicesDatabaseManager::handleEvent):
- 3:10 PM Changeset in webkit [293742] by
-
- 3 edits in trunk/LayoutTests
[macOS] Make a couple of grammar checking tests more robust to system spell checker changes
https://bugs.webkit.org/show_bug.cgi?id=240034
rdar://92689657
Reviewed by Aditya Keerthi.
In some versions of macOS, feeding the following sentence to NSSpellChecker:
"the the adlj adaasj sdklj. there there"
...no longer yields grammar errors at "the the" and "there there", due to presence of duplicated "the" and
"there", which causes a couple of layout tests to time out.
This patch works around the system changes by swizzling out spell checking results, such that we don't need to
rely on the default NSSpellChecker always tagging "the the" and "there there" as grammar errors.
- editing/spelling/inline-spelling-markers-hidpi.html:
- editing/spelling/inline-spelling-markers.html:
Canonical link: https://commits.webkit.org/250230@main
- 2:55 PM Changeset in webkit [293741] by
-
- 3 edits in trunk/LayoutTests
Rebase fast/forms/select-list-box-with-height.html and fast/forms/control-restrict-line-height.html
https://bugs.webkit.org/show_bug.cgi?id=240039
Unreviewed test gardening.
- LayoutTests/platform/ios/fast/forms/control-restrict-line-height-expected.txt:
- LayoutTests/platform/ios/fast/forms/select-list-box-with-height-expected.txt:
Canonical link: https://commits.webkit.org/250229@main
- 2:22 PM Changeset in webkit [293740] by
-
- 2 edits1 delete in trunk/LayoutTests
Fix rebase from 250225@main
https://bugs.webkit.org/show_bug.cgi?id=239569
Unreviewed test gardening.
- LayoutTests/platform/ios/tables/mozilla/bugs/bug2479-3-expected.txt:
- LayoutTests/tables/mozilla/bugs/bug2479-3-expected.txt: Removed.
Canonical link: https://commits.webkit.org/250228@main
- 2:18 PM Changeset in webkit [293739] by
-
- 2 edits in trunk/LayoutTests
[ iOS ] css3/background/background-repeat-space-content.html is a flaky image failure
https://bugs.webkit.org/show_bug.cgi?id=240037
Unreviewed test gardening.
- LayoutTests/platform/ios/TestExpectations:
Canonical link: https://commits.webkit.org/250227@main
- 2:01 PM Changeset in webkit [293738] by
-
- 2 edits in trunk/LayoutTests
REGRESSION (r293427): [ iOS ] http/tests/quicklook/same-origin-xmlhttprequest-allowed.html is a constant failure and crash
https://bugs.webkit.org/show_bug.cgi?id=240024
Unreviewed test gardening.
- LayoutTests/platform/ios/TestExpectations:
Canonical link: https://commits.webkit.org/250226@main
- 1:54 PM Changeset in webkit [293737] by
-
- 1 edit1 add in trunk/LayoutTests
Rebase tables/mozilla/bugs/bug2479-3.html
https://bugs.webkit.org/show_bug.cgi?id=239569
Unreviewed test gardening.
- LayoutTests/tables/mozilla/bugs/bug2479-3-expected.txt: Added.
Canonical link: https://commits.webkit.org/250225@main
- 1:18 PM Changeset in webkit [293736] by
-
- 3 edits3 adds in trunk
StorageMap::removeItem may fail to remove item from map
https://bugs.webkit.org/show_bug.cgi?id=239982
rdar://80891555
Reviewed by Chris Dumez.
Source/WebCore:
We may have updated m_impl, but we don't update iterator for removal. In this case, item is not removed from
map, but currentSize is updated. The mismatch between currentSize and actual size of the map may lead to
underflow and overflow in currentSize when item is added or removed later.
Test: storage/domstorage/sessionstorage/window-open-remove-item.html
- storage/StorageMap.cpp:
(WebCore::StorageMap::removeItem):
LayoutTests:
- storage/domstorage/sessionstorage/resources/window-open-remove-item.html: Added.
- storage/domstorage/sessionstorage/window-open-remove-item-expected.txt: Added.
- storage/domstorage/sessionstorage/window-open-remove-item.html: Added.
- 12:15 PM Changeset in webkit [293735] by
-
- 7 edits in trunk
REGRESSION (r293703): 358 JSC tests failing
https://bugs.webkit.org/show_bug.cgi?id=240023
Reviewed by Yusuke Suzuki.
Make sure WTF::initialize() calls AtomString::init() given that JSC now relies on
emptyAtom().
- Tools/TestWebKitAPI/TestsController.cpp:
(TestWebKitAPI::TestsController::TestsController):
- Source/WTF/wtf/Threading.cpp:
(WTF::initialize):
- Source/WTF/wtf/text/AtomString.cpp:
(WTF::AtomString::init):
- Source/WebCore/platform/CommonAtomStrings.cpp:
(WebCore::initializeCommonAtomStrings):
Canonical link: https://commits.webkit.org/250223@main
- 11:47 AM Changeset in webkit [293734] by
-
- 2 edits in trunk/Source/WebKit
[iOS][WP] Only block IOKit access if all GPUP features are enabled
https://bugs.webkit.org/show_bug.cgi?id=240010
Reviewed by Tim Horton.
Only block IOKit access in the WebContent process' sandbox on iOS if all GPUP features are enabled.
- WebProcess/WebPage/WebPage.cpp:
(WebKit::m_appHighlightsVisible):
- 11:25 AM Changeset in webkit [293733] by
-
- 5 edits in trunk/Source/WebKit
[iOS][GPUP] Remove Mach sandbox extensions for non browser clients
https://bugs.webkit.org/show_bug.cgi?id=240008
Reviewed by Geoffrey Garen.
Remove Mach sandbox extensions for clients that are not browsers in the GPU process on iOS. The same set of extensions
has recently been removed from the WebContent process. We also block these in the GPU process' sandbox, so there should
be no change in behavior.
- GPUProcess/GPUProcess.cpp:
(WebKit::GPUProcess::initializeGPUProcess):
- GPUProcess/GPUProcessCreationParameters.cpp:
(WebKit::GPUProcessCreationParameters::encode const):
(WebKit::GPUProcessCreationParameters::decode):
- GPUProcess/GPUProcessCreationParameters.h:
- UIProcess/GPU/GPUProcessProxy.cpp:
(WebKit::GPUProcessProxy::GPUProcessProxy):
(WebKit::nonBrowserServices): Deleted.
- 11:23 AM Changeset in webkit [293732] by
-
- 2 edits in trunk/Source/WebKit
[iOS][WP] Remove obsolete message filter
https://bugs.webkit.org/show_bug.cgi?id=240012
Reviewed by Geoffrey Garen.
Remove obsolete message filter in the WebContent process on iOS. This filtering is now enabled by the
GPU restricted entitlement we have added for the WebContent process.
- Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb.in:
- 11:06 AM Changeset in webkit [293731] by
-
- 5 edits in trunk/LayoutTests
[ Test Gardening ] Batch remove expectations no longer needed
https://bugs.webkit.org/show_bug.cgi?id=240021
Unreviewed test gardening.
- platform/ios-wk2/TestExpectations:
- platform/mac-wk1/TestExpectations:
- platform/mac-wk2/TestExpectations:
- platform/mac/TestExpectations:
Canonical link: https://commits.webkit.org/250219@main
- 10:37 AM Changeset in webkit [293730] by
-
- 3 edits in trunk/Source/WebKit
[iOS] The "Copy Cropped Image" context menu action should be gated on cropped image results
https://bugs.webkit.org/show_bug.cgi?id=240013
rdar://88941787
Reviewed by Tim Horton.
Only show this item in the context menu when long pressing in the case where
requestImageAnalysisMarkup
computes a non-null result for the given image bitmap. This gating logic runs alongside existing gating logic
for both the visual search item ("Look Up") and "Show Text" actions. See below for more details.
- UIProcess/ios/WKContentViewInteraction.h:
- UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _setUpImageAnalysis]):
(-[WKContentView _tearDownImageAnalysis]):
Introduce a
_croppedImageResult
ivar to cache the CGImage result after running image analysis over the image
corresponding to the element for which we're showing the context menu. This is reset in the same lifecycle as
the extant_hasVisualSearchResults
and_hasSelectableTextInImage
flags which are used for the same purpose.
(-[WKContentView imageAnalysisGestureDidBegin:]):
(-[WKContentView _completeImageAnalysisRequestForContextMenu:requestIdentifier:hasTextResults:]):
This is the codepath that currently prevents us from showing the context menu until we know whether or not there
are relevant visual search results, such that we can conditionally show the "Look Up" context menu item. Adjust
this so that it calls-_invokeAllActionsToPerformAfterPendingImageAnalysis:
only after we've also determined
whether or not there is a non-null cropped image result, so that we can also conditionally show the "Copy
Cropped Image" item.
To achieve this, we move the call to
-_invokeAllActionsToPerformAfterPendingImageAnalysis:
into a
WTF::CallbackAggregator
, and ref/deref the aggregator when invoking both of the async image analysis
operations. When the callback aggregator is destroyed (i.e., after both async image analysis operations are
complete), we proceed with showing the context menu.
(-[WKContentView imageAnalysisGestureDidTimeOut:]):
Implement similar logic as above, but for the scenario where we show the context menu after the user continues
to long press after selecting text inside of an image.
(-[WKContentView actionSheetAssistantShouldIncludeCopyCroppedImageAction:]):
Only show the item if
_croppedImageResult
is non-null.
(-[WKContentView actionSheetAssistant:copyCroppedImage:sourceMIMEType:]):
Instead of running image analysis and writing the resulting image to the clipboard, simply transcode the cached
image in_croppedImageResult
.
Canonical link: https://commits.webkit.org/250218@main
- 10:06 AM Changeset in webkit [293729] by
-
- 29 edits1 add in trunk
[WK2] Add API to allow embedder to set a timezone override
https://bugs.webkit.org/show_bug.cgi?id=213884
Source/JavaScriptCore:
Reviewed by Yusuke Suzuki.
- runtime/DateConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
- runtime/DateConversion.cpp:
(JSC::formatDateTime): Format the overridden timezone if it's enabled.
- runtime/DateConversion.h:
- runtime/DatePrototype.cpp:
(JSC::formateDateInstance):
- runtime/JSDateMath.cpp:
(JSC::toICUTimeZone):
(JSC::toOpaqueICUTimeZone):
(JSC::OpaqueICUTimeZoneDeleter::operator()):
(JSC::DateCache::calculateLocalTimeOffset):
(JSC::DateCache::defaultTimeZone):
(JSC::DateCache::timeZoneDisplayNameOverride):
(JSC::DateCache::timeZoneCacheSlow): Apply timezone override if it is set.
(JSC::DateCache::resetIfNecessary):
- runtime/JSDateMath.h:
Source/WebKit:
Reviewed by Yusuke Suzuki.
This patch adds:
- new Cocoa API
- new Glib API (targetting both WPE and GTK ports)
- new C API (for the win port)
that allows the embedder to set a timezone override for the underlying PageConfiguration.
Since this API is not exposed in glib ports, a new contruct-time-only property was added to
the WebKitWebContext API. It would also allow fine-grained control over multiple pages, for
instance it's not possible currently to have two pages in different timezones.
No new layout tests, this change is covered by new API tests.
- Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode const):
(WebKit::WebProcessCreationParameters::decode):
- Shared/WebProcessCreationParameters.h:
- UIProcess/API/APIProcessPoolConfiguration.cpp:
(API::ProcessPoolConfiguration::copy):
- UIProcess/API/APIProcessPoolConfiguration.h:
- UIProcess/API/C/WKContextConfigurationRef.cpp:
(WKContextConfigurationCopyTimeZoneOverride):
(WKContextConfigurationSetTimeZoneOverride):
- UIProcess/API/C/WKContextConfigurationRef.h:
- UIProcess/API/Cocoa/_WKProcessPoolConfiguration.h:
- UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm:
(-[_WKProcessPoolConfiguration timeZoneOverride]):
(-[_WKProcessPoolConfiguration setTimeZoneOverride:]):
- UIProcess/API/glib/WebKitWebContext.cpp:
(webkitWebContextGetProperty):
(webkitWebContextSetProperty):
(webkitWebContextConstructed):
(webkit_web_context_class_init):
(webkit_web_context_set_time_zone_override):
(webkit_web_context_get_time_zone_override):
- UIProcess/API/gtk/WebKitWebContext.h:
- UIProcess/API/wpe/WebKitWebContext.h:
- UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::initializeNewWebProcess):
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess): Apply timezone override if any on process start.
Source/WTF:
Reviewed by Yusuke Suzuki.
- wtf/DateMath.cpp: New APIs to control and query the timezone override.
(WTF::innerTimeZoneOverride): Static storage of the override informations.
(WTF::WTF_REQUIRES_LOCK):
(WTF::validateTimeZone): New function allowing to check if a timezone identifier is valid according to ICU's database and covert it
to UChar buffer suitable for passing to ucal.
(WTF::isTimeZoneValid):
(WTF::setTimeZoneOverride): New API to set the timezone override, this is meant to be
used on newly created WebProcesses. In addition to providing alternative name for the code
that calls into ICU library, on POSIX systems writes new timezone to "TZ" environement
variable to adjust result of strftime (called in formatDateTime).
(WTF::getTimeZoneOverride): Query the timezone override.
- wtf/DateMath.h:
Tools:
Reviewed by Yusuke Suzuki.
Add API tests for the timezone configuration API. The GTK and WPE MiniBrowsers also gained
new runtime options allowing to exercise this new API.
- MiniBrowser/gtk/main.c:
(activate):
- MiniBrowser/wpe/main.cpp:
(main):
- TestWebKitAPI/SourcesCocoa.txt:
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WebKitCocoa/TimeZoneOverride.mm: Added.
(TimeZoneOverrideTest::runScriptAndExecuteCallback):
(TimeZoneOverrideTest::callAsyncFunctionBody):
(TEST_F):
- TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:
(testWebContextTimeZoneOverride):
(testWebContextTimeZoneOverrideInWorker):
(beforeAll):
- TestWebKitAPI/glib/WebKitGLib/TestMain.cpp:
(main):
- TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp:
(runJavaScriptReadyCallback):
(WebViewTest::runJavaScriptAndWaitUntilFinished):
- TestWebKitAPI/glib/WebKitGLib/WebViewTest.h:
- flatpak/flatpakutils.py:
(WebkitFlatpak.run_in_sandbox):
- 9:09 AM Changeset in webkit [293728] by
-
- 2 edits in trunk/Source/WebCore
Fix buggy assert in CoreAudioSharedUnit::configureSpeakerProc
https://bugs.webkit.org/show_bug.cgi?id=240001
Reviewed by Eric Carlson.
Manually tested.
- platform/mediastream/mac/CoreAudioCaptureSource.cpp:
Initialize the sampleRate field before using it.
- 9:02 AM Changeset in webkit [293727] by
-
- 7 edits in trunk
Web Inspector: Importing a timeline leaves timeline overview non-scrollable/non-zoomable until windows is resized
https://bugs.webkit.org/show_bug.cgi?id=239880
Reviewed by Devin Rousso.
Source/WebInspectorUI:
Cancelling an in-progress layout (or the layout of a child of a view in middle of laying out) led to
_dirtyDescendantsCount
being in an inconsistent state. Views had their_dirtyDescendantsCount
cleared before
they are laid out, so every non-zero_dirtyDescendantsCount
of a view in the process of being laid out meant
that during layoutneedsLayout()
was called to dirty that view or one of its children. In this case, a
previous cancellation meant that the TimelineOverview ended up in an inconsistent state where its parent view
tree was not aware that it needed layout because it reached a zero_dirtyDescendantsCount
while walking down
the view hierarchy, which meant that the TimelineOverview was perpetually stuck until the entire view hierarchy
needed re-laid out due to a window resize or similar event.
Our current accounting for
_dirtyDescendantsCount
in View makes assumptions that are not always true during
layout. Specifically that parents of views undergoing layout will have a non-zero_dirtyDescendantsCount
still
from which to subtract in_cancelScheduledLayoutForView
. This wasn't always true because as soon as we began
laying out a parent view, we cleared both the_dirty
flag as well as zeroed out_dirtyDescendantsCount
. In
the case of cancelling a layout from within a layout, the cancellation wouldn't actually take effect anyways,
and sincecancelLayout
was only ever invoked fromupdateLayout
, the relevant layout flags should instead be
cleared as part of actually performing the layout.cancelLayout
at most saved us a rAF callback only to
realize we no longer have any views in need of layout, but this benefit was negligible, and in general we should
prefer not to be callingupdateLayout
for performance reasons anyways.
This patch improves the accounting around
_dirtyDescendantsCount
, making sure to decrement it as we perform
layout, instead of all at once. This reduces our reliance on assumptions about who will modify the
_dirtyDescendantsCount
and at what times relative to layout.
The only time in this patch that we do not do a +1/-1 adjustment to the layout count is in the special case of
attaching/detaching a view. In that case, the parent tree from which we are detaching the view will have the
_dirtyDescendantsCount
of the detached parent adjusted by the_dirtyDescendantsCount
of the former child
view. This is done by_setSelfAndDescendantsNotDirty
, which allows us to avoid an exponential walking of the
tree for this otherwise self-contained operation (we don't call into any overridable functions that could modify
the_dirty
flag or_dirtyDescendantsCount
).
After we have cleaned up the former parent branch of the tree, we mark the newly attached view as needing
layout, which will then ensure the child view gets laid out again by marking it asdirty
and incrementing its
new parent branch of the tree's_dirtyDescendantsCount
.
- UserInterface/Views/View.js:
(WI.View.prototype.insertSubviewBefore):
- Add assertion that the view is not currently a child of a different view in addition to the existing check
that a view is not already a child of the target view.
(WI.View.prototype._setDirty):
- New utility method through which (almost) all marking of dirty/not dirty should be done in order to ensure
that
_dirtyDescendantsCount
is correctly adjusted.
(WI.View.prototype._didMoveToParent):
- Mark the view and all subviews as not dirty before removing it from its previous parent in order to adjust
_dirtyDescendantsCount
appropriately, and then mark the view as dirty once attached to its new parent.
- Inline the logic from WI.View.prototype._didMoveToWindow in order to also handle marking children as not dirty
and having a zeroed
_dirtyDescendantsCount
.
- This method contains the exception to the rule that _dirtyDescendantsCount is always incremented/decremented
by one. Here we are able to optimize away the need to walk the entire parent tree for each subview/subviews of
subviews/etc. because the operation takes place all at once with no overridable function being called where we
have to worry about mutations to_dirty
/_dirtyDescendantsCount
.
(WI.View.prototype._layoutSubtree):
(WI.View._visitViewTreeForLayout):
- Don't zero out the
_dirtyDescendantsCount
, and instead use the new_setDirty
helper.
(WI.View._scheduleLayoutForView):
- Don't zero out the
_dirtyDescendantsCount
, and instead use the new_setDirty
helper. - Mark the view as dirty after checking if its attached a view so that detached views have no dirty state until
they are attached, at which point the root of the previous detached subtree will be marked as dirty.
- Drive-by change to use a for-loop instead of a while-loop to avoid
Array.prototype.shift()
.
(WI.View.prototype.updateLayout):
(WI.View.prototype.cancelLayout): Deleted.
(WI.View._cancelScheduledLayoutForView): Deleted.
- Remove the concept of "canceling" layout, since it is only used by
updateLayout
, and the call to
_layoutSubtree
inupdateLayout
will cause the view, dirty or not, to be marked as not dirty.
LayoutTests:
- inspector/view/asynchronous-layout-expected.txt:
- inspector/view/asynchronous-layout.html:
- Added test case for calls to
updateLayout()
during asynchronouslayout()
. - Remove test case for removed
View.prototype.cancelLayout
.
- inspector/view/basics-expected.txt:
- inspector/view/basics.html:
- Added test case to verify that
_dirtyDescendantsCount
is an expected value at various points of
attaching/detaching views.
- 9:00 AM Changeset in webkit [293726] by
-
- 2 edits in trunk/Source/WebCore
AudioMediaStreamTrackRendererUnit::updateRenderSourcesIfNecessary can free memory
https://bugs.webkit.org/show_bug.cgi?id=240002
Reviewed by Eric Carlson.
Manually tested.
- platform/mediastream/cocoa/AudioMediaStreamTrackRendererUnit.cpp:
Overwriting the source vector may lead to freeing AudioSampleDataSources.
This is ok as this happens rarely, add DisableMallocRestrictionsForCurrentThreadScope for that purpose.
- 8:45 AM Changeset in webkit [293725] by
-
- 6 edits2 adds in trunk
[CSS Cascade Layers] Endless recursion with revert-layer in other tree context
https://bugs.webkit.org/show_bug.cgi?id=239967
<rdar://92449950>
Reviewed by Alan Bujtas.
Source/WebCore:
We should only revert within a tree context (scope).
Adding more comprehensive WPTs separately.
Test: fast/css/revert-layer-tree-context-stack-overflow.html
- style/PropertyCascade.cpp:
(WebCore::Style::PropertyCascade::PropertyCascade):
Pass the property tree scope to the rollback cascade.
(WebCore::Style::PropertyCascade::addMatch):
Don't include properties from lower priority tree scopes to rollback cascade.
Reverse the logic for clarity.
- style/PropertyCascade.h:
(WebCore::Style::PropertyCascade::PropertyCascade):
- style/StyleBuilder.cpp:
(WebCore::Style::Builder::ensureRollbackCascadeForRevert):
(WebCore::Style::Builder::ensureRollbackCascadeForRevertLayer):
(WebCore::Style::Builder::makeRollbackCascadeKey):
Include tree scope to the key.
- style/StyleBuilder.h:
LayoutTests:
- fast/css/revert-layer-tree-context-stack-overflow-expected.html: Added.
- fast/css/revert-layer-tree-context-stack-overflow.html: Added.
- 7:31 AM Changeset in webkit [293724] by
-
- 3 edits in trunk/Source/WebInspectorUI
WebInspectorUI is missing a symlink to system content path
https://bugs.webkit.org/show_bug.cgi?id=239971
Reviewed by Alexey Proskuryakov.
Enabled script execution for install headers phase.
Added checks to run Copy User Interface Resources script only during the install phase.
- Configurations/WebInspectorUIFramework.xcconfig:
- WebInspectorUI.xcodeproj/project.pbxproj:
- 7:16 AM Changeset in webkit [293723] by
-
- 28 edits2 adds in trunk
IPC stream connection sends should fail immediately when connection closes
https://bugs.webkit.org/show_bug.cgi?id=238253
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2022-05-03
Reviewed by Simon Fraser.
Source/WebKit:
Send the StreamClientConnection client wait semaphore from
StreamServerConnection. This way the client will fail the wait
when the server crashes.
Test: ipc/stream-sync-crash-no-timeout.html
- GPUProcess/graphics/RemoteGraphicsContextGL.cpp:
(WebKit::RemoteGraphicsContextGL::workQueueInitialize):
- GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::startListeningForIPC):
- GPUProcess/graphics/WebGPU/RemoteGPU.cpp:
(WebKit::RemoteGPU::workQueueInitialize):
- Platform/IPC/StreamClientConnection.cpp:
(IPC::StreamClientConnection::setSemaphores):
(IPC::StreamClientConnection::wakeUpServer):
- Platform/IPC/StreamClientConnection.h:
(IPC::StreamClientConnection::tryAcquire):
(IPC::StreamClientConnection::tryAcquireAll):
- Platform/IPC/StreamConnectionBuffer.cpp:
(IPC::StreamConnectionBuffer::StreamConnectionBuffer):
(IPC::StreamConnectionBuffer::operator=):
(IPC::StreamConnectionBuffer::encode const):
(IPC::StreamConnectionBuffer::decode):
- Platform/IPC/StreamConnectionBuffer.h:
(IPC::StreamConnectionBuffer::dataSize const):
- Platform/IPC/StreamServerConnection.cpp:
(IPC::StreamServerConnection::release):
(IPC::StreamServerConnection::releaseAll):
- Platform/IPC/StreamServerConnection.h:
- Shared/IPCStreamTester.cpp:
(WebKit::IPCStreamTester::initialize):
(WebKit::IPCStreamTester::syncCrashOnZero):
- Shared/IPCStreamTester.h:
- Shared/IPCStreamTester.messages.in:
- Shared/IPCStreamTesterProxy.h:
- Shared/IPCStreamTesterProxy.messages.in:
- WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp:
(WebKit::RemoteGraphicsContextGLProxy::wasCreated):
- WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h:
- WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.messages.in:
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::streamConnection):
(WebKit::RemoteRenderingBackendProxy::didInitialize):
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.h:
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.messages.in:
- WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.cpp:
(WebKit::RemoteGPUProxy::wasCreated):
- WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.h:
- WebProcess/GPU/graphics/WebGPU/RemoteGPUProxy.messages.in:
- WebProcess/WebPage/IPCTestingAPI.cpp:
(WebKit::IPCTestingAPI::JSIPCStreamClientConnection::setSemaphores):
(WebKit::IPCTestingAPI::JSIPCStreamClientConnection::staticFunctions):
(WebKit::IPCTestingAPI::JSIPCStreamClientConnection::sendIPCStreamTesterSyncCrashOnZero):
LayoutTests:
The test works on minibrowser but GPUP startup code fails in run-webkit-tests,
thus disabled.
- TestExpectations:
- ipc/stream-sync-crash-no-timeout-expected.txt: Added.
- ipc/stream-sync-crash-no-timeout.html: Added.
- ipc/stream-sync-reply-shared-memory.html: Adjust after API change.
- 6:42 AM Changeset in webkit [293722] by
-
- 2 edits in trunk/JSTests
Skip test currently failing on ARM
https://bugs.webkit.org/show_bug.cgi?id=240005
Unreviewed gardening.
- stress/exception-in-to-property-key-should-be-handled-early.js:
- 1:17 AM Changeset in webkit [293721] by
-
- 9 edits in trunk/Source
Versioning.
WebKit-7614.1.13
- 1:07 AM Changeset in webkit [293720] by
-
- 1 copy in branches/safari-7614.1.12-branch
New branch.
- 1:06 AM Changeset in webkit [293719] by
-
- 6 edits in trunk
ServiceWorkerRegistration update should fail if called from an installing service worker context
https://bugs.webkit.org/show_bug.cgi?id=239962
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/service-workers/service-worker/update-not-allowed.https-expected.txt:
Source/WebCore:
Implement step 4 of https://w3c.github.io/ServiceWorker/#service-worker-registration-update.
Covered by rebased test.
- workers/service/ServiceWorkerRegistration.cpp:
(WebCore::ServiceWorkerRegistration::update):
LayoutTests:
- 12:47 AM Changeset in webkit [293718] by
-
- 3 edits in trunk/Source/WebGPU
[WebGPU] Device creation should not always fail if supported features are requested
https://bugs.webkit.org/show_bug.cgi?id=239955
Reviewed by Kimmo Kinnunen.
Somehow a block of code was remaining from before we implemented optional features.
Test: webgpu/api/validation/createTexture
- WebGPU/Adapter.mm:
(WebGPU::Adapter::requestDevice):
- WebGPU/Instance.mm:
(WebGPU::Instance::requestAdapter):
May 2, 2022:
- 11:11 PM Changeset in webkit [293717] by
-
- 5 edits in trunk
URL.createObjectURL should not be exposed in service worker contexts
https://bugs.webkit.org/show_bug.cgi?id=239972
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/service-workers/service-worker/interface-requirements-sw.https-expected.txt:
Source/WebCore:
Covered by rebased test.
- bindings/scripts/CodeGeneratorJS.pm:
Add support for DedicatedWorker and SharedWorker in binding generator for function scope expsure.
(GenerateRuntimeEnableConditionalStringForExposeScope):
- html/DOMURL.idl:
Update WebIDL as per spec.
- 10:26 PM Changeset in webkit [293716] by
-
- 2 edits2 adds in trunk/Source/WebKit
REGRESSION (r292351): Processes no longer get the right jetsam priority on iOS
https://bugs.webkit.org/show_bug.cgi?id=239992
<rdar://problem/92644672>
Reviewed by Chris Dumez.
- FeatureFlags/WebKit.plist: Added.
- WebKit.xcodeproj/project.pbxproj:
Temporarily reinstate
RB_full_manage_WK_jetsam
, since it is being
read by a different project.
- 10:19 PM Changeset in webkit [293715] by
-
- 2 edits in trunk/LayoutTests
[ Monterey wk1 GuardMalloc ] fast/borders/hidpi-3x-input-hairline-border.html is timing out
<rdar://problem/81996454>
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
Canonical link: https://commits.webkit.org/250204@main
- 10:07 PM Changeset in webkit [293714] by
-
- 23 edits1 add in trunk
[JSC] Introduce unlinked version of invalidation
https://bugs.webkit.org/show_bug.cgi?id=239887
Reviewed by Saam Barati.
This patch makes invalidation mechanism unlinked for unlinked DFG.
- We always use CheckTraps instead of InvalidationPoint with VMTraps so that we do not need
to repatch existing code.
- We introduce load-and-branch based InvalidationPoint for unlinked DFG so that we do not need
to repatch it to jump to OSR exit when watchpoint fires. We store this condition in DFG::JITData
so that code can quickly access to that.
- We make isStillValid conditions in DFG::CommonData always true for unlinked DFG code. Instead,
we check isJettisoned() condition of CodeBlock since it will become eventually per CodeBlock
information (while this CodeBlock gets invalidated, unlinked DFG code itself can be used for
the other CodeBlock).
After this change, now, jumpReplacements for unlinked DFG becomes empty. We no longer repatch these invalidation points.
- Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::jettison):
(JSC::CodeBlock::hasInstalledVMTrapsBreakpoints const):
(JSC::CodeBlock::canInstallVMTrapBreakpoints const):
(JSC::CodeBlock::installVMTrapBreakpoints):
(JSC::CodeBlock::hasInstalledVMTrapBreakpoints const): Deleted.
- Source/JavaScriptCore/bytecode/CodeBlock.h:
- Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
- Source/JavaScriptCore/dfg/DFGCommonData.cpp:
(JSC::DFG::CommonData::invalidate):
(JSC::DFG::CommonData::~CommonData):
(JSC::DFG::CommonData::installVMTrapBreakpoints):
(JSC::DFG::CommonData::isVMTrapBreakpoint):
- Source/JavaScriptCore/dfg/DFGCommonData.h:
(JSC::DFG::CommonData::CommonData):
(JSC::DFG::CommonData::hasInstalledVMTrapsBreakpoints const):
(JSC::DFG::CommonData::isStillValid const):
- Source/JavaScriptCore/dfg/DFGDoesGC.cpp:
(JSC::DFG::doesGC):
- Source/JavaScriptCore/dfg/DFGJITCode.cpp:
(JSC::DFG::JITCode::JITCode):
- Source/JavaScriptCore/dfg/DFGJITCode.h:
- Source/JavaScriptCore/dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::link):
- Source/JavaScriptCore/dfg/DFGOSREntry.cpp:
(JSC::DFG::prepareOSREntry):
(JSC::DFG::prepareCatchOSREntry):
- Source/JavaScriptCore/dfg/DFGPlan.cpp:
(JSC::DFG::Plan::finalize):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileInvalidationPoint):
(JSC::DFG::SpeculativeJIT::compileCheckTraps):
(JSC::DFG::SpeculativeJIT::emitInvalidationPoint): Deleted.
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
- Source/JavaScriptCore/ftl/FTLJITCode.cpp:
(JSC::FTL::JITCode::JITCode):
- Source/JavaScriptCore/ftl/FTLJITCode.h:
(JSC::FTL::JITCode::isUnlinked const):
- Source/JavaScriptCore/ftl/FTLOSREntry.cpp:
(JSC::FTL::prepareOSREntry):
- Source/JavaScriptCore/jit/JITCode.cpp:
(JSC::JITCode::isUnlinked const):
- Source/JavaScriptCore/jit/JITCode.h:
- Source/JavaScriptCore/runtime/VMTraps.cpp:
(JSC::VMTraps::tryInstallTrapBreakpoints):
(JSC::VMTraps::handleTraps):
Canonical link: https://commits.webkit.org/250203@main
- 9:38 PM Changeset in webkit [293713] by
-
- 2 edits in trunk/LayoutTests
[ iOS macOS wk2 ]compositing/video/video-bo rder-radius-clipping.html is a flakey image failure
https://bugs.webkit.org/show_bug.cgi?id=224690
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
Canonical link: https://commits.webkit.org/250202@main
- 9:15 PM Changeset in webkit [293712] by
-
- 2 edits in trunk/LayoutTests
[ iOS macOS wk2 ]compositing/video/video-bo rder-radius-clipping.html is a flakey image failure
https://bugs.webkit.org/show_bug.cgi?id=224690
Unreviewed test gardening.
- platform/ios-wk2/TestExpectations:
Canonical link: https://commits.webkit.org/250201@main
- 8:43 PM Changeset in webkit [293711] by
-
- 2 edits in trunk
Update yijia's info in constributors
https://bugs.webkit.org/show_bug.cgi?id=239994
Unreviewed.
- metadata/contributors.json:
- 8:02 PM Changeset in webkit [293710] by
-
- 15 edits in trunk/Source/JavaScriptCore
[JSC] Introduce shifting Structure encoding
https://bugs.webkit.org/show_bug.cgi?id=239957
Reviewed by Mark Lam.
For platforms which have limited amount of virtual address space (<= 36 bits), this patch introduces
shifting Structure encoding. We align Structure on a 32-bytes boundary instead of 16 bytes so that
we can ensure that lower 5 bits are zero. Then, we can use 1 bit for nuke, and shifting 4 bits to
convert 36 bit address to 32 bit StructureID. By using this mechanism, we do not need to allocate
large virtual address space for these platforms. If we an address can have more than 36 bits, then
we should just reserve a larger address region since we have enough address space. Current Structure
size is 112 bytes, which is 3.5 atoms at 32 bytes / atom. Hence, this alignment costs us 16 bytes per
Structure.
Relanding with debug build failure & crash on static atomSize assumption in IsoSubspace.
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- heap/Heap.cpp:
- heap/IsoSubspace.h:
(JSC::GCClient::IsoSubspace::allocatorFor):
- heap/IsoSubspaceInlines.h:
(JSC::GCClient::IsoSubspace::allocate):
- heap/StructureAlignedMemoryAllocator.cpp:
(JSC::StructureMemoryManager::StructureMemoryManager):
- jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitNonNullDecodeStructureID):
- llint/LLIntOfflineAsmConfig.h:
- llint/LowLevelInterpreter64.asm:
- runtime/JSCell.h:
- runtime/JSCellInlines.h:
(JSC::JSCell::JSCell):
- runtime/Structure.cpp:
(JSC::Structure::Structure):
- runtime/Structure.h:
- runtime/StructureID.h:
(JSC::StructureID::decode const):
(JSC::StructureID::tryDecode const):
(JSC::StructureID::encode):
- tools/IntegrityInlines.h:
(JSC::Integrity::auditStructureID):
- 7:08 PM Changeset in webkit [293709] by
-
- 1 edit in trunk/Tools/TestWebKitAPI/Tests/WTF/Ref.cpp
Add API tests for ref-counting churn in static_reference_cast<>()
https://bugs.webkit.org/show_bug.cgi?id=239987
Reviewed by Darin Adler.
Add API tests for ref-counting churn in static_reference_cast<>().
This covers the fix made in r293682.
- Tools/TestWebKitAPI/Tests/WTF/Ref.cpp:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/250198@main
- 6:55 PM Changeset in webkit [293708] by
-
- 8 edits in trunk
[JSC] Add ISO8601 based Temporal.PlainDate getters
https://bugs.webkit.org/show_bug.cgi?id=239949
Reviewed by Ross Kirsling and Dean Jackson.
This patch adds missing getters of Temporal.PlainDate. Currently, we are not querying to Calendar.
It will be wired once we bake Calendar completely.
- JSTests/stress/temporal-plaindate.js:
(print):
(shouldBe):
- Source/JavaScriptCore/runtime/ISO8601.cpp:
(JSC::ISO8601::dayOfWeek):
(JSC::ISO8601::dayOfYear):
(JSC::ISO8601::weekOfYear):
(JSC::ISO8601::daysInMonth):
(JSC::ISO8601::monthCode):
- Source/JavaScriptCore/runtime/ISO8601.h:
- Source/JavaScriptCore/runtime/TemporalPlainDate.cpp:
(JSC::TemporalPlainDate::from):
(JSC::TemporalPlainDate::monthCode const):
(JSC::TemporalPlainDate::dayOfWeek const):
(JSC::TemporalPlainDate::dayOfYear const):
(JSC::TemporalPlainDate::weekOfYear const):
- Source/JavaScriptCore/runtime/TemporalPlainDate.h:
- Source/JavaScriptCore/runtime/TemporalPlainDatePrototype.cpp:
(JSC::JSC_DEFINE_CUSTOM_GETTER):
Canonical link: https://commits.webkit.org/250197@main
- 6:32 PM Changeset in webkit [293707] by
-
- 2 edits in trunk/Source/WebKit
Crash in WebKit::ModelElementController::modelElementCreateRemotePreview
https://bugs.webkit.org/show_bug.cgi?id=239985
Reviewed by Dean Jackson.
Add a check before using m_modelElementController, as it's not guaranteed
to be initialized in the constructor, and can be invalidated in WebPageProxy::resetState.
Test: fast/html/model-element-controller-crash.html
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::modelElementGetCamera):
(WebKit::WebPageProxy::modelElementSetCamera):
(WebKit::WebPageProxy::modelElementIsPlayingAnimation):
(WebKit::WebPageProxy::modelElementSetAnimationIsPlaying):
(WebKit::WebPageProxy::modelElementIsLoopingAnimation):
(WebKit::WebPageProxy::modelElementSetIsLoopingAnimation):
(WebKit::WebPageProxy::modelElementAnimationDuration):
(WebKit::WebPageProxy::modelElementAnimationCurrentTime):
(WebKit::WebPageProxy::modelElementSetAnimationCurrentTime):
(WebKit::WebPageProxy::modelElementHasAudio):
(WebKit::WebPageProxy::modelElementIsMuted):
(WebKit::WebPageProxy::modelElementSetIsMuted):
(WebKit::WebPageProxy::takeModelElementFullscreen):
(WebKit::WebPageProxy::modelElementSetInteractionEnabled):
(WebKit::WebPageProxy::modelElementCreateRemotePreview):
(WebKit::WebPageProxy::modelElementLoadRemotePreview):
(WebKit::WebPageProxy::modelElementDestroyRemotePreview):
(WebKit::WebPageProxy::modelElementSizeDidChange):
(WebKit::WebPageProxy::handleMouseDownForModelElement):
(WebKit::WebPageProxy::handleMouseMoveForModelElement):
(WebKit::WebPageProxy::handleMouseUpForModelElement):
(WebKit::WebPageProxy::modelInlinePreviewUUIDs):
- 5:59 PM Changeset in webkit [293706] by
-
- 3 edits in trunk/Source/WebInspectorUI
WebInspector: Improve rendering of GLbitfield in WebGL canvas recordings.
https://bugs.webkit.org/show_bug.cgi?id=239589
Patch by Dan Glastonbury <djg@apple.com> on 2022-05-02
Reviewed by Devin Rousso.
- UserInterface/Models/RecordingAction.js:
(WI.RecordingAction.bitfieldNamesForParameter.test_and_clear_bit):
(WI.RecordingAction.bitfieldNamesForParameter): Split known
bitfields into an array of valid named representation for each
bit. Unknown bits are returned as hexadecimal formatted string.
- UserInterface/Views/RecordingActionTreeElement.js:
(WI.RecordingActionTreeElement._generateDOM.createParameterElement):
(WI.RecordingActionTreeElement._generateDOM): If param has a
non-null, array of strings, render the array as
context.FIELD1|context.FIELD2
Canonical link: https://commits.webkit.org/250195@main
- 5:55 PM Changeset in webkit [293705] by
-
- 1 copy in tags/WebKit-7613.2.7.0.7
Tag WebKit-7613.2.7.0.7.
- 5:53 PM Changeset in webkit [293704] by
-
- 1 copy in tags/WebKit-7613.2.7.1.8
Tag WebKit-7613.2.7.1.8.
- 5:37 PM Changeset in webkit [293703] by
-
- 22 edits in trunk
Drop some unused StringImpl / AtomStringImpl / AtomString API
https://bugs.webkit.org/show_bug.cgi?id=239912
Reviewed by Yusuke Suzuki.
Simplifies our API a bit and encourages people to write more efficient
code.
- Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp:
(TestWebKitAPI::TEST):
- Tools/TestWebKitAPI/Tests/WTF/StringOperators.cpp:
(TestWebKitAPI::TEST):
- Tools/TestWebKitAPI/Tests/WTF/StringView.cpp:
(TestWebKitAPI::TEST):
- Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm:
(TestWebKitAPI::TEST):
- Source/JavaScriptCore/API/JSValue.mm:
(createStructHandlerMap):
- Source/JavaScriptCore/runtime/CachedTypes.cpp:
(JSC::CachedUniquedStringImplBase::decode const):
- Source/JavaScriptCore/runtime/Identifier.cpp:
(JSC::Identifier::addLiteral): Deleted.
- Source/JavaScriptCore/runtime/Identifier.h:
(JSC::Identifier::Identifier):
(JSC::Identifier::add):
- Source/JavaScriptCore/runtime/ObjectPrototype.cpp:
(JSC::inferBuiltinTag):
(JSC::objectPrototypeToString):
- Source/JavaScriptCore/runtime/SmallStrings.cpp:
(JSC::SmallStrings::initializeCommonStrings):
(JSC::SmallStrings::initialize):
- Source/JavaScriptCore/runtime/SmallStrings.h:
- Source/WTF/wtf/text/AtomString.h:
(WTF::AtomString::AtomString):
- Source/WTF/wtf/text/AtomStringImpl.cpp:
(WTF::CStringTranslator::hash): Deleted.
(WTF::CStringTranslator::equal): Deleted.
(WTF::CStringTranslator::translate): Deleted.
- Source/WTF/wtf/text/AtomStringImpl.h:
- Source/WTF/wtf/text/StringImpl.cpp:
- Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::create):
(WTF::StringImpl::createFromCString):
(WTF::lengthOfNullTerminatedString): Deleted.
- Source/WTF/wtf/text/WTFString.cpp:
(WTF::String::String):
- Source/WTF/wtf/text/WTFString.h:
- Source/WebCore/rendering/mathml/RenderMathMLFenced.cpp:
(WebCore::RenderMathMLFenced::updateFromElement):
Canonical link: https://commits.webkit.org/250194@main
- 5:04 PM Changeset in webkit [293702] by
-
- 3 edits in trunk/LayoutTests
[ iOS ][ macOS ] css3/calc/transitions-dependent.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=239990
Unreviewed test gardening.
- LayoutTests/platform/ios-simulator/TestExpectations:
- LayoutTests/platform/mac/TestExpectations:
Canonical link: https://commits.webkit.org/250193@main
- 5:01 PM Changeset in webkit [293701] by
-
- 31 edits in trunk/Source
Move starAtom() / xmlAtom() / xmlnsAtom() from WTF to WebCore https://bugs.webkit.org/show_bug.cgi?id=239969
Reviewed by Darin Adler.
Move starAtom() / xmlAtom() / xmlnsAtom() from WTF to WebCore since
they are not useful outside WebCore.
- Source/WTF/wtf/text/AtomString.cpp:
(WTF::AtomString::init):
- Source/WTF/wtf/text/AtomString.h:
(WTF::emptyAtom):
(WTF::starAtom): Deleted.
(WTF::xmlAtom): Deleted.
(WTF::xmlnsAtom): Deleted.
- Source/WebCore/css/CSSPageRule.cpp:
- Source/WebCore/css/CSSSelector.cpp:
- Source/WebCore/css/CSSSelectorList.cpp:
- Source/WebCore/css/SelectorChecker.cpp:
- Source/WebCore/css/SelectorFilter.cpp:
- Source/WebCore/css/StyleSheetContents.cpp:
- Source/WebCore/css/parser/CSSSelectorParser.cpp:
- Source/WebCore/cssjit/SelectorCompiler.cpp:
- Source/WebCore/dom/Attr.cpp:
- Source/WebCore/dom/Attribute.h:
- Source/WebCore/dom/ContainerNode.cpp:
- Source/WebCore/dom/Node.cpp:
- Source/WebCore/dom/NodeRareData.h:
- Source/WebCore/dom/QualifiedName.cpp:
- Source/WebCore/dom/SelectorQuery.cpp:
- Source/WebCore/dom/TagCollection.h:
- Source/WebCore/editing/MarkupAccumulator.cpp:
- Source/WebCore/html/LabelableElement.cpp:
- Source/WebCore/html/LabelsNodeList.cpp:
- Source/WebCore/html/parser/HTMLTreeBuilder.cpp:
- Source/WebCore/platform/CommonAtomStrings.h:
- Source/WebCore/style/PageRuleCollector.cpp:
- Source/WebCore/style/RuleData.cpp:
- Source/WebCore/style/RuleFeature.h:
- Source/WebCore/style/RuleSet.cpp:
- Source/WebCore/xml/NativeXPathNSResolver.cpp:
- Source/WebCore/xml/XPathStep.cpp:
- Source/WebCore/xml/parser/XMLDocumentParser.cpp:
- Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp:
Canonical link: https://commits.webkit.org/250192@main
- 4:33 PM Changeset in webkit [293700] by
-
- 4 edits in trunk/Source/WebCore
[Quirks] REGRESSION (r286874): Menu is Cut Off After Pressing Search Icon on Hotels.com
https://bugs.webkit.org/show_bug.cgi?id=239980
<rdar://91992835>
Reviewed by Simon Fraser.
Disable resolution media query on www.hotels.com.
- css/MediaQueryEvaluator.cpp:
(WebCore::resolutionEvaluate):
- page/Quirks.cpp:
(WebCore::Quirks::shouldUseResolutionMedia const):
- page/Quirks.h:
- 4:25 PM Changeset in webkit [293699] by
-
- 3 edits in branches/safari-613-branch/Source/WebKit
Apply patch. rdar://problem/92617943
- 4:11 PM Changeset in webkit [293698] by
-
- 3 edits in branches/safari-613.2.7.1-branch/Source/WebKit
Apply patch. rdar://problem/92617943
- 4:04 PM Changeset in webkit [293697] by
-
- 3 edits in trunk/Source/WebKit
Revert all use of _setPrivacyProxyFailClosedForUnreachableNonMainHosts
https://bugs.webkit.org/show_bug.cgi?id=239977
<rdar://92617943>
Reviewed by John Wilander.
Due to what is likely confusion about internal integration processes,
the powers that be have decided that the best course of action for now
is to restore the status quo and accept any consequences that may entail.
- NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
- NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(WebKit::NetworkSessionCocoa::createWebSocketTask):
- 4:04 PM Changeset in webkit [293696] by
-
- 1 copy in tags/WebKit-7614.1.11.5
Tag WebKit-7614.1.11.5.
- 4:01 PM Changeset in webkit [293695] by
-
- 9 edits in branches/safari-613.2.7.1-branch/Source
Versioning.
WebKit-7613.2.7.1.8
- 4:01 PM Changeset in webkit [293694] by
-
- 9 edits in branches/safari-614.1.11-branch/Source
Versioning.
WebKit-7614.1.11.5
- 3:58 PM Changeset in webkit [293693] by
-
- 2 edits in trunk/Source/JavaScriptCore
[JSC] Fix ASan crash due to CString ownership
https://bugs.webkit.org/show_bug.cgi?id=239981
Reviewed by Darin Adler and Mark Lam.
We need to ensure that CString is kept alive.
- runtime/JSDateMath.cpp:
(JSC::DateCache::timeZoneDisplayName):
Canonical link: https://commits.webkit.org/250189@main
- 3:49 PM Changeset in webkit [293692] by
-
- 3 edits in branches/safari-613.2.7.0-branch/Source/WebKit
Apply patch. rdar://problem/92617943
- 3:48 PM Changeset in webkit [293691] by
-
- 8 edits in trunk/LayoutTests/imported/w3c
Update some wpt tests with control characters in cookies
https://bugs.webkit.org/show_bug.cgi?id=239966
<rdar://92300855>
Reviewed by Chris Dumez.
This reflects a change in https://github.com/httpwg/http-extensions/issues/1531
- web-platform-tests/cookies/name/name-ctl-expected.txt:
- web-platform-tests/cookies/name/name-ctl.html:
- web-platform-tests/cookies/resources/cookie-test.js:
- web-platform-tests/cookies/value/value-ctl-expected.txt:
- web-platform-tests/cookies/value/value-ctl.html:
- web-platform-tests/html/dom/documents/resource-metadata-management/document-cookie-expected.txt:
- web-platform-tests/html/dom/documents/resource-metadata-management/document-cookie.html:
- 3:46 PM Changeset in webkit [293690] by
-
- 9 edits in branches/safari-613.2.7.0-branch/Source
Versioning.
WebKit-7613.2.7.0.7
- 3:35 PM Changeset in webkit [293689] by
-
- 11 edits in trunk
[cssom] Don't index 'all' shorthand in computed styles
https://bugs.webkit.org/show_bug.cgi?id=239669
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Update test expectations.
- web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
Source/WebCore:
Computed styles should provide getters for both longhands and shorthands,
but only the former should be indexed.
However, the 'all' shorthand was being indexed as if it was a longhand.
Tests: imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html
imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree.html
- css/makeprop.pl:
(skippedFromComputedStyle):
LayoutTests:
Update test expectations.
- platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- 3:33 PM Changeset in webkit [293688] by
-
- 4 edits in trunk/Source
Add option to JSC shell to wait for a USR2 signal before exiting to aid in collection of vmmaps
https://bugs.webkit.org/show_bug.cgi?id=239919
Reviewed by Yusuke Suzuki.
Source/JavaScriptCore:
- jsc.cpp:
(main):
Source/WTF:
- wtf/threads/Signals.h:
(WTF::toSystemSignal):
- 3:22 PM Changeset in webkit [293687] by
-
- 1 copy in tags/WebKit-7614.1.11.4
Tag WebKit-7614.1.11.4.
- 3:19 PM Changeset in webkit [293686] by
-
- 9 edits in branches/safari-614.1.11-branch/Source
Versioning.
WebKit-7614.1.11.4
- 2:56 PM Changeset in webkit [293685] by
-
- 13 edits in trunk/Source/JavaScriptCore
Unreviewed, reverting r293680.
https://bugs.webkit.org/show_bug.cgi?id=239983
crash on iOS
Reverted changeset:
"[JSC] Introduce shifting Structure encoding"
https://bugs.webkit.org/show_bug.cgi?id=239957
https://commits.webkit.org/r293680
- 2:52 PM Changeset in webkit [293684] by
-
- 4 edits3 adds in trunk
[Modern Media Controls] REGRESSION(?) tapping a video to start playing for the first time doesn't start playing
https://bugs.webkit.org/show_bug.cgi?id=239918
<rdar://problem/91329117>
Reviewed by Jer Noble.
Source/WebCore:
This happens on iOS because the
<video>
has aGestureRecognizer
that will attempt to
play()
, and then thePlayPauseButton
(which also has aGestureRecognizer
) will attempt
totogglePlayback()
(viaPlaybackSupport
), which willpause()
because the<video>
is
notpaused
.
When a
<video>
isplay()
for the first time, it may not actually start playing for a
moment (e.g. buffering) even though it will say it'spaused
.
Test: media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-shows-start-button.html
- Modules/modern-media-controls/media/media-controller.js:
(MediaController.prototype.togglePlayback):
Also checkhasPlayed
to decide whether toplay()
orpause()
, as it's set when the first
"play"
event is handled, as until then we're still not playing yet and shouldplay()
.
This could also be fixed in
PlaybackSupport
(and/orStartSupport
), but doing it in
togglePlayback
is a more general solution that fixes all present (and future) callsites.
LayoutTests:
- media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-shows-start-button.html: Added.
- media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-shows-start-button-expected.txt: Added.
- 2:18 PM Changeset in webkit [293683] by
-
- 8 edits1 add in trunk/Source/WebKit
Use a strongly typed identifier for requests to mark surfaces as volatile
https://bugs.webkit.org/show_bug.cgi?id=239974
Reviewed by Simon Fraser.
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::markSurfacesVolatile):
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.h:
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in:
- Source/WebKit/Scripts/webkit/messages.py:
(types_that_cannot_be_forward_declared):
- Source/WebKit/Shared/MarkSurfacesAsVolatileRequestIdentifier.h: Added.
- Source/WebKit/WebKit.xcodeproj/project.pbxproj:
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::markSurfacesVolatile):
(WebKit::RemoteRenderingBackendProxy::didMarkLayersAsVolatile):
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.h:
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.messages.in:
Canonical link: https://commits.webkit.org/250183@main
- 1:31 PM Changeset in webkit [293682] by
-
- 1 edit in trunk/Source/WTF/wtf/Ref.h
static_reference_cast(const Ref<X, Y>&) causes unnecessary ref-counting churn
https://bugs.webkit.org/show_bug.cgi?id=239970
Reviewed by Geoffrey Garen.
This function was calling copyRef() to get a non-const Ref<> and then calling Ref::get() to construct a
new Ref<> of the destination type. The copyRef() would increase the ref count by 1, constructing the
new destination Ref<> would increase the ref count by 1 again and then the temporary Ref going out of
scope would decrease the ref count by one.
We now call static_reference_cast(Ref<X, Y>&&) with the result of the copyRef(), which will leak
the pointer from the Ref<> and adopt it in the destination Ref, thus avoiding unnecessary churn.
Also drop the static_reference_cast(Ref<X, Y>&) overload as it is no longer more efficient than the
static_reference_cast(const Ref<X, Y>&) one.
- Source/WTF/wtf/Ref.h:
(WTF::static_reference_cast):
Canonical link: https://commits.webkit.org/250182@main
- 1:29 PM Changeset in webkit [293681] by
-
- 10 edits1 add in trunk
[macOS] The "Markup Image" services menu item should be gated on image analysis results
https://bugs.webkit.org/show_bug.cgi?id=239933
rdar://92348202
Reviewed by Kate Cheney.
Source/WebKit:
Adjust some macOS-specific logic for appending the "Markup Image" menu item in the services menu, such that we
only add this new item in the case where the relevant image analysis APIs come back with a valid cropped image
result. See below for more details.
Test: ImageAnalysisTests.MarkupImageItemInServicesMenu
- UIProcess/WebContextMenuProxy.h:
(WebKit::WebContextMenuProxy::croppedImageResult const):
Move
m_croppedImageForContextMenu
intoWebContextMenuProxyMac
asm_croppedImageResult
, so that it can be
easily used for both the new "Copy Cropped Image" and "Markup Image" items. This also allows us to simplify some
logic for resetting this cached image result since the wholem_activeContextMenu
is always destroyed upon
presenting a context menu, so there's no need to separately clear outm_croppedImageResult
.
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::showContextMenu):
- UIProcess/WebPageProxy.h:
- UIProcess/mac/WebContextMenuProxyMac.h:
- UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::setupServicesMenu):
(WebKit::WebContextMenuProxyMac::appendMarkupItemToControlledImageMenuIfNeeded):
Pull this logic out into a separate helper method, and change it so that:
- We run the image analysis prior to creating and adding the item.
- Only add the item if the image analysis returned a non-null CGImageRef.
- Store the CGImageRef on
m_croppedImageResult
, for use if the menu item is invoked.
(WebKit::WebContextMenuProxyMac::applyMarkupToControlledImage):
(WebKit::WebContextMenuProxyMac::getContextMenuFromItems):
- UIProcess/mac/WebPageProxyMac.mm:
(WebKit::WebPageProxy::handleContextMenuCopyCroppedImage):
(WebKit::WebPageProxy::setCroppedImageForContextMenu): Deleted.
Tools:
Add an API test to simulate clicking on the services menu button in an attachment-backed image element while
swizzling the relevant image analysis APIs to return a valid CGImageRef; verify that the "Markup Image" menu
item eventually shows up.
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WebKitCocoa/ImageAnalysisTests.mm:
(TestWebKitAPI::createWebViewWithTextRecognitionEnhancements):
(TestWebKitAPI::iconImage):
Make this testing helper function work on both macOS and iOS.
(TestWebKitAPI::TEST):
(TestWebKitAPI::runMarkupTest):
- TestWebKitAPI/Tests/WebKitCocoa/image-controls.html: Added.
- 1:15 PM Changeset in webkit [293680] by
-
- 13 edits in trunk/Source/JavaScriptCore
[JSC] Introduce shifting Structure encoding
https://bugs.webkit.org/show_bug.cgi?id=239957
Reviewed by Mark Lam.
For platforms which have limited amount of virtual address space (<= 36 bits), this patch introduces
shifting Structure encoding. We align Structure on a 32-bytes boundary instead of 16 bytes so that
we can ensure that lower 5 bits are zero. Then, we can use 1 bit for nuke, and shifting 4 bits to
convert 36 bit address to 32 bit StructureID. By using this mechanism, we do not need to allocate
large virtual address space for these platforms. If we an address can have more than 36 bits, then
we should just reserve a larger address region since we have enough address space. Current Structure
size is 112 bytes, which is 3.5 atoms at 32 bytes / atom. Hence, this alignment costs us 16 bytes per
Structure.
- Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- Source/JavaScriptCore/heap/Heap.cpp:
- Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:
- Source/JavaScriptCore/jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitNonNullDecodeStructureID):
- Source/JavaScriptCore/llint/LLIntOfflineAsmConfig.h:
- Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:
- Source/JavaScriptCore/runtime/JSCConfig.h:
- Source/JavaScriptCore/runtime/JSCell.h:
(JSC::JSCell::atomSize):
- Source/JavaScriptCore/runtime/Structure.h:
(JSC::Structure::atomSize):
- Source/JavaScriptCore/runtime/StructureID.h:
(JSC::StructureID::decode const):
(JSC::StructureID::tryDecode const):
(JSC::StructureID::encode):
- Source/JavaScriptCore/tools/IntegrityInlines.h:
(JSC::Integrity::auditStructureID):
Canonical link: https://commits.webkit.org/250179@main
- 1:15 PM Changeset in webkit [293679] by
-
- 12 edits in trunk
Cancel response stream if load is being cancelled by the web page
https://bugs.webkit.org/show_bug.cgi?id=239968
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/service-workers/service-worker/fetch-event-respond-with-readable-stream.https-expected.txt:
Source/WebCore:
Add a cancel callback and use it to get the fetch client cancelling notification
to cancel the response body stream or response body load.
Covered by rebased test.
- Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::cancelStream):
- Modules/fetch/FetchResponse.h:
- bindings/js/ReadableStream.cpp:
(WebCore::ReadableStream::cancel):
- bindings/js/ReadableStream.h:
- workers/service/context/ServiceWorkerFetch.cpp:
(WebCore::ServiceWorkerFetch::processResponse):
- workers/service/context/ServiceWorkerFetch.h:
Source/WebKit:
Use the cancel callback to pipe the order to cancel the stream.
- WebProcess/Storage/WebServiceWorkerFetchTaskClient.cpp:
(WebKit::WebServiceWorkerFetchTaskClient::cancel):
(WebKit::WebServiceWorkerFetchTaskClient::setCancelledCallback):
- WebProcess/Storage/WebServiceWorkerFetchTaskClient.h:
- 1:06 PM Changeset in webkit [293678] by
-
- 1 copy in tags/WebKit-7614.1.11.3
Tag WebKit-7614.1.11.3.
- 12:56 PM Changeset in webkit [293677] by
-
- 9 edits in branches/safari-614.1.11-branch/Source
Versioning.
WebKit-7614.1.11.3
- 12:46 PM Changeset in webkit [293676] by
-
- 6 edits in trunk
PWA in iOS use old assets after publish new servicerWorker/assets
https://bugs.webkit.org/show_bug.cgi?id=199110
<rdar://problem/51992077>
Reviewed by Chris Dumez.
Source/WebCore:
In case a service worker is updated, its state will be waiting until activated.
In case we suspend clients and network process, the newly installed service worker wil remain waiting.
We will wait for the service worker to get activated when network process gets unsuspended, which might not happen if the network process gets stopped by the OS.
To prevent this, we now update the service worker registration as soon as the service worker install job is finished.
The migration from waiting to activated upon network process crash is not ideal: in theory we should fire an activate event on the waiting service worker.
That said, this is still somehow allowed, as failing to activate (say if service worker process is crashing when handling the event) is allowed.
Covered by new API test.
- workers/service/server/SWServer.cpp:
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/ServiceWorkerBasic.mm:
- TestWebKitAPI/cocoa/HTTPServer.h:
- TestWebKitAPI/cocoa/HTTPServer.mm:
- 12:44 PM Changeset in webkit [293675] by
-
- 2 edits in trunk/Source/WebGPU
Fix tvOS build
https://bugs.webkit.org/show_bug.cgi?id=239973
<rdar://problem/92599361>
- WebGPU/HardwareCapabilities.mm:
- 12:15 PM Changeset in webkit [293674] by
-
- 2 edits in trunk/Source/WebGPU
[WebGPU] [tvOS] Neither MTLGPUFamilyApple6 nor MTLGPUFamilyApple7 exist on tvOS
https://bugs.webkit.org/show_bug.cgi?id=239973
<rdar://problem/92599361>
Unreviewed build fix.
- WebGPU/HardwareCapabilities.mm:
(WebGPU::rawHardwareCapabilities):
- 12:12 PM Changeset in webkit [293673] by
-
- 5 edits in trunk
[selection] Set correct selection range for TEXTAREA when updating default value
https://bugs.webkit.org/show_bug.cgi?id=237525
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/html/semantics/forms/textfieldselection/selection-start-end-extra-expected.txt:
Source/WebCore:
Updating defaultValue should keep selectionStart/End. We need clamp them if the new value is shorter than the
selectionStart/End. This change is to be in line with [1] & [2].
[1] https://html.spec.whatwg.org/multipage/form-elements.html#the-textarea-element:dom-textarea-defaultvalue-2
[2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#textFieldSelection:concept-textarea/input-relevant-value
Part of this change is an import of Chromium CL at
https://github.com/chromium/chromium/commit/bb27a500d07f8b3c567e84857a40c3ce42fa454a
- html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::childrenChanged):
(WebCore::HTMLTextAreaElement::setValueCommon):
- html/HTMLTextFormControlElement.h:
- 12:01 PM Changeset in webkit [293672] by
-
- 3 edits2 adds in trunk
HTML Parser: Wrong column number in CR-LF line ending style (DOS EOL style) HTML files
https://bugs.webkit.org/show_bug.cgi?id=239947
Reviewed by Myles C. Maxfield.
Source/WebCore:
JS stack trace reported wrong column numbers in CR-LF line ending
HTML files. m_numberOfCharactersConsumedPriorToCurrentLine was the
number of characters included the preceding CR but the following
LF in those files.
In SegmentedString::advance, startNewLine() is called after
decrementing m_currentSubstring.length. In
SegmentedString::advancePastNewline, however, startNewLine() was
called before calling decrementAndCheckLength(). startNewLine()
should be called after decrementing.
Test: js/dom/line-column-numbers-cr-lf.html
- platform/text/SegmentedString.h:
(WebCore::SegmentedString::advancePastNewline):
Call startNewLine() after decrementAndCheckLength() is called.
LayoutTests:
- js/dom/line-column-numbers-cr-lf-expected.txt: Added.
- js/dom/line-column-numbers-cr-lf.html: Added.
- 11:35 AM Changeset in webkit [293671] by
-
- 4 edits1 add in trunk
[Cocoa] Allow more mime types in captive portal mode
https://bugs.webkit.org/show_bug.cgi?id=239859
rdar://91830683
Reviewed by Brent Fulgham.
Source/WTF:
- Scripts/Preferences/WebPreferences.yaml:
Tools:
- TestWebKitAPI/Tests/WebKit/cocoa/start-offset.ts: Added.
- TestWebKitAPI/Tests/WebKitCocoa/MediaLoading.mm:
(TestWebKitAPI::runVideoTest):
(TestWebKitAPI::testTransportStreamBytes):
(TestWebKitAPI::TEST):
- 11:05 AM Changeset in webkit [293670] by
-
- 13 edits1 delete in trunk
[cssom] Enumerate all logical longhands in the computed style
https://bugs.webkit.org/show_bug.cgi?id=239910
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Update test expectations.
- web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
- web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
Source/WebCore:
Bug 210695 made computed styles enumerate most logical longhands, but
only the ones thefined in the css-logical spec were included. Other
specs, like css-scroll-snap, can also define logical longhands.
This patch fixes the logic, and instead of checking the spec, it checks
the "logical-property-group" field.
Tests: imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html
imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer.html
imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree.html
- css/makeprop.pl:
(isLogical):
LayoutTests:
Update test expectations.
all-prop-initial-xml-expected.txt for ios was clearly outdated, so just
removing it.
- platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: Removed.
- platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
- platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
- platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
- 10:21 AM Changeset in webkit [293669] by
-
- 1 copy in tags/WebKit-7614.1.11.2
Tag WebKit-7614.1.11.2.
- 10:15 AM Changeset in webkit [293668] by
-
- 9 edits in branches/safari-614.1.11-branch/Source
Versioning.
WebKit-7614.1.11.2
- 9:57 AM Changeset in webkit [293667] by
-
- 4 edits in trunk/Tools
[git-webkit] log should support ranges
https://bugs.webkit.org/show_bug.cgi?id=239510
<rdar://problem/92031167>
Reviewed by Ryan Haddad.
- Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/init.py: Ditto.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/command.py:
(FilteredCommand.replace): Break logic converting a substring into a revision or hash into a function.
(FilteredCommand.main): If an argument can be split by ..., convert it's substrings into revisions/hashes.
Canonical link: https://commits.webkit.org/250171@main
- 9:52 AM Changeset in webkit [293666] by
-
- 2 edits in trunk/JSTests
new-largeish-contiguous-array-with-size.js: pick up leakFactor
https://bugs.webkit.org/show_bug.cgi?id=239963
Unreviewed gardening.
The @ directives are implemented imperatively, so requireOptions
only has any effect if it precedes the run* statement. Also,
s/var leakFactor/leakFactor/ to avoid running into this:
Exception: SyntaxError: Can't create duplicate variable: 'leakFactor'
With this fix, the leakFactor works as intended -- no failures in 200+
iterations.
- stress/new-largeish-contiguous-array-with-size.js:
- 9:29 AM Changeset in webkit [293665] by
-
- 7 edits in trunk
Register shared workers as service worker clients
https://bugs.webkit.org/show_bug.cgi?id=239846
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/service-workers/service-worker/claim-shared-worker-fetch.https-expected.txt:
Source/WebCore:
Make sure to register shared workers as service worker clients at launch time or when recreating the network process connection.
Covered by rebased test.
- workers/shared/context/SharedWorkerThread.cpp:
- workers/shared/context/SharedWorkerThreadProxy.cpp:
- workers/shared/context/SharedWorkerThreadProxy.h:
- 9:15 AM Changeset in webkit [293664] by
-
- 3 edits in trunk/Source/WebCore
VPIO requires the same sample rate for microphone and speaker formats
https://bugs.webkit.org/show_bug.cgi?id=239956
Reviewed by Eric Carlson.
VPIO requires the speaker sample rate and microphone sample rate to be the same.
This is not guaranteed to be true : getUserMedia/applyConstraints may set the microphone sample rate to different values.
If audio rendering already started at capture start time, we use the audio rendering sample rate.
This is not strictly compliant, given required constraints but they are not widely used.
Applications that want to make sure to use a specific sample rate would need to pause audio rendering when starting to capture.
We reset exposed settings when starting to capture to expose the actual sample rate to JavaScript through MediaStreamTrack.getSettings().
Manually tested.
- platform/mediastream/mac/BaseAudioSharedUnit.h:
- platform/mediastream/mac/CoreAudioCaptureSource.cpp:
- 8:55 AM Changeset in webkit [293663] by
-
- 8 edits in trunk
[iOS] Add support for the "Markup Image" action when right clicking an image in editable content
https://bugs.webkit.org/show_bug.cgi?id=239948
rdar://92064672
Reviewed by Tim Horton.
Source/WebKit:
Insert a "Markup Image" menu action when right clicking an editable image element on iPad via trackpad, but only
when the image has relevant image analysis markup results. See below for more details.
Test: ImageAnalysisTests.MarkupImageUsingContextMenu
- UIProcess/WebPageProxy.h:
- UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView prepareSelectionForContextMenuWithLocationInView:completionHandler:]):
In the case where a single image is selected in editable content, make this method additionally wait until we've
finished analyzing the selected image, such that the subsequent call to-buildMenuForWebViewWithBuilder:
which
populates items in the right click context menu will include the "Markup Image" item if there are relevant
results.
(-[WKContentView buildMenuForWebViewWithBuilder:]):
Also move the location of this item to before the Format (B/I/U) menu items in both the callout bar and the
editing context menu.
- UIProcess/ios/WebPageProxyIOS.mm:
(WebKit::WebPageProxy::prepareSelectionForContextMenuWithLocationInView):
- WebProcess/WebPage/WebPage.h:
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::prepareSelectionForContextMenuWithLocationInView):
In the case where an image element is clicked, just select the image element instead of trying to detect a
nearby word or link. We also immediately send a full editor state update here, such that the editor state's
selectedEditableImage
will be up to date when the completion handler in the UI process is invoked.
Tools:
Add an API test to verify that the "Markup Image" is included in the context menu when right clicking an image
element inside an editable web view.
- TestWebKitAPI/Tests/WebKitCocoa/ImageAnalysisTests.mm:
(TestWebKitAPI::simulateEditContextMenuAppearance):
(TestWebKitAPI::TEST):
- 8:08 AM Changeset in webkit [293662] by
-
- 3 edits in trunk/LayoutTests
REGRESSION: fast/css/stylesheet-candidate-nodes-crash.xhtml is a constant text failure
https://bugs.webkit.org/show_bug.cgi?id=239960
rdar://92293472
Reviewed by Alan Bujtas.
XML parser update has changed error reporting output slightly.
Remove the error report from the test output since testing that is not the purpose of this test.
- fast/css/stylesheet-candidate-nodes-crash-expected.txt:
- fast/css/stylesheet-candidate-nodes-crash.xhtml:
- 3:56 AM Changeset in webkit [293661] by
-
- 2 edits in trunk/Source/WebCore
[GStreamer][Debug] media-recorder tests hitting an ASSERT
https://bugs.webkit.org/show_bug.cgi?id=239942
Patch by Philippe Normand <pnormand@igalia.com> on 2022-05-02
Reviewed by Xabier Rodriguez-Calvar.
Delay the track observing stopping until InternalSources are destroyed. Doing so during
PAUSED->READY was not safe in MediaRecording pipelines, because the transcoder changes its
state from a secondary thread.
- platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:
(webkitMediaStreamSrcChangeState):
Canonical link: https://commits.webkit.org/250165@main
- 2:31 AM Changeset in webkit [293660] by
-
- 4 edits in trunk
[GLib] Make WebKitSettings XSS auditor functions no-op
https://bugs.webkit.org/show_bug.cgi?id=239651
Patch by Michael Catanzaro <Michael Catanzaro> on 2022-05-02
Reviewed by Adrian Perez de Castro.
- Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
(testWebKitSettings):
- Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp:
(webKitSettingsSetProperty):
(webKitSettingsGetProperty):
Canonical link: https://commits.webkit.org/250164@main
May 1, 2022:
- 10:46 PM Changeset in webkit [293659] by
-
- 15 edits in trunk/Source
REGRESSION(r282117): RemoteRenderingBackend::willDestroyImageBuffer() can crash if the RemoteRenderingBackend has already been destroyed
https://bugs.webkit.org/show_bug.cgi?id=239107
rdar://91608298
Reviewed by Darin Adler.
Source/WebCore:
-- IOSurfacePool will be RefCounted.
-- ImageBufferIOSurfaceBackend::create() will pass the surfacePool
of the CreationContext to ImageBufferIOSurfaceBackend constructor.
-- ImageBufferIOSurfaceBackend will hold a RefPtr<IOSurfacePool>.
-- ImageBufferIOSurfaceBackend destructor will call IOSurface::moveToPool()
to return its surface to the IOSurfacePool if it was set.
- platform/graphics/ConcreteImageBuffer.h:
- platform/graphics/ImageBuffer.h:
- platform/graphics/ImageBufferBackend.h:
(WebCore::ImageBufferBackend::releaseGraphicsContext):
(WebCore::ImageBufferBackend::releaseBufferToPool): Deleted.
- platform/graphics/cg/IOSurfacePool.cpp:
(WebCore::IOSurfacePool::create):
- platform/graphics/cg/IOSurfacePool.h:
- platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp:
(WebCore::ImageBufferIOSurfaceBackend::create):
(WebCore::ImageBufferIOSurfaceBackend::ImageBufferIOSurfaceBackend):
(WebCore::ImageBufferIOSurfaceBackend::~ImageBufferIOSurfaceBackend):
(WebCore::ImageBufferIOSurfaceBackend::releaseBufferToPool): Deleted.
- platform/graphics/cg/ImageBufferIOSurfaceBackend.h:
Source/WebKit:
After r282117, the assumption that RemoteRenderingBackend will outlive
all its RemoteImageBuffers became wrong. The RemoteRenderingBackend can
get destroyed under GPUConnectionToWebProcess::didClose() before the
callOnMainThread() of the ThreadSafeRefcounted image buffers have run.
This solution is to make the ImageBufferIOSurfaceBackend be responsible
of returning its IOSurface to the IOSurfacePool. So no need to call
willDestroyImageBuffer() from the RemoteImageBuffer destructor.
- GPUProcess/graphics/RemoteGraphicsContextGL.h:
- GPUProcess/graphics/RemoteImageBuffer.h:
(WebKit::RemoteImageBuffer::RemoteImageBuffer):
(WebKit::RemoteImageBuffer::m_renderingResourcesRequest):
(WebKit::RemoteImageBuffer::~RemoteImageBuffer):
- GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::willDestroyImageBuffer): Deleted.
- GPUProcess/graphics/RemoteRenderingBackend.h:
(WebKit::RemoteRenderingBackend::ioSurfacePool const):
- Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
(WebKit::RemoteLayerBackingStore::Buffer::discard):
- WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp:
(WebKit::ImageBufferShareableMappedIOSurfaceBackend::create):
- 6:48 PM Changeset in webkit [293658] by
-
- 4 edits in trunk/Source/WebCore
[Modern Media Controls] the overflow button sometimes flickers
https://bugs.webkit.org/show_bug.cgi?id=239921
<rdar://problem/91329468>
Reviewed by Eric Carlson.
There are two things that control the visibility of the
OverflowButton
:
- whether any of the "default" actions (e.g. playback speed, chapters, etc.) are possible
- if any other buttons that have
contextMenuOptions
are dropped (i.e. there's not enough
room for it because the
<video>
is narrow or there are already too many buttons)
(1) is recalculated for most JS media events (e.g. whenever tracks are changed, if
thereadyState
changes, etc.).
(2) is recalculated in
layout
ofMediaControls
, which is (relatively) less frequent.
In the case that the only contextmenu options are provided by (2) (i.e. none of the "default"
actions are possible), the frequent recalculation of (1) will combined with the fact that
layout
uses arequestAnimationFrame
to delay/batch work will cause there to be a short
period of time after the recalculation of (1) and before the recalculation of (2) where
there are no contextmenu options, resulting in theOverflowButton
being hidden.
- Modules/modern-media-controls/controls/overflow-button.js:
(OverflowButton):
(OverflowButton.prototype.set visible):
(OverflowButton.prototype.set visible.isEmpty): Added.
(OverflowButton.prototype.get contextMenuOptions):
(OverflowButton.prototype.addExtraContextMenuOptions): Renamed fromaddContextMenuOptions
.
(OverflowButton.prototype.clearExtraContextMenuOptions): Renamed fromclearContextMenuOptions
.
(OverflowButton.prototype.set defaultContextMenuOptions):
- Modules/modern-media-controls/controls/inline-media-controls.js:
(InlineMediaControls.prototype.layout):
- Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js:
(MacOSFullscreenMediaControls.prototype.layout):
Instead of having a single_contextMenuOptions
that is modified by both (1) and (2), have
a separate member variable for each. This way, the recalculation of (1) doesn't also clear
the state left over from the last time (2) was calculated (which will be recalculated by (2)
shortly thereafter). Use both member variables to decide whether theOverflowButton
should
bevisible
, allowing (1) and (2) to update independent of eachother.
- 6:17 PM Changeset in webkit [293657] by
-
- 5 edits in trunk/Source/JavaScriptCore
[JSC] Revive JSC's guard against speculation collection
https://bugs.webkit.org/show_bug.cgi?id=239939
Reviewed by Mark Lam.
r288815 dropped JSC's guard against structures in speculation collection, but this is wrong.
This patch reverts it back.
- Source/JavaScriptCore/bytecode/SpeculatedType.cpp:
(JSC::speculationFromCell):
- Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:
(JSC::StructureMemoryManager::StructureMemoryManager):
(JSC::StructureMemoryManager::tryMallocStructureBlock):
(JSC::StructureMemoryManager::freeStructureBlock):
(JSC::StructureAlignedMemoryAllocator::initializeStructureAddressSpace):
- Source/JavaScriptCore/runtime/JSCConfig.h:
- Source/JavaScriptCore/runtime/StructureID.h:
(JSC::StructureID::tryDecode const):
Canonical link: https://commits.webkit.org/250161@main
- 5:17 PM Changeset in webkit [293656] by
-
- 178 edits in trunk/Source
Prepare the rest of WebCore for making the AtomString(const String&) constructor explicit
https://bugs.webkit.org/show_bug.cgi?id=239917
Reviewed by Darin Adler.
Prepare the rest of WebCore for making the AtomString(const String&) constructor explicit.
This helps find suboptimal patterns in our code base, where we may be doing unnecessary
String allocations.
- Source/WebCore/PAL/pal/FileSizeFormatter.cpp:
(PAL::fileSizeDescription):
- Source/WebCore/PAL/pal/FileSizeFormatter.h:
- Source/WebCore/PAL/pal/cocoa/FileSizeFormatterCocoa.mm:
(PAL::fileSizeDescription):
- Source/WebCore/Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl:
- Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.idl:
- Source/WebCore/Modules/encryptedmedia/MediaKeySession.idl:
- Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.idl:
- Source/WebCore/Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.idl:
- Source/WebCore/Modules/mediarecorder/MediaRecorderErrorEvent.idl:
- Source/WebCore/Modules/mediastream/MediaStreamTrackEvent.idl:
- Source/WebCore/Modules/mediastream/OverconstrainedErrorEvent.idl:
- Source/WebCore/Modules/mediastream/RTCErrorEvent.idl:
- Source/WebCore/Modules/mediastream/RTCPeerConnectionIceErrorEvent.idl:
- Source/WebCore/Modules/mediastream/RTCPeerConnectionIceEvent.idl:
- Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformErrorEvent.idl:
- Source/WebCore/Modules/mediastream/RTCTrackEvent.idl:
- Source/WebCore/Modules/mediastream/RTCTransformEvent.idl:
- Source/WebCore/Modules/notifications/NotificationEvent.idl:
- Source/WebCore/Modules/paymentrequest/MerchantValidationEvent.idl:
- Source/WebCore/Modules/paymentrequest/PaymentMethodChangeEvent.idl:
- Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.idl:
- Source/WebCore/Modules/speech/SpeechRecognitionErrorEvent.idl:
- Source/WebCore/Modules/speech/SpeechRecognitionEvent.idl:
- Source/WebCore/Modules/speech/SpeechSynthesisEvent.idl:
- Source/WebCore/Modules/webxr/XRInputSourceEvent.idl:
- Source/WebCore/Modules/webxr/XRInputSourcesChangeEvent.idl:
- Source/WebCore/Modules/webxr/XRReferenceSpaceEvent.idl:
- Source/WebCore/Modules/webxr/XRSessionEvent.idl:
- Source/WebCore/bindings/IDLTypes.h:
(WebCore::IDLString::isNullValue):
- Source/WebCore/bindings/js/JSDOMConvertStrings.h:
(WebCore::propertyNameToString):
(WebCore::Converter<IDLLegacyNullToEmptyAtomStringAdaptor<T>>::convert):
(WebCore::JSConverter<IDLLegacyNullToEmptyAtomStringAdaptor<T>>::convert):
(WebCore::JSConverter<IDLAtomStringAdaptor<T>>::convert):
(WebCore::JSConverter<IDLAtomStringAdaptor<IDLUSVString>>::convert):
- Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(GenerateAttributeGetterBodyDefinition):
(GetAnnotatedIDLType):
- Source/WebCore/bindings/scripts/test/TestPromiseRejectionEvent.idl:
- Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
(WebCore::CSSComputedStyleDeclaration::getPropertyValue):
- Source/WebCore/css/CSSProperties.json:
- Source/WebCore/css/DOMCSSCustomPropertyDescriptor.h:
- Source/WebCore/css/DOMCSSCustomPropertyDescriptor.idl:
- Source/WebCore/css/MediaQueryExpression.cpp:
(WebCore::consumeFirstValue):
- Source/WebCore/css/MediaQueryListEvent.idl:
- Source/WebCore/css/StyleProperties.cpp:
(WebCore::MutableStyleProperties::setCustomProperty):
- Source/WebCore/css/parser/CSSParser.cpp:
(WebCore::CSSParser::parseValueWithVariableReferences):
- Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseTypedCustomPropertyValue):
- Source/WebCore/css/parser/CSSPropertyParser.h:
- Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeFamilyNameRaw):
- Source/WebCore/dom/DOMImplementation.cpp:
(WebCore::DOMImplementation::createDocumentType):
(WebCore::DOMImplementation::createDocument):
- Source/WebCore/dom/DOMImplementation.h:
- Source/WebCore/dom/DOMImplementation.idl:
- Source/WebCore/dom/Document+HTMLObsolete.idl:
- Source/WebCore/dom/Document.cpp:
(WebCore::Document::createElementNS):
(WebCore::Document::formElementsState const):
(WebCore::Document::setStateForNewFormElements):
(WebCore::Document::parseQualifiedName):
(WebCore::Document::createAttributeNS):
(WebCore::Document::getCachedLocale):
(WebCore::Document::setBgColor):
(WebCore::Document::setFgColor):
(WebCore::Document::setAlinkColor):
(WebCore::Document::setLinkColorForBindings):
(WebCore::Document::setVlinkColor):
- Source/WebCore/dom/Document.h:
- Source/WebCore/dom/Document.idl:
- Source/WebCore/dom/Element.cpp:
(WebCore::Element::toggleAttribute):
(WebCore::Element::didAddAttribute):
(WebCore::Element::didModifyAttribute):
(WebCore::Element::didRemoveAttribute):
- Source/WebCore/dom/KeyboardEvent.idl:
- Source/WebCore/dom/MutationObserver.h:
- Source/WebCore/dom/MutationObserver.idl:
- Source/WebCore/dom/QualifiedName.h:
(WebCore::QualifiedName::toAtomString const):
- Source/WebCore/dom/ScriptElement.cpp:
(WebCore::ScriptElement::requestModuleScript):
- Source/WebCore/editing/ApplyStyleCommand.cpp:
(WebCore::joinWithSpace):
- Source/WebCore/editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::inputEventTypeName const):
- Source/WebCore/editing/CompositeEditCommand.h:
- Source/WebCore/editing/CreateLinkCommand.cpp:
(WebCore::CreateLinkCommand::doApply):
- Source/WebCore/editing/EditCommand.cpp:
(WebCore::inputTypeNameForEditingAction):
- Source/WebCore/editing/EditCommand.h:
- Source/WebCore/editing/EditingStyle.cpp:
(WebCore::StyleChange::extractTextStyles):
- Source/WebCore/editing/EditingStyle.h:
(WebCore::StyleChange::fontColor):
(WebCore::StyleChange::fontFace):
(WebCore::StyleChange::fontSize):
- Source/WebCore/editing/Editor.cpp:
(WebCore::Editor::applyStyle):
(WebCore::Editor::applyParagraphStyle):
(WebCore::Editor::insertAttachment):
(WebCore::Editor::styleForSelectionStart):
- Source/WebCore/editing/Editor.h:
- Source/WebCore/editing/EditorCommand.cpp:
(WebCore::executeFormatBlock):
(WebCore::executeInsertHorizontalRule):
(WebCore::executeInsertImage):
- Source/WebCore/editing/MarkupAccumulator.cpp:
(WebCore::shouldAddNamespaceElement):
(WebCore::MarkupAccumulator::generateUniquePrefix):
- Source/WebCore/editing/TextManipulationController.cpp:
(WebCore::TextManipulationController::replace):
- Source/WebCore/editing/TypingCommand.cpp:
(WebCore::TypingCommand::inputEventTypeName const):
- Source/WebCore/editing/TypingCommand.h:
- Source/WebCore/editing/WebContentReader.h:
- Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::createFragmentForImageAttachment):
(WebCore::replaceRichContentWithAttachments):
(WebCore::createFragmentAndAddResources):
(WebCore::sanitizeMarkupWithArchive):
(WebCore::attachmentForFilePath):
(WebCore::attachmentForData):
(WebCore::WebContentReader::readURL):
(WebCore::WebContentReader::readDataBuffer):
- Source/WebCore/editing/markup.cpp:
(WebCore::AttributeChange::AttributeChange):
(WebCore::completeURLs):
(WebCore::replaceSubresourceURLs):
(WebCore::StyledMarkupAccumulator::appendCustomAttributes):
(WebCore::createFragmentForImageAndURL):
- Source/WebCore/history/HistoryItem.cpp:
(WebCore::HistoryItem::setDocumentState):
(WebCore::HistoryItem::documentState const):
- Source/WebCore/history/HistoryItem.h:
- Source/WebCore/html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::createTDForFilename):
- Source/WebCore/html/FileInputType.cpp:
(WebCore::FileInputType::saveFormControlState const):
- Source/WebCore/html/FormController.cpp:
(WebCore::StringVectorReader::consumeString):
(WebCore::StringVectorReader::consumeSubvector):
(WebCore::appendSerializedFormControlState):
(WebCore::FormController::formElementsState const):
(WebCore::FormController::setStateForNewFormElements):
(WebCore::FormController::parseStateVector):
(WebCore::FormController::referencedFilePaths):
- Source/WebCore/html/FormController.h:
- Source/WebCore/html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::handleClick):
- Source/WebCore/html/HTMLAreaElement.idl:
- Source/WebCore/html/HTMLAttachmentElement.cpp:
(WebCore::HTMLAttachmentElement::setFile):
(WebCore::HTMLAttachmentElement::updateAttributes):
(WebCore::HTMLAttachmentElement::updateEnclosingImageWithData):
- Source/WebCore/html/HTMLAttachmentElement.h:
- Source/WebCore/html/HTMLBaseElement.idl:
- Source/WebCore/html/HTMLButtonElement.idl:
- Source/WebCore/html/HTMLCollection.cpp:
(WebCore::HTMLCollection::isSupportedPropertyName):
- Source/WebCore/html/HTMLCollection.h:
- Source/WebCore/html/HTMLFormControlElementWithState.h:
- Source/WebCore/html/HTMLFormControlsCollection.cpp:
(WebCore::HTMLFormControlsCollection::namedItemOrItems const):
- Source/WebCore/html/HTMLFormControlsCollection.h:
- Source/WebCore/html/HTMLFormElement.idl:
- Source/WebCore/html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::openURL):
- Source/WebCore/html/HTMLIFrameElement.cpp:
(WebCore::HTMLIFrameElement::shouldLoadFrameLazily):
- Source/WebCore/html/HTMLIFrameElement.idl:
- Source/WebCore/html/HTMLImageElement.idl:
- Source/WebCore/html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::updateType):
- Source/WebCore/html/HTMLInputElement.idl:
- Source/WebCore/html/HTMLMapElement.cpp:
(WebCore::HTMLMapElement::parseAttribute):
- Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::setPreload):
- Source/WebCore/html/HTMLMediaElement.h:
- Source/WebCore/html/HTMLMediaElement.idl:
- Source/WebCore/html/HTMLOrForeignElement.idl:
- Source/WebCore/html/HTMLSelectElement.idl:
- Source/WebCore/html/HTMLTextAreaElement.cpp:
(WebCore::HTMLTextAreaElement::saveFormControlState const):
- Source/WebCore/html/HTMLTextAreaElement.idl:
- Source/WebCore/html/HTMLVideoElement.cpp:
(WebCore::HTMLVideoElement::HTMLVideoElement):
- Source/WebCore/html/HiddenInputType.cpp:
(WebCore::HiddenInputType::saveFormControlState const):
(WebCore::HiddenInputType::restoreFormControlState):
(WebCore::HiddenInputType::setValue):
- Source/WebCore/html/ImageDocument.cpp:
(WebCore::ImageDocument::createDocumentStructure):
- Source/WebCore/html/InputType.cpp:
(WebCore::InputType::saveFormControlState const):
- Source/WebCore/html/MediaDocument.cpp:
(WebCore::MediaDocumentParser::createDocumentStructure):
(WebCore::MediaDocument::replaceMediaElementTimerFired):
- Source/WebCore/html/ModelDocument.cpp:
(WebCore::ModelDocumentParser::createDocumentStructure):
- Source/WebCore/html/PluginDocument.cpp:
(WebCore::PluginDocumentParser::createDocumentStructure):
- Source/WebCore/html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::createAutoFillButton):
(WebCore::TextFieldInputType::updateAutoFillButton):
- Source/WebCore/html/canvas/WebGLContextEvent.idl:
- Source/WebCore/html/parser/HTMLMetaCharsetParser.cpp:
(WebCore::HTMLMetaCharsetParser::processMeta):
(WebCore::HTMLMetaCharsetParser::encodingFromMetaAttributes):
- Source/WebCore/html/parser/HTMLMetaCharsetParser.h:
- Source/WebCore/html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::processAttributes):
(WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):
- Source/WebCore/html/parser/HTMLTreeBuilder.cpp:
(WebCore::createForeignAttributesMap):
- Source/WebCore/html/shadow/TextControlInnerElements.cpp:
(WebCore::SearchFieldCancelButtonElement::create):
- Source/WebCore/html/track/AudioTrack.cpp:
(WebCore::AudioTrack::updateKindFromPrivate):
- Source/WebCore/html/track/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::LoadableTextTrack):
(WebCore::LoadableTextTrack::create):
- Source/WebCore/html/track/LoadableTextTrack.h:
- Source/WebCore/html/track/TextTrackCue.cpp:
(WebCore::TextTrackCue::setId):
- Source/WebCore/html/track/TextTrackCue.h:
(WebCore::TextTrackCue::id const):
- Source/WebCore/html/track/TextTrackCue.idl:
- Source/WebCore/html/track/TrackEvent.idl:
- Source/WebCore/html/track/VideoTrack.cpp:
(WebCore::VideoTrack::updateKindFromPrivate):
- Source/WebCore/html/track/WebVTTParser.cpp:
(WebCore::WebVTTParser::collectWebVTTBlock):
(WebCore::WebVTTParser::collectCueId):
(WebCore::WebVTTParser::resetCueValues):
- Source/WebCore/html/track/WebVTTParser.h:
- Source/WebCore/inspector/DOMEditor.cpp:
(WebCore::DOMEditor::setAttribute):
(WebCore::DOMEditor::removeAttribute):
- Source/WebCore/inspector/DOMEditor.h:
- Source/WebCore/inspector/InspectorAuditAccessibilityObject.cpp:
(WebCore::InspectorAuditAccessibilityObject::getComputedProperties):
- Source/WebCore/inspector/InspectorOverlay.cpp:
(WebCore::InspectorOverlay::drawRulers):
- Source/WebCore/inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheetForInlineStyle::setStyleText):
- Source/WebCore/inspector/agents/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::setAttributeValue):
(WebCore::InspectorDOMAgent::setAttributesAsText):
(WebCore::InspectorDOMAgent::removeAttribute):
(WebCore::InspectorDOMAgent::setNodeName):
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
- Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::interceptWithResponse):
(WebCore::InspectorNetworkAgent::interceptRequestWithResponse):
- Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::load):
(WebCore::FrameLoader::loadPostRequest):
- Source/WebCore/loader/HistoryController.cpp:
(WebCore::FrameLoader::HistoryController::recursiveSetProvisionalItem):
- Source/WebCore/loader/PolicyChecker.cpp:
(WebCore::FrameLoader::PolicyChecker::checkNewWindowPolicy):
- Source/WebCore/loader/PolicyChecker.h:
- Source/WebCore/page/PageSerializer.cpp:
(WebCore::isCharsetSpecifyingNode):
- Source/WebCore/platform/Pasteboard.h:
(WebCore::PasteboardWebContentReader::readDataBuffer):
- Source/WebCore/platform/graphics/InbandGenericCue.h:
(WebCore::GenericCueData::GenericCueData):
(WebCore::GenericCueData::decode):
(WebCore::InbandGenericCue::id const):
(WebCore::InbandGenericCue::setId):
- Source/WebCore/platform/graphics/avfoundation/objc/InbandChapterTrackPrivateAVFObjC.mm:
(WebCore::InbandChapterTrackPrivateAVFObjC::processChapters):
- Source/WebCore/platform/graphics/iso/ISOVTTCue.cpp:
(WebCore::ISOWebVTTCue::ISOWebVTTCue):
(WebCore::ISOWebVTTCue::parse):
- Source/WebCore/platform/graphics/iso/ISOVTTCue.h:
- Source/WebCore/platform/ios/PasteboardIOS.mm:
(WebCore::Pasteboard::read):
- Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.cpp:
(WebCore::RealtimeVideoCaptureSource::RealtimeVideoCaptureSource):
- Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.h:
- Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:
(WebCore::AVVideoCaptureSource::AVVideoCaptureSource):
- Source/WebCore/platform/mediastream/mac/MockRealtimeVideoSourceMac.h:
- Source/WebCore/platform/mediastream/mac/MockRealtimeVideoSourceMac.mm:
(WebCore::MockRealtimeVideoSource::create):
(WebCore::MockRealtimeVideoSourceMac::createForMockDisplayCapturer):
(WebCore::MockRealtimeVideoSourceMac::MockRealtimeVideoSourceMac):
- Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp:
(WebCore::MockDisplayCapturer::MockDisplayCapturer):
- Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:
(WebCore::MockRealtimeVideoSource::create):
(WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource):
- Source/WebCore/platform/mock/MockRealtimeVideoSource.h:
- Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertStringOrAutoAtom):
(WebCore::Style::BuilderConverter::convertStringOrNoneAtom):
- Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyValueContent):
- Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::shadowPseudoId):
(WebCore::Internals::setShadowPseudoId):
(WebCore::Internals::formControlStateOfPreviousHistoryItem):
(WebCore::Internals::setFormControlStateOfPreviousHistoryItem):
(WebCore::Internals::openDummyInspectorFrontend):
(WebCore::Internals::highlightPseudoElementColor):
- Source/WebCore/testing/Internals.h:
- Source/WebCore/testing/Internals.idl:
- Source/WebCore/testing/MockCDMFactory.cpp:
(WebCore::MockCDMFactory::setSupportedRobustness): Deleted.
- Source/WebCore/testing/MockCDMFactory.h:
(WebCore::MockCDMFactory::setSupportedRobustness):
- Source/WebCore/testing/MockCDMFactory.idl:
Canonical link: https://commits.webkit.org/250160@main
- 1:16 PM Changeset in webkit [293655] by
-
- 3 edits in trunk/LayoutTests
[GLIB] Update test expectations. Unreviewed test gardening.
https://bugs.webkit.org/show_bug.cgi?id=239945
Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2022-05-01
- platform/glib/TestExpectations:
- platform/gtk/TestExpectations:
- 8:08 AM Changeset in webkit [293654] by
-
- 2 edits in trunk/Source/JavaScriptCore
[RISCV64] Implement MacroAssembler::probe(), ctiMasmProbeTrampoline
https://bugs.webkit.org/show_bug.cgi?id=239938
Reviewed by Yusuke Suzuki.
Implement MacroAssembler::probe() for RISCV64, along with the
ctiMasmProbeTrampoline operation. The implementation follows the process
of implementations for other platforms, with incoming, outgoing and
return-address-restoration records used to store register values during
setup and breakdown of the probe.
Going into the probe and back out of it, the general-purpose and
floating-point registers are stored, with the exception of global and
thread registers (x3 and x4). After the probe, if the probe state on the
stack is broken, the complete state is re-established before the
registers are reloaded, with the stack pointer and return address
registers set up last.
Covered by probing-related unit tests in testmasm.
- assembler/MacroAssemblerRISCV64.cpp:
(JSC::MacroAssembler::probe):
- 8:05 AM Changeset in webkit [293653] by
-
- 2 edits in trunk/Source/JavaScriptCore
[RISCV64] Enable testmasm execution
https://bugs.webkit.org/show_bug.cgi?id=239937
Reviewed by Yusuke Suzuki.
In testmasm, enable some additional sets of tests for RISCV64 that cover
already-functioning behavior. In isSpecialGPR(), the function returns
true under CPU(RISCV64) for the appropriate registers.
In invoke(), when targeting RISCV64 and invoking JIT-produced code whose
return type is a 32-bit integer, the resulting value is manually
sign-extended to paper over the mismatch between zero-extended 32-bit
values that are used and produced in JSC JIT and the sign-extended
32-bit values that are expected in the RV64 calling convention.
- assembler/testmasm.cpp:
(JSC::isSpecialGPR):
(JSC::invoke):
(JSC::testProbePreservesGPRS):
(JSC::testLoadBaseIndex):
(JSC::testStoreBaseIndex):
- 7:18 AM Changeset in webkit [293652] by
-
- 2 edits1 delete in trunk/LayoutTests
[GStreamer] tests gardening
https://bugs.webkit.org/show_bug.cgi?id=239943
Patch by Philippe Normand <pnormand@igalia.com> on 2022-05-01
Unreviewed, update a couple media-recorder and media-capabilities expectations.
- platform/glib/TestExpectations:
- platform/wpe/http/wpt/mediarecorder/MediaRecorder-dataavailable-expected.txt: Removed.
- platform/wpe/http/wpt/mediarecorder/MediaRecorder-mock-dataavailable-expected.txt: Removed.
Canonical link: https://commits.webkit.org/250156@main
- 1:51 AM Changeset in webkit [293651] by
-
- 2 edits in trunk/Tools
[WPE][GTK] Built product archives include old library files
https://bugs.webkit.org/show_bug.cgi?id=239928
Patch by Philippe Normand <pnormand@igalia.com> on 2022-05-01
Reviewed by Adrian Perez de Castro.
- CISupport/built-product-archive: Exclude old WPE/GTK files from built product zip archives.
Canonical link: https://commits.webkit.org/250155@main
Apr 30, 2022:
- 7:42 PM Changeset in webkit [293650] by
-
- 15 edits in trunk/Source/WebCore
Code cleanup in preparation for refactoring of computing relationships between AXObjects.
https://bugs.webkit.org/show_bug.cgi?id=239848
<rdar://problem/92455544>
Reviewed by Chris Fleizach and Tyler Wilcock.
No new functionality.
AccessibilityObject::ariaElementsFromAttribute() and
ariaElementsReferencedByAttribute() are the methods that currently
compute the relationships between objects. These methods now return a
vector of the related objects instead of taking an out parameter.
In addition, all ariaXXXElements and ariaXXXReferencingElements methods
are renamed to better reflect the relationships they retrieve. Note that
the prefix aria is removed from all method names because ARIA is one way
of establishing relationships between objects, but not necessarily the
only way. These changes make the code more concise and clearer.
- accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::textUnderElement const):
- accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::ariaTreeRows):
(WebCore::AccessibilityObject::ariaElementsFromAttribute const):
(WebCore::AccessibilityObject::ariaElementsReferencedByAttribute const):
(WebCore::AccessibilityObject::isActiveDescendantOfFocusedContainer const):
(WebCore::AccessibilityObject::activeDescendantOfObjects const):
(WebCore::AccessibilityObject::controlledObjects const):
(WebCore::AccessibilityObject::controllers const):
(WebCore::AccessibilityObject::describedByObjects const):
(WebCore::AccessibilityObject::descriptionForObjects const):
(WebCore::AccessibilityObject::detailedByObjects const):
(WebCore::AccessibilityObject::detailsForObjects const):
(WebCore::AccessibilityObject::errorMessageObjects const):
(WebCore::AccessibilityObject::errorMessageForObjects const):
(WebCore::AccessibilityObject::flowToObjects const):
(WebCore::AccessibilityObject::flowFromObjects const):
(WebCore::AccessibilityObject::labelledByObjects const):
(WebCore::AccessibilityObject::labelForObjects const):
(WebCore::AccessibilityObject::ownedObjects const):
(WebCore::AccessibilityObject::owners const):
(WebCore::AccessibilityObject::ariaActiveDescendantReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaControlsElements const): Deleted.
(WebCore::AccessibilityObject::ariaControlsReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaDescribedByElements const): Deleted.
(WebCore::AccessibilityObject::ariaDescribedByReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaDetailsElements const): Deleted.
(WebCore::AccessibilityObject::ariaDetailsReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaErrorMessageElements const): Deleted.
(WebCore::AccessibilityObject::ariaErrorMessageReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaFlowToElements const): Deleted.
(WebCore::AccessibilityObject::ariaFlowToReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaLabelledByElements const): Deleted.
(WebCore::AccessibilityObject::ariaLabelledByReferencingElements const): Deleted.
(WebCore::AccessibilityObject::ariaOwnsElements const): Deleted.
(WebCore::AccessibilityObject::ariaOwnsReferencingElements const): Deleted.
- accessibility/AccessibilityObject.h:
- accessibility/AccessibilityObjectInterface.h:
- accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::linkedUIElements const):
(WebCore::AccessibilityRenderObject::targetElementForActiveDescendant const):
- accessibility/AccessibilityTableCell.cpp:
(WebCore::AccessibilityTableCell::columnHeaders):
(WebCore::AccessibilityTableCell::ariaOwnedByParent const):
- accessibility/AccessibilityTableRow.cpp:
(WebCore::AccessibilityTableRow::addChildren):
- accessibility/atspi/AccessibilityObjectAtspi.cpp:
(WebCore::AccessibilityObjectAtspi::relationMap const):
- accessibility/isolatedtree/AXIsolatedObject.cpp:
(WebCore::AXIsolatedObject::initializeProperties):
(WebCore::AXIsolatedObject::activeDescendantOfObjects const):
(WebCore::AXIsolatedObject::controllers const):
(WebCore::AXIsolatedObject::describedByObjects const):
(WebCore::AXIsolatedObject::descriptionForObjects const):
(WebCore::AXIsolatedObject::detailsForObjects const):
(WebCore::AXIsolatedObject::errorMessageForObjects const):
(WebCore::AXIsolatedObject::flowFromObjects const):
(WebCore::AXIsolatedObject::labelledByObjects const):
(WebCore::AXIsolatedObject::labelForObjects const):
(WebCore::AXIsolatedObject::owners const):
(WebCore::AXIsolatedObject::ariaActiveDescendantReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaControlsReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaDescribedByElements const): Deleted.
(WebCore::AXIsolatedObject::ariaDescribedByReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaDetailsReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaErrorMessageReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaFlowToReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaLabelledByElements const): Deleted.
(WebCore::AXIsolatedObject::ariaLabelledByReferencingElements const): Deleted.
(WebCore::AXIsolatedObject::ariaOwnsReferencingElements const): Deleted.
- accessibility/isolatedtree/AXIsolatedObject.h:
- accessibility/isolatedtree/AXIsolatedTree.h:
- accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
- 9:57 AM Changeset in webkit [293649] by
-
- 3 edits in trunk
[WPE][GTK] Enable MEDIA_SESSION by default
https://bugs.webkit.org/show_bug.cgi?id=239931
Patch by Philippe Normand <pnormand@igalia.com> on 2022-04-30
Reviewed by Michael Catanzaro.
- Source/cmake/OptionsGTK.cmake:
- Source/cmake/OptionsWPE.cmake:
Canonical link: https://commits.webkit.org/250153@main
- 9:50 AM Changeset in webkit [293648] by
-
- 6 edits in trunk
REGRESSION(r283437) a number of media tests fail/timeout on the test bots
https://bugs.webkit.org/show_bug.cgi?id=231811
<rdar://problem/84552871>
Patch by Philippe Normand <pnormand@igalia.com> on 2022-04-30
Reviewed by Michael Catanzaro.
Disable DBus MPRIS notifications when running the tests, these leak to the host when running
on desktop and trigger timeouts on under-powered bots.
- platform/audio/glib/MediaSessionGLib.cpp:
(WebCore::MediaSessionGLib::create):
(WebCore::MediaSessionGLib::MediaSessionGLib):
(WebCore::MediaSessionGLib::emitPositionChanged):
(WebCore::MediaSessionGLib::updateNowPlaying):
(WebCore::MediaSessionGLib::playbackStatusChanged):
- platform/audio/glib/MediaSessionManagerGLib.h:
(WebCore::MediaSessionManagerGLib::setDBusNotificationsEnabled):
(WebCore::MediaSessionManagerGLib::areDBusNotificationsEnabled const):
- testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):
LayoutTests:
- platform/glib/TestExpectations: Unflag tests now passing.
Canonical link: https://commits.webkit.org/250152@main
- 9:30 AM Changeset in webkit [293647] by
-
- 2 edits in trunk/Source/WebCore
Only stretch the percent height <body> when it is the document element's child
https://bugs.webkit.org/show_bug.cgi?id=239932
<rdar://92257660>
Reviewed by Antti Koivisto.
This IE quirk should only be applied to when the body is actually the document element's child (stretching case).
- rendering/RenderBox.cpp:
(WebCore::RenderBox::computeLogicalHeight const):
- rendering/RenderBox.h:
(WebCore::RenderBox::parentBox const):
- 8:30 AM Changeset in webkit [293646] by
-
- 5 edits2 adds in trunk
ASSERTION FAILED: *trailingRunIndex >= overflowingRunIndex in WebCore::Layout::InlineContentBreaker::tryBreakingNextOverflowingRuns
https://bugs.webkit.org/show_bug.cgi?id=239838
<rdar://problem/92455051>
Reviewed by Antti Koivisto.
Source/WebCore:
Take partial text overflow into account when computing intrinsic width.
Test: fast/inline/overflowing-content-inside-inline-box-crash.html
- layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint const):
- layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::computedIntrinsicWidth):
- layout/formattingContexts/inline/InlineLineBuilder.h:
LayoutTests:
- fast/inline/overflowing-content-inside-inline-box-crash-expected.txt: Added.
- fast/inline/overflowing-content-inside-inline-box-crash.html: Added.
- 6:11 AM Changeset in webkit [293645] by
-
- 4 edits in trunk/Source/WebCore
[LFC][IFC] Introduce LineBuilder::PartialContent
https://bugs.webkit.org/show_bug.cgi?id=239886
Reviewed by Antti Koivisto.
This patch is in preparation for adding partial content support for intrinsic width computation.
- Use a dedicated PartialContent structure to store partial overflowing information (output of current line breaking, input to next line).
- Decouple partial overflowing width (see above) and the "let's not measure the wrapped content again on the next line as leading content" cached value.
- layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::lineLayout):
- layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::layoutInlineContent):
(WebCore::Layout::LineBuilder::initialize):
- layout/formattingContexts/inline/InlineLineBuilder.h:
(WebCore::Layout::LineBuilder::PartialContent::PartialContent):
- 6:01 AM Changeset in webkit [293644] by
-
- 3 edits2 adds in trunk
[LFC][IFC] Do not wrap </span> to the next line when it is preceded by overflowing text
https://bugs.webkit.org/show_bug.cgi?id=239879
<rdar://problem/92497176>
Reviewed by Antti Koivisto.
Source/WebCore:
This patch makes sure that inline content run(s) ("X") followed by inline box end run(s) (</span></span>)
don't get separated when they overflow the line (e.g. width: 0px).
Test: fast/inline/overflowing-content-inside-inline-box.html
- layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::InlineContentBreaker::processOverflowingContent const):
LayoutTests:
- fast/inline/overflowing-content-inside-inline-box-expected.html: Added.
- fast/inline/overflowing-content-inside-inline-box.html: Added.
- 12:26 AM Changeset in webkit [293643] by
-
- 3 edits in trunk/Source/ThirdParty/libwebrtc
[Mac] VTVideoDecoderClass object pointers can become unaligned on x86
https://bugs.webkit.org/show_bug.cgi?id=239916
<rdar://92445366>
Reviewed by Eric Carlson.
Both the base class and the derived class must be 4-byte aligned on x86, or there
is a chance that a pointer member of that struct will cross a page boundary, and
dereferencing that pointer will fail.
- Source/webrtc/sdk/WebKit/WebKitVP8Decoder.cpp:
- Source/webrtc/sdk/WebKit/WebKitVP9Decoder.cpp:
Apr 29, 2022:
- 11:07 PM Changeset in webkit [293642] by
-
- 3 edits2 adds in trunk
REGRESSION(r290770): element.scrollIntoViewIfNeeded() scrolls to top even when element is already in viewport
https://bugs.webkit.org/show_bug.cgi?id=238985
Patch by Rob Buis <rbuis@igalia.com> on 2022-04-29
Reviewed by Simon Fraser.
LayoutTests/imported/w3c:
- web-platform-tests/css/cssom-view/scrollintoview-zero-height-item-expected.txt: Added.
- web-platform-tests/css/cssom-view/scrollintoview-zero-height-item.html: Added.
Source/WebCore:
This mostly reverts to the code as it was before r290770, but adds code to
treat non-intersections as hidden, including zero width/height rects.
Test: imported/w3c/web-platform-tests/css/cssom-view/scrollintoview-zero-height-item.html
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::getRectToExpose const):
- 8:37 PM Changeset in webkit [293641] by
-
- 2 edits in trunk/Source/WebCore
The isYahooMail quirk is specific to PLATFORM(IOS_FAMILY)
https://bugs.webkit.org/show_bug.cgi?id=239914
Reviewed by Simon Fraser.
The isYahooMail check is incorrectly guarded by ENABLE(PUBLIC_SUFFIX_LIST) when the only
using this function is guarded by ENABLE(IOS_TOUCH_EVENTS) and PLATFORM(IOS_FAMILY). Use
PLATFORM(IOS_FAMILY) since ENABLE(IOS_TOUCH_EVENTS) implies that anyways.
Fixes an unused function warning for other ports.
- page/Quirks.cpp:
- 6:37 PM Changeset in webkit [293640] by
-
- 2 edits in trunk/LayoutTests
[ Monterey WK2 ] media/media-source/media-source-webm-vorbis-partial.html is a constant failure
https://bugs.webkit.org/show_bug.cgi?id=239308
rdar://91719356
Patch by Jean-Yves Avenard <jean-yves.avenard@apple.com> on 2022-04-29
Reviewed by Jer Noble.
The test disabled the GPU process, and sandboxing rules prevent from
calling CoreMedia in the content process.
- media/media-source/media-source-webm-vorbis-partial.html:
# Please populate the above commit message. Lines starting
# with '#' will be ignored
# Reviewed by Jer Noble.
# On branch 239308
# Your branch is ahead of 'origin/main' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# (use "git restore --staged <file>..." to unstage)
# modified: LayoutTests/ChangeLog
#
Canonical link: https://commits.webkit.org/250144@main
- 5:47 PM Changeset in webkit [293639] by
-
- 12 edits in trunk
Unreviewed, reverting r293621.
Reverting patch while we fix internal EWS issues, will reland
Source/JavaScriptCore:
after.
Reverted changeset:
https://commits.webkit.org/r293621
Source/WTF:
after
Reverted changeset:
https://commits.webkit.org/r293621
Tools:
after
Reverted changeset:
- 5:18 PM Changeset in webkit [293638] by
-
- 4 edits in trunk
[Mail compose] Images with data URLs should be pasted or dropped as attachments
https://bugs.webkit.org/show_bug.cgi?id=239911
rdar://91658665
Reviewed by Tim Horton.
Source/WebCore:
Effectively revert the changes in r226340, which prevented data-URL and http-family-URL images from being
converted into attachments when pasting or dropping into Mail compose. The original intent behind this change
may have been to save Mail storage space (in the server and in the on-disk cache) by excluding remote images,
but this was changed in r291261 due to being a regression in behavior compared to legacy WebKit compose
behavior, which creates attachments when pasting or dropping both data and remote images.
Furthermore, the space-saving rationale never really made sense for image data URLs, which are encoded in base
64, since this base 64 representation is always going to be larger than the raw binary representation that we
would otherwise use for a normal attachment.
Test: WKAttachmentTests.InsertDataURLImagesAsAttachments
- editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::shouldReplaceSubresourceURLWithBlobDuringSanitization):
Remove the argument flag enum altogether, and rename this method to clarify that it is just about blob URL
replacement for sanitizing pasted/dropped fragments (rather than attachment replacement).
(WebCore::replaceRichContentWithAttachments):
(WebCore::sanitizeMarkupWithArchive):
(WebCore::WebContentReader::readHTML):
(WebCore::WebContentMarkupReader::readHTML):
(WebCore::shouldReplaceSubresourceURL): Deleted.
Tools:
Adjust expectations for an existing API test.
- TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm:
(TestWebKitAPI::TEST):
- 4:23 PM Changeset in webkit [293637] by
-
- 16 edits in trunk/Source
Reduce usage of std::unique_ptr<HashSet> / std::unique_ptr<HashMap>
https://bugs.webkit.org/show_bug.cgi?id=239903
Reviewed by Yusuke Suzuki.
Reduce usage of std::unique_ptr<HashSet> / std::unique_ptr<HashMap> as HashSet / HashMap
are already essentially pointers. This avoids some unnecessary dereferencing.
- Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::addCoreConstraints):
- Source/JavaScriptCore/heap/Heap.h:
- Source/JavaScriptCore/heap/HeapInlines.h:
- Source/WebKit/WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp:
(WebKit::WebPasteboardOverrides::addOverride):
(WebKit::WebPasteboardOverrides::removeOverride):
(WebKit::WebPasteboardOverrides::overriddenTypes):
(WebKit::WebPasteboardOverrides::getDataForOverride const):
- Source/WebKit/WebProcess/WebCoreSupport/WebPasteboardOverrides.h:
- Source/WebCore/Modules/webdatabase/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::recordCreatingDatabase):
(WebCore::DatabaseTracker::doneCreatingDatabase):
(WebCore::DatabaseTracker::creatingDatabase):
(WebCore::DatabaseTracker::recordDeletingDatabase):
(WebCore::DatabaseTracker::doneDeletingDatabase):
(WebCore::DatabaseTracker::isDeletingDatabase):
(WebCore::DatabaseTracker::canDeleteOrigin):
- Source/WebCore/Modules/webdatabase/DatabaseTracker.h:
- Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp:
(WebCore::PropertySetCSSStyleDeclaration::wrapForDeprecatedCSSOM):
(WebCore::StyleRuleCSSStyleDeclaration::didMutate):
(WebCore::InlineCSSStyleDeclaration::didMutate):
- Source/WebCore/css/PropertySetCSSStyleDeclaration.h:
- Source/WebCore/dom/MutationObserver.cpp:
(WebCore::MutationObserver::deliver):
- Source/WebCore/dom/MutationObserverRegistration.cpp:
(WebCore::MutationObserverRegistration::observedSubtreeNodeWillDetach):
(WebCore::MutationObserverRegistration::takeTransientRegistrations):
(WebCore::MutationObserverRegistration::isReachableFromOpaqueRoots const):
- Source/WebCore/dom/MutationObserverRegistration.h:
(WebCore::MutationObserverRegistration::hasTransientRegistrations const):
- Source/WebCore/platform/graphics/GlyphMetricsMap.h:
(WebCore::GlyphMetricsMap<T>::locatePageSlowCase):
- Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::insertIntoTrackedRendererMaps):
(WebCore::removeFromTrackedRendererMaps):
(WebCore::removeBlockFromPercentageDescendantAndContainerMaps):
- Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::updateActiveStyleSheets):
(WebCore::Style::Scope::activeStyleSheetsContains const):
- Source/WebCore/style/StyleScope.h:
Canonical link: https://commits.webkit.org/250141@main
- 4:15 PM Changeset in webkit [293636] by
-
- 7 edits in trunk/Source/WebKit
[GPUProcess] Stop using a synchronous IPC for marking layers as volatile
https://bugs.webkit.org/show_bug.cgi?id=239901
<rdar://91663593>
Reviewed by Geoffrey Garen.
Stop using a synchronous IPC to the GPUProcess for marking layers as volatile. Instead,
use an asynchronous IPC for the request and another asynchronous one for the response.
Ideally, we'd be using a sendWithAsyncReply(), like the FIXME comment in the code
suggested. However, this is not supported yet by our new "streaming" IPC.
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::markSurfacesVolatile):
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.h:
- Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in:
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::~RemoteRenderingBackendProxy):
(WebKit::RemoteRenderingBackendProxy::markSurfacesVolatile):
(WebKit::RemoteRenderingBackendProxy::didMarkLayersAsVolatile):
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.h:
- Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.messages.in:
- Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::tryMarkLayersVolatileCompletionHandler):
Canonical link: https://commits.webkit.org/250140@main
- 3:54 PM Changeset in webkit [293635] by
-
- 2 edits in trunk/Source/WebCore
increase transient activation duration to 5s
https://bugs.webkit.org/show_bug.cgi?id=239832
Reviewed by Geoffrey Garen.
This matches other user agents and gives a bit more time for asynchronous work to be done.
Spec: <https://html.spec.whatwg.org/multipage/interaction.html#transient-activation-duration>
- page/DOMWindow.cpp:
- 3:40 PM Changeset in webkit [293634] by
-
- 19 edits in branches/safari-613-branch/Source
Cherry-pick r287877. rdar://problem/92357915
Non-unified build fixes, early January 2022 edition
https://bugs.webkit.org/show_bug.cgi?id=235013
Unreviewed non-unified build fixes.
Source/JavaScriptCore:
- wasm/js/JSWebAssemblyModule.cpp: Add missing JSWebAssemblyLinkError.h header.
- wasm/js/JSWebAssemblyModule.h: Add missing forward declaration for the JSC::OptimizingCallLinkInfo type.
Source/WebCore:
No new tests needed.
- Modules/fetch/FetchBodyConsumer.cpp: Add missing FormData.h header.
- Modules/fetch/FormDataConsumer.h: Add missing ExceptionOr.h header, and forward declaration for the WebCore::ScriptExecutionContext type.
- animation/CSSAnimation.cpp: Add missing KeyframeEffect.h header.
- animation/KeyframeEffect.cpp: Add missing StyledElement.h header.
- html/HTMLFormElement.cpp: Add missing PseudoClassChangeInvalidation.h header.
- platform/network/SynchronousLoaderClient.cpp: Add missing SharedBuffer.h header.
- rendering/svg/RenderSVGBlock.cpp: Add missing SVGRenderSupport.h header.
- rendering/svg/RenderSVGForeignObject.cpp: Ditto.
- rendering/svg/RenderSVGInline.cpp: Ditto.
- rendering/svg/RenderSVGModelObject.cpp: Add missing SVGElementInlines.h header.
- rendering/svg/SVGInlineTextBox.cpp: Add missing FloatConversion.h header.
- svg/SVGViewElement.cpp: Add missing RenderElement.h header.
- workers/service/context/ServiceWorkerFetch.h: Add missing forward declaration for the WebCore::SharedBuffer type, remove unused one for WebCore::FragmentedSharedBuffer.
Source/WebKit:
- Platform/IPC/SharedBufferCopy.cpp: Add missing WebCoreArgumentCoders.h header, remove now unneeded ArgumentCoders.h header.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 3:40 PM Changeset in webkit [293633] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed, reverting r293481.
https://bugs.webkit.org/show_bug.cgi?id=239908
Introduced perf regression
Reverted changeset:
"Adjust what we consider to be private relayed"
https://bugs.webkit.org/show_bug.cgi?id=239784
https://commits.webkit.org/r293481
- 3:26 PM Changeset in webkit [293632] by
-
- 1 copy in tags/WebKit-7614.1.11.1
Tag WebKit-7614.1.11.1.
- 2:50 PM Changeset in webkit [293631] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Regression(r267038) Import a timeline does not render the timeline, only lists the events
https://bugs.webkit.org/show_bug.cgi?id=239872
Reviewed by Devin Rousso.
Two issues existed after r267038 that prevented the timeline overview from rendering correctly for imported
recordings. The first is that the timeline view itself was not visible as the result of assuming that we would
already be in middle of layout when insideWI.TimelineRecordingContentView.prototype._updateTimes
, which isn't
true for the updating of times when importing a recording. In that case, syncronously attempting to lay out the
view means that the layout, including initial layout, will be performed before the view is attached, which means
we are unable to get the clientWidth of the view's element during layout, which in turn prevents us from
painting the timeline ruler.
The second issue is that when importing a timeline, we should ignore the current capturing state when setting
the current, start, and end times, otherwise not all the values will be kept.
- UserInterface/Views/TimelineRecordingContentView.js:
(WI.TimelineRecordingContentView):
(WI.TimelineRecordingContentView.prototype._updateTimes):
- 2:38 PM Changeset in webkit [293630] by
-
- 2 edits in trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy
Corrected spelling of edited in webkitscmpy.
- 1:05 PM Changeset in webkit [293629] by
-
- 16 edits in trunk/Source/JavaScriptCore
[JSC] Use FixedVector in JumpReplacements and VariableEventStream
https://bugs.webkit.org/show_bug.cgi?id=239892
Reviewed by Mark Lam.
- Introduce DFG::VariableEventStreamBuilder. And construct DFG::VariableEventStream from that
builder when finailizing code generation. We also make it FixedVector.
- Use FixedVector for JumpReplacements.
- Source/JavaScriptCore/dfg/DFGCommonData.cpp:
(JSC::DFG::CommonData::shrinkToFit):
- Source/JavaScriptCore/dfg/DFGCommonData.h:
- Source/JavaScriptCore/dfg/DFGGenerationInfo.h:
(JSC::DFG::GenerationInfo::noticeOSRBirth):
(JSC::DFG::GenerationInfo::use):
(JSC::DFG::GenerationInfo::spill):
(JSC::DFG::GenerationInfo::setSpilled):
(JSC::DFG::GenerationInfo::fillGPR):
(JSC::DFG::GenerationInfo::fillJSValue):
(JSC::DFG::GenerationInfo::fillCell):
(JSC::DFG::GenerationInfo::fillInt32):
(JSC::DFG::GenerationInfo::fillInt52):
(JSC::DFG::GenerationInfo::fillStrictInt52):
(JSC::DFG::GenerationInfo::fillBoolean):
(JSC::DFG::GenerationInfo::fillDouble):
(JSC::DFG::GenerationInfo::fillStorage):
(JSC::DFG::GenerationInfo::appendBirth):
(JSC::DFG::GenerationInfo::appendFill):
(JSC::DFG::GenerationInfo::appendSpill):
- Source/JavaScriptCore/dfg/DFGJITCode.cpp:
(JSC::DFG::JITCode::shrinkToFit):
(JSC::DFG::JITCode::reconstruct):
- Source/JavaScriptCore/dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::link):
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):
(JSC::DFG::JITCompiler::exceptionCheck):
- Source/JavaScriptCore/dfg/DFGSlowPathGenerator.h:
(JSC::DFG::SlowPathGenerator::SlowPathGenerator):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::SpeculativeJIT):
(JSC::DFG::SpeculativeJIT::speculationCheck):
(JSC::DFG::SpeculativeJIT::emitInvalidationPoint):
(JSC::DFG::SpeculativeJIT::addSlowPathGeneratorLambda):
(JSC::DFG::SpeculativeJIT::fillStorage):
(JSC::DFG::SpeculativeJIT::compileDeleteById):
(JSC::DFG::SpeculativeJIT::compileDeleteByVal):
(JSC::DFG::SpeculativeJIT::compileInById):
(JSC::DFG::SpeculativeJIT::compileInByVal):
(JSC::DFG::SpeculativeJIT::compileHasPrivate):
(JSC::DFG::SpeculativeJIT::noticeOSRBirth):
(JSC::DFG::SpeculativeJIT::compileMovHint):
(JSC::DFG::SpeculativeJIT::compileCurrentBlock):
(JSC::DFG::SpeculativeJIT::compilePutByVal):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::finalizeEventStream):
(JSC::DFG::SpeculativeJIT::use):
(JSC::DFG::SpeculativeJIT::spill):
(JSC::DFG::SpeculativeJIT::recordSetLocal):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::cachedGetById):
(JSC::DFG::SpeculativeJIT::cachedGetByIdWithThis):
(JSC::DFG::SpeculativeJIT::emitCall):
(JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::compileGetByVal):
- Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::fillJSValue):
(JSC::DFG::SpeculativeJIT::cachedGetById):
(JSC::DFG::SpeculativeJIT::cachedGetByIdWithThis):
(JSC::DFG::SpeculativeJIT::emitCall):
(JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
(JSC::DFG::SpeculativeJIT::fillSpeculateInt52):
(JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
(JSC::DFG::SpeculativeJIT::fillSpeculateCell):
(JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
(JSC::DFG::SpeculativeJIT::fillSpeculateBigInt32):
(JSC::DFG::SpeculativeJIT::compileGetByVal):
(JSC::DFG::SpeculativeJIT::compile):
- Source/JavaScriptCore/dfg/DFGVariableEventStream.cpp:
(JSC::DFG::VariableEventStreamBuilder::logEvent):
(JSC::DFG::VariableEventStream::reconstruct const):
(JSC::DFG::VariableEventStream::logEvent): Deleted.
- Source/JavaScriptCore/dfg/DFGVariableEventStream.h:
(JSC::DFG::VariableEventStream::VariableEventStream):
(JSC::DFG::VariableEventStreamBuilder::appendAndLog):
(JSC::DFG::VariableEventStreamBuilder::size const):
(JSC::DFG::VariableEventStreamBuilder::finalize):
(JSC::DFG::VariableEventStream::appendAndLog): Deleted.
- Source/JavaScriptCore/ftl/FTLLink.cpp:
(JSC::FTL::link):
- Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- Source/JavaScriptCore/ftl/FTLState.h:
Canonical link: https://commits.webkit.org/250135@main
- 12:41 PM Changeset in webkit [293628] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed, reverting r293591.
https://bugs.webkit.org/show_bug.cgi?id=239907
Did not resolve perf issue
Reverted changeset:
"Set top origin of CORS preflight requests"
https://bugs.webkit.org/show_bug.cgi?id=239869
https://commits.webkit.org/r293591
- 12:41 PM Changeset in webkit [293627] by
-
- 9 edits in trunk/Source
Update toExistingAtomString() to return an AtomString
https://bugs.webkit.org/show_bug.cgi?id=239904
Reviewed by Darin Adler.
Update toExistingAtomString() to return an AtomString instead of a RefPtr<AtomStringImpl>
as it is a bit less awkward to use.
- Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
- Source/JavaScriptCore/jit/JITOperations.cpp:
(JSC::getByVal):
(JSC::JSC_DEFINE_JIT_OPERATION):
- Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:
(JSC::LLInt::getByVal):
- Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:
(JSC::JSC_DEFINE_COMMON_SLOW_PATH):
- Source/JavaScriptCore/runtime/JSString.h:
(JSC::JSString::toExistingAtomString const):
- Source/WTF/wtf/text/StringView.h:
(WTF::StringView::toExistingAtomString const):
- Source/WebCore/bindings/js/JSDOMConvertStrings.h:
(WebCore::Converter<IDLRequiresExistingAtomStringAdaptor<T>>::convert):
- Source/WebCore/dom/TreeScope.cpp:
(WebCore::TreeScope::getElementById const):
- Source/WebCore/platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::create):
(WebCore::ResourceHandle::loadResourceSynchronously):
Canonical link: https://commits.webkit.org/250133@main
- 12:25 PM Changeset in webkit [293626] by
-
- 2 edits in trunk/Tools
REGRESSION (249864@main): [ iOS ] TestWebKitAPI.ScrollViewScrollabilityTests.ScrollableWithOverflowHiddenAndShrunkUI is failing
https://bugs.webkit.org/show_bug.cgi?id=239867
Reviewed by Sam Weinig.
Use values that are representative of iPhone 8, which is the model used for running
API tests.
- TestWebKitAPI/Tests/ios/ScrollViewScrollabilityTests.mm:
(TestWebKitAPI::TEST):
- 11:55 AM Changeset in webkit [293625] by
-
- 20 edits2 adds in trunk
Format time zone name using ICU instead of platform calls
https://bugs.webkit.org/show_bug.cgi?id=239865
Reviewed by Yusuke Suzuki.
JSTests:
Added new tests that ensure Date's timezone is formatted using preferred
language.
- complex.yaml:
- complex/timezone-format-de.js: Added.
(shouldBe):
- complex/timezone-format-en.js: Added.
(shouldBe):
Source/JavaScriptCore:
formatDateTime now uses cached display name of the timezone.
- runtime/DateConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
- runtime/DateConversion.cpp:
(JSC::formatDateTime):
- runtime/DateConversion.h:
- runtime/DatePrototype.cpp:
(JSC::formateDateInstance):
- runtime/JSDateMath.cpp:
(JSC::toICUTimeZone): Encapsulate bitwise_cast into typesafe functions.
(JSC::toOpaqueICUTimeZone):
(JSC::OpaqueICUTimeZoneDeleter::operator()):
(JSC::DateCache::calculateLocalTimeOffset):
(JSC::DateCache::defaultTimeZone):
(JSC::DateCache::timeZoneDisplayName): Both standard and daylight names are computed
once on the first access as ICU methods internally acquire locks.
(JSC::DateCache::timeZoneCacheSlow):
(JSC::DateCache::resetIfNecessary):
- runtime/JSDateMath.h:
LayoutTests:
Rebased existing layout tests to reflect new format (which is the same as in other
browsers now).
- storage/indexeddb/modern/date-basic-expected.txt:
- storage/indexeddb/modern/date-basic-private-expected.txt:
- storage/indexeddb/modern/get-keyrange-expected.txt:
- storage/indexeddb/modern/get-keyrange-private-expected.txt:
- storage/indexeddb/modern/idbobjectstore-delete-1-expected.txt:
- storage/indexeddb/modern/idbobjectstore-delete-1-private-expected.txt:
- 11:13 AM Changeset in webkit [293624] by
-
- 2 edits in trunk/LayoutTests
REGRESSION(r291998): [GTK] test accessibility/gtk/menu-list-unfocused-notifications.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=239888
Change the delay between changes to the combobox value to 1ms to ensure that an
accessibility event is consistently generated for both changes.
Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2022-04-29
Reviewed by Martin Robinson.
- accessibility/gtk/menu-list-unfocused-notifications.html:
- 11:11 AM Changeset in webkit [293623] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, remove unused variable
https://bugs.webkit.org/show_bug.cgi?id=239828
- dfg/DFGGraph.cpp:
(JSC::DFG::Graph::methodOfGettingAValueProfileFor):
- 11:08 AM Changeset in webkit [293622] by
-
- 5 edits in trunk/Source/WebCore
[css-cascade] Sort shorthand properties at the end of CSSPropertyID enum
https://bugs.webkit.org/show_bug.cgi?id=238888
Reviewed by Darin Adler.
Only longhands should matter during the CSS Cascade, so by sorting
shorthands at the end, and ignoring them, we can save some memory and
avoid some iterations.
No test since now there should be no observable change in behavior.
- css/StylePropertyShorthand.cpp:
(WebCore::isShorthandCSSProperty): Deleted.
- css/StylePropertyShorthand.h:
(WebCore::isShorthandCSSProperty):
Turn function into a simple constexpr comparison.
- css/makeprop.pl:
(addProperty):
(sortByDescendingPriorityAndName):
Sort shorthand properties at the end.
- style/PropertyCascade.h:
Update comment.
- 10:47 AM Changeset in webkit [293621] by
-
- 9 edits in trunk
Drop StringImpl::createFromLiteral()
https://bugs.webkit.org/show_bug.cgi?id=239792
Reviewed by Darin Adler.
Drop StringImpl::createFromLiteral().
Call sites that have an ASCIILiteral can now simply call StringImpl::create(ASCIILiteral).
Call sites that have raw characters can call the existing StringImpl::createWithoutCopying().
This simplifies our API a bit.
Also inline part of the createWithoutCopying() functions so that the 0-length check is
inline. This allows the compiler to optimize the check out when the length is known at
compile time (which is often the case with literals).
- Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp:
(TestWebKitAPI::TEST):
- Tools/TestWebKitAPI/Tests/WTF/StringView.cpp:
(TestWebKitAPI::TEST):
- Source/JavaScriptCore/API/JSScriptRef.cpp:
- Source/JavaScriptCore/Scripts/wkbuiltins/builtins_templates.py:
- Source/JavaScriptCore/builtins/BuiltinExecutables.cpp:
(JSC::BuiltinExecutables::BuiltinExecutables):
- Source/JavaScriptCore/runtime/IntlObject.cpp:
(JSC::availableUnits):
- Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::createWithoutCopyingNonEmpty):
(WTF::StringImpl::createFromLiteral): Deleted.
(WTF::StringImpl::createWithoutCopying): Deleted.
- Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::create):
(WTF::StringImpl::createWithoutCopying):
(WTF::StringImpl::createFromLiteral): Deleted.
- Source/WTF/wtf/text/WTFString.h:
(WTF::String::String):
Canonical link: https://commits.webkit.org/250127@main
- 10:40 AM Changeset in webkit [293620] by
-
- 2 edits in trunk/LayoutTests
REGRESSION(r290548) [GTK][WPE] test LayoutTests/fast/events/node-event-anchor-lock.html fails
https://bugs.webkit.org/show_bug.cgi?id=239890
Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2022-04-29
Reviewed by Martin Robinson.
- fast/events/node-event-anchor-lock.html: Disable scroll animation for this test.
- 9:36 AM Changeset in webkit [293619] by
-
- 2 edits in trunk/Source/WTF
REGRESSION(r293608): [GTK][WPE] Broke clang builds
https://bugs.webkit.org/show_bug.cgi?id=239899
Patch by Philippe Normand <pnormand@igalia.com> on 2022-04-29
Reviewed by Michael Catanzaro.
- wtf/StdLibExtras.h: Restrict std::remove_cvref hacks to GCC.
Canonical link: https://commits.webkit.org/250125@main
- 9:26 AM Changeset in webkit [293618] by
-
- 2 edits in trunk/Source/WebCore
[iOS] Video on twitch.tv shifts to top of screen when toggling playback in fullscreen
https://bugs.webkit.org/show_bug.cgi?id=239884
<rdar://92367060>
Reviewed by Eric Carlson.
Twitch will cause the HTMLMediaElement to recreate the MediaPlayer when resuming playback
after pausing. If this happens in fullscreen, VideoLayerManagerObjC::setVideoLayer() will
be called with the new video layer, however it will be laid out pinned to the top-left
corner of the screen (rather than centered), as setVideoLayer() will call -setFrame with
an explicit 0,0 position argument.
Rather than pin the layer to the top-left, use the full value of m_videoFullscreenFrame
when setting the video layer frame, both in setVideoLayer() as well as
setVideoFullscreenLayer().
Its currently impossible to write an test for this behavior, as TestWebKitAPI is not a UI
application, and therefore cannot enter fullscreen mode.
- platform/graphics/avfoundation/objc/VideoLayerManagerObjC.mm:
(WebCore::VideoLayerManagerObjC::setVideoLayer):
(WebCore::VideoLayerManagerObjC::setVideoFullscreenLayer):
- 8:59 AM Changeset in webkit [293617] by
-
- 2 edits in trunk
Unreviewed, add my GitHub account name to contributors.json
I also ran
validate-committer-lists --canonicalize
to fix up some minor style inconsistencies in this file
after some other recent additions.
- metadata/contributors.json:
- 8:45 AM Changeset in webkit [293616] by
-
- 2 edits in trunk
Unreviewed; add my github account to contributors.json.
- metadata/contributors.json:
- 8:35 AM Changeset in webkit [293615] by
-
- 6 edits in trunk/Tools
[git-webkit] Redact bug title in branch name on alternate remotes
https://bugs.webkit.org/show_bug.cgi?id=239826
<rdar://problem/92418512>
Rubber-stamped by Aakash Jain.
- Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/init.py: Ditto.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/branch.py:
(Branch.main): Allow caller to redact bug title in branch name.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/pull_request.py:
(PullRequest.pull_request_branch_point): Redact bug title in branch name
for non-origin remotes.
- Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/branch_unittest.py:
(TestBranch.test_redacted):
Canonical link: https://commits.webkit.org/250121@main
- 8:24 AM Changeset in webkit [293614] by
-
- 2 edits in trunk/Tools
[ews-build.webkit.org] Link to PRs with undefined title
https://bugs.webkit.org/show_bug.cgi?id=239820
<rdar://problem/92416554>
Reviewed by Aakash Jain.
- CISupport/ews-build/steps.py:
(ConfigureBuild.add_pr_details):
Canonical link: https://commits.webkit.org/250120@main
- 8:11 AM Changeset in webkit [293613] by
-
- 2 edits in trunk/Source/WebCore
Add background-clip: text to CSSProperties.json
Unreviewed fix.
- css/CSSProperties.json:
- 7:31 AM Changeset in webkit [293612] by
-
- 2 edits in trunk/Source/WebKit
Fix ASAN build after "IPC testing API should have the ability to test IPC::Connection send and receive through IPC::Connection"
https://bugs.webkit.org/show_bug.cgi?id=239894
Unreviewed build fix.
Add a return for function which does ASSERT_NOT_REACHED().
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2022-04-29
- WebProcess/WebPage/IPCTestingAPI.cpp:
(WebKit::IPCTestingAPI::JSIPCConnection::didReceiveSyncMessage):
- 4:20 AM WebKitGTK/Debugging edited by
- (diff)
- 3:42 AM Changeset in webkit [293611] by
-
- 2 edits in trunk/LayoutTests
[GTK][WPE] media/video-with-alpha.html is failing and skipped
https://bugs.webkit.org/show_bug.cgi?id=226484
Patch by Philippe Normand <pnormand@igalia.com> on 2022-04-29
Unreviewed, gardening.
- platform/glib/TestExpectations: The SDK ships GStreamer 1.20, mark
media/video-with-alpha.html as passing.
Canonical link: https://commits.webkit.org/250117@main
- 12:59 AM Changeset in webkit [293610] by
-
- 6 edits in trunk/Source/WebKit
[macOS] Unreviewed, non-unified build fixes
https://bugs.webkit.org/show_bug.cgi?id=239889
- UIProcess/API/Cocoa/_WKDataTask.h:
- UIProcess/API/Cocoa/_WKDataTask.mm:
- UIProcess/API/Cocoa/_WKInspectorConfigurationInternal.h:
- UIProcess/Cocoa/ModalContainerControlClassifier.h:
- UIProcess/Cocoa/ModalContainerControlClassifier.mm:
- 12:57 AM Changeset in webkit [293609] by
-
- 4 edits2 adds in trunk
HTMLMediaElement can get multiple interruptions for invisible autoplay
https://bugs.webkit.org/show_bug.cgi?id=239842
<rdar://91809550>
Reviewed by Eric Carlson.
Source/WebCore:
A media element may be interrupted for invisible autoplay.
In some cases, like by calling play on the media element, the media element will no longer be in interrupted state.
This will lead to multiple invisible autoplay interruptions to be added to the same media element.
There will be only one end of interruption for invisible autoplay, which will lead to the media element to not restart as expected.
To prevent this, we store a boolean in HTMLMediaElement that tells us whether the media element has an ongoing invisible autoplay interruption.
Based on that, we make sure to always balance invisible autoplay interruption begin and end.
Test: media/video-mediastream-restricted-invisible-autoplay-not-allowed.html
- html/HTMLMediaElement.cpp:
- html/HTMLMediaElement.h:
LayoutTests:
- fast/mediastream/video-mediastream-restricted-invisible-autoplay-not-allowed-expected.txt: Added.
- fast/mediastream/video-mediastream-restricted-invisible-autoplay-not-allowed.html: Added.
- 12:50 AM Changeset in webkit [293608] by
-
- 5 edits in trunk
[GCC] std::remove_cvref is undefined in GCC8.4
https://bugs.webkit.org/show_bug.cgi?id=239881
Reviewed by Žan Doberšek.
r293505 changed the guard that added std::remove_cvref if not defined
by GCC, checking cplusplus <= 201703L.
However in Ubuntu GCC8.4 this flag's value is 201709L. Thus, the
evaluation of this flag cannot reliably determine whether the compiler
has to define std::remove_cvref or not.
Instead of relying on a predefined compiler flag, what the patch does is
to attempt to compile a small snippet of code to check whether std::remove_cvref
is supported by the compiler. If successful, the flag 'HAVE_STD_REMOVE_CVREF' is defined.
.:
- Source/cmake/OptionsCommon.cmake: Set and expose HAVE_STD_REMOVE_CVREF if needed.
- Source/cmake/WebKitCompilerFlags.cmake: Check whether GCC supports std::remove_cvref.
Source/WTF:
- wtf/StdLibExtras.h: Define std::remove_cvref if not defined by GCC.
- 12:14 AM Changeset in webkit [293607] by
-
- 4 edits in trunk
Make sure to fail importScripts as per https://w3c.github.io/ServiceWorker/#importscripts step 4
https://bugs.webkit.org/show_bug.cgi?id=239847
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/service-workers/service-worker/import-scripts-updated-flag.https-expected.txt:
Source/WebCore:
Once a service worker is installed, the service worker should not be able to call importScript on new URLs.
Covered by updated test.
- workers/WorkerScriptLoader.cpp: