Timeline
Nov 11, 2019:
- 6:56 PM Changeset in webkit [252354] by
-
- 9 edits in trunk
Add SPI to access a WebsiteDataStore without instantiating it, and its configuration
https://bugs.webkit.org/show_bug.cgi?id=204089
Reviewed by Tim Horton.
Source/WebKit:
Calling WKWebViewConfiguration.websiteDataStore instantiates the default data store.
We need a way to query if it has been set but not instantiate anything if it hasn't.
We also need a way to access the configuration used to create a WKWebsiteDataStore like we do with WKWebView.
These have been requested to fix <rdar://problem/57091216> and I think they're a good idea in general.
Covered by API tests.
- UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
(-[WKWebViewConfiguration _websiteDataStoreIfExists]):
- UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
- UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
(-[WKWebsiteDataStore _setDelegate:]):
(-[WKWebsiteDataStore set_delegate:]):
(-[WKWebsiteDataStore _configuration]):
- UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
- UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:
(WebKit::WebsiteDataStoreConfiguration::copy const):
(WebKit::WebsiteDataStoreConfiguration::copy): Deleted.
- UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h:
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm:
(TEST):
- 5:59 PM Changeset in webkit [252353] by
-
- 8 edits6 adds in trunk
Captcha images render as blank white space
https://bugs.webkit.org/show_bug.cgi?id=204013
rdar://problem/50095458
Reviewed by Zalan Bujtas.
Source/WebCore:
If updating z-order lists adds layers to the paint-order lists that have
dirty bits, we need to propagate those dirty bits up the tree so that
later dirty bit propagation doesn't stop prematurely. This could happen
when content triggered visibility, and the missing dirty bits caused
subframe layers to not get parented, resulting in missing layers with reCaptcha.
We do this by accumulating dirty bits inside of collectLayers().
Test: compositing/visibility/visibility-change-in-subframe.html
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::rebuildZOrderLists):
(WebCore::RenderLayer::collectLayers):
(WebCore::RenderLayer::calculateClipRects const):
- rendering/RenderLayer.h:
- rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::computeCompositingRequirements):
(WebCore::RenderLayerCompositor::traverseUnchangedSubtree):
(WebCore::RenderLayerCompositor::layerTreeAsText): Log so that debugging test failures is easier.
LayoutTests:
New test. Fails in WK1 because of compositing timing differences in iframes in DRT which
has a non auto-displaying window.
- compositing/scrolling/async-overflow-scrolling/layer-for-negative-z-in-scroller-expected.txt: Progression.
- compositing/visibility/resources/become-composited.html: Added.
- compositing/visibility/resources/frame-with-visibility-change.html: Added.
- compositing/visibility/visibility-change-in-subframe-expected.txt: Added.
- compositing/visibility/visibility-change-in-subframe.html: Added.
- platform/ios-wk2/compositing/scrolling/async-overflow-scrolling/layer-for-negative-z-in-scroller-expected.txt:
- platform/ios-wk2/compositing/visibility/visibility-change-in-subframe-expected.txt: Added.
- platform/mac-wk1/TestExpectations:
- 5:58 PM Changeset in webkit [252352] by
-
- 3 edits in trunk/Source/WebCore
Many legacy animation tests are timing out with VS2019
https://bugs.webkit.org/show_bug.cgi?id=204000
Reviewed by Brent Fulgham.
When compiling with VS2019, there is a compiler issue, where an Optional without a value is returned
when it should definitely have a value. Work around this issue by moving the local Optional value
when returning.
No new tests, covered by existing tests.
- page/animation/ImplicitAnimation.cpp:
(WebCore::ImplicitAnimation::timeToNextService):
- page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::timeToNextService):
- 5:49 PM Changeset in webkit [252351] by
-
- 5 edits in trunk/Source/WebKit
Add size file for CacheStorage
https://bugs.webkit.org/show_bug.cgi?id=204027
Reviewed by Youenn Fablet.
Keep the CacheStorage size in a separate file so that we can get that value without waiting for Engine to
initialize and read caches from disk.
No behavior change as the file is not in use now.
- NetworkProcess/cache/CacheStorageEngine.cpp:
(WebKit::CacheStorage::Engine::writeSizeFile):
(WebKit::CacheStorage::Engine::readSizeFile):
- NetworkProcess/cache/CacheStorageEngine.h:
- NetworkProcess/cache/CacheStorageEngineCaches.cpp:
(WebKit::CacheStorage::cachesSizeFilename):
(WebKit::CacheStorage::Caches::updateSizeFile):
(WebKit::CacheStorage::Caches::initializeSize):
(WebKit::CacheStorage::Caches::writeRecord):
(WebKit::CacheStorage::Caches::removeRecord):
(WebKit::CacheStorage::Caches::resetSpaceUsed):
- NetworkProcess/cache/CacheStorageEngineCaches.h:
- 5:47 PM Changeset in webkit [252350] by
-
- 2 edits in trunk/LayoutTests
iOS: fast/scrolling/ios/scrollTo-at-page-load.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=204062
Reviewed by Wenson Hsieh.
Wait until the next rendering update for a scroll event.`
- fast/scrolling/ios/scrollTo-at-page-load.html:
- 5:35 PM Changeset in webkit [252349] by
-
- 23 edits in trunk
DOMFormData should be available in workers
https://bugs.webkit.org/show_bug.cgi?id=176674
Reviewed by Alex Christensen.
LayoutTests/imported/w3c:
- web-platform-tests/FileAPI/file/Worker-read-file-constructor.worker-expected.txt:
- web-platform-tests/FileAPI/idlharness.worker-expected.txt:
- web-platform-tests/FileAPI/url/sandboxed-iframe-expected.txt:
- web-platform-tests/FileAPI/url/url-format.any.worker-expected.txt:
- web-platform-tests/fetch/api/abort/serviceworker-intercepted.https-expected.txt:
- web-platform-tests/fetch/api/request/request-cache-only-if-cached-expected.txt:
- web-platform-tests/mimesniff/mime-types/parsing.any.worker-expected.txt:
- web-platform-tests/xhr/access-control-and-redirects-async-same-origin-expected.txt:
- web-platform-tests/xhr/access-control-preflight-async-header-denied-expected.txt:
- web-platform-tests/xhr/access-control-preflight-async-method-denied-expected.txt:
- web-platform-tests/xhr/access-control-preflight-async-not-supported-expected.txt:
- web-platform-tests/xhr/access-control-preflight-sync-header-denied-expected.txt:
- web-platform-tests/xhr/access-control-preflight-sync-method-denied-expected.txt:
- web-platform-tests/xhr/access-control-preflight-sync-not-supported-expected.txt:
- web-platform-tests/xhr/event-error.sub-expected.txt:
- web-platform-tests/xhr/idlharness.any.worker-expected.txt:
- web-platform-tests/xhr/send-conditional-cors-expected.txt:
- web-platform-tests/workers/semantics/interface-objects/001.worker-expected.txt:
Source/WebCore:
Expose DOMFormData and File to workers.
Covered by existing tests.
- Modules/beacon/NavigatorBeacon.cpp:
(WebCore::NavigatorBeacon::sendBeacon):
- Modules/fetch/FetchBody.cpp:
(WebCore::FetchBody::bodyAsFormData const):
- Modules/fetch/FetchBody.h:
- Modules/fetch/FetchRequest.cpp:
(WebCore::FetchRequest::resourceRequest const):
- fileapi/File.cpp:
(WebCore::File::computeNameAndContentType):
Isolate string as this might now get called from background threads.
- fileapi/File.idl:
- html/DOMFormData.cpp:
(WebCore::DOMFormData::DOMFormData):
- html/DOMFormData.idl:
- platform/network/FormData.cpp:
LayoutTests:
- platform/mac/imported/w3c/web-platform-tests/fetch/api/basic/request-headers.any.worker-expected.txt:
- 5:27 PM Changeset in webkit [252348] by
-
- 23 edits in trunk
Fail cross-origin redirection loads in case of CORS with redirection URLs having credentials
https://bugs.webkit.org/show_bug.cgi?id=204036
Reviewed by Alex Christensen.
LayoutTests/imported/w3c:
- web-platform-tests/cors/redirect-userinfo-expected.txt:
- web-platform-tests/fetch/api/cors/cors-redirect-credentials.any-expected.txt:
- web-platform-tests/fetch/api/cors/cors-redirect-credentials.any.worker-expected.txt:
- web-platform-tests/fetch/api/redirect/redirect-location.any-expected.txt:
- web-platform-tests/fetch/api/redirect/redirect-location.any.worker-expected.txt:
- web-platform-tests/fetch/api/redirect/redirect-schemes-expected.txt:
- web-platform-tests/fetch/api/redirect/redirect-to-dataurl.any-expected.txt:
- web-platform-tests/fetch/api/redirect/redirect-to-dataurl.any.worker-expected.txt:
- web-platform-tests/fetch/security/redirect-to-url-with-credentials.https-expected.txt:
- web-platform-tests/service-workers/service-worker/fetch-event-redirect.https-expected.txt:
- web-platform-tests/xhr/access-control-and-redirects-async-expected.txt:
Source/WebCore:
Update checks in SubresourceLoader according networking process.
Make error messages consistent,
Test: http/tests/navigation/page-cache-mediastream.html
- loader/CrossOriginAccessControl.cpp:
(WebCore::validateCrossOriginRedirectionURL):
(WebCore::isValidCrossOriginRedirectionURL): Deleted.
- loader/CrossOriginAccessControl.h:
- loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didReceiveResponse):
(WebCore::SubresourceLoader::checkRedirectionCrossOriginAccessControl):
Source/WebKit:
Implement https://fetch.spec.whatwg.org/#http-redirect-fetch steps 7 and 8.
Covered by updated tests.
- NetworkProcess/NetworkLoadChecker.cpp:
(WebKit::NetworkLoadChecker::checkRedirection):
LayoutTests:
- http/tests/security/shape-image-cors-redirect-error-message-logging-4-expected.txt:
- http/tests/xmlhttprequest/access-control-and-redirects-async-expected.txt:
- http/tests/xmlhttprequest/access-control-and-redirects-async.html:
- 5:18 PM Changeset in webkit [252347] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, fix incorrect assertion
https://bugs.webkit.org/show_bug.cgi?id=201908
- heap/PreciseAllocation.cpp:
(JSC::PreciseAllocation::reuseForLowerTier):
- 5:04 PM Changeset in webkit [252346] by
-
- 7 edits2 adds in trunk/Source/WebCore
ASSERT at PlatformCALayerCocoa::avPlayerLayer(): [platformLayer() sublayers].count == 1
https://bugs.webkit.org/show_bug.cgi?id=204077
<rdar://problem/56640423>
Reviewed by Simon Fraser.
Make PlatformCALayerCocoa::avPlayer() more robust against underlying layer changes.
Promote WebVideoContainerLayer to its own header file and give the class a "playerLayer" property. In
PlatformCALayerCocoa::avPlayer(), use that new property to retrieve the AVPlayerLayer.
Drive-by fix: Make PlatformCALayerCocoa::create() return a Ref<PlatformCALayerCocoa> rather than its parent class type.
- SourcesCocoa.txt:
- WebCore.xcodeproj/project.pbxproj:
- platform/graphics/avfoundation/objc/VideoFullscreenLayerManagerObjC.h:
- platform/graphics/avfoundation/objc/VideoFullscreenLayerManagerObjC.mm:
(WebCore::VideoFullscreenLayerManagerObjC::setVideoLayer):
(-[WebVideoContainerLayer setBounds:]): Deleted.
(-[WebVideoContainerLayer setPosition:]): Deleted.
- platform/graphics/ca/cocoa/PlatformCALayerCocoa.h:
- platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm:
(WebCore::PlatformCALayerCocoa::create):
(WebCore::PlatformCALayerCocoa::layerTypeForPlatformLayer):
(WebCore::PlatformCALayerCocoa::clone const):
(WebCore::PlatformCALayerCocoa::avPlayerLayer const):
- platform/graphics/ca/cocoa/WebVideoContainerLayer.h: Added.
- platform/graphics/ca/cocoa/WebVideoContainerLayer.mm: Added.
(-[WebVideoContainerLayer initWithPlayerLayer:]):
(-[WebVideoContainerLayer playerLayer]):
(-[WebVideoContainerLayer setBounds:]):
(-[WebVideoContainerLayer setPosition:]):
- 4:58 PM Changeset in webkit [252345] by
-
- 6 edits1 add in trunk
UTC offset for Samoa is miscalculated when !HAVE(TIMEGM)
https://bugs.webkit.org/show_bug.cgi?id=204032
Reviewed by Yusuke Suzuki.
JSTests:
- complex.yaml:
- complex/timezone-offset-apia.js: Added.
Add test to verify Date.prototype.getTimezoneOffset for TZ=Pacific/Apia.
Source/WTF:
We have code assuming that the world's time zones haven't changed in the past decade,
but Samoa changed from UTC-11 to UTC+13 at the beginning of 2012.
(Note: "Samoa" here means the Independent State of Samoa (Pacific/Apia) and not American Samoa (Pacific/Samoa).
See https://en.wikipedia.org/wiki/Time_in_Samoa for more information.)
- wtf/DateMath.cpp:
(WTF::calculateUTCOffset):
Update "canned date" from 2009 to 2019.
Tools:
- Scripts/run-jsc-stress-tests:
Allow environment variables to be passed to "complex" tests.
- 4:34 PM Changeset in webkit [252344] by
-
- 8 edits in trunk/Source/WebCore
Always use matched declarations cache fully when parent inherited style matches
https://bugs.webkit.org/show_bug.cgi?id=204083
Reviewed by Zalan Bujtas.
- css/StyleResolver.cpp:
(WebCore::StyleResolver::applyMatchedProperties):
We used inheritedDataShared check here since it is always just pointer compare.
However instrumentation shows we miss out from singificant amount of cache benefit
due to this and the full check is not expensive.
- rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::inheritedEqual const):
(WebCore::RenderStyle::inheritedNotEqual const): Deleted.
Reverse the logic.
(WebCore::RenderStyle::inheritedDataShared const): Deleted.
Not used anymore.
- rendering/style/RenderStyle.h:
- rendering/style/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::inheritedEqual const):
(WebCore::SVGRenderStyle::inheritedNotEqual const): Deleted.
- rendering/style/SVGRenderStyle.h:
- style/StyleChange.cpp:
(WebCore::Style::determineChange):
- style/StyleTreeResolver.cpp:
(WebCore::Style::createInheritedDisplayContentsStyleIfNeeded):
- 4:17 PM Changeset in webkit [252343] by
-
- 1 copy in tags/Safari-608.4.9.1.3
Tag Safari-608.4.9.1.3.
- 4:17 PM Changeset in webkit [252342] by
-
- 1 copy in tags/Safari-608.4.9.0.3
Tag Safari-608.4.9.0.3.
- 3:57 PM Changeset in webkit [252341] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, fix alignment adjustment when reusing PreciseAllocation
https://bugs.webkit.org/show_bug.cgi?id=201908
- heap/PreciseAllocation.cpp:
(JSC::PreciseAllocation::reuseForLowerTier):
- 3:26 PM Changeset in webkit [252340] by
-
- 6 edits in trunk/LayoutTests
CrashTracer: com.apple.WebKit.Networking.Development at com.apple.WebKit: WebKit::NetworkProcess::setIsRunningResourceLoadStatisticsTest
https://bugs.webkit.org/show_bug.cgi?id=204081
<rdar://problem/56889809>
Reviewed by John Wilander.
This crash was happening in two places. First, in
has-storage-access-true-if-third-party-has-cookies-database.html,
the test was incorrectly marked as ephemeral then tried to use ITP by
calling setEnableFeature. ITP should not be used in ephemeral
sessions. There was also a small bug, ITP should be set to true (not
false) at the beginning of this test.
Second, both
has-storage-access-true-if-third-party-has-cookies-ephemeral.html and
has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html
had document.hrefs which redirected back to the non-ephemeral test cases after
setting a cookie. This caused a crash when trying to set ITP to false
using an ephemeral sessionID.
- http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-database.html:
- http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database-expected.txt:
- http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-database.html:
- http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral-expected.txt:
- http/tests/storageAccess/has-storage-access-true-if-third-party-has-cookies-ephemeral.html:
- 2:43 PM Changeset in webkit [252339] by
-
- 2 edits in trunk/Source/WebCore
Empty property sets should not mark MatchedProperties uncacheable
https://bugs.webkit.org/show_bug.cgi?id=204079
Reviewed by Zalan Bujtas.
- css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::addElementStyleProperties):
Bail out if there are no incoming properties.
- 2:13 PM Changeset in webkit [252338] by
-
- 8 edits12 adds in trunk
PaymentRequest / PaymentResponse should not prevent entering the back/forward cache
https://bugs.webkit.org/show_bug.cgi?id=203101
<rdar://problem/56744409>
Reviewed by Chris Dumez.
Source/WebCore:
Removed PaymentRequest's and PaymentResponse's override of
ActiveDOMObject::shouldPreventEnteringBackForwardCache_DEPRECATED and implemented
ActiveDOMObject::suspend instead.
Tests: http/tests/paymentrequest/page-cache-closed-payment-request.https.html
http/tests/paymentrequest/page-cache-completed-payment-response.https.html
http/tests/paymentrequest/page-cache-created-payment-request.https.html
http/tests/paymentrequest/page-cache-created-payment-response.https.html
http/tests/paymentrequest/page-cache-interactive-payment-request.https.html
http/tests/paymentrequest/page-cache-retried-payment-response.https.html
- Modules/paymentrequest/PaymentRequest.cpp:
(WebCore::PaymentRequest::suspend):
(WebCore::PaymentRequest::shouldPreventEnteringBackForwardCache_DEPRECATED const): Deleted.
- Modules/paymentrequest/PaymentRequest.h:
- Modules/paymentrequest/PaymentResponse.cpp:
(WebCore::PaymentResponse::suspend):
(WebCore::PaymentResponse::shouldPreventEnteringBackForwardCache_DEPRECATED const): Deleted.
- Modules/paymentrequest/PaymentResponse.h:
- bindings/js/JSDOMPromiseDeferred.cpp:
(WebCore::DeferredPromise::callFunction):
LayoutTests:
- http/tests/paymentrequest/page-cache-closed-payment-request.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-closed-payment-request.https.html: Added.
- http/tests/paymentrequest/page-cache-completed-payment-response.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-completed-payment-response.https.html: Added.
- http/tests/paymentrequest/page-cache-created-payment-request.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-created-payment-request.https.html: Added.
- http/tests/paymentrequest/page-cache-created-payment-response.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-created-payment-response.https.html: Added.
- http/tests/paymentrequest/page-cache-interactive-payment-request.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-interactive-payment-request.https.html: Added.
- http/tests/paymentrequest/page-cache-retried-payment-response.https-expected.txt: Added.
- http/tests/paymentrequest/page-cache-retried-payment-response.https.html: Added.
- resources/js-test.js:
(shouldReject):
(shouldRejectWithErrorName):
- 1:41 PM Changeset in webkit [252337] by
-
- 7 edits2 adds in trunk
Make MediaStream/MediaStreamTrack page cache friendly
https://bugs.webkit.org/show_bug.cgi?id=204030
Reviewed by Chris Dumez.
Source/WebCore:
Test: http/tests/navigation/page-cache-mediastream.html
- Modules/mediastream/MediaStream.cpp:
Remove the unnneeded opt-out of page cache in case of MediaStream.
- Modules/mediastream/MediaStream.h:
- Modules/mediastream/MediaStreamTrack.cpp:
(WebCore::MediaStreamTrack::suspend):
In case of a capture track, end it at suspend time but fire ended event at resume time.
- Modules/mediastream/MediaStreamTrack.h:
LayoutTests:
- platform/mac-wk1/TestExpectations: Disabled test for WK1.
- http/tests/navigation/page-cache-mediastream-expected.txt: Added.
- http/tests/navigation/page-cache-mediastream.html: Added.
- 11:42 AM Changeset in webkit [252336] by
-
- 22 edits in trunk
Revert "[css-lists] Implement list-style-type: <string>"
This reverts commit 0727a951800d22b0d8413293ef7ff42cedeb5499.
- 11:24 AM Changeset in webkit [252335] by
-
- 32 edits3 moves31 adds5 deletes in trunk/LayoutTests
Update WPT mediacapture-streams tests
https://bugs.webkit.org/show_bug.cgi?id=204073
Reviewed by Youenn Fablet.
LayoutTests/imported/w3c:
- resources/import-expectations.json:
- web-platform-tests/mediacapture-streams/GUM-deny.https.html:
- web-platform-tests/mediacapture-streams/GUM-impossible-constraint.https.html:
- web-platform-tests/mediacapture-streams/GUM-optional-constraint.https.html:
- web-platform-tests/mediacapture-streams/GUM-trivial-constraint.https.html:
- web-platform-tests/mediacapture-streams/MediaDevices-IDL-all-expected.txt: Removed.
- web-platform-tests/mediacapture-streams/MediaDevices-IDL-all.html: Removed.
- web-platform-tests/mediacapture-streams/MediaDevices-IDL-enumerateDevices-expected.txt: Removed.
- web-platform-tests/mediacapture-streams/MediaDevices-IDL-enumerateDevices.html: Removed.
- web-platform-tests/mediacapture-streams/MediaDevices-enumerateDevices.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaDevices-enumerateDevices.https.html:
- web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaDevices-getUserMedia.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-MediaElement-preload-none.https-expected.txt: Removed.
- web-platform-tests/mediacapture-streams/MediaStream-MediaElement-preload-none.https.html: Removed.
- web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-add-audio-track.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-audio-only.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-default-feature-policy.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStream-default-feature-policy.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-finished-add.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-gettrackid.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-idl.https.html:
- web-platform-tests/mediacapture-streams/MediaStream-removetrack.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStream-removetrack.https.html:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-audio-is-silence.https.html:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-MediaElement-disabled-video-is-black.https.html:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-end-manual.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-end-manual.https.html:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https-expected.txt:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-getSettings.https.html:
- web-platform-tests/mediacapture-streams/MediaStreamTrack-id.https.html:
- web-platform-tests/mediacapture-streams/OWNERS: Removed.
- web-platform-tests/mediacapture-streams/historical.html: Removed.
- web-platform-tests/mediacapture-streams/w3c-import.log:
LayoutTests:
- tests-options.json:
- 11:01 AM Changeset in webkit [252334] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed, rolling out r252151.
This broke internal builds and tests along with
https://bugs.webkit.org/show_bug.cgi?id=167729#c18. For more
information discuss with your reviewers.
Reverted changeset:
"Keep None value at the end of the ListStyleType enum"
https://bugs.webkit.org/show_bug.cgi?id=203883
https://trac.webkit.org/changeset/252151
- 10:38 AM Changeset in webkit [252333] by
-
- 2 edits in trunk/Source/WebKit
[iOS] Unable to view .pages files
https://bugs.webkit.org/show_bug.cgi?id=204076
<rdar://problem/57079557>
Reviewed by Brent Fulgham.
This is caused by a syscall being blocked by the sandbox. The syscall was previously unused in the
WebContent process.
- Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
- 10:28 AM Changeset in webkit [252332] by
-
- 2 edits in trunk/Tools
Regression r252309: API Test TestWebKitAPI._WKActivatedElementInfo.InfoForLinkAroundImage is failing consistently
https://bugs.webkit.org/show_bug.cgi?id=204058
<rdar://problem/57056000>
Unreviewed.
Remove test that looks at screen dimensions, because it fails on iPad.
- TestWebKitAPI/Tests/WebKitCocoa/WKRequestActivatedElementInfo.mm:
(TestWebKitAPI::TEST):
- 10:06 AM Changeset in webkit [252331] by
-
- 2 edits in trunk/Source/WebCore
Ensure MediaRemote callback always called.
https://bugs.webkit.org/show_bug.cgi?id=204072
<rdar://problem/56301651>
Reviewed by Eric Carlson.
MediaRemote.framework will complain if the callback passed in via MRMediaRemoteAddAsyncCommandHandlerBlock()
is not called for each invocation of the handler. Make sure we always call the completion handler, even in
the case of unsupported commands, or if the listener object has already been destroyed.
- platform/mac/RemoteCommandListenerMac.mm:
(WebCore::RemoteCommandListenerMac::RemoteCommandListenerMac):
- 10:01 AM Changeset in webkit [252330] by
-
- 9 edits2 adds in trunk
[Picture-in-Picture Web API] Support picture-in-picture CSS pseudo-class
https://bugs.webkit.org/show_bug.cgi?id=203493
Patch by Peng Liu <Peng Liu> on 2019-11-11
Reviewed by Dean Jackson.
Source/WebCore:
Add CSS pseudo class ":picture-in-picture" for a video element in the picture-in-picture mode.
Test: media/picture-in-picture/picture-in-picture-api-css-selector.html
- Modules/pictureinpicture/HTMLVideoElementPictureInPicture.cpp:
(WebCore::HTMLVideoElementPictureInPicture::didEnterPictureInPicture):
(WebCore::HTMLVideoElementPictureInPicture::didExitPictureInPicture):
- css/CSSSelector.cpp:
(WebCore::CSSSelector::selectorText const):
- css/CSSSelector.h:
- css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne const):
- css/SelectorCheckerTestFunctions.h:
(WebCore::matchesPictureInPicturePseudoClass):
- css/SelectorPseudoClassAndCompatibilityElementMap.in:
- cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::addPseudoClassType):
LayoutTests:
- media/picture-in-picture/picture-in-picture-api-css-selector-expected.txt: Added.
- media/picture-in-picture/picture-in-picture-api-css-selector.html: Added.
- 9:49 AM Changeset in webkit [252329] by
-
- 2 edits in trunk/Tools
[EWS] Use named arguments in factories.py
https://bugs.webkit.org/show_bug.cgi?id=204071
Reviewed by Jonathan Bedard.
- BuildSlaveSupport/ews-build/factories.py:
(Factory.init):
(StyleFactory.init):
(WatchListFactory.init):
(BindingsFactory.init):
(WebKitPerlFactory.init):
(WebKitPyFactory.init):
(BuildFactory.init):
(TestFactory.init):
(JSCTestsFactory.init):
(WindowsFactory.init):
(WinCairoFactory.init):
(GTKFactory.init):
(WPEFactory.init):
(ServicesFactory.init):
- 9:29 AM Changeset in webkit [252328] by
-
- 2 edits in trunk/Source/JavaScriptCore
Typo in assertion in validateCPS in DFGValidate.cpp ("Unexecpted")
https://bugs.webkit.org/show_bug.cgi?id=204066
Patch by Tuomas Karkkainen <tuomas.webkit@apple.com> on 2019-11-11
Reviewed by Antti Koivisto.
- dfg/DFGValidate.cpp:
- 9:07 AM Changeset in webkit [252327] by
-
- 5 edits in branches/safari-608.4.9.1-branch
Cherry-pick r252248. rdar://problem/57058391
[WebAuthn] Return NotAllowedError immediately for UI cancellations
https://bugs.webkit.org/show_bug.cgi?id=203937
<rdar://problem/56962420>
Reviewed by Brent Fulgham.
Source/WebKit:
NotAllowedError representing UI cancellations should be returned to sites
immediately such that sites could show appropriate error page immediately.
Covered by existing tests.
- UIProcess/WebAuthentication/AuthenticatorManager.cpp: (WebKit::AuthenticatorManager::cancelRequest): (WebKit::AuthenticatorManager::clearState): (WebKit::AuthenticatorManager::resetState): Deleted.
- UIProcess/WebAuthentication/AuthenticatorManager.h:
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm: (TestWebKitAPI::TEST):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 8:58 AM Changeset in webkit [252326] by
-
- 5 edits in branches/safari-608.4.9.0-branch
Cherry-pick r252248. rdar://problem/57040121
[WebAuthn] Return NotAllowedError immediately for UI cancellations
https://bugs.webkit.org/show_bug.cgi?id=203937
<rdar://problem/56962420>
Reviewed by Brent Fulgham.
Source/WebKit:
NotAllowedError representing UI cancellations should be returned to sites
immediately such that sites could show appropriate error page immediately.
Covered by existing tests.
- UIProcess/WebAuthentication/AuthenticatorManager.cpp: (WebKit::AuthenticatorManager::cancelRequest): (WebKit::AuthenticatorManager::clearState): (WebKit::AuthenticatorManager::resetState): Deleted.
- UIProcess/WebAuthentication/AuthenticatorManager.h:
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm: (TestWebKitAPI::TEST):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 8:24 AM Changeset in webkit [252325] by
-
- 7 edits in trunk
Unreviewed, rolling out r251460.
https://bugs.webkit.org/show_bug.cgi?id=204070
This patch caused a crash due to synchronous event firing
(Requested by jernoble on #webkit).
Reverted changeset:
"media/W3C/video/networkState/networkState_during_progress.html
is flaky"
https://bugs.webkit.org/show_bug.cgi?id=76280
https://trac.webkit.org/changeset/251460
- 8:23 AM Changeset in webkit [252324] by
-
- 3 edits in trunk/Tools
EWS should retry build in case of kill-old-processes failure
https://bugs.webkit.org/show_bug.cgi?id=203858
Reviewed by Jonathan Bedard.
- BuildSlaveSupport/ews-build/steps.py:
(KillOldProcesses.evaluateCommand): Retry the build in case of failure.
(KillOldProcesses.getResultSummary): Update the build-step summary string.
- BuildSlaveSupport/ews-build/steps_unittest.py: Updated unit-tests.
- 7:16 AM Changeset in webkit [252323] by
-
- 14 edits in trunk
WebDriver: implement proxy support
https://bugs.webkit.org/show_bug.cgi?id=180408
Reviewed by Carlos Alberto Lopez Perez.
Source/JavaScriptCore:
Add optional Proxy struct to session capabilities.
- inspector/remote/RemoteInspector.h:
- inspector/remote/glib/RemoteInspectorServer.cpp:
(Inspector::processSessionCapabilities):
Source/WebDriver:
Handle proxy object in capabilities.
- Capabilities.h: Add Proxy struct.
- WebDriverService.cpp:
(WebDriver::deserializeProxy): Deserialize the proxy from capabilities.
(WebDriver::WebDriverService::parseCapabilities const): Get the deserialized proxy.
(WebDriver::WebDriverService::validatedCapabilities const): Ensure proxy object is valid.
(WebDriver::WebDriverService::matchCapabilities const): Check proxy type is supported by the platform.
(WebDriver::WebDriverService::createSession): Only set an empty proxy object in capabilities if we don't have a
deserialized proxy.
- WebDriverService.h:
- glib/SessionHostGlib.cpp:
(WebDriver::SessionHost::buildSessionCapabilities const): Send the proxy settings to the browser.
- glib/WebDriverServiceGLib.cpp:
(WebDriver::WebDriverService::platformSupportProxyType const): Return false if proxy type is "pac".
Source/WebKit:
- UIProcess/API/glib/WebKitAutomationSession.cpp:
(parseProxyCapabilities): Parse the proxy settings from capabilities.
(webkitAutomationSessionCreate): Set the proxy settings received from capabilities.
WebDriverTests:
Unskip the tests that are now passing.
- TestExpectations.json:
- 7:13 AM Changeset in webkit [252322] by
-
- 3 edits in trunk/Source/WebCore
[LFC][IFC] Line::m_trimmableRuns does not need to be a ListHashSet
https://bugs.webkit.org/show_bug.cgi?id=204061
<rdar://problem/57064178>
Reviewed by Antti Koivisto.
Switch from ListHashSet to Vector.
- layout/inlineformatting/InlineLine.cpp:
(WebCore::Layout::Line::removeTrailingTrimmableContent):
(WebCore::Layout::Line::appendTextContent):
- layout/inlineformatting/InlineLine.h:
Nov 10, 2019:
- 10:25 PM Changeset in webkit [252321] by
-
- 4 edits in branches/safari-608.4.9.0-branch/Source
Cherry-pick r252297. rdar://problem/57040122
[WebAuthn] Add quirk needed to support legacy Google NFC Titan security keys
https://bugs.webkit.org/show_bug.cgi?id=204024
<rdar://problem/56962320>
Reviewed by Brent Fulgham.
Source/WebCore:
Covered by manual tests.
- Modules/webauthn/fido/FidoConstants.h:
Source/WebKit:
Some legacy U2F keys such as Google T1 Titan don't understand the FIDO applet command. Instead,
they are configured to only have the FIDO applet. Therefore, when the above command fails, we
use U2F_VERSION command to double check if the connected tag can actually speak U2F, indicating
we are interacting with one of these legacy keys.
- UIProcess/WebAuthentication/Cocoa/NfcConnection.mm: (WebKit::fido::compareVersion): (WebKit::fido::trySelectFidoApplet): (WebKit::NfcConnection::transact const): (WebKit::NfcConnection::didDetectTags):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 10:08 PM Changeset in webkit [252320] by
-
- 7 edits in branches/safari-608.4.9.0-branch/Source
Versioning.
- 10:04 PM Changeset in webkit [252319] by
-
- 4 edits in branches/safari-608.4.9.1-branch/Source
Cherry-pick r252297. rdar://problem/57058404
[WebAuthn] Add quirk needed to support legacy Google NFC Titan security keys
https://bugs.webkit.org/show_bug.cgi?id=204024
<rdar://problem/56962320>
Reviewed by Brent Fulgham.
Source/WebCore:
Covered by manual tests.
- Modules/webauthn/fido/FidoConstants.h:
Source/WebKit:
Some legacy U2F keys such as Google T1 Titan don't understand the FIDO applet command. Instead,
they are configured to only have the FIDO applet. Therefore, when the above command fails, we
use U2F_VERSION command to double check if the connected tag can actually speak U2F, indicating
we are interacting with one of these legacy keys.
- UIProcess/WebAuthentication/Cocoa/NfcConnection.mm: (WebKit::fido::compareVersion): (WebKit::fido::trySelectFidoApplet): (WebKit::NfcConnection::transact const): (WebKit::NfcConnection::didDetectTags):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 9:59 PM Changeset in webkit [252318] by
-
- 7 edits in branches/safari-608.4.9.1-branch/Source
Versioning.
- 9:39 PM Changeset in webkit [252317] by
-
- 3 edits in trunk/LayoutTests
iOS: fast/events/scroll-subframe-in-rendering-update.html always fails
https://bugs.webkit.org/show_bug.cgi?id=204045
Reviewed by Wenson Hsieh.
Enable async & frame scrolling to make the test work in iOS.
- fast/events/scroll-subframe-in-rendering-update.html:
- 8:09 PM Changeset in webkit [252316] by
-
- 6 edits in trunk/Source/WebCore
[LFC][IFC] Move Line::Run's line layout specific logic to InlineItemRun
https://bugs.webkit.org/show_bug.cgi?id=204055
<rdar://problem/57053232>
Reviewed by Antti Koivisto.
Line::Run started getting a bit overloaded through supporting the line layout logic and providing the 'run' interface
to the caller (e.g. merging multiple runs happens at the very end of the line layout, when the line is being closed. When a run
is expanded some of the properties do not make sense anymore. It makes part of the Run's logic unnecessarily complicated).
This patch introduces the InlineItemRun structure to support the line layout logic. We construct InlineItemRuns
as InlineItems are getting appended to the line and when the line is getting closed, we turn them into Line::Runs (InlineItems are never merged, only Line::Runs are).
- layout/displaytree/DisplayRun.h:
(WebCore::Display::Run::TextContext::setExpansion):
(WebCore::Display::Run::Run):
(WebCore::Display::Run::TextContext::resetExpansion): Deleted.
- layout/inlineformatting/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::setDisplayBoxesForLine):
- layout/inlineformatting/InlineFormattingContextQuirks.cpp:
(WebCore::Layout::InlineFormattingContext::Quirks::lineDescentNeedsCollapsing const):
- layout/inlineformatting/InlineLine.cpp:
(WebCore::Layout::InlineItemRun::layoutBox const):
(WebCore::Layout::InlineItemRun::logicalRect const):
(WebCore::Layout::InlineItemRun::textContext const):
(WebCore::Layout::InlineItemRun::isText const):
(WebCore::Layout::InlineItemRun::isBox const):
(WebCore::Layout::InlineItemRun::isContainerStart const):
(WebCore::Layout::InlineItemRun::isContainerEnd const):
(WebCore::Layout::InlineItemRun::type const):
(WebCore::Layout::InlineItemRun::setIsCollapsed):
(WebCore::Layout::InlineItemRun::isCollapsed const):
(WebCore::Layout::InlineItemRun::isCollapsedToZeroAdvanceWidth const):
(WebCore::Layout::InlineItemRun::isCollapsible const):
(WebCore::Layout::InlineItemRun::isWhitespace const):
(WebCore::Layout::InlineItemRun::hasExpansionOpportunity const):
(WebCore::Layout::InlineItemRun::InlineItemRun):
(WebCore::Layout::InlineItemRun::setCollapsesToZeroAdvanceWidth):
(WebCore::Layout::Line::Run::Run):
(WebCore::Layout::Line::Run::adjustExpansionBehavior):
(WebCore::Layout::Line::Run::expansionBehavior const):
(WebCore::Layout::Line::Run::setHasExpansionOpportunity):
(WebCore::Layout::Line::Run::setComputedHorizontalExpansion):
(WebCore::Layout::Line::Run::expand):
(WebCore::Layout::Line::~Line):
(WebCore::Layout::Line::isVisuallyEmpty const):
(WebCore::Layout::Line::close):
(WebCore::Layout::Line::alignContentVertically const):
(WebCore::Layout::Line::justifyRuns const):
(WebCore::Layout::Line::alignContentHorizontally const):
(WebCore::Layout::Line::removeTrailingTrimmableContent):
(WebCore::Layout::Line::trailingTrimmableWidth const):
(WebCore::Layout::Line::appendNonBreakableSpace):
(WebCore::Layout::Line::appendTextContent):
(WebCore::Layout::Line::appendNonReplacedInlineBox):
(WebCore::Layout::Line::appendReplacedInlineBox): Need to find a better place for setImage.
(WebCore::Layout::Line::appendLineBreak):
(WebCore::Layout::Line::alignContentVertically): Deleted.
(WebCore::Layout::Line::justifyRuns): Deleted.
(WebCore::Layout::Line::alignContentHorizontally): Deleted.
- layout/inlineformatting/InlineLine.h:
(WebCore::Layout::Line::Run::layoutBox const):
(WebCore::Layout::Line::Run::logicalRect const):
(WebCore::Layout::Line::Run::textContext const):
(WebCore::Layout::Line::Run::isCollapsedToVisuallyEmpty const):
(WebCore::Layout::Line::Run::adjustLogicalTop):
(WebCore::Layout::Line::Run::moveHorizontally):
(WebCore::Layout::Line::Run::moveVertically):
(WebCore::Layout::Line::Run::setTextContext):
(WebCore::Layout::Line::Run::setIsCollapsedToVisuallyEmpty):
(WebCore::Layout::Line::Run::hasExpansionOpportunity const):
(WebCore::Layout::Line::Run::expansionOpportunityCount const):
(WebCore::Layout::Line::Run::displayRun const): Deleted.
(WebCore::Layout::Line::Run::isCollapsed const): Deleted.
(WebCore::Layout::Line::Run::isCollapsible const): Deleted.
(WebCore::Layout::Line::Run::hasTrailingCollapsedContent const): Deleted.
(WebCore::Layout::Line::Run::isWhitespace const): Deleted.
(WebCore::Layout::Line::Run::setIsCollapsed): Deleted.
(WebCore::Layout::Line::Run::isCollapsedToZeroAdvanceWidth const): Deleted.
(WebCore::Layout::Line::Run::setCollapsesToZeroAdvanceWidth): Deleted.
(WebCore::Layout::Line::Run::expansionBehavior const): Deleted.
(WebCore::Layout::Line::Run::setHasExpansionOpportunity): Deleted.
(WebCore::Layout::Line::Run::adjustExpansionBehavior): Deleted.
(WebCore::Layout::Line::Run::setComputedHorizontalExpansion): Deleted.
- 4:16 PM Changeset in webkit [252315] by
-
- 8 edits in trunk/Source/WebCore
[Clipboard API] Add some infrastructure to resolve ClipboardItems into pasteboard data for writing
https://bugs.webkit.org/show_bug.cgi?id=203707
Reviewed by Ryosuke Niwa.
Implements a new method that will be used in a future patch to aggregate data vended by ClipboardItems when
writing items to the platform pasteboard. See below for more details; no new tests, since there is no change in
behavior yet.
- Modules/async-clipboard/ClipboardItem.cpp:
(WebCore::ClipboardItem::collectDataForWriting):
Add a new virtual
collectDataForWritingmethod, which is used when writing ClipboardItem data to the
pasteboard. This allows ClipboardItems to asynchronously convert data to a PasteboardCustomData after resolving
promises to strings or blobs; or alternately, cancel all data loading if a promise is rejected.
In order to convert items into a list of PasteboardCustomData, we do the following:
set up a PasteboardCustomData corresponding to each clipboard item
for each clipboard item:
for each type in the clipboard item:
try to resolve the promise
if the promise resolved to a string:
write the string to custom data under the type
if the promise resolved to a blob:
load the blob data as either text or an ArrayBuffer (depending on the type)
write either the loaded string or buffer to custom data under the type
if the promise rejected or resolved to an unsupported value, bail from these steps
- Modules/async-clipboard/ClipboardItem.h:
- Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp:
(WebCore::documentFromClipboard):
(WebCore::readTypeForMIMEType):
(WebCore::ClipboardItemBindingsDataSource::collectDataForWriting):
(WebCore::ClipboardItemBindingsDataSource::invokeCompletionHandler):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::ClipboardItemTypeLoader):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::~ClipboardItemTypeLoader):
Add a helper class to hold state associated with loading each clipboard type. This includes the final data
itself (a variant that holds either a String or Blob), as well as a FileReaderLoader which may be present in the
case where the clipboard item type resolves to a blob.
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::didFinishLoading):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::didFail):
Each ClipboardItemType is also the client for its FileReaderLoader, if present; when the FileReaderLoader
finishes loading or fails, we then extract data from the loader and invoke the completion handler.
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::invokeCompletionHandler):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::didResolveToBlob):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::didFailToResolve):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::didResolveToString):
One of these three methods is called when the promise corresponding to a clipboard type is either resolved or
rejected. If rejected or resolved to an incompatible type, we call the completion handler immediately with no
data; if we resolve to a string, we simply store the string inm_dataand invoke the completion handler;
otherwise, if we resolve to a blob, we create a new loader to fetch either the string or data buffer for the
blob, and wait until either didFinishLoading or didFail is called.
- Modules/async-clipboard/ClipboardItemBindingsDataSource.h:
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::create):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::type):
(WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader::data):
- Modules/async-clipboard/ClipboardItemDataSource.h:
- Modules/async-clipboard/ClipboardItemPasteboardDataSource.cpp:
(WebCore::ClipboardItemPasteboardDataSource::collectDataForWriting):
For the time being, leave this unimplemented; a future patch will add support for writing ClipboardItems that
came from the platform pasteboard, as opposed to those created by the page.
- Modules/async-clipboard/ClipboardItemPasteboardDataSource.h:
- 3:45 PM Changeset in webkit [252314] by
-
- 4 edits in trunk/Source/WebKit
StorageManagerSet.m_storageAreas should use weak pointers to StorageArea
<https://webkit.org/b/204048>
<rdar://problem/55342744>
Reviewed by Geoffrey Garen.
- NetworkProcess/WebStorage/StorageArea.h:
(class WebKit::StorageArea):
- Inherit from CanMakeWeakPtr<StorageArea>.
- NetworkProcess/WebStorage/StorageManagerSet.cpp:
(WebKit::StorageManagerSet::removeConnection):
(WebKit::StorageManagerSet::waitUntilSyncingLocalStorageFinished):
(WebKit::StorageManagerSet::connectToLocalStorageArea):
(WebKit::StorageManagerSet::connectToTransientLocalStorageArea):
(WebKit::StorageManagerSet::connectToSessionStorageArea):
(WebKit::StorageManagerSet::disconnectFromStorageArea):
(WebKit::StorageManagerSet::getValues): InitializequotaError
stack value since it is not guaranteed to be set.
(WebKit::StorageManagerSet::setItem):
(WebKit::StorageManagerSet::removeItem):
(WebKit::StorageManagerSet::clear):
- Use makeWeakPtr() to add StorageArea pointers to m_storageAreas.
- Use
const auto&to store WeakPtr<StorageArea> values from m_storageAreas. - Add nullptr checks before using WeakPtr<StorageArea> values.
- NetworkProcess/WebStorage/StorageManagerSet.h:
(WebKit::StorageManagerSet::m_storageAreas):
- Use WeakPtr<StorageArea>.
- 12:01 AM Changeset in webkit [252313] by
-
- 11 edits in trunk/Source/WebCore
Stack allocate StyleResolver state
https://bugs.webkit.org/show_bug.cgi?id=204053
Reviewed by Zalan Bujtas.
State is currently awkwardly a member that gets cleared. It should be stack allocated and
passed around where needed.
- animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::updateBlendingKeyframes):
- css/DOMCSSRegisterCustomProperty.cpp:
(WebCore::DOMCSSRegisterCustomProperty::registerProperty):
- css/StyleResolver.cpp:
(WebCore::StyleResolver::builderContext):
Helper for initializing Style::Builder from resolver state.
(WebCore::StyleResolver::styleForElement):
(WebCore::StyleResolver::styleForKeyframe):
(WebCore::StyleResolver::keyframeStylesForAnimation):
(WebCore::StyleResolver::pseudoStyleForElement):
(WebCore::StyleResolver::styleForPage):
(WebCore::StyleResolver::defaultStyleForElement):
(WebCore::StyleResolver::pseudoStyleRulesForElement):
(WebCore::StyleResolver::applyMatchedProperties):
(WebCore::StyleResolver::State::clear): Deleted.
Nothing to clear, state is transient.
(WebCore::StyleResolver::setNewStateWithElement): Deleted.
(WebCore::StyleResolver::applyPropertyToStyle): Deleted.
(WebCore::StyleResolver::applyPropertyToCurrentStyle): Deleted.
Style::Builder can be used directly to apply properties instead of via these functions that require state setup.
(WebCore::StyleResolver::initializeFontStyle): Deleted.
- css/StyleResolver.h:
(WebCore::StyleResolver::inspectorCSSOMWrappers):
(WebCore::StyleResolver::style const): Deleted.
(WebCore::StyleResolver::parentStyle const): Deleted.
(WebCore::StyleResolver::rootElementStyle const): Deleted.
(WebCore::StyleResolver::element const): Deleted.
(WebCore::StyleResolver::state): Deleted.
(WebCore::StyleResolver::state const): Deleted.
- html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::setFont):
Use Style::Builder directly to apply properties.
- style/StyleBuilder.cpp:
(WebCore::Style::Builder::Builder):
Encapsulte immutable arguments into BuilderContext type.
(WebCore::Style::Builder::applyPropertyValue):
- style/StyleBuilder.h:
- style/StyleBuilderState.cpp:
(WebCore::Style::BuilderState::BuilderState):
(WebCore::Style::BuilderState::updateFontForZoomChange):
(WebCore::Style::BuilderState::updateFontForGenericFamilyChange):
- style/StyleBuilderState.h:
(WebCore::Style::BuilderState::parentStyle const):
(WebCore::Style::BuilderState::rootElementStyle const):
(WebCore::Style::BuilderState::document const):
(WebCore::Style::BuilderState::element const):
(WebCore::Style::BuilderState::parentFontDescription):