Timeline
Sep 9, 2021:
- 11:42 PM Changeset in webkit [282261] by
-
- 3 edits2 adds in trunk
FontFaceSet.load() needs to react to style changes
https://bugs.webkit.org/show_bug.cgi?id=230132
Reviewed by Antti Koivisto.
LayoutTests/imported/w3c:
This test is being upstreamed in https://github.com/web-platform-tests/wpt/pull/30491
- web-platform-tests/css/css-font-loading/fontfaceset-load-css-connected-expected.txt: Added.
- web-platform-tests/css/css-font-loading/fontfaceset-load-css-connected.html: Added.
Source/WebCore:
If content does something like
let fonts = document.fonts;
... modify style sheets ...
fonts.load(...)
The load() function needs to see the result of hte style sheet modification.
Test: imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-load-css-connected.html
- css/FontFaceSet.cpp:
(WebCore::FontFaceSet::load):
- 11:41 PM Changeset in webkit [282260] by
-
- 3 edits4 adds in trunk
Nullptr crash in CompositeEditCommand::splitTreeToNode via InsertParagraphSeparatorCommand::doApply
https://bugs.webkit.org/show_bug.cgi?id=229276
Patch by Frédéric Wang <fwang@igalia.com> on 2021-09-09
Reviewed by Ryosuke Niwa.
Source/WebCore:
The loop in CompositeEditCommand::splitTreeToNode calls splitElement with the parent node as an
argument. This patch fixes a nullptr crash by following the rule of [1]: store the parent node as
a local smart pointer. Additionally, it ensures that editingIgnoresContent() returns false on the
parent so that the corresponding ASSERT in Position's constructor does not fail when
firstPositionInNode is called.
[1] https://lists.webkit.org/pipermail/webkit-dev/2020-September/031386.html
Tests: editing/execCommand/indent-input-in-image-crash.html
editing/execCommand/indent-input-in-image-editing-ignores-content-assert.html
- editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::moveParagraphs): Store parent node in a smart pointer and exit loop
if it returns true for editingIgnoresContent.
LayoutTests:
Add regression tests for a crash and an assert in CompositeEditCommand::splitTreeToNode.
- editing/execCommand/indent-input-in-image-crash-expected.txt: Added.
- editing/execCommand/indent-input-in-image-crash.html: Added.
- editing/execCommand/indent-input-in-image-editing-ignores-content-assert-expected.txt: Added.
- editing/execCommand/indent-input-in-image-editing-ignores-content-assert.html: Added.
- 10:38 PM Changeset in webkit [282259] by
-
- 9 edits in trunk/Source/JavaScriptCore
[JSC] Clean up current state of Temporal API
https://bugs.webkit.org/show_bug.cgi?id=230130
Reviewed by Yusuke Suzuki.
This patch perfoms a variety of cleanup tasks following the implementation of Temporal.PlainTime.
- Do away with the alias Subdurations and refer to ISO8601::Duration directly.
(But we can still say "subduration" when referring to a single ordered field, as in
largestSubduration.) - Represent ToTemporalDuration, ToTemporalDurationRecord, and ToLimitedTemporalDuration more directly in code, as TemporalDuration::{toTemporalDuration, fromDurationLike, toISO8601Duration}. (Note: The last of these doesn't take a disallowedFields parameter;
Temporal.Instant can do this after the fact, since no one else makes use of this functionality.)
- Extract intlOption<RoundingMode> into a helper function,
temporalRoundingMode. - Remove largestSubplainTime(), which was declared but not defined.
- Correct spelling of TemporalPlainTime::constrainTime().
- runtime/TemporalDuration.cpp:
(JSC::TemporalDuration::create):
(JSC::TemporalDuration::TemporalDuration):
(JSC::TemporalDuration::tryCreateIfValid):
(JSC::TemporalDuration::fromDurationLike): Added.
(JSC::TemporalDuration::toISO8601Duration): Added.
(JSC::TemporalDuration::toTemporalDuration): Added.
(JSC::TemporalDuration::from):
(JSC::totalNanoseconds):
(JSC::TemporalDuration::compare):
(JSC::TemporalDuration::sign):
(JSC::TemporalDuration::with const):
(JSC::TemporalDuration::negated const):
(JSC::TemporalDuration::abs const):
(JSC::largestSubduration): Added.
(JSC::TemporalDuration::balance):
(JSC::TemporalDuration::add const):
(JSC::TemporalDuration::subtract const):
(JSC::TemporalDuration::round):
(JSC::TemporalDuration::round const):
(JSC::TemporalDuration::total const):
(JSC::TemporalDuration::toString const):
(JSC::TemporalDuration::toString):
(JSC::TemporalDuration::fromNonDurationValue): Deleted.
(JSC::TemporalDuration::toDuration): Deleted.
(JSC::TemporalDuration::toDurationRecord): Deleted.
(JSC::TemporalDuration::largestSubduration const): Deleted.
- runtime/TemporalDuration.h:
- runtime/TemporalDurationConstructor.cpp:
- runtime/TemporalDurationPrototype.cpp:
- runtime/TemporalObject.cpp:
(JSC::temporalRoundingMode): Added.
- runtime/TemporalObject.h:
- runtime/TemporalPlainTime.cpp:
(JSC::TemporalPlainTime::round const):
(JSC::TemporalPlainTime::toString const):
(JSC::constrainTime): Added.
(JSC::regulateTime):
(JSC::TemporalPlainTime::add const):
(JSC::TemporalPlainTime::subtract const):
(JSC::extractDifferenceOptions):
(JSC::constraintTime): Deleted.
(JSC::toLimitedTemporalDuration): Deleted.
- runtime/TemporalPlainTime.h:
- 8:56 PM Changeset in webkit [282258] by
-
- 8 edits in trunk/Source/WebKit
Modernize CertificateInfo decoder
https://bugs.webkit.org/show_bug.cgi?id=230125
Patch by Alex Christensen <achristensen@webkit.org> on 2021-09-09
Reviewed by Chris Dumez.
Return std::optional instead of bool.
- Shared/WebCoreArgumentCoders.cpp:
- Shared/WebCoreArgumentCoders.h:
- Shared/cf/ArgumentCodersCF.cpp:
(IPC::ArgumentCoder<RetainPtr<CFTypeRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFArrayRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFBooleanRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFDataRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFDateRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFDictionaryRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFNumberRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFStringRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CFURLRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<CGColorSpaceRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<SecCertificateRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<SecKeychainItemRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<SecAccessControlRef>>::decode):
(IPC::ArgumentCoder<RetainPtr<SecTrustRef>>::decode):
- Shared/cf/ArgumentCodersCF.h:
- Shared/curl/WebCoreArgumentCodersCurl.cpp:
(IPC::ArgumentCoder<CertificateInfo>::decode):
- Shared/mac/WebCoreArgumentCodersMac.mm:
(IPC::ArgumentCoder<WebCore::CertificateInfo>::decode):
- Shared/soup/WebCoreArgumentCodersSoup.cpp:
(IPC::ArgumentCoder<CertificateInfo>::decode):
- 8:23 PM Changeset in webkit [282257] by
-
- 6 edits in trunk
[JSC] Intl.Locale weekendInfo should list all weekend days instead of range
https://bugs.webkit.org/show_bug.cgi?id=230108
Reviewed by Ross Kirsling.
JSTests:
- stress/intl-locale-info.js:
(throw.new.Error):
(let.enGB.new.Intl.Locale.shouldBe): Deleted.
- test262/config.yaml:
Source/JavaScriptCore:
We cannot assume that weekend is contiguous. For example, Burnei's weekend is Friday and Sunday.
This is raised in [1], and our conclusion in Sep-9 meeting is that we should have an array which
includes all the weekend days. The change is merged in [2], and this patch changes our implementation
accordingly.
[1]: https://github.com/tc39/proposal-intl-locale-info/issues/25
[2]: https://github.com/tc39/proposal-intl-locale-info/commit/afb1e269dd698476a2514129235cdad88af60e6f
- runtime/IntlLocale.cpp:
(JSC::IntlLocale::weekInfo):
- runtime/IntlObjectInlines.h:
(JSC::createArrayFromIntVector):
- 8:04 PM Changeset in webkit [282256] by
-
- 16 edits2 adds in trunk
[Table layout] Incorrect vertical position when the inline level box has 0px used height.
https://bugs.webkit.org/show_bug.cgi?id=230118
Reviewed by Antti Koivisto.
Source/WebCore:
Intrinsic padding is used in table cells to offset the content with their alignments as the content box may not be as tall as the cell itself.
This patch ensures that zero height content (where the baseline is also 0) gets the alignment offset as well.
(This patch also fixes the bug where we may reset the intrinsic padding to 0 on subsequent layouts.)
Test: fast/table/vertical-position-with-0-height-box.html
- rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::computeIntrinsicPadding):
LayoutTests:
- fast/table/vertical-position-with-0-height-box-expected.txt: Added.
- fast/table/vertical-position-with-0-height-box.html: Added.
- 7:25 PM Changeset in webkit [282255] by
-
- 3 edits in trunk/LayoutTests
[WinCairo] Unreviewed test gardening
- platform/wincairo-wk1/TestExpectations:
- platform/wincairo/TestExpectations:
- 6:00 PM Changeset in webkit [282254] by
-
- 4 edits in trunk/Tools
Fix some lldb data provider issues
https://bugs.webkit.org/show_bug.cgi?id=230134
Reviewed by Daniel Bates.
Fix the color data provider. Add a test for the URL provider. Add an
early return in lstring_to_string that fixed an error.
- lldb/lldbWebKitTester/main.cpp:
(testSummaryProviders):
- lldb/lldb_webkit.py:
(lstring_to_string):
(WebCoreColorProvider):
(WebCoreColorProvider._is_outOfLine):
(WebCoreColorProvider._is_valid):
(WebCoreColorProvider._is_semantic):
(WebCoreColorProvider._color_space):
(WebCoreColorProvider._flags):
(WebCoreColorProvider._to_string_outOfLine):
(WebCoreColorProvider.to_string):
(WebCoreColorProvider._is_extended): Deleted.
(WebCoreColorProvider._to_string_extended): Deleted.
- lldb/lldb_webkit_unittest.py:
(TestSummaryProviders):
(TestSummaryProviders.serial_test_WTFURL_SummaryProvider):
- 5:37 PM Changeset in webkit [282253] by
-
- 3 edits in trunk/Source/WebCore
Build fix for Ubuntu LTS and Debian after r282211
Some functions need to be guarded by ENABLE(LAYOUT_FORMATTING_CONTEXT)
- layout/integration/LayoutIntegrationRunIterator.cpp:
- layout/integration/LayoutIntegrationRunIterator.h:
- 5:28 PM Changeset in webkit [282252] by
-
- 7 edits in trunk/Source/WebKit
Preconnected socket is sometimes not used for initial request
https://bugs.webkit.org/show_bug.cgi?id=229686
Reviewed by Alex Christensen.
In the previous release, we preconnected to the main resource origin early in page load from
UIProcess to save ~10-15 ms per page load (https://bugs.webkit.org/show_bug.cgi?id=204992).
The savings comes from the fact that there's some latency in initiating the request in
WebProcess and waiting for the nav delegate reply in UIProcess. We hide that latency by
having the eventual main resource request reuse the early preconnected socket.
However, this optimization doesn't work for connections to known HTTP/1.1 origins due to
CFNetwork's in-memory cache of known HTTP/1.1 origins. If an origin is in this cache, and
a preconnect is still in flight, then the network stack will go wide immediately and issue
the main resource request on a new socket rather than trying to wait for the preconnect to
finish and reuse the preconnected socket. Thus the preconneted socket just goes to waste.
This can also cause issues with single-threaded web servers that serve only one request at
a time, as the main resource request can get head-of-line blocked by the preconnect that
is wasted.
To work around this, this patch tracks a small number of known HTTP/1.1 origins in memory.
If there is a pending preconnect to an HTTP/1.1 origin and a main resource request to that
origin comes in, then we block the request from going out until the preconnect finishes.
This allows the main resource request to utilize the preconnected socket.
This is worth ~1.25%-2.5% on PLT5 depending on device.
- NetworkProcess/NetworkLoad.cpp:
(WebKit::NetworkLoad::didCompleteWithError):
- NetworkProcess/NetworkLoadScheduler.cpp:
(WebKit::NetworkLoadScheduler::schedule):
(WebKit::NetworkLoadScheduler::unschedule):
(WebKit::NetworkLoadScheduler::scheduleLoad):
(WebKit::NetworkLoadScheduler::unscheduleLoad):
(WebKit::NetworkLoadScheduler::scheduleMainResourceLoad):
(WebKit::NetworkLoadScheduler::unscheduleMainResourceLoad):
(WebKit::NetworkLoadScheduler::startedPreconnectForMainResource):
(WebKit::NetworkLoadScheduler::finishedPreconnectForMainResource):
(WebKit::NetworkLoadScheduler::maybePrunePreconnectInfo):
(WebKit::NetworkLoadScheduler::isOriginHTTP1X):
(WebKit::NetworkLoadScheduler::updateOriginProtocolInfo):
- NetworkProcess/NetworkLoadScheduler.h:
- NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::preconnectTo):
- NetworkProcess/PreconnectTask.cpp:
(WebKit::PreconnectTask::PreconnectTask):
(WebKit::PreconnectTask::setTimeout):
(WebKit::PreconnectTask::start):
- NetworkProcess/PreconnectTask.h:
- 5:25 PM Changeset in webkit [282251] by
-
- 1 copy in tags/Safari-613.1.1.1
Tag Safari-613.1.1.1.
- 5:22 PM Changeset in webkit [282250] by
-
- 8 edits in branches/safari-613.1.1-branch/Source
Versioning.
WebKit-7613.1.1.1
- 5:22 PM Changeset in webkit [282249] by
-
- 8 edits in branches/safari-613.1.1-branch/Source
Revert "Versioning."
This reverts commit 765adb97dc4963500c9371cb6b2e8a4ce04de13f.
- 5:20 PM Changeset in webkit [282248] by
-
- 8 edits in branches/safari-613.1.1-branch/Source
Versioning.
WebKit-7613.1.2
- 5:15 PM Changeset in webkit [282247] by
-
- 5 edits in trunk
[Mac Catalyst] Korean characters do not combine correctly in editable fields in WKWebView
https://bugs.webkit.org/show_bug.cgi?id=230122
rdar://79062204
Reviewed by Devin Rousso.
Source/WebKit:
When using Korean input method (e.g. 2-set Korean) to type into editable input fields in WKWebView on Catalyst,
character combination is broken. While this is partly due to a WebKit-specific UIKit bug (see rdar://82938391),
this is also broken due to the fact that WKContentView reports a UIWKAutocorrectionContext with a
contextBeforeSelectionthat starts with a newline (\n); this causes UIKit to believe that the text selection
range when a single character has been typed isNSRange { 2, 0 }instead ofNSRange { 1, 0 }, due to the
extra newline. This subsequently causes character combination logic to proceed with a range that is off by one
character, which leads to characters not being combined (or the wrong characters being combined).
To address this, we simply avoid including the leading newline in the case where the starting position for the
"context before selection" is exactly at the first position inside the editable root.
Test: AutocorrectionTests.AutocorrectionContextDoesNotIncludeNewlineInTextField
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::autocorrectionContext):
Also drive-by fix a typo in "minContextLenght" while I'm here, and rename
currentPositionto
contextStartPosition, to better describe the purpose of this local variable.
Tools:
Add a new API test to exercise the change. See WebKit/ChangeLog for more information.
- TestWebKitAPI/Tests/ios/AutocorrectionTestsIOS.mm:
(-[TestWKWebView synchronouslyRequestAutocorrectionContext]):
(TEST):
- TestWebKitAPI/ios/UIKitSPI.h:
- 5:01 PM Changeset in webkit [282246] by
-
- 2 edits in trunk/Source/WTF
Unreviewed follow-up to r282105.
Add description for "BroadcastChannel Origin Partitioning" experimental feature.
- Scripts/Preferences/WebPreferencesExperimental.yaml:
- 4:55 PM Changeset in webkit [282245] by
-
- 2 edits in trunk/Source/WTF
Unreviewed, follow-up after r282007
Somehow, the wrong settings got enabled by the patch landed.
- Scripts/Preferences/WebPreferencesExperimental.yaml:
- 4:49 PM Changeset in webkit [282244] by
-
- 2 edits in trunk/LayoutTests
[ iOS ] editing/selection/ios/select-text-under-hidden-subframe.html is timing out.
https://bugs.webkit.org/show_bug.cgi?id=230127#c4
Unreviewed test gardening.
- platform/ios-wk2/TestExpectations:
- 4:48 PM Changeset in webkit [282243] by
-
- 5 edits4 adds in branches/safari-612-branch
Cherry-pick r281792. rdar://problem/82949614
[Cocoa] Drawing system fallback fonts to canvas causes a crash
https://bugs.webkit.org/show_bug.cgi?id=229633
<rdar://problem/81889036>
Reviewed by Wenson Hsieh.
Source/WebCore/PAL:
- pal/spi/cf/CoreTextSPI.h:
Source/WebKit:
Dot-prefixed font names don't survive the round-trip through
CTFontDescriptorCopyAttributes(CTFontCopyFontDescriptor(font)) unless you also
pass in the kCTFontOptionsSystemUIFont option.
Tests: fast/text/system-fallback-canvas.html
fast/text/draw-synthetic-system-bold-font-into-canvas.html
- Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::createCTFont): (IPC::ArgumentCoder<Ref<WebCore::Font>>::decodePlatformData):
LayoutTests:
- fast/text/system-fallback-canvas-expected.txt: Added.
- fast/text/system-fallback-canvas.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 4:39 PM Changeset in webkit [282242] by
-
- 37 edits in trunk/Source
Improve performance by using StringView, not "const StringView&"
https://bugs.webkit.org/show_bug.cgi?id=229834
Reviewed by Anders Carlsson.
Source/JavaScriptCore:
- parser/Lexer.h:
- runtime/IntlDateTimeFormat.cpp:
(JSC::IntlDateTimeFormat::setFormatsFromPattern):
- runtime/IntlDateTimeFormat.h:
Use StringView, not const StringView&.
Source/WebCore:
- html/BaseDateAndTimeInputType.h:
- html/DateInputType.cpp:
(WebCore::DateInputType::parseToDateComponents const):
- html/DateInputType.h:
- html/DateTimeLocalInputType.cpp:
(WebCore::DateTimeLocalInputType::parseToDateComponents const):
- html/DateTimeLocalInputType.h:
- html/MonthInputType.cpp:
(WebCore::MonthInputType::parseToDateComponents const):
- html/MonthInputType.h:
- html/TimeInputType.cpp:
(WebCore::TimeInputType::parseToDateComponents const):
- html/TimeInputType.h:
- html/WeekInputType.cpp:
(WebCore::WeekInputType::parseToDateComponents const):
- html/WeekInputType.h:
- html/parser/HTMLParserIdioms.cpp:
(WebCore::parseMetaHTTPEquivRefresh):
- html/parser/HTMLParserIdioms.h:
- html/parser/HTMLSrcsetParser.h:
- layout/formattingContexts/inline/InlineTextItem.cpp:
(WebCore::Layout::moveToNextNonWhitespacePosition):
- layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::canUseSimplifiedTextMeasuring):
- mathml/MathMLPresentationElement.cpp:
(WebCore::MathMLPresentationElement::parseNumberAndUnit):
(WebCore::MathMLPresentationElement::parseNamedSpace):
- mathml/MathMLPresentationElement.h:
- page/Quirks.cpp:
(WebCore::shouldSuppressAutocorrectionAndAutocaptializationInHiddenEditableAreasForHost):
- platform/graphics/FontCascade.cpp:
(WebCore::FontCascade::expansionOpportunityCount):
(WebCore::FontCascade::leftExpansionOpportunity):
(WebCore::FontCascade::rightExpansionOpportunity):
- platform/graphics/FontCascade.h:
- platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::conformFragmentIdentifierForURL):
- rendering/LegacyLineLayout.cpp:
(WebCore::LegacyLineLayout::computeInlineDirectionPositionsForSegment):
- svg/SVGParserUtilities.cpp:
(WebCore::parseNumber):
(WebCore::parseNumberOptionalNumber):
(WebCore::parsePoint):
(WebCore::parseRect):
(WebCore::parseGlyphName):
(WebCore::parseKerningUnicodeString):
- svg/SVGParserUtilities.h:
Use StringView, not const StringView&.
Source/WTF:
Since StringView is a small structure that fits into two registers, it's not
good to pass a pointer to it; better performance to pass it by value. Note
that this is for release builds, not debug builds where StringView has
significant additional overhead when copying.
- wtf/PrintStream.cpp:
(WTF::printInternal):
- wtf/PrintStream.h:
- wtf/text/StringConcatenate.h:
- wtf/text/StringView.cpp:
(WTF::StringView::containsIgnoringASCIICase const):
(WTF::StringView::findIgnoringASCIICase const):
(WTF::StringView::startsWith const):
(WTF::StringView::startsWithIgnoringASCIICase const):
(WTF::StringView::endsWith const):
(WTF::StringView::endsWithIgnoringASCIICase const):
(WTF::StringView::GraphemeClusters::Iterator::Impl::Impl):
(WTF::StringView::GraphemeClusters::Iterator::Iterator):
- wtf/text/StringView.h:
- wtf/text/WTFString.h:
Use StringView, not const StringView&.
- 3:24 PM Changeset in webkit [282241] by
-
- 3 edits in trunk/Source/WebCore
Potential crash under CachedRawResource::didAddClient()
https://bugs.webkit.org/show_bug.cgi?id=230121
<rdar://82936913>
Reviewed by Alex Christensen.
In r280083, I tried to address this crash by holding a strong reference
to the SharedBuffer before calling forEachSegment() on it. However, the
crash is still happening after this fix.
My suspicion is that the SharedBuffer's internal m_segments vector gets
modified as we iterate over it. As a result, I am reverting r280083 and
iterating over a copy of m_segments in forEachSegment() instead.
No new tests, we haven't been able to reproduce.
- WebCore.xcodeproj/project.pbxproj:
- loader/cache/CachedRawResource.cpp:
(WebCore::CachedRawResource::didAddClient):
- platform/SharedBuffer.cpp:
(WebCore::SharedBuffer::forEachSegment const):
- 2:57 PM Changeset in webkit [282240] by
-
- 2 edits in branches/safari-612-branch/Source/WebCore
Cherry-pick r281648. rdar://problem/82944435
REGRESSION(r256659): We try to remove fonts from the CSSFontFace which were never added
https://bugs.webkit.org/show_bug.cgi?id=229535
<rdar://problem/78857440>
Reviewed by Darin Adler.
After r256659, asking for a failed CSSFontFace's families() returns nullopt. It's possible to add
a failed font to a CSSFontFaceSet (of course). When we do that, we recognize the font is failed
and don't update our internal data structures, because there's no need to - we can't do anything
useful with a failed font.
If you _then_ try to remove the font from the CSSFontFace, we don't call families(), but instead
just pull out the raw m_families member, and look in our internal data structures for it, but we
don't find it, because it was never added.
- css/CSSFontFaceSet.cpp: (WebCore::CSSFontFaceSet::addToFacesLookupTable): (WebCore::CSSFontFaceSet::removeFromFacesLookupTable):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 2:36 PM Changeset in webkit [282239] by
-
- 22 edits2 adds in trunk
[JSC] Optimize op_get_property_enumerator further
https://bugs.webkit.org/show_bug.cgi?id=230086
Reviewed by Saam Barati.
JSTests:
- stress/for-in-cell-other.js: Added.
(shouldBe):
(forIn):
- stress/for-in-null-undefined.js: Added.
(shouldBe):
(forIn):
Source/JavaScriptCore:
- This patch adds fast path of op_get_property_enumerator to LLInt and Baseline. Previously, we only had this fast path in DFG and FTL.
- From the profiled data, Speedometer2/React-Redux-TodoMVC has GetPropertyEnumerator(CellOrOther). However, DFG and FTL only optimized GetPropertyEnumerator(Cell). We add CellOrOther and Other cases: if the argument is Other, then we can constant fold it to the empty enumerator. If the argument is CellOrOther, we can check first, and return empty enumerator for Other case.
- This patch also cleans up StructureRareData lookup by introducing StructureType to JSType.
| subtest | ms | ms | b / a | pValue (significance using False Discovery Rate) |
| Elm-TodoMVC |117.388333 |117.680000 |1.002485 | 0.269607 |
| VueJS-TodoMVC |24.918333 |24.651667 |0.989298 | 0.157665 |
| EmberJS-TodoMVC |126.430000 |126.296667 |0.998945 | 0.673803 |
| BackboneJS-TodoMVC |48.695000 |48.411667 |0.994181 | 0.019164 |
| Preact-TodoMVC |17.268333 |17.511667 |1.014091 | 0.199775 |
| AngularJS-TodoMVC |130.246667 |129.850000 |0.996954 | 0.261543 |
| Vanilla-ES2015-TodoMVC |63.626667 |63.611667 |0.999764 | 0.912112 |
| Inferno-TodoMVC |63.881667 |63.600000 |0.995591 | 0.385440 |
| Flight-TodoMVC |78.158333 |78.606667 |1.005736 | 0.284177 |
| Angular2-TypeScript-TodoMVC |39.448333 |39.411667 |0.999071 | 0.890825 |
| VanillaJS-TodoMVC |50.858333 |51.130000 |1.005342 | 0.195409 |
| jQuery-TodoMVC |225.318333 |226.256667 |1.004164 | 0.011190 |
| EmberJS-Debug-TodoMVC |340.150000 |338.450000 |0.995002 | 0.000063 (significant) |
| React-TodoMVC |85.703333 |85.606667 |0.998872 | 0.549298 |
| React-Redux-TodoMVC |141.985000 |140.418333 |0.988966 | 0.000000 (significant) |
| Vanilla-ES2015-Babel-Webpack-TodoMVC |61.505000 |61.705000 |1.003252 | 0.079817 |
a mean = 260.98021
b mean = 261.16020
pValue = 0.4985041089
(Bigger means are better.)
1.001 times better
Results ARE NOT significant
- bytecode/SpeculatedType.cpp:
(JSC::dumpSpeculation):
- dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetPropertyEnumerator):
(JSC::DFG::SpeculativeJIT::compileObjectKeysOrObjectGetOwnPropertyNames):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileObjectKeysOrObjectGetOwnPropertyNames):
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- jit/AssemblyHelpers.h:
(JSC::AssemblyHelpers::branchIfStructure):
(JSC::AssemblyHelpers::branchIfNotStructure):
- jit/JIT.cpp:
(JSC::JIT::privateCompileMainPass):
- jit/JIT.h:
- jit/JITPropertyAccess.cpp:
(JSC::JIT::emit_op_get_property_enumerator):
- jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::emit_op_get_property_enumerator):
- llint/LowLevelInterpreter.asm:
- llint/LowLevelInterpreter32_64.asm:
- llint/LowLevelInterpreter64.asm:
- runtime/BrandedStructure.cpp:
(JSC::BrandedStructure::create):
- runtime/JSType.cpp:
(WTF::printInternal):
- runtime/JSType.h:
- runtime/Structure.cpp:
(JSC::Structure::Structure):
(JSC::Structure::create):
- runtime/Structure.h:
(JSC::Structure::isRareData):
(JSC::Structure::isRareData const): Deleted.
- runtime/StructureInlines.h:
(JSC::Structure::create):
(JSC::Structure::createStructure):
- runtime/StructureRareData.h:
- runtime/VM.cpp:
(JSC::VM::VM):
- 1:58 PM Changeset in webkit [282238] by
-
- 3 edits in trunk/LayoutTests
[ iOS ] Rebaselining 2 imported/w3c/web-platform-tests/css/cssom-view/* tests.
https://bugs.webkit.org/show_bug.cgi?id=230123
Unreviewed test gardening.
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/css/cssom-view/offsetTopLeft-empty-inline-expected.txt:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/css/cssom-view/offsetTopLeft-leading-space-inline-expected.txt:
- 1:05 PM Changeset in webkit [282237] by
-
- 2 edits in trunk/Source/WebCore
[Win] REGRESSION(r282123): some layout tests are failing because the bgcolor of text input forms are unexpectedly black
https://bugs.webkit.org/show_bug.cgi?id=230077
Reviewed by Don Olmstead.
r282123 enabled HAVE_OS_DARK_MODE_SUPPORT for WinCairo. It uses
'-webkit-control-background' in the user-agent style sheet.
RenderThemeWin::systemColor always returned black for it. Because
WinCairo doesn't support dark mode yet, it is always light mode.
So, '-webkit-control-background' should be white at the moment.
- rendering/RenderThemeWin.cpp:
(WebCore::RenderThemeWin::systemColor const): Return white for CSSValueWebkitControlBackground.
- 12:59 PM Changeset in webkit [282236] by
-
- 4 edits in trunk/Source/WebKit
Enable IPCMessages debug logging for non-Cocoa ports
https://bugs.webkit.org/show_bug.cgi?id=230081
Reviewed by Alex Christensen.
r282177 temporarily disabled IPCMessages debug logging for
non-Cocoa ports because the generated
MessageArgumentDescriptions.cpp couldn't compile for them. Then,
r282190 fixed the problem. Enable it.
- Platform/IPC/HandleMessage.h:
(IPC::logMessageImpl): Reverted the change of r282177 to enable the logging.
(IPC::logReply): Ditto.
- Scripts/webkit/messages.py:
(generate_message_argument_description_implementation):
ENABLE(IPC_TESTING_API) isn't enabled for non-Cocoa ports yet.
Changed the condition.
- Scripts/webkit/tests/MessageArgumentDescriptions.cpp: Updated
this test expectation.
- 12:42 PM Changeset in webkit [282235] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed build fix for win after r282222.
https://bugs.webkit.org/show_bug.cgi?id=230059
- Modules/storage/StorageManager.h:
- 12:12 PM Changeset in webkit [282234] by
-
- 15 edits2 adds in trunk
right- and bottom-relative values in background-position-x/y don't work
https://bugs.webkit.org/show_bug.cgi?id=202148
Reviewed by Antti Koivisto.
LayoutTests/imported/w3c:
More passing results.
- web-platform-tests/css/css-backgrounds/parsing/background-position-x-computed-expected.txt:
- web-platform-tests/css/css-backgrounds/parsing/background-position-x-valid-expected.txt:
- web-platform-tests/css/css-backgrounds/parsing/background-position-y-computed-expected.txt:
- web-platform-tests/css/css-backgrounds/parsing/background-position-y-valid-expected.txt:
Source/WebCore:
Test: fast/backgrounds/background-position-xy.html
background-position[1] and background-position-x/background-position-y allow authors
to specify edge-relative values, like "background-position-x: right 10px". We
failed to handle this syntax in background-position-x and background-position-y,
but we do handle it in background-position.
So fix consumePositionX()/consumePositionY(), which are used when parsing
background-position-x/y, -webkit-mask-position-x/y, perspective-origin-x/y, and
transform-origin-x.y, to handle this edge-relative form.
A failure on imported/w3c/web-platform-tests/css/css-backgrounds/parsing/background-position-x-computed.html
(which only passes in Firefox) suggets that we should convert "right 10px" to "calc(100% - 10px)"
but for now, this patch serializes with edge keywords, as we do for the shorthand.
[1] https://www.w3.org/TR/css-backgrounds-3/#background-position
Test: fast/backgrounds/background-position-xy.html
- css/CSSComputedStyleDeclaration.cpp:
(WebCore::createSingleAxisPositionValueForLayer):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
- css/parser/CSSPropertyParser.cpp:
(WebCore::consumePositionX):
(WebCore::consumePositionY):
(WebCore::consumePositionLonghand): Deleted.
- css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumePositionCoordinates):
(WebCore::CSSPropertyParserHelpers::consumeSingleAxisPosition):
- css/parser/CSSPropertyParserHelpers.h:
LayoutTests:
Ref test for various background-position-* values. Adjust for serialization output changes.
- fast/backgrounds/background-position-xy-expected.html: Added.
- fast/backgrounds/background-position-xy.html: Added.
- fast/css/background-position-serialize-expected.txt:
- fast/css/background-position-serialize.html:
- transitions/background-position-transitions-expected.txt:
- transitions/background-position-transitions.html:
- 12:06 PM Changeset in webkit [282233] by
-
- 2 edits in trunk/LayoutTests
[BigSur wk2 Debug] 4 http/tests/inspector/network/ tests are flaky fails.
https://bugs.webkit.org/show_bug.cgi?id=230117.
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 11:56 AM Changeset in webkit [282232] by
-
- 2 edits in trunk/LayoutTests
[ MacOS ] imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html is a flaky failure.
https://bugs.webkit.org/show_bug.cgi?id=230116
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 11:33 AM Changeset in webkit [282231] by
-
- 2 edits in trunk/LayoutTests
Update test expectations for http/tests/inspector/network/har/har-page-aggressive-gc.html.
https://bugs.webkit.org/show_bug.cgi?id=230056.
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 11:25 AM Changeset in webkit [282230] by
-
- 18 edits11 copies7 adds in trunk/Source
Add PrivateClickMeasurement daemon
https://bugs.webkit.org/show_bug.cgi?id=230052
Patch by Alex Christensen <achristensen@webkit.org> on 2021-09-09
Reviewed by Chris Dumez.
Source/WebKit:
This adds the infrastructure to use a daemon instead of the network process to handle PrivateClickMeasurement.
It does not start using the daemon yet, so there is no change in behavior.
I made a new class PCM::ManagerInterface which can either be a PrivateClickMeasurementManager or a PCM::ManagerProxy,
which would send messages to the daemon instead of doing the work locally.
I implemented the encoding and decoding of parameters using some of the IPC encoding templates.
I have an entry point for an executable but no executable yet.
I have verified that EventAttribution unit tests pass when using the daemon, so the infrastructure is good.
- NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp:
- NetworkProcess/NetworkSession.cpp:
(WebKit::NetworkSession::NetworkSession):
(WebKit::pcmStoreDirectory): Deleted.
- NetworkProcess/NetworkSession.h:
(WebKit::NetworkSession::privateClickMeasurement):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementConnection.cpp: Added.
(WebKit::PCM::Connection::connectionToDaemon):
(WebKit::PCM::Connection::send):
(WebKit::PCM::Connection::sendWithReply):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementConnection.h: Added.
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementDaemonClient.cpp: Added.
(WebKit::PCM::DaemonClient::loadFromNetwork):
(WebKit::PCM::DaemonClient::broadcastConsoleMessage):
(WebKit::PCM::DaemonClient::featureEnabled const):
(WebKit::PCM::DaemonClient::debugModeEnabled const):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementDaemonClient.h: Added.
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementDecoder.cpp: Added.
(WebKit::PCM::Decoder::bufferIsLargeEnoughToContainBytes const):
(WebKit::PCM::Decoder::decodeFixedLengthData):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementDecoder.h: Added.
(WebKit::PCM::Decoder::Decoder):
(WebKit::PCM::Decoder::operator>>):
(WebKit::PCM::Decoder::bufferIsLargeEnoughToContain const):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementEncoder.cpp: Added.
(WebKit::PCM::Encoder::encodeFixedLengthData):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementEncoder.h: Added.
(WebKit::PCM::Encoder::operator<<):
(WebKit::PCM::Encoder::encode):
(WebKit::PCM::Encoder::takeBuffer):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerInterface.cpp: Added.
(WebKit::PCM::MessageInfo::toStringForTesting::encodeReply):
(WebKit::PCM::manager):
(WebKit::PCM::handlePCMMessage):
(WebKit::PCM::handlePCMMessageWithReply):
(WebKit::PCM::decodeMessageAndSendToManager):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerInterface.h: Added.
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerProxy.cpp: Added.
(WebKit::PCM::sendMessage):
(WebKit::PCM::ReplyCaller<>::callReply):
(WebKit::PCM::ReplyCaller<String>::callReply):
(WebKit::PCM::sendMessageWithReply):
(WebKit::PCM::ManagerProxy::storeUnattributed):
(WebKit::PCM::ManagerProxy::handleAttribution):
(WebKit::PCM::ManagerProxy::clear):
(WebKit::PCM::ManagerProxy::clearForRegistrableDomain):
(WebKit::PCM::ManagerProxy::migratePrivateClickMeasurementFromLegacyStorage):
(WebKit::PCM::ManagerProxy::toStringForTesting const):
(WebKit::PCM::ManagerProxy::setOverrideTimerForTesting):
(WebKit::PCM::ManagerProxy::setTokenPublicKeyURLForTesting):
(WebKit::PCM::ManagerProxy::setTokenSignatureURLForTesting):
(WebKit::PCM::ManagerProxy::setAttributionReportURLsForTesting):
(WebKit::PCM::ManagerProxy::markAllUnattributedAsExpiredForTesting):
(WebKit::PCM::ManagerProxy::markAttributedPrivateClickMeasurementsAsExpiredForTesting):
(WebKit::PCM::ManagerProxy::setEphemeralMeasurementForTesting):
(WebKit::PCM::ManagerProxy::setPCMFraudPreventionValuesForTesting):
(WebKit::PCM::ManagerProxy::startTimerImmediatelyForTesting):
(WebKit::PCM::ManagerProxy::destroyStoreForTesting):
- NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementManagerProxy.h: Added.
- NetworkProcess/PrivateClickMeasurement/cocoa/PrivateClickMeasurementDaemonConnectionCocoa.mm: Added.
(WebKit::PCM::Connection::Connection):
(WebKit::PCM::Connection::connectionToDaemon):
(WebKit::PCM::dictionaryFromMessage):
(WebKit::PCM::Connection::send):
(WebKit::PCM::Connection::sendWithReply):
- NetworkProcess/PrivateClickMeasurement/cocoa/PrivateClickMeasurementXPCUtilities.h: Added.
- NetworkProcess/PrivateClickMeasurement/cocoa/PrivateClickMeasurementXPCUtilities.mm: Added.
(WebKit::PCM::addVersionAndEncodedMessageToDictionary):
- NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
- Platform/IPC/ArgumentCoder.h:
- Platform/IPC/ArgumentCoders.cpp:
(IPC::decodeStringText):
(IPC::ArgumentCoder<String>::decode):
- Platform/IPC/ArgumentCoders.h:
- Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.h: Added.
- Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonEntryPoint.mm: Added.
(WebKit::peers):
(WebKit::CompletionHandler<void):
(WebKit::connectionEventHandler):
(WebKit::startListeningForMachServiceConnections):
(WebKit::registerScheduledActivityHandler):
(WebKit::enterSandbox):
(WebKit::PCMDaemonMain):
- Sources.txt:
- SourcesCocoa.txt:
- WebKit.xcodeproj/project.pbxproj:
Source/WTF:
- wtf/spi/darwin/XPCSPI.h:
- 11:04 AM Changeset in webkit [282229] by
-
- 12 edits in branches/safari-612-branch
Cherry-pick r282218. rdar://problem/82931375
Implement a WebProcess cap
https://bugs.webkit.org/show_bug.cgi?id=230067
<rdar://79479244>
Reviewed by Geoffrey Garen.
Source/WebKit:
Implement a WebProcess cap to avoid getting into a state where we run out of resources and crash in various ways.
The current limit is 400 and can be changed via an SPI. The limit is per UIProcess (not per process pool).
When we try and launch a new WebProcess and the limit has been reached, we terminate the least recently used
WebProcess to avoid going over the limit.
- Shared/ProcessTerminationReason.h:
- UIProcess/API/C/WKAPICast.h: (WebKit::toAPI):
- UIProcess/API/Cocoa/WKProcessPool.mm: (+[WKProcessPool _setWebProcessCountLimit:]):
- UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
- UIProcess/Cocoa/NavigationState.mm: (WebKit::wkProcessTerminationReason):
- UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadRequestWithNavigationShared): (WebKit::WebPageProxy::loadFile): (WebKit::WebPageProxy::loadDataWithNavigationShared): (WebKit::WebPageProxy::loadSimulatedRequest): (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::loadWebArchiveData): (WebKit::WebPageProxy::reload): (WebKit::WebPageProxy::goToBackForwardItem): (WebKit::shouldReloadAfterProcessTermination):
- UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::setProcessCountLimit): (WebKit::WebProcessProxy::create): (WebKit::WebProcessProxy::~WebProcessProxy): (WebKit::WebProcessProxy::addProvisionalPageProxy): (WebKit::WebProcessProxy::addExistingWebPage): (WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch): (WebKit::WebProcessProxy::establishServiceWorkerContext): (WebKit::WebProcessProxy::markProcessAsRecentlyUsed):
- UIProcess/WebProcessProxy.h:
Tools:
Add API test coverage.
- TestWebKitAPI/Tests/WebKitCocoa/WebContentProcessDidTerminate.mm: (TEST):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 11:04 AM Changeset in webkit [282228] by
-
- 3 edits in branches/safari-612-branch/Source/WebKit
Cherry-pick r282174. rdar://problem/82931245
Remove responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection
https://bugs.webkit.org/show_bug.cgi?id=230016
rdar://problem/80760179
Reviewed by Chris Dumez.
We've seen evidence that network process may be blocked in initializeNetworkProcess. Since we have a 3-second
responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection, blocked network process will be killed
and a new network process will be launched for getting connection. However, the new network process may get
stuck in initializeNetworkProcess too. In this case, web process will crash for not being able to get network
process connection.
- UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
- UIProcess/WebsiteData/WebsiteDataStore.cpp: change RELEASE_ASSERT_NOT_REACHED_WITH_MESSAGE to RELEASE_LOG_ERROR as the message is not printed in non-debug build. (WebKit::WebsiteDataStore::getNetworkProcessConnection):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 11:04 AM Changeset in webkit [282227] by
-
- 6 edits2 adds in branches/safari-612-branch/Source/WebCore
Cherry-pick r282142. rdar://problem/82931317
Add a fast path for atomizing strings when parsing HTML
https://bugs.webkit.org/show_bug.cgi?id=229907
rdar://82854612
Reviewed by Yusuke Suzuki and Darin Adler.
On various subtests in Speedometer 2, a nontrivial amount of time is spent mapping raw UChar data vectors into
AtomStrings while parsing HTML tag names, attribute names and attribute values. Most of this happens underneath
the AtomHTMLToken constructor, which computes a hash for each string in the process of adding it to the atom
string table; the time it takes to compute this string hash increases linearly with the length of the string.
However, over the course of the benchmark, the vast majority of AtomStrings created out of tag names, attribute
names and attribute values are both:
(1) Strings that we've already recently atomized, and
(2) Usually distinguishable from other atom strings based solely on their first character, last character, and
overall string length.
As such, it's possible to slightly improve string atomization performance in this particular case (i.e. parsing
HTML) by maintaining a smaller cache of recently atomized AtomStrings that we index using a simple, constant-
time hash function that considers only the first character, last character, and length of the string. In terms
of the cache hit rate in this AtomString cache, the default string hashing algorithm only barely outperforms
this simple hash function on Speedometer (i.e., a cache hit rate of 99.24% using the default hash algorithm vs.
99.15% using the "first/last character and length" hash).
Using this technique, we can get a significant performance improvement on Speedometer by introducing two small,
fixed-size (512 capacity) AtomString tables: one to hold tag names and attribute names, and another to hold
attribute values (which seems to contain a much larger set of unique strings); we additionally use the cheap "2-
char & length" hash algorithm described above to index into these fixed-size tables.
This allows us to more efficiently atomize not only known tag and attribute names, but also custom element tag
names and attribute names and values that tend to appear frequently in markup (e.g. due to using certain
JavaScript frameworks that get and set HTML attributes).
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- html/parser/AtomHTMLToken.h: (WebCore::AtomHTMLToken::initializeAttributes): (WebCore::AtomHTMLToken::AtomHTMLToken):
- html/parser/HTMLAtomStringCache.cpp: Added. (WebCore::HTMLAtomStringCache::cache):
- html/parser/HTMLAtomStringCache.h: Added.
Add a helper class that exposes three static inline helper methods:
makeTagOrAttributeNameand
makeAttributeValue, which return AtomStrings for the givenVector<UChar>(consulting the corresponding
cache if possible); andclear, which empties all cached atom strings.
(WebCore::HTMLAtomStringCache::makeTagOrAttributeName):
(WebCore::HTMLAtomStringCache::makeAttributeValue):
(WebCore::HTMLAtomStringCache::clear):
(WebCore::HTMLAtomStringCache::make):
Additionally add an upper length limit for characters that we include in this cache; in practice, longer strings
tend to be repeatedly atomized less frequently than shorter strings. The 36-character limit also allows for
frequently-parsed (and atomized) UUIDs to be cached.
(WebCore::HTMLAtomStringCache::cacheSlot):
This hashing algorithm was inspired by
calculateWithTwoCharacters, but with constants specifically chosen to
minimize collisions between common HTML tag and attribute names.
- page/MemoryRelease.cpp: (WebCore::releaseNoncriticalMemory):
- page/cocoa/MemoryReleaseCocoa.mm: (WebCore::jettisonExpensiveObjectsOnTopLevelNavigation):
Add logic to clear the HTML atom string cache upon receiving a low memory warning, and upon top-level
navigation.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 11:01 AM Changeset in webkit [282226] by
-
- 2 edits in trunk/LayoutTests
[ BigSur arm64 EWS ] ASSERTION FAILED: !needsLayout() ./rendering/RenderView.cpp(305) : virtual void WebCore::RenderView::paint(WebCore::PaintInfo &, const WebCore::LayoutPoint &).
https://bugs.webkit.org/show_bug.cgi?id=230113
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 10:42 AM Changeset in webkit [282225] by
-
- 2 edits in trunk/LayoutTests
[BigSur wk2] http/tests/fetch/redirectmode-and-preload.html is a flaky failure.
https://bugs.webkit.org/show_bug.cgi?id=230112.
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 10:39 AM Changeset in webkit [282224] by
-
- 2 edits in trunk/LayoutTests
[ BigSur arm64 EWS ] ASSERTION FAILED: m_globalScope->hasOneRef() ./workers/WorkerOrWorkletThread.cpp(155) : void WebCore::WorkerOrWorkletThread::workerOrWorkletThread().
https://bugs.webkit.org/show_bug.cgi?id=230109
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 10:06 AM Changeset in webkit [282223] by
-
- 16 edits in trunk/Source/WebCore
Cull inline culling
https://bugs.webkit.org/show_bug.cgi?id=202920
Reviewed by Alan Bujtas.
The optimization was already disabled in r282129.
This patch removes all the associated code.
- editing/SimplifyMarkupCommand.cpp:
(WebCore::SimplifyMarkupCommand::doApply):
- page/FrameView.cpp:
(WebCore::FrameView::paintContents):
- rendering/LegacyInlineFlowBox.cpp:
(WebCore::LegacyInlineFlowBox::nodeAtPoint):
- rendering/LegacyLineLayout.cpp:
(WebCore::LegacyLineLayout::createLineBoxes):
(WebCore::LegacyLineLayout::layoutLineBoxes):
- rendering/RenderElement.cpp:
(WebCore::RenderElement::RenderElement):
- rendering/RenderElement.h:
(WebCore::RenderElement::setRenderInlineAlwaysCreatesLineBoxes): Deleted.
(WebCore::RenderElement::renderInlineAlwaysCreatesLineBoxes const): Deleted.
- rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):
(WebCore::RenderInline::mayAffectLayout const):
Rename mayAffectRendering -> mayAffectLayout for specificity.
(WebCore::RenderInline::generateLineBoxRects const):
(WebCore::RenderInline::firstInlineBoxTopLeft const):
(WebCore::RenderInline::linesBoundingBox const):
(WebCore::RenderInline::linesVisualOverflowBoundingBox const):
(WebCore::RenderInline::linesVisualOverflowBoundingBoxInFragment const):
(WebCore::RenderInline::clippedOverflowRect const):
(WebCore::RenderInline::dirtyLineBoxes):
(WebCore::RenderInline::createAndAppendInlineFlowBox):
(WebCore::RenderInline::mayAffectRendering const): Deleted.
(WebCore::RenderInline::updateAlwaysCreateLineBoxes): Deleted.
(WebCore::RenderInline::generateCulledLineBoxRects const): Deleted.
(WebCore::RenderInline::hitTestCulledInline): Deleted.
(WebCore::RenderInline::culledInlineFirstLineBox const): Deleted.
(WebCore::RenderInline::culledInlineLastLineBox const): Deleted.
(WebCore::RenderInline::culledInlineVisualOverflowBoundingBox const): Deleted.
- rendering/RenderInline.h:
(WebCore::RenderInline::lastLineBox const):
(WebCore::RenderInline::firstLineBoxIncludingCulling const): Deleted.
(WebCore::RenderInline::lastLineBoxIncludingCulling const): Deleted.
(WebCore::RenderInline::alwaysCreateLineBoxes const): Deleted.
(WebCore::RenderInline::setAlwaysCreateLineBoxes): Deleted.
- rendering/RenderLineBoxList.cpp:
(WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
- rendering/RenderText.cpp:
(WebCore::RenderText::linesVisualOverflowBoundingBox const): Deleted.
- rendering/RenderText.h:
- rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::visualOverflowBoundingBox const): Deleted.
- rendering/RenderTextLineBoxes.h:
- rendering/RenderTreeAsText.cpp:
(WebCore::hasNonEmptySibling):
- rendering/svg/RenderSVGInline.cpp:
(WebCore::RenderSVGInline::RenderSVGInline):
- 10:03 AM Changeset in webkit [282222] by
-
- 10 edits in trunk/Source
Address post-commit comments on r282130 (Add basic support for Storage API)
https://bugs.webkit.org/show_bug.cgi?id=230059
Reviewed by Youenn Fablet.
Source/WebCore:
No new tests as no behavior change.
- Modules/storage/StorageManager.cpp:
(WebCore::StorageManager::StorageManager):
(WebCore::StorageManager::persisted):
(WebCore::StorageManager::persist):
(WebCore::clientOrigin): Deleted.
- Modules/storage/StorageManager.h:
- dom/Document.cpp:
(WebCore::Document::storageConnection):
- dom/Document.h:
- dom/ScriptExecutionContext.h:
(WebCore::ScriptExecutionContext::storageConnection):
- page/NavigatorBase.cpp:
(WebCore::NavigatorBase::storage):
- page/NavigatorBase.h:
Source/WebKit:
- NetworkProcess/storage/NetworkStorageManager.cpp:
(WebKit::NetworkStorageManager::localOriginStorageManager):
- 10:02 AM Changeset in webkit [282221] by
-
- 4 edits in trunk/Source
run-webkit-archive crashes with dyld error
https://bugs.webkit.org/show_bug.cgi?id=228060
Reviewed by Alex Christensen.
Source/JavaScriptCore:
Add a compatibility symbol for the old
WTF::Optionalversion ofBackendDispatcher::reportProtocolErrorin
versions of Safari shipping with macOS Big Sur and earlier. This has the side effect of not surfacing protocol
errors and instead silently discarding them when crossing this API boundary. Newer versions of macOS ship using
the newer symbol and are therefor not affected and will continue to surface protocol errors to the frontend.
- runtime/SymbolStubsForSafariCompatibility.mm:
(Inspector::BackendDispatcher::reportProtocolError):
Source/WTF:
Bump the maximum macOS version that
HAVE_SAFARI_FOR_WEBKIT_DEVELOPMENT_REQUIRING_EXTRA_SYMBOLSwill be enabled
to provide compatibility with changes made in macOS 12.
- wtf/PlatformHave.h:
- 9:49 AM Changeset in webkit [282220] by
-
- 41 edits in trunk/Source/WebCore
Refactor Video,Audio,TextTrack and TrackLists to not depend on HTMLMediaElement
https://bugs.webkit.org/show_bug.cgi?id=229924
Reviewed by Eric Carlson.
TrackBase and its derived classes currently are only able to handle a single "client"
at a time, which means a complicated re-sending of notifications from one client to
the next to ensure everything flows to the HTMLMediaElement. In addition to this
complicated client heirarchy, Tracks and their TrackLists being tightly bound to their
HTMLMediaElement will make MSE-in-a-Worker much more difficult to implement.
Refactor AudioTrack, VideoTrack, and TextTrack to have multiple clients, tracked by
a WeakHashSet. Remove HTMLMediaElement from that class heirarchy, and replace it with
a WeakPtr to their TrackList for opaqueRoot purposes.
Similarly, refactor AudioTrackList, VideoTrackList, and TextTrackList to not require
a backpointer to HTMLMediaElement, and use a WeakPtr<void> instead, allowing either
SourceBuffer or HTMLMediaElement to be the list's opaqueRoot.
A TrackBase needed access to a HTMLMediaElement only for the necessity of outputting
a warning to the console when a language error occurred; instead, make TrackBase a
ContextDestructionObserver, and pass a ScriptExecutionContext to the TrackBase (and
all its derived classes) in the constructor.
A TrackListBase now has a type() method, which allows it to be safely cast to AudioTrack,
VideoTrack, and TextTrack, through type trait specialization.
TextTrack used HTMLMediaElement to retrieve its TextTrackList for certain operations,
and now that each TrackBase has a backpointer to its TrackList, this is no longer necessary.
TextTrackList now has setDuration()/duration() member functions, so that when TextTrack
receives a cue with an indefinite duration, that cue's endTime can be calculated.
The AudioTrack, VideoTrack, and TextTrack IDLs previously specified GenerateIsReachable,
with a parameter of ImplElementRoot, which required an element() method on each; now
that TrackBase has an opaqueRoot() method, this parameter is no longer necessary.
- Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::videoTracks):
(WebCore::SourceBuffer::audioTracks):
(WebCore::SourceBuffer::textTracks):
(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveInitializationSegment):
(WebCore::SourceBuffer::videoTrackSelectedChanged):
(WebCore::SourceBuffer::videoTrackKindChanged):
(WebCore::SourceBuffer::videoTrackLabelChanged):
(WebCore::SourceBuffer::videoTrackLanguageChanged):
(WebCore::SourceBuffer::audioTrackEnabledChanged):
(WebCore::SourceBuffer::audioTrackKindChanged):
(WebCore::SourceBuffer::audioTrackLabelChanged):
(WebCore::SourceBuffer::audioTrackLanguageChanged):
(WebCore::SourceBuffer::textTrackModeChanged):
(WebCore::SourceBuffer::textTrackKindChanged):
(WebCore::SourceBuffer::textTrackLanguageChanged):
(WebCore::SourceBuffer::sourceBufferPrivateDurationChanged):
- Modules/mediasource/SourceBuffer.h:
- bindings/js/JSTrackCustom.h:
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::~HTMLMediaElement):
(WebCore::HTMLMediaElement::audioTrackKindChanged):
(WebCore::HTMLMediaElement::audioTrackLabelChanged):
(WebCore::HTMLMediaElement::audioTrackLanguageChanged):
(WebCore::HTMLMediaElement::willRemoveAudioTrack):
(WebCore::HTMLMediaElement::textTrackModeChanged):
(WebCore::HTMLMediaElement::textTrackKindChanged):
(WebCore::HTMLMediaElement::textTrackLabelChanged):
(WebCore::HTMLMediaElement::textTrackLanguageChanged):
(WebCore::HTMLMediaElement::willRemoveTextTrack):
(WebCore::HTMLMediaElement::videoTrackKindChanged):
(WebCore::HTMLMediaElement::videoTrackLabelChanged):
(WebCore::HTMLMediaElement::videoTrackLanguageChanged):
(WebCore::HTMLMediaElement::willRemoveVideoTrack):
(WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack):
(WebCore::HTMLMediaElement::mediaPlayerDidAddTextTrack):
(WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack):
(WebCore::HTMLMediaElement::addAudioTrack):
(WebCore::HTMLMediaElement::addTextTrack):
(WebCore::HTMLMediaElement::addVideoTrack):
(WebCore::HTMLMediaElement::removeAudioTrack):
(WebCore::HTMLMediaElement::removeTextTrack):
(WebCore::HTMLMediaElement::removeVideoTrack):
(WebCore::HTMLMediaElement::ensureAudioTracks):
(WebCore::HTMLMediaElement::ensureTextTracks):
(WebCore::HTMLMediaElement::ensureVideoTracks):
(WebCore::HTMLMediaElement::mediaPlayerDurationChanged):
- html/HTMLMediaElement.h:
- html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::~HTMLTrackElement):
(WebCore::HTMLTrackElement::track):
(WebCore::HTMLTrackElement::textTrackModeChanged):
- html/HTMLTrackElement.h:
- html/track/AudioTrack.cpp:
(WebCore::AudioTrack::AudioTrack):
(WebCore::AudioTrack::setLanguage):
(WebCore::AudioTrack::setEnabled):
(WebCore::AudioTrack::addClient):
(WebCore::AudioTrack::clearClient):
(WebCore::AudioTrack::enabledChanged):
(WebCore::AudioTrack::idChanged):
(WebCore::AudioTrack::labelChanged):
(WebCore::AudioTrack::willRemove):
- html/track/AudioTrack.h:
(WebCore::AudioTrackClient::audioTrackEnabledChanged):
(WebCore::AudioTrackClient::audioTrackIdChanged):
(WebCore::AudioTrackClient::audioTrackKindChanged):
(WebCore::AudioTrackClient::audioTrackLabelChanged):
(WebCore::AudioTrackClient::audioTrackLanguageChanged):
(WebCore::AudioTrackClient::willRemoveAudioTrack):
- html/track/AudioTrack.idl:
- html/track/AudioTrackList.cpp:
(WebCore::AudioTrackList::AudioTrackList):
(WebCore::AudioTrackList::append):
(WebCore::AudioTrackList::remove):
- html/track/AudioTrackList.h:
(isType):
- html/track/AudioTrackList.idl:
- html/track/InbandDataTextTrack.cpp:
(WebCore::InbandDataTextTrack::InbandDataTextTrack):
(WebCore::InbandDataTextTrack::create):
(WebCore::InbandDataTextTrack::addDataCue):
(WebCore::InbandDataTextTrack::updateDataCue):
- html/track/InbandDataTextTrack.h:
- html/track/InbandGenericTextTrack.cpp:
(WebCore::InbandGenericTextTrack::InbandGenericTextTrack):
(WebCore::InbandGenericTextTrack::create):
(WebCore::InbandGenericTextTrack::updateCueFromCueData):
- html/track/InbandGenericTextTrack.h:
- html/track/InbandTextTrack.cpp:
(WebCore::InbandTextTrack::create):
(WebCore::InbandTextTrack::InbandTextTrack):
(WebCore::InbandTextTrack::willRemove):
- html/track/InbandTextTrack.h:
- html/track/InbandWebVTTTextTrack.cpp:
(WebCore::InbandWebVTTTextTrack::InbandWebVTTTextTrack):
(WebCore::InbandWebVTTTextTrack::create):
- html/track/InbandWebVTTTextTrack.h:
- html/track/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::LoadableTextTrack):
(WebCore::LoadableTextTrack::newCuesAvailable):
- html/track/LoadableTextTrack.h:
- html/track/TextTrack.cpp:
(WebCore::TextTrack::captionMenuOffItem):
(WebCore::TextTrack::captionMenuAutomaticItem):
(WebCore::TextTrack::TextTrack):
(WebCore::TextTrack::create):
(WebCore::TextTrack::~TextTrack):
(WebCore::TextTrack::textTrackList const):
(WebCore::TextTrack::addClient):
(WebCore::TextTrack::clearClient):
(WebCore::TextTrack::setKind):
(WebCore::TextTrack::setMode):
(WebCore::TextTrack::removeAllCues):
(WebCore::TextTrack::addCue):
(WebCore::TextTrack::removeCue):
(WebCore::TextTrack::cueWillChange):
(WebCore::TextTrack::cueDidChange):
(WebCore::TextTrack::trackIndex):
(WebCore::TextTrack::trackIndexRelativeToRenderedTracks):
(WebCore::TextTrack::setLanguage):
(WebCore::TextTrack::setId):
(WebCore::TextTrack::setLabel):
(WebCore::TextTrack::newCuesAvailable):
- html/track/TextTrack.h:
(WebCore::TextTrackClient::textTrackIdChanged):
(WebCore::TextTrackClient::textTrackKindChanged):
(WebCore::TextTrackClient::textTrackModeChanged):
(WebCore::TextTrackClient::textTrackLabelChanged):
(WebCore::TextTrackClient::textTrackLanguageChanged):
(WebCore::TextTrackClient::textTrackAddCues):
(WebCore::TextTrackClient::textTrackRemoveCues):
(WebCore::TextTrackClient::textTrackAddCue):
(WebCore::TextTrackClient::textTrackRemoveCue):
(WebCore::TextTrackClient::willRemoveTextTrack):
- html/track/TextTrack.idl:
- html/track/TextTrackList.cpp:
(WebCore::TextTrackList::TextTrackList):
(WebCore::TextTrackList::~TextTrackList):
(WebCore::TextTrackList::append):
(WebCore::TextTrackList::remove):
- html/track/TextTrackList.h:
(isType):
- html/track/TextTrackList.idl:
- html/track/TrackBase.cpp:
(WebCore::TrackBase::TrackBase):
(WebCore::TrackBase::setTrackList):
(WebCore::TrackBase::clearTrackList):
(WebCore::TrackBase::trackList const):
(WebCore::TrackBase::setLanguage):
(WebCore::MediaTrackBase::MediaTrackBase):
- html/track/TrackBase.h:
(WebCore::TrackBase::id const):
(WebCore::TrackBase::label const):
(WebCore::TrackBase::language const):
(WebCore::TrackBase::opaqueRoot):
(WebCore::TrackBase::setId):
(WebCore::TrackBase::setLabel):
(WebCore::root):
- html/track/TrackListBase.cpp:
(WebCore::TrackListBase::TrackListBase):
(WebCore::TrackListBase::~TrackListBase):
(WebCore::TrackListBase::opaqueRoot):
(WebCore::TrackListBase::remove):
- html/track/TrackListBase.h:
(WebCore::TrackListBase::type const):
(WebCore::TrackListBase::setOpaqueRoot):
(WebCore::root):
- html/track/VideoTrack.cpp:
(WebCore::VideoTrack::VideoTrack):
(WebCore::VideoTrack::setSelected):
(WebCore::VideoTrack::addClient):
(WebCore::VideoTrack::clearClient):
(WebCore::VideoTrack::selectedChanged):
(WebCore::VideoTrack::idChanged):
(WebCore::VideoTrack::labelChanged):
(WebCore::VideoTrack::willRemove):
(WebCore::VideoTrack::setKind):
(WebCore::VideoTrack::setLanguage):
(WebCore::VideoTrack::updateKindFromPrivate):
- html/track/VideoTrack.h:
(WebCore::VideoTrackClient::videoTrackIdChanged):
(WebCore::VideoTrackClient::videoTrackKindChanged):
(WebCore::VideoTrackClient::videoTrackLabelChanged):
(WebCore::VideoTrackClient::videoTrackLanguageChanged):
(WebCore::VideoTrackClient::videoTrackSelectedChanged):
(WebCore::VideoTrackClient::willRemoveVideoTrack):
- html/track/VideoTrack.idl:
- html/track/VideoTrackList.cpp:
(WebCore::VideoTrackList::VideoTrackList):
(WebCore::VideoTrackList::append):
- html/track/VideoTrackList.h:
(isType):
- html/track/VideoTrackList.idl:
- 9:48 AM Changeset in webkit [282219] by
-
- 2 edits in trunk/LayoutTests
[ BigSur arm64 EWS ] ASSERTION FAILED: !needsLayout() ./rendering/RenderView.cpp(306) : virtual void WebCore::RenderView::paint(WebCore::PaintInfo &, const WebCore::LayoutPoint &).
https://bugs.webkit.org/show_bug.cgi?id=230105
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 9:40 AM Changeset in webkit [282218] by
-
- 12 edits in trunk
Implement a WebProcess cap
https://bugs.webkit.org/show_bug.cgi?id=230067
<rdar://79479244>
Reviewed by Geoffrey Garen.
Source/WebKit:
Implement a WebProcess cap to avoid getting into a state where we run out of resources and crash in various ways.
The current limit is 400 and can be changed via an SPI. The limit is per UIProcess (not per process pool).
When we try and launch a new WebProcess and the limit has been reached, we terminate the least recently used
WebProcess to avoid going over the limit.
- Shared/ProcessTerminationReason.h:
- UIProcess/API/C/WKAPICast.h:
(WebKit::toAPI):
- UIProcess/API/Cocoa/WKProcessPool.mm:
(+[WKProcessPool _setWebProcessCountLimit:]):
- UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
- UIProcess/Cocoa/NavigationState.mm:
(WebKit::wkProcessTerminationReason):
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::loadRequestWithNavigationShared):
(WebKit::WebPageProxy::loadFile):
(WebKit::WebPageProxy::loadDataWithNavigationShared):
(WebKit::WebPageProxy::loadSimulatedRequest):
(WebKit::WebPageProxy::loadAlternateHTML):
(WebKit::WebPageProxy::loadWebArchiveData):
(WebKit::WebPageProxy::reload):
(WebKit::WebPageProxy::goToBackForwardItem):
(WebKit::shouldReloadAfterProcessTermination):
- UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::setProcessCountLimit):
(WebKit::WebProcessProxy::create):
(WebKit::WebProcessProxy::~WebProcessProxy):
(WebKit::WebProcessProxy::addProvisionalPageProxy):
(WebKit::WebProcessProxy::addExistingWebPage):
(WebKit::WebProcessProxy::processDidTerminateOrFailedToLaunch):
(WebKit::WebProcessProxy::establishServiceWorkerContext):
(WebKit::WebProcessProxy::markProcessAsRecentlyUsed):
- UIProcess/WebProcessProxy.h:
Tools:
Add API test coverage.
- TestWebKitAPI/Tests/WebKitCocoa/WebContentProcessDidTerminate.mm:
(TEST):
- 9:08 AM Changeset in webkit [282217] by
-
- 14 edits in trunk
Update RTCPeerConnection descriptions as per specification
https://bugs.webkit.org/show_bug.cgi?id=229963
Reviewed by Eric Carlson.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/RTCPeerConnection-description-attributes-timing.https-expected.txt:
- web-platform-tests/webrtc/RTCPeerConnection-setLocalDescription-rollback-expected.txt:
Source/WebCore:
A peer connection has two sets of descriptions: main thread descriptions which are exposed to JS and signaling thread descriptions
which are used/modified internally by the backend.
WebRTC spec describes when signaling thread descriptions should be used to set main thread descriptions.
This should be done at the end of setting remote/local descriptions, as well as when adding or surfacing an ICE candidate.
We make sure to grab signaling thread descriptions at those moments, then hop to main thread to set the main thread descriptions.
In case of closed connection, we stop early as we do not need to surface new descriptions (as well as resolve promises/fire events).
Covered by rebased tests.
- Modules/mediastream/PeerConnectionBackend.cpp:
(WebCore::PeerConnectionBackend::setLocalDescriptionSucceeded):
(WebCore::PeerConnectionBackend::setRemoteDescriptionSucceeded):
(WebCore::PeerConnectionBackend::addIceCandidate):
(WebCore::PeerConnectionBackend::newICECandidate):
- Modules/mediastream/PeerConnectionBackend.h:
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::updateDescription):
(WebCore::RTCPeerConnection::updateDescriptions):
- Modules/mediastream/RTCPeerConnection.h:
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::fromSessionDescriptionType):
(WebCore::descriptionsFromPeerConnection):
(WebCore::LibWebRTCMediaEndpoint::addIceCandidate):
(WebCore::LibWebRTCMediaEndpoint::OnIceCandidate):
(WebCore::LibWebRTCMediaEndpoint::setLocalSessionDescriptionSucceeded):
(WebCore::LibWebRTCMediaEndpoint::setRemoteSessionDescriptionSucceeded):
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h:
- Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
(WebCore::LibWebRTCPeerConnectionBackend::doAddIceCandidate):
- Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h:
LayoutTests:
Now that we update descriptions at specific times,
we need to wait a bit to get the description.
- webrtc/datachannel/mdns-ice-candidates.html:
- 8:57 AM Changeset in webkit [282216] by
-
- 3 edits in trunk/Tools
Run check-github-mirror-integrity more frequently
https://bugs.webkit.org/show_bug.cgi?id=230095
Reviewed by Jonathan Bedard.
- CISupport/ews-build/factories.py:
(WatchListFactory.init): Run check-github-mirror-integrity on watchlist ews.
- CISupport/ews-build/factories_unittest.py:
(TestExpectedBuildSteps): Updated unit-test.
- 8:53 AM Changeset in webkit [282215] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed, fix the Mac Catalyst build after r282191
https://bugs.webkit.org/show_bug.cgi?id=230037
- WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm:
Update some logic that's guarded by ENABLE(PLATFORM_DRIVEN_TEXT_CHECKING) to use "->" for accessing methods on
Ref and CheckedRef, rather than ".".
(WebKit::TextCheckingControllerProxy::rangeAndOffsetRelativeToSelection):
(WebKit::TextCheckingControllerProxy::replaceRelativeToSelection):
(WebKit::TextCheckingControllerProxy::removeAnnotationRelativeToSelection):
- 8:41 AM Changeset in webkit [282214] by
-
- 2 edits in trunk/LayoutTests
[iOS14 Sim Release iPhone] fast/sub-pixel/auto-table-layout-should-avoid-text-wrapping.html is a flaky crash.
https://bugs.webkit.org/show_bug.cgi?id=230099.
Unreviewed test gardening.
- platform/ios-14-wk2/TestExpectations:
- 8:32 AM Changeset in webkit [282213] by
-
- 2 edits in trunk/Tools
[ews] Share more bots between EWS queues
https://bugs.webkit.org/show_bug.cgi?id=230094
Reviewed by Jonathan Bedard.
- CISupport/ews-build/config.json:
- 8:30 AM Changeset in webkit [282212] by
-
- 3 edits1 add in trunk
Differential testing: incorrect constant propagation around Uint8ClampedArray
https://bugs.webkit.org/show_bug.cgi?id=229869
JSTests:
Reviewed by Saam Barati.
- stress/Uint8ClampedArrayClampsInt52Positive.js: Added.
(let.x.123.test):
(noInline.test.int32pos1):
(255.int32pos2):
(1.int32neg1):
(0.int32neg2):
(0.int52pos1):
(255.int52pos2):
(255.int52neg1):
(0.int52neg2):
(0.int52neg3):
(0.int52pos3):
(255.int8):
Source/JavaScriptCore:
We casted int52 values to int32 before clamping, which caused any value with the 32nd bit
set to be interpreted as negative. The fix is to check the full-size value when deciding to clamp.
Reviewed by Saam Barati.
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- 6:59 AM Changeset in webkit [282211] by
-
- 7 edits in trunk/Source/WebCore
Add cache to InlineContent for O(1) inline box access
https://bugs.webkit.org/show_bug.cgi?id=230092
Reviewed by Alan Bujtas.
Add lazy caches for getting the index of the first run and all non-root inline boxes for a layout box.
- layout/integration/LayoutIntegrationInlineContent.cpp:
(WebCore::LayoutIntegration::InlineContent::indexForRun const):
(WebCore::LayoutIntegration::InlineContent::firstRunForLayoutBox const):
(WebCore::LayoutIntegration::InlineContent::firstRunIndexForLayoutBox const):
For small run vectors (<16) just search directly.
(WebCore::LayoutIntegration::InlineContent::nonRootInlineBoxIndexesForLayoutBox const):
(WebCore::LayoutIntegration::InlineContent::releaseCaches):
Memory cleanup support.
(WebCore::LayoutIntegration::InlineContent::shrinkToFit):
(WebCore::LayoutIntegration::InlineContent::iteratorForRun const): Deleted.
(WebCore::LayoutIntegration::InlineContent::iteratorForTextRun const): Deleted.
Cleanup the interface by removing iterator dependency (iterator depends on InlineContent, not other way round).
- layout/integration/LayoutIntegrationInlineContent.h:
(WebCore::LayoutIntegration::InlineContent::traverseNonRootInlineBoxes):
Traversal helper.
(WebCore::LayoutIntegration::InlineContent::shrinkToFit): Deleted.
- layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::textRunsFor const):
(WebCore::LayoutIntegration::LineLayout::runFor const):
(WebCore::LayoutIntegration::LineLayout::firstInlineBoxRect const):
(WebCore::LayoutIntegration::LineLayout::visualOverflowBoundingBoxRectFor const):
(WebCore::LayoutIntegration::LineLayout::collectInlineBoxRects const):
Use the new cache-backed interfaces.
(WebCore::LayoutIntegration::LineLayout::releaseCaches):
(WebCore::LayoutIntegration::LineLayout::paintTextRunUsingPhysicalCoordinates):
(WebCore::LayoutIntegration::LineLayout::releaseInlineItemCache): Deleted.
- layout/integration/LayoutIntegrationLineLayout.h:
- layout/integration/LayoutIntegrationRunIterator.cpp:
(WebCore::LayoutIntegration::textRunFor):
(WebCore::LayoutIntegration::runFor):
- layout/integration/LayoutIntegrationRunIterator.h:
- 5:16 AM Changeset in webkit [282210] by
-
- 12 edits in trunk/Source/WebKit
Categorize WebRTC TCP nw connections like done for WebRTC UDP nw connections
https://bugs.webkit.org/show_bug.cgi?id=229801
Reviewed by Eric Carlson.
Move NetworkRTCUDPSocketCocoa tracker related code to its own routine in NetworkRTCUtilitiesCocoa.
Make use of that routine in NetworkRTCTCPSocketCocoa.
To do so, we need to pass more information when creating a client TCP socket from WebProcess to NetworkProcess.
Manually tested.
- NetworkProcess/webrtc/NetworkRTCProvider.cpp:
(WebKit::NetworkRTCProvider::createClientTCPSocket):
- NetworkProcess/webrtc/NetworkRTCProvider.h:
- NetworkProcess/webrtc/NetworkRTCProvider.messages.in:
- NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.h:
- NetworkProcess/webrtc/NetworkRTCTCPSocketCocoa.mm:
(WebKit::NetworkRTCTCPSocketCocoa::createClientTCPSocket):
(WebKit::NetworkRTCTCPSocketCocoa::NetworkRTCTCPSocketCocoa):
- NetworkProcess/webrtc/NetworkRTCUDPSocketCocoa.mm:
(WebKit::NetworkRTCUDPSocketCocoaConnections::configureParameters):
(WebKit::isKnownTracker): Deleted.
- NetworkProcess/webrtc/NetworkRTCUtilitiesCocoa.h:
- NetworkProcess/webrtc/NetworkRTCUtilitiesCocoa.mm:
(WebKit::setNWParametersTrackerOptions):
(WebKit::isKnownTracker):
- WebProcess/Network/webrtc/LibWebRTCProvider.cpp:
(WebKit::RTCSocketFactory::CreateClientTcpSocket):
- WebProcess/Network/webrtc/LibWebRTCSocketFactory.cpp:
(WebKit::LibWebRTCSocketFactory::createClientTcpSocket):
- WebProcess/Network/webrtc/LibWebRTCSocketFactory.h:
- 4:38 AM Changeset in webkit [282209] by
-
- 3 edits2 adds in trunk
Chromium test-case asserts with ASSERTION FAILED: propertyMissingOrEqualToNone
https://bugs.webkit.org/show_bug.cgi?id=202904
Patch by Frederic Wang <fwang@igalia.com> on 2021-09-09
Reviewed by Darin Adler.
Source/WebCore:
WebCore::CompositeEditCommand::moveParagraphs calls createFragmentFromMarkup with a parameter
AnnotateForInterchange set to No. As a consequence, StyledMarkupAccumulator::serializeNodes
will not call EditingStyle::wrappingStyleForSerialization (in order to remove
-webkit-text-decorations-in-effect) contrary to the assumption of the ASSERT in
propertyMissingOrEqualToNone. This can lead to the ASSERT failing e.g. with the JustifyRight
command. This patch fixes that wrong expectation by importing the corresponding change and
test from Chromium [1].
[1] https://codereview.chromium.org/1522063002
Test: imported/blink/editing/execCommand/justify-right-in-effect-crash.html
- editing/markup.cpp:
(WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag): Skip the assert if we should not
annotate and update the code comment accordingly.
LayoutTests:
Import regression test from Blink.
- imported/blink/editing/execCommand/justify-right-in-effect-crash-expected.txt: Added.
- imported/blink/editing/execCommand/justify-right-in-effect-crash.html: Added.
- 4:26 AM Changeset in webkit [282208] by
-
- 22 edits31 adds in trunk/LayoutTests
[css-text-decor] Update WPT test suite
https://bugs.webkit.org/show_bug.cgi?id=230042
LayoutTests/imported/w3c:
Import css-text-decor test suite based on WPT commit 5d2020c403.
Reviewed by Rob Buis.
- resources/resource-files.json:
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-dashed-expected.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-dashed.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-double-expected.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-double.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-solid-expected.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-solid.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-wavy-expected.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/text-decoration-invalidation-wavy.html: Added.
- web-platform-tests/css/css-text-decor/invalidation/w3c-import.log: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color-expected.html:
- web-platform-tests/css/css-text-decor/text-decoration-color-selection-001-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color-selection-001.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color-selection-002.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color-selection-pseudo-01-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color-selection-pseudo-01.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-color.html:
- web-platform-tests/css/css-text-decor/text-decoration-skip-ink-005-expected.html:
- web-platform-tests/css/css-text-decor/text-decoration-skip-ink-005.html:
- web-platform-tests/css/css-text-decor/text-decoration-thickness-from-zero-sized-font-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-from-zero-sized-font.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-ink-skip-dilation-expected.html:
- web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-percent-001.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-scroll-001.html:
- web-platform-tests/css/css-text-decor/text-decoration-thickness-single-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-single.html: Added.
- web-platform-tests/css/css-text-decor/text-decoration-thickness-vertical-002.html:
- web-platform-tests/css/css-text-decor/text-emphasis-color-001.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-002.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-001.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-above-right-002.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-001.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-below-left-002.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-001.xht:
- web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002.xht:
- web-platform-tests/css/css-text-decor/text-underline-offset-negative-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-negative.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-overline-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-overline-vertical-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-overline-vertical.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-overline.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-scroll-001.html:
- web-platform-tests/css/css-text-decor/text-underline-offset-vertical-003-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-vertical-003.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-zero-position-expected.html: Added.
- web-platform-tests/css/css-text-decor/text-underline-offset-zero-position.html: Added.
- web-platform-tests/css/css-text-decor/w3c-import.log:
LayoutTests:
Reviewed by Rob Buis.
- TestExpectations: Mark some test failures.
- 4:18 AM Changeset in webkit [282207] by
-
- 7 edits in trunk/LayoutTests/imported/w3c
Rebase a few WebRTC tests marked as flaky but making progress with RTCSctpTransport introduction
https://bugs.webkit.org/show_bug.cgi?id=230089
Unreviewed, rebasing tests only.
- web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https-expected.txt:
- web-platform-tests/webrtc/RTCPeerConnection-iceGatheringState-expected.txt:
- web-platform-tests/webrtc/RTCPeerConnection-perfect-negotiation-stress-glare-linear.https-expected.txt:
- web-platform-tests/webrtc/RTCPeerConnection-perfect-negotiation-stress-glare.https-expected.txt:
- web-platform-tests/webrtc/protocol/candidate-exchange.https-expected.txt:
- web-platform-tests/webrtc/protocol/crypto-suite.https-expected.txt:
- 3:09 AM Changeset in webkit [282206] by
-
- 2 edits in trunk/LayoutTests/imported/w3c
Rebase imported/w3c/web-platform-tests/webrtc/RTCDataChannel-close-expected.txt
https://bugs.webkit.org/show_bug.cgi?id=230087
Unreviewed, we are rebasing a test.
- web-platform-tests/webrtc/RTCDataChannel-close-expected.txt:
Rebasing test now that we support running the test and we support RTCError.
- 3:02 AM Changeset in webkit [282205] by
-
- 7 edits in trunk/LayoutTests
[Gstreamer] timeouts in media/media-source/media-source-has-audio-video.html and media/media-source/media-source-seek-unbuffered.html
https://bugs.webkit.org/show_bug.cgi?id=227258
<rdar://problem/79625722>
Reviewed by Alicia Boya Garcia.
The media-source-seek-unbuffered.html test was feeding only one segment
(1 second) to the SourceBuffer, but the libav h264 decoder used by the
glib ports needs more data to start producing decoded output.
The test was modified to append two segments (2 seconds) instead and now
the test passes.
The concatArrayBuffers() function from the media-source-error-crash.html
test was refactored as MediaSourceLoader.concatenateMediaSegments() and
reused in media-source-seek-unbuffered.html.
- media/media-source/media-source-error-crash-expected.txt: Expect different concatenation expression.
- media/media-source/media-source-error-crash.html: Removed concatArrayBuffers() and use MediaSourceLoader.concatenateMediaSegments() instead.
- media/media-source/media-source-loader.js:
(MediaSourceLoader.prototype.concatenateMediaSegments): New method that concatenates two media segments (ArrayBuffers).
- media/media-source/media-source-seek-unbuffered-expected.txt: Modified expectations to expect a different removed range and a more legible currentTime check.
- media/media-source/media-source-seek-unbuffered.html: Append 2 segments, remove [0.5, 2] instead of [0.5, 1] and improve legibility of currentTime check.
- platform/glib/TestExpectations: Unskipped test.
- 2:38 AM Changeset in webkit [282204] by
-
- 3 edits2 adds in trunk
FontFaceSet.has() needs to react to style changes
https://bugs.webkit.org/show_bug.cgi?id=229848
Reviewed by Antti Koivisto.
LayoutTests/imported/w3c:
This test was landed upstream in https://github.com/web-platform-tests/wpt/pull/30322
- web-platform-tests/css/css-font-loading/fontfaceset-has-expected.txt: Added.
- web-platform-tests/css/css-font-loading/fontfaceset-has.html: Added.
Source/WebCore:
When content says "document.fonts.has(...)", the ".has(...)" part needs to
update style instead of the "document.fonts" part. This is because it's
totally legal for content to say:
var f = document.fonts;
Modify style here
... f.has(...) ... <=== This needs to reflect the style changes.
Test: imported/w3c/web-platform-tests/css/css-font-loading/fontfaceset-has.html
- css/FontFaceSet.cpp:
(WebCore::FontFaceSet::has const):
- 2:19 AM Changeset in webkit [282203] by
-
- 43 edits16 copies310 adds in trunk/LayoutTests
Update WPT tests under /html/canvas/element
https://bugs.webkit.org/show_bug.cgi?id=229750
<rdar://problem/82610102>
Reviewed by Youenn Fablet.
LayoutTests/imported/w3c:
- resources/resource-files.json:
- web-platform-tests/html/canvas/element/drawing-images-to-the-canvas/2d.drawImage.broken-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontKerning-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontKerning.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontKerning.with.uppercase-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontKerning.with.uppercase.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontVariant.settings-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.fontVariant.settings.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.nonfinite.spacing-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.nonfinite.spacing.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.spacing-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.spacing.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.spacing.measure-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.spacing.measure.html:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.textRendering.settings-expected.txt:
- web-platform-tests/html/canvas/element/drawing-text-to-the-canvas/2d.text.drawing.style.textRendering.settings.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.blur.exceptions-expected.txt:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.blur.exceptions.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.colorMatrix-expected.txt:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.colorMatrix.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.componentTransfer.discrete.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.componentTransfer.gamma.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.componentTransfer.identity.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.componentTransfer.linear.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.componentTransfer.table.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.convolveMatrix.exceptions-expected.txt:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.convolveMatrix.exceptions.html:
- web-platform-tests/html/canvas/element/filters/2d.filter.canvasFilterObject.html:
- web-platform-tests/html/canvas/element/manual/README.md: Added.
- web-platform-tests/html/canvas/element/manual/building-paths/canvas_complexshapes_arcto_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/building-paths/canvas_complexshapes_arcto_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/building-paths/canvas_complexshapes_beziercurveto_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/building-paths/canvas_complexshapes_beziercurveto_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/building-paths/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/compositing/canvas_compositing_globalcompositeoperation_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/compositing/canvas_compositing_globalcompositeoperation_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/compositing/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/context-attributes/canvas-with-padding-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/context-attributes/canvas-with-padding.html: Added.
- web-platform-tests/html/canvas/element/manual/context-attributes/getContextAttributes-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/context-attributes/getContextAttributes.html: Added.
- web-platform-tests/html/canvas/element/manual/context-attributes/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_canvas-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_canvas.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_canvas_self-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_canvas_self.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_canvas_self_ref.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_crossorigin.sub-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_crossorigin.sub.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_html_image-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_html_image.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_svg_image_1-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_svg_image_1.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_svg_image_with_foreign_object_does_not_taint-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/drawimage_svg_image_with_foreign_object_does_not_taint.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-orientation-none.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-orientation-none.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-swap-width-height-orientation-none.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-swap-width-height-orientation-none.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-swap-width-height.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap-swap-width-height.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-blob.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-blob.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-orientation-none.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-orientation-none.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-swap-width-height-orientation-none.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-swap-width-height-orientation-none.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-swap-width-height.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element-swap-width-height.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-from-element.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-with-src-rect.tentative-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/drawImage-with-src-rect.tentative.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/image-orientation/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/manual/drawing-images-to-the-canvas/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/canvas_complexshapes_ispointInpath_001-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/canvas_complexshapes_ispointInpath_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_001-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_001.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_002-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_002.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_003-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_003.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_004-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_004.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_005-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/drawFocusIfNeeded_005.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-paths-to-the-canvas/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.condensed-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.condensed.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.expanded-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.expanded.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.extra-condensed-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.extra-condensed.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.extra-expanded-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.extra-expanded.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.normal-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.normal.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.semi-condensed-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.semi-condensed.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.semi-expanded-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.semi-expanded.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.ultra-condensed-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.ultra-condensed.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.ultra-expanded-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/canvas.2d.fontStretch.ultra-expanded.html: Added.
- web-platform-tests/html/canvas/element/manual/drawing-text-to-the-canvas/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/2d.fillStyle.parse.current.notrendered-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/2d.fillStyle.parse.current.notrendered.html: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/canvas_colorsandstyles_createlineargradient_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/conic-gradient-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/conic-gradient-rotation-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/conic-gradient-rotation.html: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/conic-gradient.html: Added.
- web-platform-tests/html/canvas/element/manual/fill-and-stroke-styles/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-blur-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-blur.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-component-transfer-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-component-transfer.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-convolve-matrix-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/canvas-filter-object-convolve-matrix.html: Added.
- web-platform-tests/html/canvas/element/manual/filters/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/hit-regions/addHitRegions-NotSupportedError-01-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/hit-regions/addHitRegions-NotSupportedError-01.html: Added.
- web-platform-tests/html/canvas/element/manual/hit-regions/hitregions-members-exist-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/hit-regions/hitregions-members-exist.html: Added.
- web-platform-tests/html/canvas/element/manual/hit-regions/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/image-smoothing/imagesmoothing-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/image-smoothing/imagesmoothing.html: Added.
- web-platform-tests/html/canvas/element/manual/image-smoothing/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-ImageBitmap-close-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-ImageBitmap-close.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-createImageBitmap-resize-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-createImageBitmap-resize.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-createImageBitmap-video-resize-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/canvas-createImageBitmap-video-resize.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/common.sub.js: Added.
(makeCanvas):
(imageBitmapVideoPromise.new.Promise.video.oncanplaythrough):
(imageBitmapVideoPromise.new.Promise):
(makeVideo):
(response.arrayBuffer.then.):
(response.arrayBuffer.then):
(makeMakeHTMLImage.):
(makeMakeHTMLImage):
(makeBlob.):
(factory.makeMakeHTMLImage):
(factory.makeMakeSVGImage):
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-blob-invalidtype-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-blob-invalidtype.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-bounds-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-bounds.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage-closed-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage-closed.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-drawImage.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-flipY-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-flipY.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-in-worker-transfer-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-in-worker-transfer.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-invalid-args.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-origin.sub-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-origin.sub.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-serializable-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-serializable.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-sizeOverflow-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-sizeOverflow.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-transfer-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-transfer.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-worker.js: Added.
(makeBlob.):
(makeBlob):
- web-platform-tests/html/canvas/element/manual/imagebitmap/imageBitmap-from-imageData-no-image-rotation-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/imageBitmap-from-imageData-no-image-rotation.html: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/transfer-worker.js: Added.
- web-platform-tests/html/canvas/element/manual/imagebitmap/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/text-styles/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/imagebitmap/worker-onmessage-noop.js: Added.
(self.onmessage):
- web-platform-tests/html/canvas/element/manual/line-styles/canvas_linestyles_linecap_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/canvas_linestyles_linecap_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/lineto_a-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/lineto_a.html: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/lineto_ref.html: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/setLineDash-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/setLineDash.html: Added.
- web-platform-tests/html/canvas/element/manual/line-styles/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_001-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_002-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_002.htm: Added.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/shadows/canvas_shadows_system_colors.html: Added.
- web-platform-tests/html/canvas/element/manual/shadows/shadowBlur_gaussian_tolerance.1-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/shadows/shadowBlur_gaussian_tolerance.1.html: Added.
- web-platform-tests/html/canvas/element/manual/shadows/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/text-styles/canvas_text_font_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/text-styles/canvas_text_font_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/text-styles/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/2d.state.saverestore.imageSmoothingEnabled-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/2d.state.saverestore.imageSmoothingEnabled.html: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/2d.zero.size.canvas-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/2d.zero.size.canvas.html: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/canvas_state_restore_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/canvas_state_restore_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/the-canvas-state/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/transformations/2d.transformation.getTransform-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/transformations/2d.transformation.getTransform.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/canvas_transformations_reset_001-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/canvas_transformations_reset_001.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/canvas_transformations_scale_001-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/transformations/canvas_transformations_scale_001.htm: Added.
- web-platform-tests/html/canvas/element/manual/transformations/transform_a-expected.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/transform_a.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/transform_ref.html: Added.
- web-platform-tests/html/canvas/element/manual/transformations/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-1-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-1.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-2-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-2.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-3-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-3.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-4-expected.htm: Added.
- web-platform-tests/html/canvas/element/manual/unclosed-canvas-4.htm: Added.
- web-platform-tests/html/canvas/element/manual/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/ImageData-fidelity-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/ImageData-fidelity.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorManaged-convertToBlob-roundtrip-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorManaged-convertToBlob-roundtrip.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorManaged-toBlob-toDataURL-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorManaged-toBlob-toDataURL.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorspace-arguments-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-colorspace-arguments.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-createPutGetImageData-colorManaged-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-createPutGetImageData-colorManaged.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-draw-high-bit-depth-images-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-draw-high-bit-depth-images.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-drawImage-e_srgb-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-drawImage-e_srgb.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-drawImage-offscreenCanvas-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-drawImage-offscreenCanvas.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-getImageData-e_srgb-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-getImageData-e_srgb.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/imageData-colorManagedBehavior-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/imageData-colorManagedBehavior.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/imagedata-no-color-settings-crash-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/imagedata-no-color-settings-crash.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-semitransparent-p3d65.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-semitransparent-rec2020.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-semitransparent-srgb.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-fullcolor.ogv: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-transparent.avif: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-transparent.bmp: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-transparent.ico: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb-transparent.webp: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.avif: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.bmp: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.gif: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.ico: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.jpg: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.svg: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/pattern-srgb.webp: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_AdobeRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_AdobeRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_DisplayP3_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_DisplayP3_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_ProPhoto_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_ProPhoto_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_Rec2020_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_Rec2020_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_AdobeRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_AdobeRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_DisplayP3_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_DisplayP3_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_ProPhoto_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_ProPhoto_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_Rec2020_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_Rec2020_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_sRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_interlaced_sRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_sRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_16bit_sRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_AdobeRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_AdobeRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_DisplayP3_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_DisplayP3_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_ProPhoto_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_ProPhoto_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_Rec2020_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_Rec2020_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_sRGB_opaque.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/2x2_8bit_sRGB_transparent.png: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/png-16bit/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/resources/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/transferFromImageBitmap-expected.txt: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/transferFromImageBitmap.html: Added.
- web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/w3c-import.log: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.1.radius.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.1.radius.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.2.radii.1.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.2.radii.1.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.2.radii.2.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.2.radii.2.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.1.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.1.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.2.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.2.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.3.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.3.radii.3.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.1.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.1.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.2.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.2.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.3.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.3.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.4.dompointinit-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.4.radii.4.dompointinit.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.nonfinite.html:
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.negative-expected.txt: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.negative.html: Added.
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.none-expected.txt:
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.none.html:
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.toomany-expected.txt:
- web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.toomany.html:
- web-platform-tests/html/canvas/element/path-objects/w3c-import.log:
- web-platform-tests/html/canvas/element/text-styles/2d.text.font.parse.family-expected.txt: Added.
- web-platform-tests/html/canvas/element/text-styles/2d.text.font.parse.family.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/canvas/element/path-objects/2d.path.roundrect.radius.toomany.html.
- web-platform-tests/html/canvas/element/text-styles/w3c-import.log:
- web-platform-tests/html/canvas/element/wide-gamut-canvas/w3c-import.log:
LayoutTests:
- TestExpectations:
- platform/ios/TestExpectations:
- platform/ios/imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-draw-high-bit-depth-images-expected.txt: Added.
- platform/mac-bigsur/imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-draw-high-bit-depth-images-expected.txt: Added.
- platform/mac-catalina/TestExpectations:
- platform/mac-catalina/imported/w3c/web-platform-tests/html/canvas/element/manual/wide-gamut-canvas/canvas-draw-high-bit-depth-images-expected.txt: Added.
- platform/mac-wk1/TestExpectations:
- platform/mac-wk1/imported/w3c/web-platform-tests/html/canvas/element/manual/imagebitmap/createImageBitmap-flipY-expected.txt: Added.
- platform/mac/TestExpectations:
- 1:17 AM Changeset in webkit [282202] by
-
- 10 edits in trunk
RenderInline offsetTop/Left should not switch to legacy layout
https://bugs.webkit.org/show_bug.cgi?id=230040
Reviewed by Alan Bujtas.
LayoutTests/imported/w3c:
- web-platform-tests/css/cssom-view/offsetTopLeft-empty-inline-expected.txt:
- web-platform-tests/css/cssom-view/offsetTopLeft-leading-space-inline-expected.txt:
Source/WebCore:
Get position of the LFC inline box.
- layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::firstInlineBoxRect const):
- layout/integration/LayoutIntegrationLineLayout.h:
- rendering/RenderInline.cpp:
(WebCore::RenderInline::offsetLeft const):
(WebCore::RenderInline::offsetTop const):
(WebCore::RenderInline::firstInlineBoxTopLeft const):
(WebCore::RenderInline::positionForPoint const):
Also fix positionForPoint as a failing test revealed a missing LFC path here.
- rendering/RenderInline.h:
LayoutTests:
- editing/selection/doubleclick-beside-cr-span.html:
Update the test for more standards compliant first inline box position.
- 1:16 AM Changeset in webkit [282201] by
-
- 3 edits2 adds in trunk
Position sticky does not work within table cells
https://bugs.webkit.org/show_bug.cgi?id=155496
Reviewed by Simon Fraser.
LayoutTests/imported/w3c:
- web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table-ref.html: Added.
- web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html: Added.
Source/WebCore:
When computing the content box rect of a sticky container, do not include
intrinsic padding. Instead, use the values computed from CSS. The instrinsic
padding should not limit the movement area of a position:sticky item.
- web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table-ref.html: Added.
- web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html: Added.
Test: imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-contained-by-display-table.html
- rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::computeStickyPositionConstraints const): Use CSS computed
values which do not include intrinsic padding.
- 1:10 AM Changeset in webkit [282200] by
-
- 15 edits in trunk
Optimize compareStrictEq when neither side is a double and at least one is not a BigInt
https://bugs.webkit.org/show_bug.cgi?id=226755
<rdar://problem/79321542>
Reviewed by Yusuke Suzuki.
JSTests:
Made the error messages in stress/reflect-set a bit more informative in the process of debugging an issue with the patch.
- stress/reflect-set.js:
(shouldBe):
(shouldThrow):
Source/JavaScriptCore:
This is a very similar patch to https://bugs.webkit.org/show_bug.cgi?id=226676.
The difference is that here we allow Strings on both side of the comparison, so we must add code to handle equality among strings.
Like for that other patch, the optimization is disabled for BigInt32.
Enabling it in that case would either need modifying the speculation (from banning HeapBigInt to banning all BigInts), or ensuring that we can never have a HeapBigInt so small it compares equal to a BigInt32.
I only implemented this optimization on 64-bits: it is just painful to write code that handles registers at such a low-level without a 32-bit machine to test things locally.
If anyone wants to make this optimization work on 32-bit, I don't foretell any major difficulty.
Finally, like quite a few other useKinds already, this case does not make the CompareStrictEq merge with an adjacent Branch.
The reason is simply that this patch relies on compileStringEquality, which currently does not support that feature.
I intend to fix this (for all useKinds at once) in a separate patch.
Effect on microbenchmarks:
poly-stricteq-not-double 46.8000+-0.4110 23.5872+-0.3061 definitely 1.9841x faster
poly-stricteq-not-double-nor-string 16.6880+-0.2317 16.3627+-0.3729 might be 1.0199x faster
poly-stricteq 49.2175+-0.6047 48.9532+-0.6758
I looked at how many cases of Untyped/Untyped compareStrictEq have been fixed by this patch and two other recent patches.
On JetStream2:
- https://bugs.webkit.org/show_bug.cgi?id=226621: 731 instances
- https://bugs.webkit.org/show_bug.cgi?id=226676: 944 instances
- This patch: only 26 instances
This leaves 20 instances of Untyped/Untyped.
On Speedometer2.0:
- https://bugs.webkit.org/show_bug.cgi?id=226621: 1587 instances
- https://bugs.webkit.org/show_bug.cgi?id=226676: 2784 instances
- This patch: 891 instances
This leaves 75 instances of Untyped/Untyped.
- bytecode/SpeculatedType.h:
(JSC::isNeitherDoubleNorHeapBigIntSpeculation):
- dfg/DFGDoesGC.cpp:
(JSC::DFG::doesGC):
- dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupCompareStrictEqAndSameValue):
- dfg/DFGNode.h:
(JSC::DFG::Node::shouldSpeculateNeitherDoubleNorHeapBigInt):
- dfg/DFGSafeToExecute.h:
(JSC::DFG::SafeToExecuteEdge::operator()):
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileStrictEq):
(JSC::DFG::SpeculativeJIT::emitBitwiseJSValueEquality):
(JSC::DFG::SpeculativeJIT::emitBranchOnBitwiseJSValueEquality):
(JSC::DFG::SpeculativeJIT::compileNotDoubleNeitherDoubleNorHeapBigIntNorStringStrictEquality):
(JSC::DFG::SpeculativeJIT::compilePeepHoleNotDoubleNeitherDoubleNorHeapBigIntNorStringStrictEquality):
(JSC::DFG::SpeculativeJIT::speculateNeitherDoubleNorHeapBigInt):
(JSC::DFG::SpeculativeJIT::speculateNeitherDoubleNorHeapBigIntNorString):
(JSC::DFG::SpeculativeJIT::speculate):
- dfg/DFGSpeculativeJIT.h:
- dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileNeitherDoubleNorHeapBigIntToNotDoubleStrictEquality):
- dfg/DFGUseKind.cpp:
(WTF::printInternal):
- dfg/DFGUseKind.h:
(JSC::DFG::typeFilterFor):
(JSC::DFG::checkMayCrashIfInputIsEmpty):
- ftl/FTLCapabilities.cpp:
(JSC::FTL::canCompile):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- 12:37 AM Changeset in webkit [282199] by
-
- 13 edits8 adds in trunk
Add support for RTCError and RTCErrorEvent
https://bugs.webkit.org/show_bug.cgi?id=229987
Reviewed by Eric Carlson.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/RTCError-expected.txt:
- web-platform-tests/webrtc/idlharness.https.window-expected.txt:
Source/WebCore:
Add support for RTCError and RTCErrorEvent as per https://w3c.github.io/webrtc-pc/#rtcerror-interface
and https://w3c.github.io/webrtc-pc/#rtcerrorevent-interface.
Covered by updated tests.
- CMakeLists.txt:
- DerivedSources-input.xcfilelist:
- DerivedSources-output.xcfilelist:
- DerivedSources.make:
- Modules/mediastream/RTCError.cpp: Added.
(WebCore::RTCError::RTCError):
- Modules/mediastream/RTCError.h: Added.
- Modules/mediastream/RTCError.idl: Added.
- Modules/mediastream/RTCErrorDetailType.h: Added.
- Modules/mediastream/RTCErrorDetailType.idl: Added.
- Modules/mediastream/RTCErrorEvent.cpp: Added.
(WebCore::RTCErrorEvent::RTCErrorEvent):
- Modules/mediastream/RTCErrorEvent.h: Added.
- Modules/mediastream/RTCErrorEvent.idl: Added.
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/WebCoreBuiltinNames.h:
- dom/DOMException.h:
- dom/EventNames.in:
- 12:21 AM Changeset in webkit [282198] by
-
- 10 edits in trunk
Add support for RTCDataChannel closing event
https://bugs.webkit.org/show_bug.cgi?id=229988
Reviewed by Eric Carlson.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/RTCDataChannel-close-expected.txt:
- web-platform-tests/webrtc/idlharness.https.window-expected.txt:
Source/WebCore:
Add support for the closing event.
Updating close method as per https://w3c.github.io/webrtc-pc/#dom-rtcdatachannel-close:
- make the channel enter closing state (without firing event)
- wait for the state to move to closed from the backend.
We also add support for the error event by checking, when entering closed state whether
the channel is in an error state.
Covered by rebased test.
- Modules/mediastream/RTCDataChannel.cpp:
(WebCore::RTCDataChannel::close):
(WebCore::RTCDataChannel::didChangeReadyState):
(WebCore::RTCDataChannel::stop):
- Modules/mediastream/RTCDataChannel.idl:
- Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.cpp:
(WebCore::LibWebRTCDataChannelHandler::checkState):
- dom/EventNames.h:
LayoutTests:
Unskip no longer timing out test.
- 12:13 AM Changeset in webkit [282197] by
-
- 32 edits8 adds in trunk
Add support for RTCSctpTransport
https://bugs.webkit.org/show_bug.cgi?id=229292
<rdar://problem/82394152>
Reviewed by Eric Carlson.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/RTCDataChannel-send-expected.txt:
- web-platform-tests/webrtc/RTCIceTransport-expected.txt:
- web-platform-tests/webrtc/RTCPeerConnection-connectionState.https-expected.txt:
- web-platform-tests/webrtc/RTCRtpSender-transport.https-expected.txt:
- web-platform-tests/webrtc/RTCSctpTransport-constructor-expected.txt:
- web-platform-tests/webrtc/RTCSctpTransport-events-expected.txt:
- web-platform-tests/webrtc/RTCSctpTransport-maxChannels-expected.txt:
- web-platform-tests/webrtc/RTCSctpTransport-maxMessageSize-expected.txt:
- web-platform-tests/webrtc/idlharness.https.window-expected.txt:
Source/ThirdParty/libwebrtc:
- Configurations/libwebrtc.iOS.exp:
- Configurations/libwebrtc.iOSsim.exp:
- Configurations/libwebrtc.mac.exp:
Source/WebCore:
Expose RTSctpTransport API and getter from the peer connection.
Implement event mechanism and getters.
Additional work will be needed to make ice transport objects consistent between SCTP and senders/receivers.
Covered by rebased tests.
- CMakeLists.txt:
- DerivedSources-input.xcfilelist:
- DerivedSources-output.xcfilelist:
- DerivedSources.make:
- Modules/mediastream/PeerConnectionBackend.cpp:
(WebCore::PeerConnectionBackend::setLocalDescriptionSucceeded):
(WebCore::PeerConnectionBackend::setRemoteDescriptionSucceeded):
- Modules/mediastream/PeerConnectionBackend.h:
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::updateSctpBackend):
- Modules/mediastream/RTCPeerConnection.h:
- Modules/mediastream/RTCPeerConnection.idl:
- Modules/mediastream/RTCSctpTransport.cpp: Added.
(WebCore::RTCSctpTransport::RTCSctpTransport):
(WebCore::RTCSctpTransport::~RTCSctpTransport):
(WebCore::RTCSctpTransport::stop):
(WebCore::RTCSctpTransport::virtualHasPendingActivity const):
(WebCore::RTCSctpTransport::onStateChanged):
- Modules/mediastream/RTCSctpTransport.h: Added.
- Modules/mediastream/RTCSctpTransport.idl: Added.
- Modules/mediastream/RTCSctpTransportBackend.h: Added.
(WebCore::operator==):
- Modules/mediastream/RTCSctpTransportState.h: Added.
- Modules/mediastream/RTCSctpTransportState.idl: Added.
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::SctpTransportState::SctpTransportState):
(WebCore::SctpTransportState::createBackend):
(WebCore::LibWebRTCMediaEndpoint::setLocalSessionDescriptionSucceeded):
(WebCore::LibWebRTCMediaEndpoint::setLocalSessionDescriptionFailed):
(WebCore::LibWebRTCMediaEndpoint::setRemoteSessionDescriptionSucceeded):
- Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.cpp: Added.
(WebCore::toRTCSctpTransportState):
(WebCore::LibWebRTCSctpTransportBackendObserver::LibWebRTCSctpTransportBackendObserver):
(WebCore::LibWebRTCSctpTransportBackendObserver::updateState):
(WebCore::LibWebRTCSctpTransportBackendObserver::start):
(WebCore::LibWebRTCSctpTransportBackendObserver::stop):
(WebCore::LibWebRTCSctpTransportBackendObserver::OnStateChange):
(WebCore::LibWebRTCSctpTransportBackend::LibWebRTCSctpTransportBackend):
(WebCore::LibWebRTCSctpTransportBackend::~LibWebRTCSctpTransportBackend):
(WebCore::LibWebRTCSctpTransportBackend::dtlsTransportBackend):
(WebCore::LibWebRTCSctpTransportBackend::registerClient):
(WebCore::LibWebRTCSctpTransportBackend::unregisterClient):
- Modules/mediastream/libwebrtc/LibWebRTCSctpTransportBackend.h: Added.
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/WebCoreBuiltinNames.h:
- dom/EventTargetFactory.in:
LayoutTests:
- webrtc/datachannel/dtls10.html:
We should now check for the RTCSctpTransport's RTCDtlsTransport state
to identify whether connection is successful or not.
- 12:02 AM Changeset in webkit [282196] by
-
- 4 edits2 adds in trunk
[WebAudio/WebM] Incorrect number of frames returned if decoding frame rate doesn't match original
https://bugs.webkit.org/show_bug.cgi?id=229251
rdar://problem/82095650
Source/WebCore:
Reviewed by Eric Carlson..
We can't rely on CoreMedia to performed the trimming correctly when resampling is also to be done.
It gives unexpected results. Let's do it ourselves instead.
Test: webaudio/decode-audio-data-webm-opus-resample.html
- platform/audio/cocoa/AudioFileReaderCocoa.cpp:
(WebCore::AudioFileReader::decodeWebMData const):
LayoutTests:
Reviewed by Eric Carlson.
- webaudio/decode-audio-data-webm-opus-resample-expected.txt: Added.
- webaudio/decode-audio-data-webm-opus-resample.html: Added.
- 12:01 AM Changeset in webkit [282195] by
-
- 29 edits10 copies5 moves133 adds2 deletes in trunk/LayoutTests
Re-import css/css-pseudo WPT
https://bugs.webkit.org/show_bug.cgi?id=230002
Reviewed by Youenn Fablet.
https://github.com/web-platform-tests/wpt/commit/b3958a2b77988a3e4c6948dfce1b62f7b0ab04cf
LayoutTests/imported/w3c:
- web-platform-tests/css/css-pseudo/README.md: Added.
- web-platform-tests/css/css-pseudo/active-selection-011-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-011.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-012-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-012.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-014-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-014.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-016-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-016.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-018-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-018.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-021-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-021.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-025-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-025.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-027-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-027.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-031-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-031.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-041-expected.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-041.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-043-expected.xht: Added.
- web-platform-tests/css/css-pseudo/active-selection-043.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-045-expected.xht: Added.
- web-platform-tests/css/css-pseudo/active-selection-045.html: Added.
- web-platform-tests/css/css-pseudo/active-selection-057-expected.xht: Added.
- web-platform-tests/css/css-pseudo/active-selection-057.html: Added.
- web-platform-tests/css/css-pseudo/before-after-dynamic-custom-property-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/before-after-dynamic-custom-property-001.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-001-notref.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-001.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-after-part-expected.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-after-part.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-display-none-overflow-crash.html: Added.
- web-platform-tests/css/css-pseudo/file-selector-button-display-toggle-crash.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-005-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-005.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-digraph-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-digraph.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-punctuation-and-space-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-punctuation-and-space.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-punctuation-dynamic-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-punctuation-dynamic.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-skip-empty-span-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-skip-empty-span-nested-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-skip-empty-span-nested.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-skip-empty-span.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-with-quote-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-with-quote.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-with-span-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-letter-with-span.html: Added.
- web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt: Added.
- web-platform-tests/css/css-pseudo/first-line-allowed-properties.html: Added.
- web-platform-tests/css/css-pseudo/first-line-replaced-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-line-replaced-001.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-inline-block-before-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-inline-block-before.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-inline-block-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-inline-block.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-and-nested-div-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-and-nested-div.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-and-nested-span-expected.html: Added.
- web-platform-tests/css/css-pseudo/first-line-with-out-of-flow-and-nested-span.html: Added.
- web-platform-tests/css/css-pseudo/grammar-spelling-errors-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/grammar-spelling-errors-001.html: Added.
- web-platform-tests/css/css-pseudo/grammar-spelling-errors-002-expected.html: Added.
- web-platform-tests/css/css-pseudo/grammar-spelling-errors-002.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-001.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-002-expected.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-002.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-003-expected.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-003.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-004-expected.html: Added.
- web-platform-tests/css/css-pseudo/highlight-painting-004.html: Added.
- web-platform-tests/css/css-pseudo/highlight-pseudos-computed-expected.txt: Added.
- web-platform-tests/css/css-pseudo/highlight-pseudos-computed.html: Added.
- web-platform-tests/css/css-pseudo/marker-animate-002-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-animate-002.html: Added.
- web-platform-tests/css/css-pseudo/marker-content-023-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-content-023.html: Added.
- web-platform-tests/css/css-pseudo/marker-content-024-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-content-024.html: Added.
- web-platform-tests/css/css-pseudo/marker-hyphens-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-hyphens.html: Added.
- web-platform-tests/css/css-pseudo/marker-letter-spacing-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-letter-spacing.html: Added.
- web-platform-tests/css/css-pseudo/marker-line-break-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-line-break.html: Added.
- web-platform-tests/css/css-pseudo/marker-line-height-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-line-height.html: Added.
- web-platform-tests/css/css-pseudo/marker-overflow-wrap-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-overflow-wrap.html: Added.
- web-platform-tests/css/css-pseudo/marker-tab-size-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-tab-size.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-align-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-align.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-decoration-skip-ink-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-decoration-skip-ink.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-emphasis-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-emphasis.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-shadow-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-shadow.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-transform-default-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-transform-default.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-transform-uppercase-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-text-transform-uppercase.html: Added.
- web-platform-tests/css/css-pseudo/marker-word-break-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-word-break.html: Added.
- web-platform-tests/css/css-pseudo/marker-word-spacing-expected.html: Added.
- web-platform-tests/css/css-pseudo/marker-word-spacing.html: Added.
- web-platform-tests/css/css-pseudo/parsing/highlight-pseudos-expected.txt: Added.
- web-platform-tests/css/css-pseudo/parsing/highlight-pseudos.html: Added.
- web-platform-tests/css/css-pseudo/placeholder-excluded-properties-expected.html: Added.
- web-platform-tests/css/css-pseudo/placeholder-excluded-properties.html: Added.
- web-platform-tests/css/css-pseudo/placeholder-input-dynamic-crash.html: Added.
- web-platform-tests/css/css-pseudo/selection-contenteditable-011-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-contenteditable-011.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p1-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p1.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p2-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p2.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p3-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p3.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p4-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-decoration-p4.html: Added.
- web-platform-tests/css/css-pseudo/selection-input-011-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-input-011.html: Added.
- web-platform-tests/css/css-pseudo/selection-intercharacter-011-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-intercharacter-011.html: Added.
- web-platform-tests/css/css-pseudo/selection-intercharacter-012-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-intercharacter-012.html: Added.
- web-platform-tests/css/css-pseudo/selection-overlay-and-grammar-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-overlay-and-grammar-001.html: Added.
- web-platform-tests/css/css-pseudo/selection-overlay-and-spelling-001-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-overlay-and-spelling-001.html: Added.
- web-platform-tests/css/css-pseudo/selection-paint-image-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-paint-image-notref.html: Added.
- web-platform-tests/css/css-pseudo/selection-paint-image.html: Added.
- web-platform-tests/css/css-pseudo/selection-textarea-011-expected.html: Added.
- web-platform-tests/css/css-pseudo/selection-textarea-011.html: Added.
- web-platform-tests/css/css-pseudo/support/100x100-red.png: Added.
- web-platform-tests/css/css-pseudo/support/60x60-red.png: Added.
- web-platform-tests/css/css-pseudo/support/highlights.css: Added.
(.highlight_reftest):
(.hrt_layers,):
(.hrt_layers):
(.hrt_layers > *):
(.hrt_cover):
(.hrt_hider):
(.hrt_hider > *):
- web-platform-tests/css/css-pseudo/support/selections.js: Added.
(selectRangeWith):
(selectNodeContents):
(trySpellcheck):
- web-platform-tests/css/css-pseudo/support/w3c-import.log: Added.
- resources/resource-files.json:
- web-platform-tests/css/css-pseudo/active-selection-056.html:
- web-platform-tests/css/css-pseudo/active-selection-063.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-001-expected.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-001.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-002-expected.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-002.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-004-expected.html:
- web-platform-tests/css/css-pseudo/cascade-highlight-004.html:
- web-platform-tests/css/css-pseudo/file-chooser-button-001-notref.html: Removed.
- web-platform-tests/css/css-pseudo/file-chooser-button-001.tentative-expected.html: Removed.
- web-platform-tests/css/css-pseudo/file-chooser-button-001.tentative.html: Removed.
- web-platform-tests/css/css-pseudo/file-chooser-button-display-toggle-crash.tentative-expected.txt: Removed.
- web-platform-tests/css/css-pseudo/file-chooser-button-display-toggle-crash.tentative.html: Removed.
- web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt:
- web-platform-tests/css/css-pseudo/first-letter-allowed-properties.html:
- web-platform-tests/css/css-pseudo/first-line-with-out-of-flow.html:
- web-platform-tests/css/css-pseudo/marker-content-008.tentative-expected.html:
- web-platform-tests/css/css-pseudo/marker-content-008.tentative.html:
- web-platform-tests/css/css-pseudo/marker-default-styles-expected.txt:
- web-platform-tests/css/css-pseudo/marker-default-styles.html:
- web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt:
- web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt:
- web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation.html:
- web-platform-tests/css/css-pseudo/parsing/marker-supported-properties.html:
- web-platform-tests/css/css-pseudo/parsing/tree-abiding-pseudo-elements-expected.txt:
- web-platform-tests/css/css-pseudo/parsing/tree-abiding-pseudo-elements.html:
- web-platform-tests/css/css-pseudo/parsing/w3c-import.log:
- web-platform-tests/css/css-pseudo/selection-text-shadow-016-expected.html: Removed.
- web-platform-tests/css/css-pseudo/selection-text-shadow-016.html: Removed.
- web-platform-tests/css/css-pseudo/w3c-import.log:
LayoutTests:
- tests-options.json:
- TestExpectations:
- platform/ios-wk2/TestExpectations:
Sep 8, 2021:
- 11:56 PM Changeset in webkit [282194] by
-
- 5 edits in trunk
RTCPeerConnection.addIceCandidate takes an optional argument
https://bugs.webkit.org/show_bug.cgi?id=229962
Reviewed by Eric Carlson.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/RTCPeerConnection-operations.https-expected.txt:
- web-platform-tests/webrtc/idlharness.https.window-expected.txt:
Source/WebCore:
Covered by rebased test.
- Modules/mediastream/RTCPeerConnection.idl:
- 11:49 PM Changeset in webkit [282193] by
-
- 4 edits in trunk/Source/WebCore
Add video metrics logging to LocalSampleBufferDisplayLayer
https://bugs.webkit.org/show_bug.cgi?id=229930
Reviewed by Eric Carlson.
Source/WebCore:
No change of behavior.
- platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
(WebCore::LocalSampleBufferDisplayLayer::enqueueSampleBuffer):
Log every minute AVSBDL metrics, which can help to evaluate video freeze issues.
Source/WebCore/PAL:
- PAL/pal/spi/cocoa/AVFoundationSPI.h:
- 10:27 PM Changeset in webkit [282192] by
-
- 14 edits in trunk
webgl/2.0.y/conformance2/vertex_arrays/vertex-array-object.html fails
https://bugs.webkit.org/show_bug.cgi?id=223360
<rdar://problem/75774546>
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-09-08
Reviewed by Dean Jackson.
Source/WebCore:
Deleting a buffer will remove the buffer from currently active
vertex array buffer bindings. This worked.
Drawing with a vertex array object that has enabled indexes
but missing buffers for those indexes should fail. This
WebGL specific constraint is checked by ANGLE. However, WebCore
relies on buffer deletion to update the ANGLE VAO. The deletion
does not happen due to the buffers in the test being bound to
multiple VAOs.
Add this check also to WebCore.
Fixed tests:
webgl/1.0.x/conformance/extensions/oes-vertex-array-object.html
webgl/2.0.y/conformance2/vertex_arrays/vertex-array-object.html
- html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::initializeVertexArrayObjects):
(WebCore::WebGL2RenderingContext::drawRangeElements):
- html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::initializeVertexArrayObjects):
- html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::disableVertexAttribArray):
(WebCore::WebGLRenderingContextBase::validateVertexArrayObject):
(WebCore::WebGLRenderingContextBase::drawArrays):
(WebCore::WebGLRenderingContextBase::drawElements):
(WebCore::WebGLRenderingContextBase::enableVertexAttribArray):
(WebCore::WebGLRenderingContextBase::vertexAttribPointer):
(WebCore::WebGLRenderingContextBase::initVertexAttrib0):
(WebCore::WebGLRenderingContextBase::drawArraysInstanced):
(WebCore::WebGLRenderingContextBase::drawElementsInstanced):
- html/canvas/WebGLRenderingContextBase.h:
- html/canvas/WebGLVertexArrayObjectBase.cpp:
(WebCore::WebGLVertexArrayObjectBase::WebGLVertexArrayObjectBase):
(WebCore::WebGLVertexArrayObjectBase::setVertexAttribEnabled):
(WebCore::WebGLVertexArrayObjectBase::setVertexAttribState):
(WebCore::WebGLVertexArrayObjectBase::unbindBuffer):
(WebCore::WebGLVertexArrayObjectBase::updateVertexAttrib0):
(WebCore::WebGLVertexArrayObjectBase::areAllEnabledAttribBuffersBound):
- html/canvas/WebGLVertexArrayObjectBase.h:
(WebCore::WebGLVertexArrayObjectBase::getVertexAttribState):
Make VertexAttribState& a const so that we can maintain confidence
that the cached value of "all enabled attrib buffers are bound"
is maintained, e.g. that the callers cannot modify enabled or bound
buffer status.
LayoutTests:
Test webgl/2.0.y/conformance2/vertex_arrays/vertex-array-object.html explicitly
until 2.0.y suite is run by default. Same for 1.0.x.
- TestExpectations:
- fast/canvas/webgl/drawElements-empty-vertex-data-expected.txt:
- fast/canvas/webgl/vertexAttribPointer-with-bad-offset-expected.txt:
Add console logs for the added errors.
- platform/ios/TestExpectations:
- platform/mac/TestExpectations:
For consistency, remove all skips for vertex-array-object tests.
They should now work.
- 9:37 PM Changeset in webkit [282191] by
-
- 28 edits in trunk/Source
Deploy CheckedRef on FocusController
https://bugs.webkit.org/show_bug.cgi?id=230037
Reviewed by Wenson Hsieh.
Source/WebCore:
Make FocusController inherit from CanMakeCheckedPtr and deploy CheckedRef / CheckedPtr wherever appropriate.
- dom/Element.cpp:
(WebCore::Element::focus):
(WebCore::Element::blur):
- editing/FrameSelection.cpp:
(WebCore::FrameSelection::selectFrameElementInParentIfFullySelected):
(WebCore::FrameSelection::setFocusedElementIfNeeded):
- editing/cocoa/AutofillElements.cpp:
(WebCore::AutofillElements::computeAutofillElements):
- editing/cocoa/DictionaryLookup.mm:
(WebCore::DictionaryLookup::rangeAtHitTestResult):
- history/BackForwardCache.cpp:
(WebCore::BackForwardCache::trySuspendPage):
- history/CachedPage.cpp:
(WebCore::CachedPage::restore):
- html/BaseDateAndTimeInputType.cpp:
(WebCore::BaseDateAndTimeInputType::handleFocusEvent):
- html/HTMLFrameElementBase.cpp:
(WebCore::HTMLFrameElementBase::setFocus):
- page/DOMWindow.cpp:
(WebCore::DOMWindow::focus):
- page/EventHandler.cpp:
(WebCore::EventHandler::handlePasteGlobalSelection):
(WebCore::EventHandler::dispatchMouseEvent):
(WebCore::EventHandler::defaultArrowEventHandler):
(WebCore::EventHandler::defaultTabEventHandler):
(WebCore::EventHandler::focusDocumentView):
- page/FocusController.h:
- page/Frame.cpp:
(WebCore::Frame::willDetachPage):
- page/Page.cpp:
(WebCore::Page::findString):
(WebCore::Page::replaceSelectionWithText):
(WebCore::Page::editableElementsInRect const):
(WebCore::Page::selection const):
(WebCore::Page::setActivityState):
(WebCore::Page::revealCurrentSelection):
- page/ios/EventHandlerIOS.mm:
(WebCore::EventHandler::focusDocumentView):
- page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::focusDocumentView):
- page/mac/ServicesOverlayController.mm:
(WebCore::ServicesOverlayController::remainingTimeUntilHighlightShouldBeShown const):
(WebCore::ServicesOverlayController::telephoneNumberRangesForFocusedFrame):
(WebCore::ServicesOverlayController::handleClick):
Source/WebKit:
- WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
(WKBundleFrameFocus):
- WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKAccessibilityFocusedObject):
- WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::focusPluginElement):
- WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
(WebKit::changeWordCase):
- WebProcess/WebPage/Cocoa/TextCheckingControllerProxy.mm:
(WebKit::TextCheckingControllerProxy::rangeAndOffsetRelativeToSelection):
(WebKit::TextCheckingControllerProxy::replaceRelativeToSelection):
(WebKit::TextCheckingControllerProxy::removeAnnotationRelativeToSelection):
- WebProcess/WebPage/Cocoa/WebPageCocoa.mm:
(WebKit::WebPage::performDictionaryLookupAtLocation):
(WebKit::WebPage::performDictionaryLookupOfCurrentSelection):
(WebKit::WebPage::insertDictatedTextAsync):
- WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::showFindIndicatorInSelection):
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::editorState const):
(WebKit::WebPage::changeFontAttributes):
(WebKit::WebPage::changeFont):
(WebKit::WebPage::updateEditorStateAfterLayoutIfEditabilityChanged):
(WebKit::WebPage::executeEditingCommand):
(WebKit::WebPage::setEditable):
(WebKit::WebPage::increaseListLevel):
(WebKit::WebPage::decreaseListLevel):
(WebKit::WebPage::changeListType):
(WebKit::WebPage::setBaseWritingDirection):
(WebKit::WebPage::isEditingCommandEnabled):
(WebKit::WebPage::contextMenuForKeyEvent):
(WebKit::WebPage::handleKeyEventByRelinquishingFocusToChrome):
(WebKit::WebPage::validateCommand):
(WebKit::WebPage::requestFontAttributesAtSelectionStart):
(WebKit::WebPage::centerSelectionInVisibleArea):
(WebKit::WebPage::insertNewlineInQuotedContent):
(WebKit::WebPage::viewWillStartLiveResize):
(WebKit::WebPage::viewWillEndLiveResize):
(WebKit::WebPage::setInitialFocus):
(WebKit::WebPage::getSelectionOrContentsAsString):
(WebKit::WebPage::advanceToNextMisspelling):
(WebKit::WebPage::hasRichlyEditableSelection const):
(WebKit::WebPage::changeSpellingToWord):
(WebKit::WebPage::uppercaseWord):
(WebKit::WebPage::lowercaseWord):
(WebKit::WebPage::capitalizeWord):
(WebKit::WebPage::clearSelection):
(WebKit::WebPage::restoreSelectionInFocusedEditableElement):
(WebKit::WebPage::handleAlternativeTextUIResult):
(WebKit::WebPage::setCompositionForTesting):
(WebKit::WebPage::hasCompositionForTesting):
(WebKit::WebPage::confirmCompositionForTesting):
(WebKit::WebPage::setTextAsync):
(WebKit::WebPage::insertTextAsync):
(WebKit::WebPage::hasMarkedText):
(WebKit::WebPage::getMarkedRangeAsync):
(WebKit::WebPage::getSelectedRangeAsync):
(WebKit::WebPage::characterIndexForPointAsync):
(WebKit::WebPage::firstRectForCharacterRangeAsync):
(WebKit::WebPage::setCompositionAsync):
(WebKit::WebPage::confirmCompositionAsync):
(WebKit::WebPage::didChangeSelectionOrOverflowScrollPosition):
(WebKit::WebPage::didEndUserTriggeredSelectionChanges):
(WebKit::WebPage::sendEditorStateUpdate):
(WebKit::WebPage::flushPendingEditorStateUpdate):
(WebKit::WebPage::insertAttachment):
(WebKit::WebPage::createAppHighlightInSelectedRange):
(WebKit::WebPage::restoreAppHighlightsAndScrollToIndex):
- WebProcess/WebPage/ios/FindControllerIOS.mm:
(WebKit::FindController::didFindString):
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::platformWillPerformEditingCommand):
(WebKit::WebPage::getSelectionContext):
(WebKit::WebPage::updateSelectionAppearance):
(WebKit::WebPage::generateSyntheticEditingCommand):
(WebKit::WebPage::completeSyntheticClick):
(WebKit::WebPage::didConcludeEditDrag):
(WebKit::WebPage::clearSelectionAfterTapIfNeeded):
(WebKit::WebPage::selectWithGesture):
(WebKit::WebPage::clearSelection):
(WebKit::WebPage::dispatchSyntheticMouseEventsForSelectionGesture):
(WebKit::WebPage::updateSelectionWithTouches):
(WebKit::WebPage::selectWithTwoTouches):
(WebKit::WebPage::extendSelection):
(WebKit::WebPage::platformDidSelectAll):
(WebKit::WebPage::selectWordBackward):
(WebKit::WebPage::moveSelectionByOffset):
(WebKit::WebPage::startAutoscrollAtPosition):
(WebKit::WebPage::requestEvasionRectsAboveSelection):
(WebKit::WebPage::getRectsForGranularityWithSelectionOffset):
(WebKit::WebPage::storeSelectionForAccessibility):
(WebKit::WebPage::getRectsAtSelectionOffsetWithText):
(WebKit::WebPage::selectPositionAtPoint):
(WebKit::WebPage::selectPositionAtBoundaryWithDirection):
(WebKit::WebPage::moveSelectionAtBoundaryWithDirection):
(WebKit::WebPage::setFocusedFrameBeforeSelectingTextAtLocation):
(WebKit::WebPage::setSelectionRange):
(WebKit::WebPage::updateSelectionWithExtentPointAndBoundary):
(WebKit::WebPage::updateSelectionWithExtentPoint):
(WebKit::WebPage::requestDictationContext):
(WebKit::WebPage::replaceSelectedText):
(WebKit::WebPage::replaceDictatedText):
(WebKit::WebPage::requestAutocorrectionData):
(WebKit::WebPage::applyAutocorrectionInternal):
(WebKit::WebPage::autocorrectionContext):
(WebKit::focusedElementPositionInformation):
(WebKit::nextAssistableElement):
(WebKit::WebPage::focusedElementInformation):
(WebKit::WebPage::hardwareKeyboardAvailabilityChanged):
(WebKit::WebPage::insertTextPlaceholder):
(WebKit::WebPage::updateSelectionWithDelta):
(WebKit::WebPage::requestDocumentEditingContext):
(WebKit::WebPage::focusTextInputContextAndPlaceCaret):
(WebKit::WebPage::animationDidFinishForElement):
- 8:31 PM Changeset in webkit [282190] by
-
- 6 edits in trunk/Source
generated MessageArgumentDescriptions.cpp can't compile for non-Cocoa ports due to missing headers
https://bugs.webkit.org/show_bug.cgi?id=230075
Reviewed by Ryosuke Niwa.
Source/WebCore:
- workers/service/ServiceWorkerFetchResult.h: Added a missing
header inclusion for MessageArgumentDescriptions.cpp.
Source/WebKit:
The generated MessageArgumentDescriptions.cpp unconditionally
included platform specific headers, for example
<WebCore/CAAudioStreamDescription.h>.
generate_message_argument_description_implementation generates the
#includes, it should take receiver.condition into account.
- CMakeLists.txt:
(GENERATE_MESSAGE_SOURCES): Added MessageArgumentDescriptions.cpp to compile.
- Scripts/webkit/messages.py:
(generate_message_argument_description_implementation):
- Scripts/webkit/tests/MessageArgumentDescriptions.cpp:
- 7:46 PM Changeset in webkit [282189] by
-
- 12 edits1 add in trunk/Source/WebKit
WKWebView specific bug: WKWebView as the contents of a SceneKit/ARKit node doesn't work (UIWebView works)
https://bugs.webkit.org/show_bug.cgi?id=203060
<rdar://problem/82899923>
Reviewed by Dean Jackson.
SceneKit's snapshotter cannot handle CAMachPort-as-layer-contents.
If we get parented in a SceneKit snapshotting window, map all existing
surfaces, and prefer using actual IOSurfaces instead of CAMachPort from then on.
- UIProcess/Cocoa/PageClientImplCocoa.h:
- UIProcess/Cocoa/PageClientImplCocoa.mm:
(WebKit::PageClientImplCocoa::windowKind):
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::webViewDidMoveToWindow):
- UIProcess/WebPageProxy.h:
- UIProcess/WindowKind.h: Added.
Keep track of the kind of window we're currently in (the only special
case at the moment is the SceneKit snapshotting window, but you could
easily imagine us caring about others).
- UIProcess/DrawingAreaProxy.h:
(WebKit::DrawingAreaProxy::windowKindDidChange):
- UIProcess/PageClient.h:
(WebKit::PageClient::windowKind):
- UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.h:
- UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
(WebKit::RemoteLayerTreeDrawingAreaProxy::windowKindDidChange):
Map CAMachPorts to IOSurfaces when we move into a SceneKit snapshotting window.
- UIProcess/RemoteLayerTree/RemoteLayerTreeHost.h:
- UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::layerContentsType const):
(WebKit::RemoteLayerTreeHost::updateLayerTree):
Prefer IOSurface if we're already in a SceneKit snapshotting window.
Also factor this code out and improve the comments.
- 6:47 PM Changeset in webkit [282188] by
-
- 4 edits in trunk/LayoutTests
[GLIB] Unreviewed test gardening. Update some test baselines.
https://bugs.webkit.org/show_bug.cgi?id=230074
Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2021-09-08
- platform/glib/webgl/webgl-allow-shared-expected.txt:
- platform/gtk/fast/dom/navigator-detached-no-crash-expected.txt:
- platform/wpe/fast/dom/navigator-detached-no-crash-expected.txt:
- 5:58 PM Changeset in webkit [282187] by
-
- 1 copy in tags/Safari-612.1.29.5
Tag Safari-612.1.29.5.
- 5:41 PM Changeset in webkit [282186] by
-
- 1 copy in tags/Safari-612.2.4.1.1
Tag Safari-612.2.4.1.1.
- 5:20 PM Changeset in webkit [282185] by
-
- 2 edits in trunk/Tools
Exception in run-webkit-tests: Bad file descriptor (Part 2)
https://bugs.webkit.org/show_bug.cgi?id=229994
<rdar://problem/82826083>
Reviewed by Ryan Haddad.
- Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDevice.launch_app): Catch OSError.
- 4:56 PM Changeset in webkit [282184] by
-
- 3 edits in branches/safari-612.2.4.1-branch/Source/WebKit
Cherry-pick r282174. rdar://problem/82898503
Remove responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection
https://bugs.webkit.org/show_bug.cgi?id=230016
rdar://problem/80760179
Reviewed by Chris Dumez.
We've seen evidence that network process may be blocked in initializeNetworkProcess. Since we have a 3-second
responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection, blocked network process will be killed
and a new network process will be launched for getting connection. However, the new network process may get
stuck in initializeNetworkProcess too. In this case, web process will crash for not being able to get network
process connection.
- UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
- UIProcess/WebsiteData/WebsiteDataStore.cpp: change RELEASE_ASSERT_NOT_REACHED_WITH_MESSAGE to RELEASE_LOG_ERROR as the message is not printed in non-debug build. (WebKit::WebsiteDataStore::getNetworkProcessConnection):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 4:53 PM Changeset in webkit [282183] by
-
- 8 edits in branches/safari-612.2.4.1-branch/Source
Versioning.
WebKit-7612.2.4.1.1
- 4:33 PM Changeset in webkit [282182] by
-
- 1 copy in branches/safari-612.2.4.1-branch
New branch.
- 4:33 PM Changeset in webkit [282181] by
-
- 2 edits in trunk
Change Justin Michaud's primary email to apple.com
https://bugs.webkit.org/show_bug.cgi?id=230069
Reviewed by Robin Morisset.
- metadata/contributors.json:
- 4:26 PM Changeset in webkit [282180] by
-
- 3 edits in trunk/LayoutTests
media/track/track-cue-css.html is a flaky image failure.
https://bugs.webkit.org/show_bug.cgi?id=230070.
Unreviewed test gardening.
- platform/ios-14-wk2/TestExpectations:
- platform/mac-wk2/TestExpectations:
- 4:16 PM Changeset in webkit [282179] by
-
- 2 edits in trunk/LayoutTests
[ MacOS wk1 Release ] inspector/dom/shadow-and-non-shadow-children.html is a flaky failure.
https://bugs.webkit.org/show_bug.cgi?id=230072
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- 4:01 PM Changeset in webkit [282178] by
-
- 2 edits in trunk/LayoutTests
[ MacOS wk1 ] media/video-preload.html is flaky failing.
https://bugs.webkit.org/show_bug.cgi?id=230071
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- 3:54 PM Changeset in webkit [282177] by
-
- 2 edits in trunk/Source/WebKit
REGRESSION(r282115): undefined reference to `IPC::messageArgumentDescriptions(IPC::MessageName)' in Debug build
https://bugs.webkit.org/show_bug.cgi?id=230064
Unreviewed build fix.
Debug build of non-Cocoa ports were broken since r282115 started
to use IPC::messageArgumentDescriptions for debug logging.
However, MessageArgumentDescriptions.cpp has a long-standing
compilation problem for non-Cocoa ports.
Temporarily disabled the debug logging for non-Cocoa ports by
using ENABLE(IPC_TESTING_API) macro. I'll revert this change after
I will fix the fundamental problem of messages.py.
- Platform/IPC/HandleMessage.h:
(IPC::logMessageImpl):
(IPC::logReply):
- 3:04 PM Changeset in webkit [282176] by
-
- 4 edits in trunk/Source/WebKit
Remove unnecessary WTF:: in WebsiteDataStore files
https://bugs.webkit.org/show_bug.cgi?id=230036
Reviewed by Darin Adler.
- UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:
(WebKit::WebsiteDataStore::defaultApplicationCacheDirectory):
(WebKit::WebsiteDataStore::defaultCacheStorageDirectory):
(WebKit::WebsiteDataStore::defaultNetworkCacheDirectory):
(WebKit::WebsiteDataStore::defaultAlternativeServicesDirectory):
(WebKit::WebsiteDataStore::defaultMediaCacheDirectory):
(WebKit::WebsiteDataStore::defaultIndexedDBDatabaseDirectory):
(WebKit::WebsiteDataStore::defaultServiceWorkerRegistrationDirectory):
(WebKit::WebsiteDataStore::defaultLocalStorageDirectory):
(WebKit::WebsiteDataStore::defaultMediaKeysStorageDirectory):
(WebKit::WebsiteDataStore::defaultDeviceIdHashSaltsStorageDirectory):
(WebKit::WebsiteDataStore::defaultWebSQLDatabaseDirectory):
(WebKit::WebsiteDataStore::defaultResourceLoadStatisticsDirectory):
(WebKit::WebsiteDataStore::defaultJavaScriptConfigurationDirectory):
(WebKit::WebsiteDataStore::defaultModelElementCacheDirectory):
(WebKit::WebsiteDataStore::tempDirectoryFileSystemRepresentation):
(WebKit::WebsiteDataStore::cacheDirectoryFileSystemRepresentation):
(WebKit::WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation):
- UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::defaultMediaCacheDirectory):
(WebKit::WebsiteDataStore::defaultAlternativeServicesDirectory):
(WebKit::WebsiteDataStore::defaultJavaScriptConfigurationDirectory):
(WebKit::WebsiteDataStore::defaultDeviceIdHashSaltsStorageDirectory):
- UIProcess/WebsiteData/WebsiteDataStore.h:
- 3:03 PM Changeset in webkit [282175] by
-
- 2 edits in trunk/Source/WebKit
[macOS] -[WKFullScreenWindowController exitFullScreenImmediately] does not exit fullscreen immediately
https://bugs.webkit.org/show_bug.cgi?id=230024
Reviewed by Jer Noble.
A WebContent process may ask the
WKFullScreenWindowControllerin
the UI process to exit fullscreen immediately without walking through
the normal exit fullscreen sequence, and the WebContent process won't
expect any IPC message related to fullscreen to come back from the
UI process. If the UI process sends an IPC message to the WebContent
process and expects the response from the WebContent process (e.g., in
WebPageProxy::forceRepaint()), the UI process will be stuck.
That will happen when a tab navigates to the previous page while a video
element in the current page is playing in fullscreen. The reason is that
-[WKFullScreenWindowController exitFullScreen]is called before
-[WKFullScreenWindowController exitFullScreenImmediately].
-[WKFullScreenWindowController exitFullScreen]changes_fullScreenState
toWaitingToExitFullScreen, so-[WKFullScreenWindowController exitFullScreenImmediately]
will return early. This patch fixes this issue by changing the early return condition.
In addition,
-[WKFullScreenWindowController exitFullScreenImmediately]
does not really exit fullscreen immediately. Instead, it calls
-[WKFullScreenWindowController finishedExitFullScreenAnimation:],
which always callsWebPageProxy::forceRepaint()and expects a response
from the WebContet process. This patch fixes this issue as well.
Tested manually.
- UIProcess/mac/WKFullScreenWindowController.mm:
(-[WKFullScreenWindowController exitFullScreenImmediately]):
Update the early return condition to make sure the UI process will proceed
to exit fullscreen unless the current state isNotInFullScreen.
(-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]):
(-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
Thecompletedparameter was not used. This patch renames it toimmediatelyto
indicate whetherWKFullScreenWindowControllerwants to exit fullscreen immediately.
(-[WKFullScreenWindowController close]):
Clean up this function after revising-[WKFullScreenWindowController exitFullScreenImmediately].
(-[WKFullScreenWindowController windowDidFailToExitFullScreen:]):
Update the argument according to the change of-[WKFullScreenWindowController finishedExitFullScreenAnimation:].
(-[WKFullScreenWindowController windowDidExitFullScreen:]): Ditto.
- 2:56 PM Changeset in webkit [282174] by
-
- 3 edits in trunk/Source/WebKit
Remove responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection
https://bugs.webkit.org/show_bug.cgi?id=230016
rdar://problem/80760179
Reviewed by Chris Dumez.
We've seen evidence that network process may be blocked in initializeNetworkProcess. Since we have a 3-second
responsiveness timer in NetworkProcessProxy::getNetworkProcessConnection, blocked network process will be killed
and a new network process will be launched for getting connection. However, the new network process may get
stuck in initializeNetworkProcess too. In this case, web process will crash for not being able to get network
process connection.
- UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::getNetworkProcessConnection):
- UIProcess/WebsiteData/WebsiteDataStore.cpp: change RELEASE_ASSERT_NOT_REACHED_WITH_MESSAGE to
RELEASE_LOG_ERROR as the message is not printed in non-debug build.
(WebKit::WebsiteDataStore::getNetworkProcessConnection):
- 2:41 PM Changeset in webkit [282173] by
-
- 2 edits in trunk/LayoutTests
[ BigSur wk2 Debug ] accessibility/mac/native-text-control-set-selected-textmarker-range.html is a flaky failure.
https://bugs.webkit.org/show_bug.cgi?id=230066
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 2:30 PM Changeset in webkit [282172] by
-
- 4 edits in trunk/LayoutTests
Rebaseline: REGRESSION (282129):[iOS] 3 Layout tests failing consistently.
https://bugs.webkit.org/show_bug.cgi?id=230063.
Unreviewed rebaseline.
- platform/ios/fast/multicol/vertical-lr/float-multicol-expected.txt:
- platform/ios/fast/multicol/vertical-rl/float-multicol-expected.txt:
- platform/ios/fast/table/border-collapsing/004-vertical-expected.txt:
- 2:26 PM Changeset in webkit [282171] by
-
- 4 edits in trunk/LayoutTests
[ MacOS & iOS ] http/tests/loading/basic-auth-load-URL-with-consecutive-slashes.html is a flakey failure.
https://bugs.webkit.org/show_bug.cgi?id=222563
Unreviewed test gardening.
- platform/ios-wk2/TestExpectations:
- platform/mac-wk1/TestExpectations:
- platform/mac/TestExpectations:
- 2:09 PM Changeset in webkit [282170] by
-
- 18 edits in trunk
Regression (r282130): [ macOS iOS wk2 ] imported/w3c/web-platform-tests/storage/persisted.https.any.html is failing
https://bugs.webkit.org/show_bug.cgi?id=230053
<rdar://problem/82879548>
Reviewed by Chris Dumez.
Source/WebKit:
Add SPI to clear storage states for testing.
Covered by existing tests.
- NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::clearStorage):
- NetworkProcess/NetworkProcess.h:
- NetworkProcess/NetworkProcess.messages.in:
- NetworkProcess/storage/NetworkStorageManager.cpp:
(WebKit::NetworkStorageManager::clearStorageForTesting):
- NetworkProcess/storage/NetworkStorageManager.h:
- UIProcess/API/C/WKWebsiteDataStoreRef.cpp:
(WKWebsiteDataStoreClearStorage):
- UIProcess/API/C/WKWebsiteDataStoreRef.h:
- UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::clearStorage):
- UIProcess/Network/NetworkProcessProxy.h:
- UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::clearStorage):
- UIProcess/WebsiteData/WebsiteDataStore.h:
Tools:
Clear storage states between tests so tests do not affect each other.
- WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):
(WTR::TestController::clearStorage):
- WebKitTestRunner/TestController.h:
LayoutTests:
Skip storage/ tests on WebKitLegacy platforms as the API is not implemented there.
- TestExpectations:
- platform/wk2/TestExpectations:
- 1:55 PM Changeset in webkit [282169] by
-
- 2 edits in trunk/LayoutTests
[ macOS wk1 ] fast/text/FontFaceSet-check-after-style-update.html is a flaky failure.
https://bugs.webkit.org/show_bug.cgi?id=230062
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- 1:31 PM Changeset in webkit [282168] by
-
- 2 edits in trunk/LayoutTests
[WinCairo] Unreviewed test gardening
- platform/wincairo/TestExpectations:
- 1:25 PM Changeset in webkit [282167] by
-
- 2 edits in trunk/LayoutTests
[iOS14 Release iPhone] fast/shapes/shape-outside-floats/shape-outside-big-box-border-radius-001.html is a flaky crash.
https://bugs.webkit.org/show_bug.cgi?id=230060.
Unreviewed test gardening .
- platform/ios-14-wk2/TestExpectations:
- 1:07 PM Changeset in webkit [282166] by
-
- 4 edits in trunk/Tools
[webkitcorepy] Add support for find_spec
https://bugs.webkit.org/show_bug.cgi?id=230009
<rdar://problem/82827571>
Reviewed by Dewei Zhu.
- Scripts/libraries/webkitcorepy/setup.py: Bump version.
- Scripts/libraries/webkitcorepy/webkitcorepy/init.py: Ditto.
- Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py:
(AutoInstall.find_spec): Added.
- 12:57 PM Changeset in webkit [282165] by
-
- 5 edits2 adds in trunk
KeyboardEvent should setDefaultHandled if EventHandler::startKeyboardScrolling returns true
https://bugs.webkit.org/show_bug.cgi?id=229784
Reviewed by Darin Adler.
Source/WebCore:
If a KeyboardEvent is handled by the default event handler, it
should be marked by Event::setDefaultHandled.
Test: fast/scrolling/keyboard-scrolling-last-timestamp.html
- page/EventHandler.cpp:
(WebCore::EventHandler::defaultKeyboardEventHandler):
(WebCore::EventHandler::defaultArrowEventHandler):
LayoutTests:
- fast/scrolling/keyboard-scrolling-last-timestamp-expected.txt: Added.
- fast/scrolling/keyboard-scrolling-last-timestamp.html: Added.
- 12:52 PM Changeset in webkit [282164] by
-
- 2 edits in trunk/Tools
[Win][DumpRenderTree] ASSERTION FAILED: openWindows().size() == 1 in runTest
https://bugs.webkit.org/show_bug.cgi?id=229932
Reviewed by Chris Dumez.
runTest() called DestroyWindow while iterating 'openWindows'.
However, DestroyWindow dispatches WM_DESTROY that removes the item
from 'openWindows'.
- DumpRenderTree/win/DumpRenderTree.cpp:
(runTest): Copy the vector to iterate.
- 12:47 PM Changeset in webkit [282163] by
-
- 4 edits in trunk/LayoutTests
fast/text/FontFaceSet-status-after-style-update.html is flaky.
https://bugs.webkit.org/show_bug.cgi?id=229975
Unreviewed.
internals.clearMemoryCache() only works for fonts if you put it before the @font-face block.
- TestExpectations:
- fast/text/FontFaceSet-check-after-style-update.html:
- fast/text/FontFaceSet-status-after-style-update.html:
- 12:05 PM Changeset in webkit [282162] by
-
- 12 edits4 adds in trunk
Implement sin, cos, tan, e and pi for calc
https://bugs.webkit.org/show_bug.cgi?id=229507
Patch by Nikos Mouchtaris <Nikos Mouchtaris> on 2021-09-08
Reviewed by Simon Fraser.
Source/WebCore:
Tests: css3/calc/simple-trig-functions.html
css3/calc/trig-functions-with-constants.html
Add support for sin, cos, and tan functions within calc. Also add e and pi
constant values within calc.
- css/CSSValueKeywords.in:
Add sin,cos,e and pi keywords.
- css/calc/CSSCalcExpressionNodeParser.cpp:
(WebCore::getConstantTable):
Add helper function with table mapping e and pi keywords to their
approximate numerical value.
(WebCore::CSSCalcExpressionNodeParser::parseCalcFunction):
Add handling for creation of sin,cos,tan operation nodes.
(WebCore::CSSCalcExpressionNodeParser::parseValue):
Add handling for creation of primitive css value when constant is parsed.
- css/calc/CSSCalcOperationNode.cpp:
(WebCore::determineCategory):
Add sin,cos,tan to switch statement.
(WebCore::functionFromOperator):
Add sin,cos,tan to switch statement.
(WebCore::CSSCalcOperationNode::createTrig):
Add function for creation of sin,cos,tan operation node.
(WebCore::CSSCalcOperationNode::combineChildren):
Add handling for performing sin,cos,tan function on child node.
(WebCore::CSSCalcOperationNode::simplifyNode):
Add handling for sin,cos,tan.
(WebCore::CSSCalcOperationNode::primitiveType const):
Remove assert that is no longer correct. Trig functions take can take an
angle and return a number, so it is no longer the case that all children
of a node producing a number must be numbers themself.
(WebCore::CSSCalcOperationNode::doubleValue const):
Convert chilren nodes that are angles to radians.
(WebCore::functionPrefixForOperator):
Add handling for sin,cos,tan.
(WebCore::CSSCalcOperationNode::evaluateOperator):
Add functionality for sin,cos,tan functions.
- css/calc/CSSCalcOperationNode.h:
- css/calc/CSSCalcValue.cpp:
(WebCore::createCSS):
Add handling for creation of sin,cos,tan operation nodes.
(WebCore::CSSCalcValue::isCalcFunction):
Add handling for sin,cos,tan.
- platform/calc/CalcExpressionOperation.cpp:
(WebCore::CalcExpressionOperation::evaluate const):
Add functionality for sin,cos,tan function.
- platform/calc/CalcOperator.cpp:
(WebCore::operator<<):
Add handling for sin,cos,tan.
- platform/calc/CalcOperator.h:
LayoutTests:
- fast/css/calc-parsing.html:
Added parsing tests for sin, cos, tan, e and pi.
- css3/calc/trig-functions-with-constants.html: Added.
Added additional tests for expected behavior of sin, cos, tan, e and pi.
- LayoutTests/animations/calc-animation-test.html: Added.
Added animation test for expanding width of box given a width defined using a calc expression
Involving sin and cos.
- 11:52 AM Changeset in webkit [282161] by
-
- 2 edits in trunk/LayoutTests
[ BigSur wk2 Debug ] http/tests/inspector/network/resource-request-headers.html is flaky failing.
https://bugs.webkit.org/show_bug.cgi?id=230056
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 11:36 AM Changeset in webkit [282160] by
-
- 7 edits in trunk
webgl/2.0.y/conformance/extensions/webgl-compressed-texture-etc.html fails on Metal
https://bugs.webkit.org/show_bug.cgi?id=229940
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-09-08
Reviewed by Dean Jackson.
Source/WebCore:
Add compressed texture upload internal format validation back.
This was disabled when ANGLE was integrated.
ANGLE does not check whether the extensions are enabled or not.
Fixes tests:
webgl/1.0.x/conformance/extensions/webgl-compressed-texture-etc.html
webgl/2.0.y/conformance/extensions/webgl-compressed-texture-etc.html
- html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::compressedTexImage2D):
- html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::compressedTexImage2D):
(WebCore::WebGLRenderingContextBase::compressedTexSubImage2D):
(WebCore::WebGLRenderingContextBase::validateCompressedTexFormat):
- html/canvas/WebGLRenderingContextBase.h:
LayoutTests:
Enable webgl/2.0.y/conformance/extensions/webgl-compressed-texture-etc.html
explicitly until 2.0.y is activated. Same for 1.0.x.
- webgl/TestExpectations:
- webgl/webgl-allow-shared-expected.txt:
The test tests that SharedArrayBuffer does not produce an error for
when used as TexImageSource. The change makes two compressedTexImage
calls produce new GL errors due to the extension not being enabled.
The errors are added to the expected.txt. This does not invalidate
the objective of the change -- the SharedArrayBuffer type validation
happens before the GL validation and as such will be visible if
the objective of the test is broken.
- 11:30 AM Changeset in webkit [282159] by
-
- 2 edits in trunk/LayoutTests
[ BigSur wk1 ] webrtc/datachannel/datachannel-page-cache-send.html is a flaky timeout.
https://bugs.webkit.org/show_bug.cgi?id=230055
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- 10:49 AM Changeset in webkit [282158] by
-
- 2 edits in trunk/Source/WebCore
[css-text-decor] text-decoration-* properties are no longer experimental
https://bugs.webkit.org/show_bug.cgi?id=230039
Reviewed by Simon Fraser.
- css/CSSProperties.json: Remove experimental status from text-decoration-* properties.
- 10:30 AM Changeset in webkit [282157] by
-
- 4 edits in trunk/Source
Remove unneeded call on startup of WebContent process
https://bugs.webkit.org/show_bug.cgi?id=230022
<rdar://problem/82838000>
Reviewed by Darin Adler.
Source/WebCore/PAL:
- pal/spi/cg/CoreGraphicsSPI.h:
Source/WebKit:
There is no need to call CGSShutdownServerConnections during startup of the WebContent process on macOS,
since we already have asserted that there are no open connections at this point.
- WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeProcess):
- 10:24 AM Changeset in webkit [282156] by
-
- 3 edits in trunk/LayoutTests
[ MacOS wk1 ] plugins/get-url-that-the-resource-load-delegate-will-disallow.html is a flaky crash
https://bugs.webkit.org/show_bug.cgi?id=230050
<rdar://problem/82877497>
Unreviewed, prevent popup windows in the test to restore pre-r282103 behavior.
- platform/mac-wk1/TestExpectations:
- plugins/get-url-that-the-resource-load-delegate-will-disallow.html:
- 10:22 AM Changeset in webkit [282155] by
-
- 5 edits1 add in branches/safari-612-branch
Cherry-pick r282042. rdar://problem/82877251
[JSC] Make EnumeratorNextUpdateIndexAndMode clobberizing rule precise
https://bugs.webkit.org/show_bug.cgi?id=229898
rdar://82714439
Reviewed by Saam Barati.
JSTests:
- complex.yaml:
- complex/for-in-clobberize.js: Added.
Source/JavaScriptCore:
Clobberizing rule and AI does not match for EnumeratorNextUpdateIndexAndMode node.
We fix both cases: isSaneChain is not related to this node. So we should use isInBounds
as we are doing for HasIndexedProperty node.
- dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
- dfg/DFGClobberize.h: (JSC::DFG::clobberize):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 10:22 AM Changeset in webkit [282154] by
-
- 2 edits in branches/safari-612-branch/Source/WebKit
Cherry-pick r282090. rdar://problem/82877535
Post-layout
EditorStateupdates should be scheduled usingRenderingUpdateScheduler
https://bugs.webkit.org/show_bug.cgi?id=229905
Reviewed by Simon Fraser.
Use
Page::scheduleRenderingUpdaterather thanDrawingArea::triggerRenderingUpdateto ensure that we schedule
a layer tree flush when sending a full post-layoutEditorStateupdate to the UI process. On macOS, the latter
method on DrawingArea will immediately install a runloop observer for the next CA commit, while the former only
does so after a zero-delay timer fires, courtesy of RenderingUpdateScheduler.
This prevents us from triggering unnecessary layer tree flushes in the case where the selection changes
frequently during a single rendering update; in particular, in Speedometer 2 on macOS, this decreases the total
number of rendering updates performed over the course of the benchmark by roughly 30%.
- WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::scheduleFullEditorStateUpdate):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 10:22 AM Changeset in webkit [282153] by
-
- 18 edits3 adds in branches/safari-612-branch
Cherry-pick r282014. rdar://problem/82877307
[JSC] Validate JSPropertyNameEnumerator via watchpoints
https://bugs.webkit.org/show_bug.cgi?id=229846
Reviewed by Keith Miller.
JSTests:
- stress/for-in-cacheable-dictionary.js: Added. (shouldBe): (collect):
- stress/for-in-invalidate.js: Added. (shouldBe): (collect):
- stress/for-in-uncacheable-dictionary.js: Added. (shouldBe): (collect):
Source/JavaScriptCore:
Looked into Elm-TodoMVC sampling profiler data and found that op_get_property_enumerator is taking enough amount of time.
And Instruments say validating JSPropertyNameEnumerator via traversing StructureChain is costly.
We are caching JSPropertyNameEnumerator only when we meet the condition: objects in prototype chain can ensure identity of
property names if structure is not changed. So we can use watchpoint based approach to invalidate JSPropertyNameEnumerator.
This patch injects structure transition watchpoints if possible. And when watchpoint is fired, we invalidate JSPropertyNameEnumerator
cached in StructureRareData, as if we are ensuring prototype chain condition for the other property accesses.
This offers 0.6% improvement in Speedometer2.
----------------------------------------------------------------------------------------------------------------------------------
| subtest | ms | ms | b / a | pValue (significance using False Discovery Rate) |
----------------------------------------------------------------------------------------------------------------------------------
| Elm-TodoMVC |121.971667 |117.725000 |0.965183 | 0.000000 (significant) |
| VueJS-TodoMVC |26.246667 |26.035000 |0.991935 | 0.360614 |
| EmberJS-TodoMVC |126.196667 |126.653333 |1.003619 | 0.103138 |
| BackboneJS-TodoMVC |48.976667 |48.881667 |0.998060 | 0.474106 |
| Preact-TodoMVC |20.118333 |20.115000 |0.999834 | 0.989038 |
| AngularJS-TodoMVC |131.545000 |130.706667 |0.993627 | 0.015344 (significant) |
| Vanilla-ES2015-TodoMVC |63.725000 |63.773333 |1.000758 | 0.706560 |
| Inferno-TodoMVC |64.231667 |62.653333 |0.975427 | 0.000000 (significant) |
| Flight-TodoMVC |77.223333 |77.690000 |1.006043 | 0.268309 |
| Angular2-TypeScript-TodoMVC |39.686667 |39.500000 |0.995296 | 0.499678 |
| VanillaJS-TodoMVC |52.321667 |51.973333 |0.993342 | 0.077777 |
| jQuery-TodoMVC |224.908333 |225.761667 |1.003794 | 0.022136 |
| EmberJS-Debug-TodoMVC |339.858333 |339.886667 |1.000083 | 0.950320 |
| React-TodoMVC |86.545000 |86.070000 |0.994512 | 0.001518 (significant) |
| React-Redux-TodoMVC |146.010000 |142.855000 |0.978392 | 0.000000 (significant) |
| Vanilla-ES2015-Babel-Webpack-TodoMVC |61.411667 |61.456667 |1.000733 | 0.631499 |
----------------------------------------------------------------------------------------------------------------------------------
a mean = 255.96543
b mean = 257.53379
pValue = 0.0000034394
(Bigger means are better.)
1.006 times better
Results ARE significant
- bytecode/Watchpoint.cpp:
- bytecode/Watchpoint.h:
- dfg/DFGSpeculativeJIT.cpp: (JSC::DFG::SpeculativeJIT::compileGetPropertyEnumerator):
- ftl/FTLAbstractHeapRepository.h:
- ftl/FTLLowerDFGToB3.cpp: (JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
- runtime/JSPropertyNameEnumerator.h: (JSC::propertyNameEnumerator):
- runtime/StructureRareData.h:
- runtime/StructureRareDataInlines.h: (JSC::StructureRareData::setCachedPropertyNameEnumerator): (JSC::StructureChainInvalidationWatchpoint::install): (JSC::StructureChainInvalidationWatchpoint::fireInternal): (JSC::StructureRareData::tryCachePropertyNameEnumeratorViaWatchpoint): (JSC::StructureRareData::invalidateWatchpointBasedValidation):
- tools/JSDollarVM.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): (JSC::JSDollarVM::finishCreation):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 10:22 AM Changeset in webkit [282152] by
-
- 6 edits in branches/safari-612-branch
Cherry-pick r281965. rdar://problem/82877374
Gracefully recover from WebAuthnProcess crashes
https://bugs.webkit.org/show_bug.cgi?id=229828
Source/WebKit:
<rdar://82682650>
Patch by Alex Christensen <achristensen@webkit.org> on 2021-09-02
Reviewed by Chris Dumez.
When a WebAuthn process closes, it can't be connected with again, which causes persistent web process "crashes".
Let's start a new process when this happens instead.
- UIProcess/API/Cocoa/WKProcessPool.mm: (+[WKProcessPool _webAuthnProcessIdentifier]):
- UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
- UIProcess/WebAuthentication/WebAuthnProcessProxy.cpp: (WebKit::sharedProcess): (WebKit::WebAuthnProcessProxy::singleton): (WebKit::WebAuthnProcessProxy::webAuthnProcessCrashed):
Tools:
Patch by Alex Christensen <achristensen@webkit.org> on 2021-09-02
Reviewed by Chris Dumez.
- TestWebKitAPI/Tests/WebKitCocoa/_WKWebAuthenticationPanel.mm: (TestWebKitAPI::TEST):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 10:20 AM Changeset in webkit [282151] by
-
- 2 edits in trunk/LayoutTests
Make webrtc/datachannel/getStats-no-prflx-remote-candidate.html provide more meaningful errors
https://bugs.webkit.org/show_bug.cgi?id=230003
Reviewed by Eric Carlson.
- webrtc/datachannel/getStats-no-prflx-remote-candidate.html:
The test is timing out flakily, add some errors to know where it is timing out.
Make sure to call send once the local channel is opened.
- 10:11 AM Changeset in webkit [282150] by
-
- 6 edits in trunk
[LFC][Integration] Hovering over link switches to legacy inline boxes
https://bugs.webkit.org/show_bug.cgi?id=226812
<rdar://problem/79394047>
Reviewed by Alan Bujtas.
LayoutTests/imported/w3c:
- web-platform-tests/css/cssom-view/getBoundingClientRect-empty-inline-expected.txt:
Source/WebCore:
Implement rect/quad collection functions in RenderInline by getting data from LFC.
- layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::visualOverflowBoundingBoxRectFor const):
Some tests taking LFC path were affected by the missing implementation here.
(WebCore::LayoutIntegration::LineLayout::collectInlineBoxRects const):
- layout/integration/LayoutIntegrationLineLayout.h:
- rendering/RenderInline.cpp:
(WebCore::RenderInline::generateLineBoxRects const):
(WebCore::RenderInline::absoluteRects const):
(WebCore::RenderInline::absoluteQuads const):
(WebCore::RenderInline::absoluteQuadsIgnoringContinuation const):
(WebCore::RenderInline::absoluteQuadsForSelection const):
(WebCore::RenderInline::addFocusRingRects):
- 10:08 AM Changeset in webkit [282149] by
-
- 5 edits in trunk
webrtc/ephemeral-certificates-and-cnames.html needs to close its connections between two tests
https://bugs.webkit.org/show_bug.cgi?id=229931
Reviewed by Eric Carlson.
Source/WebCore:
Covered by updated test.
- Modules/mediastream/PeerConnectionBackend.cpp:
(WebCore::PeerConnectionBackend::addIceCandidate):
As per https://w3c.github.io/webrtc-pc/#dom-peerconnection-addicecandidate step 4.7, abort if peer connection is closed.
(WebCore::PeerConnectionBackend::newICECandidate):
As per https://w3c.github.io/webrtc-pc/#dfn-surface-the-candidate,
no need to fire an ICE candidate event if peer connection is closed.
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::addIceCandidate):
Return early if peer connection is closed as per https://w3c.github.io/webrtc-pc/#dom-peerconnection-addicecandidate.
LayoutTests:
- webrtc/ephemeral-certificates-and-cnames.html:
Close old connections so that we do not start adding ICE candidates from an old connection to a new one.
- 9:46 AM Changeset in webkit [282148] by
-
- 16 edits in trunk/LayoutTests
[GLIB] Update test baselines after r282129
https://bugs.webkit.org/show_bug.cgi?id=230049
Unreviewed test gardening.
Patch by Arcady Goldmints-Orlov <Arcady Goldmints-Orlov> on 2021-09-08
- platform/glib/fast/multicol/table-vertical-align-expected.txt:
- platform/gtk/css1/text_properties/vertical_align-expected.txt:
- platform/gtk/fast/dom/HTMLProgressElement/progress-element-expected.txt:
- platform/gtk/fast/multicol/vertical-lr/float-multicol-expected.txt:
- platform/gtk/fast/multicol/vertical-rl/float-multicol-expected.txt:
- platform/gtk/fast/text/textIteratorNilRenderer-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug1188-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug126742-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug1318-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug16252-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug4527-expected.txt:
- platform/gtk/tables/mozilla/bugs/bug57828-2-expected.txt:
- platform/gtk/tables/mozilla/other/ms-expected.txt:
- platform/wpe/fast/multicol/vertical-lr/float-multicol-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug1188-expected.txt:
- 9:44 AM Changeset in webkit [282147] by
-
- 2 edits in trunk/LayoutTests
[ MacOS wk1 ]plugins/get-url-that-the-resource-load-delegate-will-disallow.html is a flaky crash.
https://bugs.webkit.org/show_bug.cgi?id=230050
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- 9:35 AM Changeset in webkit [282146] by
-
- 8 edits in branches/safari-612-branch/Source
Versioning.
WebKit-7612.2.5
- 9:05 AM Changeset in webkit [282145] by
-
- 3 edits in trunk/LayoutTests
[ macOS and iOS ] editing/deleting/forward-delete-crash.html is timing out.
https://bugs.webkit.org/show_bug.cgi?id=230047
Unreviewed test gardening.
- platform/ipad/TestExpectations:
- platform/mac/TestExpectations:
- 8:34 AM Changeset in webkit [282144] by
-
- 11 edits2 adds in trunk
Support percentages in the scale() transform functions, and the scale property
https://bugs.webkit.org/show_bug.cgi?id=202501
Reviewed by Sam Weinig.
LayoutTests/imported/w3c:
- web-platform-tests/css/css-transforms/parsing/scale-parsing-valid-expected.txt:
- web-platform-tests/css/css-transforms/parsing/transform-valid-expected.txt:
Source/WebCore:
Support percentage values in the scale*() functions in the transform property, and
on the scale property. These value are converted by numbers by dividing by 100
at parse time, as we do for alpha values in colors. We have to keep calc() intact,
so % calcs need to be divided by 100 at use time.
Test: transforms/2d/scale-percent.html
- css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::doubleValueDividingBy100IfPercentage const):
- css/CSSPrimitiveValue.h:
- css/TransformFunctions.cpp:
(WebCore::transformsForValue):
(WebCore::scaleForValue):
- css/parser/CSSPropertyParser.cpp:
(WebCore::consumeNumbersOrPercents):
(WebCore::consumeTransformValue):
(WebCore::consumeScale):
- css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeNumberRawOrPercentRaw):
(WebCore::CSSPropertyParserHelpers::consumeNumberRawOrPercentRawAllowingSymbolTableIdent):
(WebCore::CSSPropertyParserHelpers::consumeNumberOrPercent):
- css/parser/CSSPropertyParserHelpers.h:
LayoutTests:
Ref test for scales with %.
- transforms/2d/scale-percent-expected.html: Added.
- transforms/2d/scale-percent.html: Added.
- 7:59 AM Changeset in webkit [282143] by
-
- 21 edits2 adds in trunk
Add a temporarily prefixed property for mask-mode, aliased to -webkit-mask-source-type
https://bugs.webkit.org/show_bug.cgi?id=229915
Reviewed by Antti Koivisto.
Source/WebCore:
In preparation for unprefixing the "mask" property, add -webkit-mask-mode. This is
almost an alias to the existing -webkit-mask-source-type, but takes a "match-source"
value rather than "auto".
To make it easier to have aliases with different parsing requirements, add support
in CSSProperties.json for "synonyms"; these are like aliases but they get their
own CSSPropertyID to allow for customized parsing. They share style builder code
with the related property.
FillLayer now uses MaskMode rather than MaskSourceType.
Test: fast/masking/parsing-mask-mode.html
- css/CSSComputedStyleDeclaration.cpp:
(WebCore::maskSourceTypeToCSSValue):
(WebCore::maskModeToCSSValue):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
(WebCore::fillSourceTypeToCSSValue): Deleted.
- css/CSSProperties.json:
- css/CSSToStyleMap.cpp:
(WebCore::CSSToStyleMap::mapFillMaskMode):
(WebCore::CSSToStyleMap::mapFillMaskSourceType): Deleted.
- css/CSSToStyleMap.h:
- css/CSSValueKeywords.in:
- css/makeprop.pl:
(addProperty):
(generateFillLayerPropertyValueSetter):
(generateValueSetter):
- css/parser/CSSPropertyParser.cpp:
(WebCore::consumeWebkitMaskMode):
(WebCore::consumeBackgroundComponent):
(WebCore::CSSPropertyParser::parseSingleValue):
- rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::paintFillLayerExtended):
- rendering/style/FillLayer.cpp:
(WebCore::FillLayer::FillLayer):
(WebCore::FillLayer::operator=):
(WebCore::FillLayer::operator== const):
(WebCore::operator<<):
- rendering/style/FillLayer.h:
(WebCore::FillLayer::maskMode const):
(WebCore::FillLayer::isMaskModeSet const):
(WebCore::FillLayer::setMaskMode):
(WebCore::FillLayer::clearMaskMode):
(WebCore::FillLayer::initialFillMaskMode):
(WebCore::FillLayer::maskSourceType const): Deleted.
(WebCore::FillLayer::isMaskSourceTypeSet const): Deleted.
(WebCore::FillLayer::setMaskSourceType): Deleted.
(WebCore::FillLayer::clearMaskSourceType): Deleted.
(WebCore::FillLayer::initialFillMaskSourceType): Deleted.
- rendering/style/RenderStyleConstants.cpp:
(WebCore::operator<<):
- rendering/style/RenderStyleConstants.h:
Tools:
Allow the "synonym" key in CSSProperties.json.
- Scripts/webkitpy/style/checkers/jsonchecker.py:
(JSONCSSPropertiesChecker.check_codegen_properties):
LayoutTests:
- fast/masking/parsing-mask-mode-expected.txt: Added.
- fast/masking/parsing-mask-mode.html: Added.
- 7:01 AM Changeset in webkit [282142] by
-
- 6 edits2 adds in trunk/Source/WebCore
Add a fast path for atomizing strings when parsing HTML
https://bugs.webkit.org/show_bug.cgi?id=229907
rdar://82854612
Reviewed by Yusuke Suzuki and Darin Adler.
On various subtests in Speedometer 2, a nontrivial amount of time is spent mapping raw UChar data vectors into
AtomStrings while parsing HTML tag names, attribute names and attribute values. Most of this happens underneath
the AtomHTMLToken constructor, which computes a hash for each string in the process of adding it to the atom
string table; the time it takes to compute this string hash increases linearly with the length of the string.
However, over the course of the benchmark, the vast majority of AtomStrings created out of tag names, attribute
names and attribute values are both:
(1) Strings that we've already recently atomized, and
(2) Usually distinguishable from other atom strings based solely on their first character, last character, and
overall string length.
As such, it's possible to slightly improve string atomization performance in this particular case (i.e. parsing
HTML) by maintaining a smaller cache of recently atomized AtomStrings that we index using a simple, constant-
time hash function that considers only the first character, last character, and length of the string. In terms
of the cache hit rate in this AtomString cache, the default string hashing algorithm only barely outperforms
this simple hash function on Speedometer (i.e., a cache hit rate of 99.24% using the default hash algorithm vs.
99.15% using the "first/last character and length" hash).
Using this technique, we can get a significant performance improvement on Speedometer by introducing two small,
fixed-size (512 capacity) AtomString tables: one to hold tag names and attribute names, and another to hold
attribute values (which seems to contain a much larger set of unique strings); we additionally use the cheap "2-
char & length" hash algorithm described above to index into these fixed-size tables.
This allows us to more efficiently atomize not only known tag and attribute names, but also custom element tag
names and attribute names and values that tend to appear frequently in markup (e.g. due to using certain
JavaScript frameworks that get and set HTML attributes).
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- html/parser/AtomHTMLToken.h:
(WebCore::AtomHTMLToken::initializeAttributes):
(WebCore::AtomHTMLToken::AtomHTMLToken):
- html/parser/HTMLAtomStringCache.cpp: Added.
(WebCore::HTMLAtomStringCache::cache):
- html/parser/HTMLAtomStringCache.h: Added.
Add a helper class that exposes three static inline helper methods:
makeTagOrAttributeNameand
makeAttributeValue, which return AtomStrings for the givenVector<UChar>(consulting the corresponding
cache if possible); andclear, which empties all cached atom strings.
(WebCore::HTMLAtomStringCache::makeTagOrAttributeName):
(WebCore::HTMLAtomStringCache::makeAttributeValue):
(WebCore::HTMLAtomStringCache::clear):
(WebCore::HTMLAtomStringCache::make):
Additionally add an upper length limit for characters that we include in this cache; in practice, longer strings
tend to be repeatedly atomized less frequently than shorter strings. The 36-character limit also allows for
frequently-parsed (and atomized) UUIDs to be cached.
(WebCore::HTMLAtomStringCache::cacheSlot):
This hashing algorithm was inspired by
calculateWithTwoCharacters, but with constants specifically chosen to
minimize collisions between common HTML tag and attribute names.
- page/MemoryRelease.cpp:
(WebCore::releaseNoncriticalMemory):
- page/cocoa/MemoryReleaseCocoa.mm:
(WebCore::jettisonExpensiveObjectsOnTopLevelNavigation):
Add logic to clear the HTML atom string cache upon receiving a low memory warning, and upon top-level
navigation.
- 6:33 AM Changeset in webkit [282141] by
-
- 4 edits in trunk/Source/WebCore
[LFC][IFC] Add support for inline box ink overflow
https://bugs.webkit.org/show_bug.cgi?id=230026
Reviewed by Antti Koivisto.
Collecting the ink overflow from the descendant boxes has 2 phases.
- Update the ink overflow on the parent inline box (unless it's a root inline box) as we walk the line content
and find the atomic inline level boxes (e.g. <span><img></span>)
- Collect the ink overflow on nested inline boxes (e.g. <span>some<span style="font-size: 100px">text</span><span>).
- layout/formattingContexts/inline/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::InlineDisplayContentBuilder):
(WebCore::Layout::InlineDisplayContentBuilder::build):
(WebCore::Layout::InlineDisplayContentBuilder::createRunsAndUpdateGeometryForLineContent):
(WebCore::Layout::InlineDisplayContentBuilder::createRunsAndUpdateGeometryForLineSpanningInlineBoxes):
(WebCore::Layout::InlineDisplayContentBuilder::collectInkOverflowForInlineBoxRuns):
- layout/formattingContexts/inline/InlineDisplayContentBuilder.h:
- layout/formattingContexts/inline/InlineLineRun.h:
(WebCore::Layout::Run::adjustInkOverflow):
- 5:56 AM Changeset in webkit [282140] by
-
- 2 edits in trunk/Tools
[GTK] Fix test path in last commit
Unreviewed test gardening.
- TestWebKitAPI/glib/TestExpectations.json:
- 5:52 AM Changeset in webkit [282139] by
-
- 2 edits in trunk/Tools
[GTK] Garden default-menu API test failure
Unreviewed test gardening.
- TestWebKitAPI/glib/TestExpectations.json:
- 4:48 AM Changeset in webkit [282138] by
-
- 11 edits in trunk
[css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders
https://bugs.webkit.org/show_bug.cgi?id=229997
Reviewed by Simon Fraser.
LayoutTests/imported/w3c:
- web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html: This test uses
an identity transform to make a div a containing block for absolutely positioned items. This exposes a bug in
WebKit, but position: relative also does this without exposing the bug. The bug for this issue is
https://bugs.webkit.org/show_bug.cgi?id=229999.
- web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html: Ditto.
Source/WebCore:
No new tests. This is covered by two existing WPT tests:
web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative-expected.html
web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative-expected.html
- rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::computeStickyPositionConstraints const): When the containing block and the scroll container
are the same, fix the calculation of the container content rect. layoutOverflowRect() already does not include the border,
so stop adjusting for that. In addition, instead of simply adjusting the rect location by the padding, actually contract
it so that the bottom and right edges of the rectangle are correct.
LayoutTests:
- TestExpectations: Unskip two newly passing tests.
- platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-expected.txt: Rebaseline.
- platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-gain-scrolling-ancestor-expected.txt: Ditto.
- platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-in-fixed-expected.txt: Ditto.
- platform/ios-wk2/scrollingcoordinator/scrolling-tree/coordinated-frame-lose-scrolling-ancestor-expected.txt: Ditto.
- 4:01 AM Changeset in webkit [282137] by
-
- 11 edits in trunk/Source
Safari TP 131 audio canPlayType() reports false negatives
https://bugs.webkit.org/show_bug.cgi?id=229799
rdar://problem/82776747
Reviewed by Youenn Fablet.
Source/WebCore:
webaudio now supports the same webm content as the video and audio element,
making this workaround no longer necessary.
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::canPlayType const): Remove work around
- page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webMParserEnabled const): Remove now unused method.
Source/WebKit:
- Shared/WebPreferencesDefaultValues.cpp:
- Shared/WebPreferencesDefaultValues.h: Remove no longer used method.
Source/WebKitLegacy/mac:
- WebView/WebPreferencesDefaultValues.h:
- WebView/WebPreferencesDefaultValues.mm: Remove no longer used method.
Source/WTF:
- Scripts/Preferences/WebPreferencesExperimental.yaml: Remove preference.
- 3:38 AM WebKitGTK/2.34.x edited by
- (diff)
- 3:21 AM Changeset in webkit [282136] by
-
- 5 edits in trunk
webgl/2.0.y/deqp/functional/gles3/negativeshaderapi.html fails on Metal
https://bugs.webkit.org/show_bug.cgi?id=229946
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-09-08
Reviewed by Kenneth Russell.
Source/WebCore:
Add a missing check for link status.
Fixes tests:
webgl/2.0.0/deqp/functional/gles3/negativeshaderapi.html
webgl/2.0.y/deqp/functional/gles3/negativeshaderapi.html
- html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::getTransformFeedbackVarying):
LayoutTests:
Enable webgl/2.0.y/deqp/functional/gles3/negativeshaderapi.html
explicitly until 2.0.y is activated.
- webgl/TestExpectations:
- 2:04 AM Changeset in webkit [282135] by
-
- 6 edits in trunk
webgl/2.0.y/deqp/functional/gles3/negativetextureapi.html fails on Metal
https://bugs.webkit.org/show_bug.cgi?id=229948
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-09-08
Reviewed by Dean Jackson.
Source/WebCore:
Validate the texStorage3D target using correct
validation function. The validation should be removed, as
same is done in ANGLE, but for consistency it should be
removed from all functions. Until removal, use correct
WebKit-side validation too.
Fixes tests:
webgl/2.0.0/deqp/functional/gles3/negativetextureapi.html
webgl/2.0.y/deqp/functional/gles3/negativetextureapi.html
webgl/2.0.0/conformance2/textures/misc/tex-storage-and-subimage-3d.html
webgl/2.0.y/conformance2/textures/misc/tex-storage-and-subimage-3d.html
- html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::texStorage3D):
LayoutTests:
Enable webgl/2.0.y/deqp/functional/gles3/negativetextureapi.html
explicitly until 2.0.y is activated.
- webgl/TestExpectations:
- webgl/2.0.0/conformance2/textures/misc/tex-storage-and-subimage-3d-expected.txt:
- webgl/2.0.0/deqp/functional/gles3/negativetextureapi-expected.txt:
- 1:29 AM Changeset in webkit [282134] by
-
- 5 edits2 adds in trunk/LayoutTests
Testing for the fact that media elements are treated as replaced elements
https://bugs.webkit.org/show_bug.cgi?id=229857
Patch by Frédéric Wang <fwang@igalia.com> on 2021-09-08
Reviewed by Darin Adler.
This is a follow-up of r281979. backwards-text-iterator-basic.html is extended to check that
SimplifiedBackwardsTextIterator emits a comma for a media element. The a11y test from r274810
which verified audio/video elements emit an object replacement character is restored, as it
seems it was removed by mistake and so this case was no longer checked explicitly.
text-marker-previous-next.html is also extended to cover the case of media element.
- accessibility/text-marker/media-emits-object-replacement-expected.txt: Added.
- accessibility/text-marker/media-emits-object-replacement.html: Added.
- accessibility/text-marker/text-marker-previous-next-expected.txt:
- accessibility/text-marker/text-marker-previous-next.html:
- editing/text-iterator/backwards-text-iterator-basic-expected.txt:
- editing/text-iterator/backwards-text-iterator-basic.html:
- 12:48 AM Changeset in webkit [282133] by
-
- 5 edits4 adds in trunk
Support animations on ::backdrop
https://bugs.webkit.org/show_bug.cgi?id=229042
Reviewed by Antoine Quint.
LayoutTests/imported/w3c:
- web-platform-tests/css/css-pseudo/backdrop-animate-002-expected.html: Added.
- web-platform-tests/css/css-pseudo/backdrop-animate-002.html: Added.
- web-platform-tests/css/css-pseudo/backdrop-animate-expected.txt: Added.
- web-platform-tests/css/css-pseudo/backdrop-animate.html: Added.
Source/WebCore:
- style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveElement):
(WebCore::Style::TreeResolver::resolvePseudoStyle):
LayoutTests:
- 12:39 AM Changeset in webkit [282132] by
-
- 5 edits in trunk
webgl/2.0.y/deqp/functional/gles3/rbostatequery.html fails on Metal
https://bugs.webkit.org/show_bug.cgi?id=229950
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-09-08
Reviewed by Dean Jackson.
Source/WebCore:
Request ANGLE_framebuffer_multisample when creating WebGL2 context.
WebGL2 spec requires multisampled framebuffers.
The test that would fail is:
gl.renderbufferStorageMultisample(gl.RENDERBUFFER, samples, gl.RGBA8, 128, 128);
var value = / @type {number} */ (gl.getRenderbufferParameter(gl.RENDERBUFFER, gl.RENDERBUFFER_SAMPLES));
this.check(value >= samples, 'Expected greater or equal to ' + samples + ' got ' + value);
for
samples == 1the test would havevalue == 0with INVALID_OPERATION from ANGLE due to
the extension not being enabled.
Fixes tests:
webgl/2.0.0/deqp/functional/gles3/rbostatequery.html
webgl/2.0.y/deqp/functional/gles3/rbostatequery.html
- platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm:
(WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL):
LayoutTests:
Enable webgl/2.0.y/deqp/functional/gles3/rbostatequery.html
explicitly until 2.0.y is activated.
- webgl/TestExpectations: