Timeline
Apr 14, 2021:
- 11:23 PM Changeset in webkit [276004] by
-
- 2 edits in trunk/LayoutTests
[GTK] Unreviewed test gardening. Update tests expected to fail but passing.
- platform/gtk/TestExpectations:
- 11:17 PM Changeset in webkit [276003] by
-
- 9 edits2 adds in trunk/Source/WebCore
Preloaded async scripts should use the same priority as the normally loaded ones
https://bugs.webkit.org/show_bug.cgi?id=224537
Reviewed by Sam Weinig.
Use the same priority (medium instead of low) when preloading.
Factor default priorities to a separate type making it easier to keep them in sync.
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- dom/LoadableClassicScript.cpp:
(WebCore::LoadableClassicScript::load):
- html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::process):
- html/parser/HTMLResourcePreloader.cpp:
(WebCore::PreloadRequest::resourceRequest):
- loader/DefaultResourceLoadPriority.cpp: Added.
(WebCore::DefaultResourceLoadPriority::forResourceType):
- loader/DefaultResourceLoadPriority.h: Added.
- loader/LinkLoader.cpp:
(WebCore::LinkLoader::preloadIfNeeded):
- loader/cache/CachedResource.cpp:
(WebCore::CachedResource::CachedResource):
(WebCore::CachedResource::setLoadPriority):
(WebCore::CachedResource::defaultPriorityForResourceType): Deleted.
- loader/cache/CachedResource.h:
(WebCore::CachedResource::identifierForLoadWithoutResourceLoader const):
- 11:15 PM Changeset in webkit [276002] by
-
- 10 edits in trunk
Omit default position/angle when serializing radial & conic gradients
https://bugs.webkit.org/show_bug.cgi?id=223892
Patch by Tim Nguyen <ntim@apple.com> on 2021-04-14
Reviewed by Antti Koivisto.
Test: LayoutTests/imported/w3c/web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub.html
LayoutTests/imported/w3c:
- web-platform-tests/css/css-backgrounds/parsing/background-image-computed.sub-expected.txt:
Source/WebCore:
- css/CSSGradientValue.cpp:
(WebCore::ConicGradientAdapter::normalizeStopsAndEndpointsOutsideRange):
(WebCore::CSSLinearGradientValue::customCSSText const):
(WebCore::CSSRadialGradientValue::customCSSText const):
(WebCore::CSSConicGradientValue::customCSSText const):
- css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::isCenterPosition const):
- css/CSSPrimitiveValue.h:
LayoutTests:
- fast/gradients/unprefixed-gradient-parsing-expected.txt:
- fast/gradients/unprefixed-gradient-parsing.html:
- http/wpt/css/css-images-4/conic-gradient-parsing.html:
- 10:55 PM Changeset in webkit [276001] by
-
- 3 edits in trunk/Source/WebCore
[Nicosia] NicosiaGCGLLayer is unneeded when ENABLE_WEBGL is OFF
https://bugs.webkit.org/show_bug.cgi?id=224557
Reviewed by Michael Catanzaro.
Add an ENABLE(WEBGL) guard around NicosiaGCGLLayer.
- platform/graphics/nicosia/texmap/NicosiaGCGLLayer.cpp:
- platform/graphics/nicosia/texmap/NicosiaGCGLLayer.h:
- 10:53 PM Changeset in webkit [276000] by
-
- 3 edits1 add in trunk
Add missing exception check in operationGetPrivateNameOptimize().
https://bugs.webkit.org/show_bug.cgi?id=224592
rdar://76645873
Reviewed by Yusuke Suzuki.
JSTests:
- stress/suppress-TerminationException-in-operationGetPrivateNameOptimize.js: Added.
Source/JavaScriptCore:
Though the fieldNameValue.toPropertyKey() call in operationGetPrivateNameOptimize()
would not normally throw an exception, it still can throw a TerminationException
because it contains RETURN_IF_EXCEPTION checks.
- jit/JITOperations.cpp:
- 10:44 PM Changeset in webkit [275999] by
-
- 16 edits2 copies13 adds in trunk/LayoutTests
[GTK][WPE] Unreviewed test gardening. Add missing images after r275996.
- platform/gtk/css2.1/t100801-c544-valgn-03-d-agi-expected.png:
- platform/gtk/fast/block/margin-collapse/block-inside-inline/001-expected.png:
- platform/gtk/fast/block/margin-collapse/block-inside-inline/005-expected.png:
- platform/gtk/fast/css/child-style-can-override-visited-style-expected.png:
- platform/gtk/fast/dom/HTMLProgressElement/progress-element-expected.png:
- platform/gtk/fast/images/image-map-anchor-children-expected.png:
- platform/gtk/fast/inline-block/003-expected.png:
- platform/gtk/fast/inline/002-expected.png:
- platform/gtk/fast/invalid/018-expected.png:
- platform/gtk/fast/table/frame-and-rules-expected.png:
- platform/gtk/fast/table/table-display-types-strict-expected.png:
- platform/gtk/fast/text/basic/012-expected.png:
- platform/gtk/svg/custom/invisible-text-after-scrolling-expected.png:
- platform/gtk/tables/mozilla/bugs/bug14323-expected.png:
- platform/gtk/tables/mozilla/bugs/bug2267-expected.png:
- platform/wpe/css2.1/t100801-c544-valgn-03-d-agi-expected.png: Added.
- platform/wpe/fast/block/margin-collapse/block-inside-inline/001-expected.png: Added.
- platform/wpe/fast/block/margin-collapse/block-inside-inline/005-expected.png: Added.
- platform/wpe/fast/css/child-style-can-override-visited-style-expected.png: Added.
- platform/wpe/fast/dom/HTMLProgressElement/progress-element-expected.png: Added.
- platform/wpe/fast/images/image-map-anchor-children-expected.png: Added.
- platform/wpe/fast/inline-block/003-expected.png: Added.
- platform/wpe/fast/inline/002-expected.png: Added.
- platform/wpe/fast/invalid/018-expected.png: Added.
- platform/wpe/fast/table/frame-and-rules-expected.png: Added.
- platform/wpe/fast/table/table-display-types-strict-expected.png: Added.
- platform/wpe/fast/text/basic/012-expected.png: Added.
- platform/wpe/svg/custom/invisible-text-after-scrolling-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug14323-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug2267-expected.png: Added.
- 8:44 PM Changeset in webkit [275998] by
-
- 44 edits1 move34 adds in trunk/LayoutTests
[WPE] Unreviewed test gardening. Update stale baselines.
Also add missing .png images.
- platform/gtk/fast/css/word-space-extra-expected.png: Renamed from LayoutTests/platform/glib/fast/css/word-space-extra-expected.png.
- platform/wpe/css1/box_properties/border-expected.png: Added.
- platform/wpe/css1/box_properties/border-expected.txt:
- platform/wpe/css1/text_properties/text_decoration-expected.png: Added.
- platform/wpe/css1/text_properties/text_decoration-expected.txt:
- platform/wpe/css1/text_properties/vertical_align-expected.png: Added.
- platform/wpe/css1/text_properties/vertical_align-expected.txt:
- platform/wpe/css1/text_properties/word_spacing-expected.txt:
- platform/wpe/fast/block/basic/014-expected.png: Added.
- platform/wpe/fast/block/basic/014-expected.txt:
- platform/wpe/fast/block/positioning/057-expected.png: Added.
- platform/wpe/fast/block/positioning/057-expected.txt:
- platform/wpe/fast/css-generated-content/after-duplicated-after-split-expected.png: Added.
- platform/wpe/fast/css-generated-content/after-duplicated-after-split-expected.txt:
- platform/wpe/fast/css/word-space-extra-expected.png:
- platform/wpe/fast/css/word-space-extra-expected.txt:
- platform/wpe/fast/encoding/utf-16-big-endian-expected.png: Added.
- platform/wpe/fast/encoding/utf-16-big-endian-expected.txt:
- platform/wpe/fast/inline/drawStyledEmptyInlines-expected.png: Added.
- platform/wpe/fast/inline/drawStyledEmptyInlines-expected.txt:
- platform/wpe/fast/invalid/missing-end-tag-expected.png: Added.
- platform/wpe/fast/invalid/missing-end-tag-expected.txt:
- platform/wpe/fast/lists/marker-before-empty-inline-expected.png: Added.
- platform/wpe/fast/lists/marker-before-empty-inline-expected.txt:
- platform/wpe/fast/overflow/scrollRevealButton-expected.png: Added.
- platform/wpe/fast/overflow/scrollRevealButton-expected.txt:
- platform/wpe/fast/parser/nofoo-tags-inside-paragraph-expected.png: Added.
- platform/wpe/fast/parser/nofoo-tags-inside-paragraph-expected.txt:
- platform/wpe/fast/parser/xhtml-alternate-entities-expected.png: Added.
- platform/wpe/fast/parser/xhtml-alternate-entities-expected.txt:
- platform/wpe/fast/selectors/visited-descendant-expected.png: Added.
- platform/wpe/fast/selectors/visited-descendant-expected.txt:
- platform/wpe/fast/text/basic/013-expected.png: Added.
- platform/wpe/fast/text/basic/013-expected.txt:
- platform/wpe/fast/text/mark-matches-overflow-clip-expected.txt:
- platform/wpe/fast/text/whitespace/018-expected.png: Added.
- platform/wpe/fast/text/whitespace/018-expected.txt:
- platform/wpe/fast/text/word-break-expected.png: Added.
- platform/wpe/fast/text/word-break-expected.txt:
- platform/wpe/scrollingcoordinator/scrolling-tree/coordinated-frame-expected.txt:
- platform/wpe/scrollingcoordinator/scrolling-tree/coordinated-frame-gain-scrolling-ancestor-expected.txt:
- platform/wpe/scrollingcoordinator/scrolling-tree/coordinated-frame-in-fixed-expected.txt:
- platform/wpe/scrollingcoordinator/scrolling-tree/coordinated-frame-lose-scrolling-ancestor-expected.txt:
- platform/wpe/svg/custom/svg-fonts-in-html-expected.png: Added.
- platform/wpe/svg/custom/svg-fonts-in-html-expected.txt:
- platform/wpe/svg/custom/svg-fonts-word-spacing-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug113235-1-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug113235-1-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug113235-2-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug113235-2-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug1188-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug1188-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug126742-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug126742-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug1318-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug1318-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug16252-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug16252-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug18359-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug18359-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug4527-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug4527-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug57300-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug57300-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug57828-2-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug57828-2-expected.txt:
- platform/wpe/tables/mozilla/bugs/bug7342-expected.png: Added.
- platform/wpe/tables/mozilla/bugs/bug7342-expected.txt:
- platform/wpe/tables/mozilla/core/bloomberg-expected.png: Added.
- platform/wpe/tables/mozilla/core/bloomberg-expected.txt:
- platform/wpe/tables/mozilla/other/ms-expected.png: Added.
- platform/wpe/tables/mozilla/other/ms-expected.txt:
- platform/wpe/tables/mozilla/other/wa_table_thtd_rowspan-expected.png: Added.
- platform/wpe/tables/mozilla/other/wa_table_thtd_rowspan-expected.txt:
- platform/wpe/tables/mozilla/other/wa_table_tr_align-expected.png: Added.
- platform/wpe/tables/mozilla/other/wa_table_tr_align-expected.txt:
- platform/wpe/tables/mozilla_expected_failures/bugs/bug89315-expected.png: Added.
- platform/wpe/tables/mozilla_expected_failures/bugs/bug89315-expected.txt:
- 8:34 PM Changeset in webkit [275997] by
-
- 2 edits in trunk/Source/WebCore
Avoid indirect load in ContainerNode::hasOneChild()
https://bugs.webkit.org/show_bug.cgi?id=224589
Reviewed by Chris Dumez.
Getting nextSibling() will involve loading the first child into the register.
Avoid that and just check m_firstChild and m_lastChild instead to avoid this extra memory load.
- dom/ContainerNode.h:
(WebCore::ContainerNode::hasOneChild const):
- 8:31 PM Changeset in webkit [275996] by
-
- 1 edit23 copies13 moves2 adds4 deletes in trunk/LayoutTests
[WPE] Unreviewed test gardening. Emit specific baselines for WPE.
Several baselines that were common to GTK and WPE are no longer valid.
It's necessary to move the common baseline to GTK and emit new baselines for WPE.
- platform/gtk/css2.1/t100801-c544-valgn-03-d-agi-expected.txt: Copied from LayoutTests/platform/glib/css2.1/t100801-c544-valgn-03-d-agi-expected.txt.
- platform/gtk/fast/block/margin-collapse/block-inside-inline/001-expected.txt: Copied from LayoutTests/platform/glib/fast/block/margin-collapse/block-inside-inline/001-expected.txt.
- platform/gtk/fast/block/margin-collapse/block-inside-inline/005-expected.txt: Copied from LayoutTests/platform/glib/fast/block/margin-collapse/block-inside-inline/005-expected.txt.
- platform/gtk/fast/css/child-style-can-override-visited-style-expected.txt: Copied from LayoutTests/platform/glib/fast/css/child-style-can-override-visited-style-expected.txt.
- platform/gtk/fast/dom/HTMLProgressElement/progress-element-expected.txt: Copied from LayoutTests/platform/glib/fast/dom/HTMLProgressElement/progress-element-expected.txt.
- platform/gtk/fast/images/image-map-anchor-children-expected.txt: Copied from LayoutTests/platform/glib/fast/images/image-map-anchor-children-expected.txt.
- platform/gtk/fast/inline-block/002-expected.txt: Copied from LayoutTests/platform/glib/fast/inline-block/002-expected.txt.
- platform/gtk/fast/inline-block/003-expected.txt: Copied from LayoutTests/platform/glib/fast/inline-block/003-expected.txt.
- platform/gtk/fast/inline/002-expected.txt: Copied from LayoutTests/platform/glib/fast/inline/002-expected.txt.
- platform/gtk/fast/invalid/018-expected.txt: Copied from LayoutTests/platform/glib/fast/invalid/018-expected.txt.
- platform/gtk/fast/table/frame-and-rules-expected.txt: Copied from LayoutTests/platform/glib/fast/table/frame-and-rules-expected.txt.
- platform/gtk/fast/table/table-display-types-strict-expected.txt: Copied from LayoutTests/platform/glib/fast/table/table-display-types-strict-expected.txt.
- platform/gtk/fast/text/basic/012-expected.txt: Copied from LayoutTests/platform/glib/fast/text/basic/012-expected.txt.
- platform/gtk/svg/custom/invisible-text-after-scrolling-expected.txt: Copied from LayoutTests/platform/glib/svg/custom/invisible-text-after-scrolling-expected.txt.
- platform/gtk/svg/hixie/processing-model/003-expected.txt: Copied from LayoutTests/platform/glib/svg/hixie/processing-model/003-expected.txt.
- platform/gtk/svg/hixie/processing-model/004-expected.txt: Copied from LayoutTests/platform/glib/svg/hixie/processing-model/004-expected.txt.
- platform/gtk/tables/mozilla/bugs/bug14323-expected.txt: Copied from LayoutTests/platform/glib/tables/mozilla/bugs/bug14323-expected.txt.
- platform/gtk/tables/mozilla/bugs/bug2267-expected.txt: Copied from LayoutTests/platform/glib/tables/mozilla/bugs/bug2267-expected.txt.
- platform/wpe/css2.1/t100801-c544-valgn-03-d-agi-expected.txt: Renamed from LayoutTests/platform/glib/css2.1/t100801-c544-valgn-03-d-agi-expected.txt.
- platform/wpe/fast/block/margin-collapse/block-inside-inline/001-expected.txt: Renamed from LayoutTests/platform/glib/fast/block/margin-collapse/block-inside-inline/001-expected.txt.
- platform/wpe/fast/block/margin-collapse/block-inside-inline/005-expected.txt: Renamed from LayoutTests/platform/glib/fast/block/margin-collapse/block-inside-inline/005-expected.txt.
- platform/wpe/fast/css/child-style-can-override-visited-style-expected.txt: Renamed from LayoutTests/platform/glib/fast/css/child-style-can-override-visited-style-expected.txt.
- platform/wpe/fast/dom/HTMLProgressElement/progress-element-expected.txt: Renamed from LayoutTests/platform/glib/fast/dom/HTMLProgressElement/progress-element-expected.txt.
- platform/wpe/fast/images/image-map-anchor-children-expected.txt: Renamed from LayoutTests/platform/glib/fast/images/image-map-anchor-children-expected.txt.
- platform/wpe/fast/inline-block/002-expected.txt: Renamed from LayoutTests/platform/glib/fast/inline-block/002-expected.txt.
- platform/wpe/fast/inline-block/003-expected.txt: Renamed from LayoutTests/platform/glib/fast/inline-block/003-expected.txt.
- platform/wpe/fast/inline/002-expected.txt: Renamed from LayoutTests/platform/glib/fast/inline/002-expected.txt.
- platform/wpe/fast/invalid/018-expected.txt: Renamed from LayoutTests/platform/glib/fast/invalid/018-expected.txt.
- platform/wpe/fast/table/frame-and-rules-expected.txt: Renamed from LayoutTests/platform/glib/fast/table/frame-and-rules-expected.txt.
- platform/wpe/fast/table/table-display-types-strict-expected.txt: Renamed from LayoutTests/platform/glib/fast/table/table-display-types-strict-expected.txt.
- platform/wpe/fast/text/basic/012-expected.txt: Renamed from LayoutTests/platform/glib/fast/text/basic/012-expected.txt.
- platform/wpe/svg/custom/invisible-text-after-scrolling-expected.txt: Renamed from LayoutTests/platform/glib/svg/custom/invisible-text-after-scrolling-expected.txt.
- platform/wpe/svg/hixie/processing-model/003-expected.txt: Renamed from LayoutTests/platform/glib/svg/hixie/processing-model/003-expected.txt.
- platform/wpe/svg/hixie/processing-model/004-expected.txt: Renamed from LayoutTests/platform/glib/svg/hixie/processing-model/004-expected.txt.
- platform/wpe/tables/mozilla/bugs/bug14323-expected.txt: Renamed from LayoutTests/platform/glib/tables/mozilla/bugs/bug14323-expected.txt.
- platform/wpe/tables/mozilla/bugs/bug2267-expected.txt: Renamed from LayoutTests/platform/glib/tables/mozilla/bugs/bug2267-expected.txt.
- 8:29 PM Changeset in webkit [275995] by
-
- 30 edits in trunk/Source/JavaScriptCore
[JSC] Do not copy SimpleJumpTable
https://bugs.webkit.org/show_bug.cgi?id=224472
Reviewed by Mark Lam.
This patch avoids copying UnlinkedSimpleJumpTable to SimpleJumpTable by decoupling CTI addresses from jump offset in SimpleJumpTable.
SimpleJumpTable and UnlinkedSimpleJumpTable are almost identical. SimpleJumpTable adds JIT jump target for each branch.
We should use data from UnlinkedSimpleJumpTable and jump via SimpleJumpTable. Do not need to have copy of branches from UnlinkedSimpleJumpTable.
This way removes Vector<SimpleJumpTable> from CodeBlock::RareData. And this is moved to CodeBlock::JITData. And it only includes jump target addresses,
and branch offset information is kept in UnlinkedSimpleJumpTable side. We no longer need to carefully copy these vectors in CodeBlock including DFG / FTL ones.
In LLInt, we instead use UnlinkedSimpleJumpTable for jumping.
In Baseline, we first allocate enough FixedVector<SimpleJumpTable> and fill content via SimpleJumpTable::ensureCTITable() call when compiling corresponding
switch opcode. Finally we fill these data structures with actual code locations in JIT::link function.
In DFG, we first collect UnlinkedSimpleJumpTable without copying. This is OK since it is kept by UnlinkedCodeBlock, and UnlinkedCodeBlock is kept by baseline CodeBlocks that
are handled by this DFG compilation. We hold Vector<const UnlinkedSimpleJumpTable*> in DFG::Graph and we materialize Vector<SimpleJumpTable> in DFG::Graph.
During DFG compilation, we touch this DFG::Graph's jump tables, and JIT compiler generates code via these tables. And when linking, we move the content to CodeBlock.
In FTL, while we use UnlinkedSimpleJumpTable in FTL code generation, FTL do not use SimpleJumpTable and instead FTL uses Switch in B3.
- bytecode/BytecodeDumper.cpp:
(JSC::CodeBlockBytecodeDumper<Block>::dumpSwitchJumpTables):
- bytecode/BytecodeDumper.h:
- bytecode/BytecodeGeneratorification.cpp:
(JSC::BytecodeGeneratorification::run):
- bytecode/CodeBlock.cpp:
(JSC::CodeBlock::finishCreation):
(JSC::CodeBlock::shrinkToFit):
- bytecode/CodeBlock.h:
(JSC::CodeBlock::switchJumpTable):
(JSC::CodeBlock::numberOfUnlinkedSwitchJumpTables const):
(JSC::CodeBlock::unlinkedSwitchJumpTable):
(JSC::CodeBlock::numberOfSwitchJumpTables const): Deleted.
(JSC::CodeBlock::clearSwitchJumpTables): Deleted.
(JSC::CodeBlock::addSwitchJumpTableFromProfiledCodeBlock): Deleted.
- bytecode/JumpTable.cpp:
(JSC::SimpleJumpTable::offsetForValue): Deleted.
- bytecode/JumpTable.h:
(JSC::SimpleJumpTable::ensureCTITable):
(JSC::SimpleJumpTable::ctiForValue const):
(JSC::SimpleJumpTable::isEmpty const):
(): Deleted.
(JSC::SimpleJumpTable::cloneNonJITPart const): Deleted.
(JSC::SimpleJumpTable::ctiForValue): Deleted.
(JSC::SimpleJumpTable::clear): Deleted.
- bytecode/PreciseJumpTargetsInlines.h:
- bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedSimpleJumpTable::offsetForValue const):
(JSC::UnlinkedSimpleJumpTable::add):
(JSC::UnlinkedCodeBlock::numberOfUnlinkedSwitchJumpTables const):
(JSC::UnlinkedCodeBlock::unlinkedSwitchJumpTable const):
(JSC::UnlinkedCodeBlock::unlinkedStringSwitchJumpTable const):
(JSC::UnlinkedCodeBlock::numberOfSwitchJumpTables const): Deleted.
(JSC::UnlinkedCodeBlock::switchJumpTable): Deleted.
(JSC::UnlinkedCodeBlock::unlinkedStringSwitchJumpTable): Deleted.
- bytecode/UnlinkedCodeBlockGenerator.cpp:
(JSC::UnlinkedCodeBlockGenerator::finalize):
- bytecode/UnlinkedCodeBlockGenerator.h:
(JSC::UnlinkedCodeBlockGenerator::numberOfUnlinkedSwitchJumpTables const):
(JSC::UnlinkedCodeBlockGenerator::addUnlinkedSwitchJumpTable):
(JSC::UnlinkedCodeBlockGenerator::unlinkedSwitchJumpTable):
(JSC::UnlinkedCodeBlockGenerator::numberOfSwitchJumpTables const): Deleted.
(JSC::UnlinkedCodeBlockGenerator::addSwitchJumpTable): Deleted.
(JSC::UnlinkedCodeBlockGenerator::switchJumpTable): Deleted.
- bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::beginSwitch):
(JSC::prepareJumpTableForSwitch):
(JSC::BytecodeGenerator::endSwitch):
- dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
- dfg/DFGGraph.h:
- dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::link):
- dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
- dfg/DFGOperations.h:
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::emitSwitchIntJump):
(JSC::DFG::SpeculativeJIT::emitSwitchImm):
(JSC::DFG::SpeculativeJIT::emitSwitchChar):
(JSC::DFG::SpeculativeJIT::emitSwitchString):
- ftl/FTLLink.cpp:
(JSC::FTL::link):
- jit/JIT.cpp:
(JSC::JIT::compileWithoutLinking):
(JSC::JIT::link):
- jit/JIT.h:
(JSC::SwitchRecord::SwitchRecord):
- jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
- jit/JITOpcodes32_64.cpp:
(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
- jit/JITOperations.cpp:
(JSC::JSC_DEFINE_JIT_OPERATION):
- jit/JITOperations.h:
- llint/LLIntSlowPaths.cpp:
(JSC::LLInt::LLINT_SLOW_PATH_DECL):
- llint/LowLevelInterpreter32_64.asm:
- llint/LowLevelInterpreter64.asm:
- runtime/CachedTypes.cpp:
(JSC::CachedSimpleJumpTable::encode):
(JSC::CachedSimpleJumpTable::decode const):
(JSC::CachedCodeBlockRareData::encode):
(JSC::CachedCodeBlockRareData::decode const):
- 8:27 PM Changeset in webkit [275994] by
-
- 2 edits in trunk/Source/WebCore
Crash in in ReplaceSelectionCommand::mergeEndIfNeeded()
https://bugs.webkit.org/show_bug.cgi?id=222941
Unreviewed. Address Darin's post-commit comment that we don't need to explicitly call copyRef here.
- editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::mergeEndIfNeeded):
- 8:06 PM Changeset in webkit [275993] by
-
- 14 edits in trunk/Websites/perf.webkit.org
Support Commit revision identifier in the Chart
https://bugs.webkit.org/show_bug.cgi?id=224496
Reviewed by Dewei Zhu.
In the measurement-set, we include the commit info but not the commit revision identifier column.
Make the API return the commit revision identifier as part of the commit data.
- browser-tests/customizable-test-group-form-tests.js: Fix flaky tests.
- browser-tests/index.html: Add commit revision identifier info.
- browser-tests/time-series-chart-tests.js: Fix flaky tests.
- public/api/measurement-set.php: Make this API provide commit revision identifier info.
- public/include/build-requests-fetcher.php: Ditto.
- public/v3/models/commit-set.js: Make the commit model can be constructed with the API respose format.
- server-tests/api-measurement-set-tests.js: Adding test for commit revision identifier.
- server-tests/api-build-requests-tests.js: Ditto.
- unit-tests/analysis-task-tests.js: Ditto.
(measurementCluster):
- unit-tests/commit-set-tests.js: Ditto.
- unit-tests/measurement-adaptor-tests.js: Ditto.
- unit-tests/measurement-set-tests.js: Ditto.
- 7:42 PM Changeset in webkit [275992] by
-
- 2 edits in trunk/Source/WebKit
Fix WK_EXPORT macro for declspec compilers
https://bugs.webkit.org/show_bug.cgi?id=224583
Reviewed by Don Olmstead.
It displays warnings when macro is not defined. Actually it is defined only when
it builds WebKit. It should be defined(BUILDING_WebKit).
- Shared/API/c/WKDeclarationSpecifiers.h:
- 7:23 PM Changeset in webkit [275991] by
-
- 2 edits3 adds in trunk/LayoutTests
[GTK] Unreviewed test gardening. Update test expectations after r275515.
Two tests are returning an image failure.
html/dom/elements/the-innertext-idl-attribute/getter.html requires a new baseline.
- platform/gtk/TestExpectations:
- platform/gtk/imported/w3c/web-platform-tests/html/dom/elements/the-innertext-idl-attribute/getter-expected.txt: Added.
- 7:11 PM Changeset in webkit [275990] by
-
- 2 edits in trunk/Source/WebKit
6 http/wpt/webauthn layout-tests are constantly timing out
https://bugs.webkit.org/show_bug.cgi?id=224531
<rdar://76432480>
Reviewed by Brent Fulgham.
Covered by existing tests.
- UIProcess/WebAuthentication/Mock/MockLocalService.mm:
(WebKit::MockLocalService::MockLocalService):
Needs to deal with the mock testing infrastructure according to internal requirements.
- 7:11 PM Changeset in webkit [275989] by
-
- 2 edits in trunk/LayoutTests
[GLIB] Unreviewed test gardening. Skip accessibility test added in r275664.
- platform/glib/TestExpectations:
- 7:04 PM Changeset in webkit [275988] by
-
- 8 edits2 adds in trunk
[macOS] Make image extraction interactions work for elements inside links
https://bugs.webkit.org/show_bug.cgi?id=224576
<rdar://problem/76664721>
Reviewed by Devin Rousso.
Source/WebCore:
Make a slight adjustment to
EventHandler::canMouseDownStartSelectto allow selection to begin when handling a
mousedown over text inside an image overlay.
Test: fast/images/image-extraction/mac/select-image-overlay-in-link-with-mouse-drag.html
- html/HTMLElement.cpp:
(WebCore::HTMLElement::isImageOverlayText):
Add an overloaded version of this helper method that takes a pointer instead of a reference, and use it in
several places where we current check the nullity of aNode*before dereferencing it and passing it into
isImageOverlayText().
- html/HTMLElement.h:
- page/DragController.cpp:
(WebCore::DragController::draggableElement const):
- page/EventHandler.cpp:
(WebCore::EventHandler::canMouseDownStartSelect):
(WebCore::EventHandler::handleMousePressEvent):
(WebCore::EventHandler::updateSelectionForMouseDrag):
Additionally, make it so that we only invalidate a click (i.e. prevent mouse release from dispatching a click
event) inEventHandler::updateSelectionForMouseDragin the case where we're selecting text in an image
overlay, if the selection hasn't actually changed.
Source/WebKit:
See WebCore ChangeLog for more details.
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::elementPositionInformation):
LayoutTests:
Add a layout test to exercise the change.
- fast/images/image-extraction/mac/select-image-overlay-in-link-with-mouse-drag-expected.txt: Added.
- fast/images/image-extraction/mac/select-image-overlay-in-link-with-mouse-drag.html: Added.
- 6:57 PM Changeset in webkit [275987] by
-
- 3 edits in trunk/LayoutTests
[ wk2 ] http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html is flakey crashing
https://bugs.webkit.org/show_bug.cgi?id=224566
Unreviewed test gardening.
Updating expectations to two more tests I found that are flakey crashing.
- platform/ios-simulator-wk2/TestExpectations:
- platform/mac-wk2/TestExpectations:
- 6:52 PM Changeset in webkit [275986] by
-
- 2 edits in trunk/Source/WebCore
[Apple Pay] add WKA hooks for
ApplePayModifier
https://bugs.webkit.org/show_bug.cgi?id=224585
<rdar://problem/76669793>
Reviewed by Wenson Hsieh.
- Modules/applepay/paymentrequest/ApplePayModifier.h:
- 6:27 PM Changeset in webkit [275985] by
-
- 2 edits in trunk/Source/WebCore
Flaky crash under AudioSummingJunction::removeOutput() on Debug bots
https://bugs.webkit.org/show_bug.cgi?id=224584
Reviewed by Eric Carlson.
Add DisableMallocRestrictionsForCurrentThreadScope to allow the heap allocation until I can investigate
if we can avoid it.
- Modules/webaudio/AudioSummingJunction.cpp:
(WebCore::AudioSummingJunction::removeOutput):
- 6:26 PM Changeset in webkit [275984] by
-
- 7 edits in trunk
Promote
-[WKWebView _themeColor]SPI to API
https://bugs.webkit.org/show_bug.cgi?id=224571
<rdar://problem/75231602>
Reviewed by Geoffrey Garen.
Source/WebKit:
- UIProcess/API/Cocoa/WKWebView.h:
- UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView themeColor]): Added.
(-[WKWebView _themeColor]):
- UIProcess/API/Cocoa/WKWebViewPrivate.h:
- UIProcess/Cocoa/PageClientImplCocoa.mm:
(WebKit::PageClientImplCocoa::themeColorWillChange):
(WebKit::PageClientImplCocoa::themeColorDidChange):
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/HTMLMetaThemeColor.mm:
(TEST.HTMLMetaThemeColor.OnLoad):
(TEST.HTMLMetaThemeColor.MultipleTags):
(-[WKWebViewThemeColorObserver initWithWebView:]):
(TEST.HTMLMetaThemeColor.KVO):
(TEST.HTMLMetaThemeColor.ExperimentalUseThemeColorForScrollAreaBackgroundColor):
- 5:32 PM Changeset in webkit [275983] by
-
- 2 edits in trunk/LayoutTests
REGRESSION: [ Mac WK2 ] fast/mediastream/audio-track-enabled.html is flaky failing
https://bugs.webkit.org/show_bug.cgi?id=221985
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 5:18 PM Changeset in webkit [275982] by
-
- 10 edits in trunk/Source
Web Inspector: add setting to allow inspecting Web Inspector
https://bugs.webkit.org/show_bug.cgi?id=224082
<rdar://75695002>
Reviewed by Devin Rousso.
Source/WebCore:
Add a property to check if inspecting inspector is allowed,
and to enable/disable upon loading the frontend or toggling the setting.
- en.lproj/Localizable.strings:
- inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::inspectInspector):
(WebCore::InspectorFrontendHost::allowsInspectingInspector):
(WebCore::InspectorFrontendHost::setAllowsInspectingInspector):
- inspector/InspectorFrontendHost.h:
- inspector/InspectorFrontendHost.idl:
Source/WebInspectorUI:
Instead of telling curious users to set the WebKitDeveloperExtras default,
expose an experimental setting that does the same thing.
- UserInterface/Base/Main.js:
(WI.loaded):
- UserInterface/Base/Setting.js:
- UserInterface/Views/SettingsTabContentView.js:
- 5:15 PM Changeset in webkit [275981] by
-
- 9 edits1 add in trunk/Source/WebCore
Use range-for loop in target contrast selection to simplify/improve code readability
https://bugs.webkit.org/show_bug.cgi?id=224512
Reviewed by Darin Adler.
Address some additional post landing feedback from Darin.
- Use range-for loop in target contrast selection.
- Use double to represent luminance, lightness and contrast everywhere. This avoid unnecessary conversions to and from float.
- Rename Color::contrastRatio(Color, Color) to just contrastRatio(Color, Color) and move it ColorLuminance.h/cpp with the other contrastRatio overloads.
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
Add ColorLuminance.cpp
- css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::selectFirstColorThatMeetsOrExceedsTargetContrast):
Convert colorsToCompareAgainst to an r-value since vector is never used after
calling this.
(WebCore::CSSPropertyParserHelpers::selectFirstColorWithHighestContrast):
Convert colorsToCompareAgainst to an r-value since vector is never used after
calling this. Also, switch to a range-for loop to aid readability.
(WebCore::CSSPropertyParserHelpers::parseColorContrastFunctionParameters):
Move colorsToCompareAgainst to the select functions.
- platform/graphics/Color.h:
- platform/graphics/Color.cpp:
(WebCore::Color::lightness const):
(WebCore::Color::luminance const):
Use double to represent lightness and luminance.
(WebCore::Color::contrastRatio): Deleted.
Moved to ColorLuminance.h/cpp
- platform/graphics/ColorLuminance.cpp: Added.
(WebCore::contrastRatio):
- platform/graphics/ColorLuminance.h:
(WebCore::relativeLuminance):
(WebCore::contrastRatio):
- rendering/RenderTheme.cpp:
(WebCore::RenderTheme::disabledTextColor const):
- rendering/TextPaintStyle.cpp:
(WebCore::textColorIsLegibleAgainstBackgroundColor):
Use double to represent luminance and constrast everywhere.
- 5:11 PM Changeset in webkit [275980] by
-
- 7 edits4 adds in trunk
[iOS] Make image extraction interactions work for elements inside links
https://bugs.webkit.org/show_bug.cgi?id=224517
<rdar://problem/76616431>
Reviewed by Devin Rousso.
Source/WebKit:
See comments below for more details.
Tests: fast/images/image-extraction/click-link-with-image-overlay.html
fast/images/image-extraction/ios/select-word-in-image-overlay-inside-link.html
- Shared/ios/InteractionInformationAtPosition.h:
- Shared/ios/InteractionInformationAtPosition.mm:
(WebKit::InteractionInformationAtPosition::encode const):
(WebKit::InteractionInformationAtPosition::decode):
Add
imageElementContext, an optional element context that exists alongsideelementContext. This is necessary
in the case where the user is interacting with an image element inside a link element because we need to know
about the inner hit-tested image element for the purposes of image extraction, but the clickable element we use
for theelementContextis the link element instead.
- Shared/ios/InteractionInformationRequest.cpp:
(WebKit::InteractionInformationRequest::isValidForRequest const):
Make a slight adjustment here - since
includeImageDatamay require image bitmap data in cases where only the
includeSnapshotflag is set, it's incorrect to assume that settingincludeSnapshotfulfills all the needs of
includeImageData.
- UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView hasSelectablePositionAtPoint:]):
(-[WKContentView textInteractionGesture:shouldBeginAtPoint:]):
Consult
imageElementContextinstead ofelementContext.
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::imagePositionInformation):
Set the position information's
imageElementContext.
(WebKit::elementPositionInformation):
(WebKit::WebPage::positionInformation):
Make a couple of adjustments here: (1) avoid requesting link position information if the hit-tested node is text
inside of an image overlay. (2) If theincludeImageDatarequest flag is set and the hit-tested node is an
image element butisImageis not set, then additionally supply the image data using the
imagePositionInformationhelper function. This ensures that in the case where we're requesting image data and
the user is interacting with an image element inside a link, we'll send decoded image data back to the UI
process.
LayoutTests:
- fast/images/image-extraction/click-link-with-image-overlay-expected.txt: Added.
- fast/images/image-extraction/click-link-with-image-overlay.html: Added.
Add a test that verifies that activating different parts of an image in a link fires click events.
- fast/images/image-extraction/ios/select-word-in-image-overlay-inside-link-expected.txt: Added.
- fast/images/image-extraction/ios/select-word-in-image-overlay-inside-link.html: Added.
Add a test that selects image overlay text for an image element inside a link.
- 4:55 PM Changeset in webkit [275979] by
-
- 4 edits in trunk/Source/JavaScriptCore
Keep UniqueRef<MathICGenerationState> instead of MathICGenerationState in HashTables
https://bugs.webkit.org/show_bug.cgi?id=224569
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-14
Reviewed by Geoffrey Garen.
sizeof(KeyValuePair<const Instruction*, MathICGenerationState>) is 136 on some platforms.
That's on the big side for sparse HashTable entries. I think using UniqueRef will help performance.
- jit/JIT.h:
- jit/JITArithmetic.cpp:
(JSC::JIT::emitMathICFast):
(JSC::JIT::emitMathICSlow):
- jit/JITMathIC.h:
- 3:54 PM Changeset in webkit [275978] by
-
- 3 edits2 adds in trunk
RunIterator::traverseNext/PreviousOnLineIgnoringLineBreak should skip over WBRs
https://bugs.webkit.org/show_bug.cgi?id=224545
rdar://76101143
Reviewed by Zalan Bujtas.
Source/WebCore:
Test: fast/editing/wbr-iterator-crash.html
- layout/integration/LayoutIntegrationRunIterator.cpp:
(WebCore::LayoutIntegration::RunIterator::traverseNextOnLineIgnoringLineBreak):
(WebCore::LayoutIntegration::RunIterator::traversePreviousOnLineIgnoringLineBreak):
Skip over (instead of bailing) runs with isLineBreak() set. It is true for <WBR> so there can be multiple on a line.
LayoutTests:
- fast/editing/wbr-iterator-crash-expected.txt: Added.
- fast/editing/wbr-iterator-crash.html: Added.
- 3:39 PM Changeset in webkit [275977] by
-
- 1 copy in tags/Safari-611.2.3
Tag Safari-611.2.3.
- 3:18 PM Changeset in webkit [275976] by
-
- 4 edits in trunk/Source/WebCore
REGRESSION(r275948) Wrap sh::ShaderVariable into UniqueRef to fit in HashMap
https://bugs.webkit.org/show_bug.cgi?id=224567
Unreviewed build fix.
- platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp:
(WebCore::ExtensionsGLOpenGLCommon::getTranslatedShaderSourceANGLE):
- platform/graphics/opengl/GraphicsContextGLOpenGL.h:
- platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp:
(WebCore::GraphicsContextGLOpenGL::precisionsMatch const):
(WebCore::GraphicsContextGLOpenGL::mappedSymbolInShaderSourceMap):
(WebCore::GraphicsContextGLOpenGL::originalSymbolInShaderSourceMap):
(WebCore::GraphicsContextGLOpenGL::mappedSymbolName):
(WebCore::GraphicsContextGLOpenGL::shaderSource):
- 3:15 PM Changeset in webkit [275975] by
-
- 4 edits in trunk
Update WKPageSet implementation according new MediaProducer::MutedState values
https://bugs.webkit.org/show_bug.cgi?id=224548
Reviewed by Eric Carlson.
Source/WebKit:
Covered by API test.
- UIProcess/API/C/WKPage.cpp:
(WKPageSetMuted):
Translate WKMediaMutedState to WebCore::MediaProducer::MutedStateFlags properly.
Tools:
- TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:
(TestWebKitAPI::doCaptureMuteTest):
(TestWebKitAPI::TEST):
- 3:11 PM Changeset in webkit [275974] by
-
- 2 edits in trunk/LayoutTests
[ wk2 ] http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html is flakey crashing
https://bugs.webkit.org/show_bug.cgi?id=224566
Uneviewed test gardneing.
- platform/mac-wk2/TestExpectations: Adding mac wk2 to Pass Crash expectations.
- 3:11 PM Changeset in webkit [275973] by
-
- 4 edits in trunk
Don't block proxy authentication challenges
https://bugs.webkit.org/show_bug.cgi?id=224564
Source/WebKit:
<rdar://76542907>
Reviewed by Brady Eidson.
You have to use SPI to get WebKit to tell CFNetwork to not handle proxy authentication by default,
but if you do it only works for first-party requests. Our challenge blocking to prevent cross-site fetches from
asking for basic auth credentials should not block challenges for proxy authentication. The radar has an application
that wants to handle them.
Covered by an API test.
- NetworkProcess/NetworkLoad.cpp:
(WebKit::NetworkLoad::didReceiveChallenge):
Tools:
Reviewed by Brady Eidson.
- TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm:
(TestWebKitAPI::proxyAuthenticationServer):
(TestWebKitAPI::webViewAndDelegate):
(TestWebKitAPI::TEST):
- 3:11 PM Changeset in webkit [275972] by
-
- 2 edits in trunk/Source/WebCore
Crash in ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds()
https://bugs.webkit.org/show_bug.cgi?id=224520
Patch by Julian Gonzalez <julian_a_gonzalez@apple.com> on 2021-04-14
Reviewed by Ryosuke Niwa.
Adopt RefPtr<Node> instead of using plain Node* here to avoid a crash.
- editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds):
- 2:57 PM Changeset in webkit [275971] by
-
- 2 edits in trunk/Source/JavaScriptCore
Apply DeferTermination in some utility functions in the jsc shell.
https://bugs.webkit.org/show_bug.cgi?id=224572
rdar://76646089
Reviewed by Yusuke Suzuki.
This is to make sure that these functions don't get in the way of testing with
the watchdog. Since these are only test utility functions, just doing the simple
thing of using a DeferTermination scope is the right thing to do here.
- jsc.cpp:
- 2:52 PM Changeset in webkit [275970] by
-
- 1 edit1 add in trunk/Tools
[GitHub] Add script to verify integrity of the mirror
https://bugs.webkit.org/show_bug.cgi?id=224514
<rdar://problem/76613576>
Reviewed by Aakash Jain.
- Scripts/check-github-mirror-integrity: Added.
- 2:50 PM Changeset in webkit [275969] by
-
- 7 edits1 add in trunk
Defer TerminationExceptions when evaluating ASSERT in HashMapIml::addNormalized().
https://bugs.webkit.org/show_bug.cgi?id=224565
rdar://76645980
Reviewed by Yusuke Suzuki.
JSTests:
- stress/suppress-TerrminationException-in-ASSERT-in-HashMapImpl-addNormalized.js: Added.
Source/JavaScriptCore:
HashMapImpl::addNormalized() has an ASSERT that calls jsMapHash(), which can
potentially throw exceptions. As a result, it has a RETURN_IF_EXCEPTION which
provides an opportunity to handle traps and throw a TerminationException. This
in turn causes the ASSERT to fail.
To fix this, we do:
- Introduce VMTraps::DeferAction, which gives us DeferForAWhile and DeferUntilEndOfScope.
- Templatize the DeferTermination RAII object on VMTraps::DeferAction. Introduce DeferTerrminationForAWhile, which is DeferTermination<VMTraps::DeferAction::DeferForAWhile>. DeferForAWhile means that the deferScope will not throw the TerminationException on exit. Instead, it will re-set the NeedTermination bit in the traps, and let the next trap check handle it.
- Introduce DEFER_TERMINATION_AND_ASSERT_WITH_MESSAGE (and friends) which creates a DeferTerrminationForAWhile scope before doing an ASSERT_WITH_MESSAGE.
- Use DEFER_TERMINATION_AND_ASSERT_WITH_MESSAGE instead in HashMapImpl::addNormalized().
- runtime/DeferTermination.h:
(JSC::DeferTermination::DeferTermination):
(JSC::DeferTermination::~DeferTermination):
- runtime/ExceptionHelpers.h:
- runtime/HashMapImpl.h:
(JSC::HashMapImpl::addNormalized):
- runtime/VMTraps.cpp:
(JSC::VMTraps::deferTermination):
(JSC::VMTraps::undoDeferTermination):
- runtime/VMTraps.h:
- 2:49 PM Changeset in webkit [275968] by
-
- 2 edits in trunk/Source/WebKit
[GPUP] RemoteGraphicsContextsGL shouldn't be referenced when ENABLE_WEBGL is off
https://bugs.webkit.org/show_bug.cgi?id=224560
Reviewed by Alex Christensen.
Add an ENABLE(WEBGL) guard.
- GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::didClose):
- 2:37 PM Changeset in webkit [275967] by
-
- 2 edits in trunk
[PlayStation] Disable WebGL
https://bugs.webkit.org/show_bug.cgi?id=224562
Reviewed by Alex Christensen.
WebGL support on PlayStation platforms is deprecated.
- Source/cmake/OptionsPlayStation.cmake:
- 2:35 PM Changeset in webkit [275966] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed, a comment fix after r275847
- UIProcess/WebAuthentication/Cocoa/LocalConnection.mm:
(WebKit::LocalConnection::verifyUser):
Explains why instead of what.
- 1:32 PM Changeset in webkit [275965] by
-
- 2 edits in trunk/JSTests
[JSC] Unskip stress/intl-segmenter.js
https://bugs.webkit.org/show_bug.cgi?id=224553
Unreviewed test gardening.
It shouldn't fail any more on our bots now that our handling of libicu
is more robust.
- stress/intl-segmenter.js:
- 1:00 PM Changeset in webkit [275964] by
-
- 2 edits in trunk/Source/WebKit
Temporarily fix more terminate_with_reason-related crashes
https://bugs.webkit.org/show_bug.cgi?id=224559
<rdar://76639741>
Reviewed by Geoff Garen.
- UIProcess/Launcher/mac/ProcessLauncherMac.mm:
(WebKit::terminateWithReason):
- 12:58 PM Changeset in webkit [275963] by
-
- 2 edits in branches/safari-611-branch/Source/WebCore
Revert "Cherry-pick r274877. rdar://problem/76373841"
This reverts commit r275741.
- 12:58 PM Changeset in webkit [275962] by
-
- 5 edits in branches/safari-611-branch
Revert "Cherry-pick r274199. rdar://problem/76416079"
This reverts commit r275744.
- 12:58 PM Changeset in webkit [275961] by
-
- 4 edits in branches/safari-611-branch/Source/WebCore
Revert "Cherry-pick r274357. rdar://problem/76374004"
This reverts commit r275745.
- 12:58 PM Changeset in webkit [275960] by
-
- 2 edits in branches/safari-611-branch/Source/WebCore
Revert "Cherry-pick r274403. rdar://problem/76374004"
This reverts commit r274403.
- 12:58 PM Changeset in webkit [275959] by
-
- 3 edits in branches/safari-611-branch/Source/WebKit
Revert "Cherry-pick r274377. rdar://problem/76412582"
This reverts commit r275766.
- 12:58 PM Changeset in webkit [275958] by
-
- 5 edits in branches/safari-611-branch/Source/WebCore
Revert "Cherry-pick r274819. rdar://problem/76373741"
This reverts commit r275767.
- 12:58 PM Changeset in webkit [275957] by
-
- 2 edits in branches/safari-611-branch/Source/WebCore
Revert "Unreviewed build fix for rdar://76617366."
This reverts commit r275919.
- 12:42 PM Changeset in webkit [275956] by
-
- 12 edits in trunk/Source
[iOS] limit how often
WebAVPlayerControllernotifies thePlaybackSessionModelabout changes to playback speed
https://bugs.webkit.org/show_bug.cgi?id=224515
<rdar://problem/75901463>
Reviewed by Eric Carlson.
This change will cause
HTMLMediaElement::setPlaybackRateto not send IPC back and forth
between the WebProcess and UIProcess, as a modification to theWebAVPlayerControllerin
the UIProcess would notify itsPlaybackSessionModel"delegate", which would in turn make
it's way back to the relatedHTMLMediaElement::setPlaybackRatein the WebProcess.
Source/WebCore:
- platform/ios/WebAVPlayerController.mm:
(-[WebAVPlayerController init]):
(-[WebAVPlayerController dealloc]):
(-[WebAVPlayerController defaultPlaybackRate]): Added.
(-[WebAVPlayerController setDefaultPlaybackRate:]): Added.
(-[WebAVPlayerController rate]): Added.
(-[WebAVPlayerController setRate:]): Added.
(-[WebAVPlayerController observeValueForKeyPath:ofObject:change:context:]):
Instead of relying on ObjC KVO onselfto handle changes todefaultPlaybackRate(and
rate), create an actualsetDefaultPlaybackRate:so that we can handle cases where the
value is the same. Limit when we notify thePlaybackSessionModelto only when it has a
different value.
- platform/cocoa/PlaybackSessionModel.h:
- platform/cocoa/PlaybackSessionModelMediaElement.h:
- platform/cocoa/PlaybackSessionModelMediaElement.mm:
(WebCore::PlaybackSessionModelMediaElement::setPlaybackRate): Added.
- platform/ios/WebVideoFullscreenControllerAVKit.mm:
(VideoFullscreenControllerContext::setPlaybackRate): Added.
Add support for handling when therateof theAVPlayerControllerchanges too.
Source/WebKit:
- UIProcess/Cocoa/PlaybackSessionManagerProxy.h:
- UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:
(WebKit::PlaybackSessionModelContext::setPlaybackRate): Added.
(WebKit::PlaybackSessionManagerProxy::setPlaybackRate): Added.
- WebProcess/cocoa/PlaybackSessionManager.messages.in:
- WebProcess/cocoa/PlaybackSessionManager.h:
- WebProcess/cocoa/PlaybackSessionManager.mm:
(WebKit::PlaybackSessionManager::setPlaybackRate): Added.
Add support for handling when therateof theAVPlayerControllerchanges too.
- 11:47 AM Changeset in webkit [275955] by
-
- 2 edits in trunk/LayoutTests
[ wk2 ] http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html is flakey crashing
https://bugs.webkit.org/show_bug.cgi?id=224566
Unrviewed test gardening.
- platform/ios-simulator-wk2/TestExpectations: Updating test expectations to Pass Crash, while test is reviewed.
- 11:42 AM Changeset in webkit [275954] by
-
- 2 edits in trunk/Source/WTF
Revert important part of r275948
https://bugs.webkit.org/show_bug.cgi?id=224381
It caused an internal build failure.
- wtf/HashTable.h:
(WTF::KeyTraits>::inlineLookup):
- 11:25 AM Changeset in webkit [275953] by
-
- 4 edits in trunk/Tools
[results.webkit.org] Document ref API argument
https://bugs.webkit.org/show_bug.cgi?id=224435
<rdar://problem/76599481>
Reviewed by Aakash Jain.
- Scripts/libraries/resultsdbpy/resultsdbpy/init.py: Bump version.
- Scripts/libraries/resultsdbpy/resultsdbpy/view/templates/documentation.html:
- Scripts/libraries/resultsdbpy/setup.py: Bump version.
- 10:54 AM Changeset in webkit [275952] by
-
- 17 edits in trunk
Service worker soft-update loads not being marked app-bound
https://bugs.webkit.org/show_bug.cgi?id=223200
<rdar://problem/75438555>
Reviewed by Youenn Fablet.
Source/WebCore:
We need to mark requests initiated by service worker soft updates as
app-bound based on the last navigation. We should get this value from the
NetworkResourceLoader and store it in SWServerRegistration so we can
use it to build a new request.
- workers/service/server/SWServer.cpp:
(WebCore::SWServer::startScriptFetch):
- workers/service/server/SWServer.h:
Pass the entire SWServerRegistration to SWServer::startScriptFetch
now that we need more than one value from it. Move shouldRefreshCache
logic here instead of SWServerJobQueue::runUpdateJob.
- workers/service/server/SWServerJobQueue.cpp:
(WebCore::SWServerJobQueue::runUpdateJob):
- workers/service/server/SWServerRegistration.cpp:
(WebCore::SWServerRegistration::scheduleSoftUpdate):
- workers/service/server/SWServerRegistration.h:
(WebCore::SWServerRegistration::isAppBound):
Source/WebKit:
We should pass the app-bound request value when doing a soft update.
- NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::isAppBound):
- NetworkProcess/NetworkResourceLoader.h:
Make a helper function to get the request's app-bound value.
- NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.cpp:
(WebKit::ServiceWorkerFetchTask::softUpdateIfNeeded):
- NetworkProcess/ServiceWorker/ServiceWorkerSoftUpdateLoader.cpp:
(WebKit::ServiceWorkerSoftUpdateLoader::loadFromNetwork):
- NetworkProcess/ServiceWorker/WebSWServerConnection.cpp:
(WebKit::WebSWServerConnection::createFetchTask):
- Shared/NavigatingToAppBoundDomain.h:
(WebKit::AppBoundNavigationTestingData::setDidPerformSoftUpdate):
(WebKit::AppBoundNavigationTestingData::clearAppBoundNavigationDataTesting):
(WebKit::AppBoundNavigationTestingData::encode const):
(WebKit::AppBoundNavigationTestingData::decode):
- UIProcess/API/Cocoa/WKWebViewPrivateForTesting.h:
- UIProcess/API/Cocoa/WKWebViewTesting.mm:
(-[WKWebView _appBoundNavigationData:]):
Update testing struct to make sure a soft-update occurred before
checking app-bound data. This accounts for the delay between the
page load and the soft update.
Tools:
API test coverage. Refactor to avoid code duplication in other tests.
- TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm:
A soft update might be delayed after the synthetic response comes
back. We should wait until we receive the test data indicating that
a soft update has occurred before checking the app-bound values.
- 10:39 AM Changeset in webkit [275951] by
-
- 3 edits in trunk/LayoutTests
[ wk2 ] 2 page-cache layout-tests are flakey crashing
https://bugs.webkit.org/show_bug.cgi?id=224558
Unreviewed test gardening.
Updated expectations to Pass Crash for the following two tests for causing issues with EWS and Commit-Queue.
- platform/ios-simulator-wk2/TestExpectations:
- platform/mac-wk2/TestExpectations:
- 9:55 AM Changeset in webkit [275950] by
-
- 3 edits in trunk/Tools
Add support for using local-worker for build.webkit.org
https://bugs.webkit.org/show_bug.cgi?id=224551
Reviewed by Carlos Alberto Lopez Perez.
- CISupport/build-webkit-org/loadConfig.py:
(loadBuilderConfig): Added local-worker support.
- CISupport/ews-build/loadConfig.py:
(loadBuilderConfig): Removed use_localhost_worker variable.
- 9:53 AM Changeset in webkit [275949] by
-
- 7 edits in trunk/Source/WebCore
Allow text tracks to purge cues outside of the buffered range
https://bugs.webkit.org/show_bug.cgi?id=224489
Reviewed by Jer Noble.
TextTrackCues associated in-band tracks live "forever" - until the video element
is deleted or reloaded. This is fine for relatively short files, but not so good
for long lived files (eg. a very long live stream), or for timed metadata where
the "cue" size can be much larger than a text sample.
Allow text tracks to opt in to purging cues who's time range does not intersect
with thebufferedrange, where audio and video data is also not available. Only
AVFoundation backed in-band tracks opt in at this time, because AVFoundation will
redeliver cues if a time range is played again.
Tested manually as the only way to test this currently would be with an HLS stream
that would have to play too long for a layout test, or with an MSE text track but
we won't support text tracks in MSE yet.
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerBufferedTimeRangesChanged): Allow tracks
that support purging cues to do so.
- html/HTMLMediaElement.h:
- html/track/InbandDataTextTrack.h: Return true for shouldPurgeCuesFromUnbufferedRanges();
- html/track/InbandGenericTextTrack.h: Ditto.
- html/track/TextTrack.cpp:
(WebCore::TextTrack::removeCuesNotInTimeRanges): Remove all cues who's time range
does not intersect with the buffered range.
- html/track/TextTrack.h:
(WebCore::TextTrack::shouldPurgeCuesFromUnbufferedRanges const):
- 9:19 AM Changeset in webkit [275948] by
-
- 5 edits in trunk/Source
Reduce maximum HashTable entry size to 128 bytes
https://bugs.webkit.org/show_bug.cgi?id=224381
Reviewed by Yusuke Suzuki.
Source/WebKit:
- WebProcess/WebPage/ViewUpdateDispatcher.cpp:
(WebKit::ViewUpdateDispatcher::visibleContentRectUpdate):
(WebKit::ViewUpdateDispatcher::dispatchVisibleContentRectUpdate):
- WebProcess/WebPage/ViewUpdateDispatcher.h:
(WebKit::ViewUpdateDispatcher::UpdateData::UpdateData):
Source/WTF:
It turns out that HashMaps use HashTable::Value as KeyValuePair, so sizeof(Key) + sizeof(Value) was double counting the key size.
This caused FontCascadeCache to be a false positive. It has a key size of a little over 100 bytes. Only counting it once reflects what is intended.
Also, the USE(ANGLE) exception was convenient for a downstream branch, but isn't needed. Next time they rebase they will use UniqueRef.
- wtf/HashTable.h:
(WTF::KeyTraits>::inlineLookup):
- 9:07 AM Changeset in webkit [275947] by
-
- 2 edits in branches/safari-612.1.11-branch/Source/WebKit
Cherry-pick r275918. rdar://problem/76648077
Unreviewed build fix after r275898; remove unnecessary files from the project.
- WebKit.xcodeproj/project.pbxproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 9:07 AM Changeset in webkit [275946] by
-
- 20 edits in branches/safari-612.1.11-branch
Cherry-pick r275855. rdar://problem/76627715
Unreviewed, reverting r275793.
https://bugs.webkit.org/show_bug.cgi?id=224466
Caused crashes on <http://facebook.com|facebook.com>
Reverted changeset:
"calc() simplification for a multiplication should apply the
multiplication to each value of an addition"
https://bugs.webkit.org/show_bug.cgi?id=224376
https://trac.webkit.org/changeset/275793
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275855 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 8:42 AM Changeset in webkit [275945] by
-
- 3 edits in trunk/Source/WebCore
Remove unused InlineBox::next/previousLeafOnLineIgnoringLineBreak()
https://bugs.webkit.org/show_bug.cgi?id=224542
Reviewed by Zalan Bujtas.
- rendering/InlineBox.cpp:
(WebCore::InlineBox::nextLeafOnLineIgnoringLineBreak const): Deleted.
(WebCore::InlineBox::previousLeafOnLineIgnoringLineBreak const): Deleted.
- rendering/InlineBox.h:
- 8:13 AM Changeset in webkit [275944] by
-
- 3 edits4 adds in trunk
Crash in RenderBlock::addOverflowFromChildren
https://bugs.webkit.org/show_bug.cgi?id=223539
Patch by Frédéric Wang <fwang@igalia.com> on 2021-04-14
Reviewed by Ryosuke Niwa.
Source/WebCore:
For an <svg> element that is a direct child of a <foreignObject>, a RenderSVGRoot is
generally created. However, a RenderSVGViewportContainer is currently created instead if
the element is inside a shadow tree. This is leading to bad state during the layout of
the foreign object, causing a debug assertion and a nullptr crash. This patch fixes this
issue by always treating direct <svg> child of <foreignObject> as an outermost SVG element.
Tests: svg/foreignObject/svg-child-of-foreign-object-in-shadow-tree-crash.html
svg/outermost-svg-root.html
- svg/SVGElement.cpp:
(WebCore::SVGElement::isOutermostSVGSVGElement const): Lower down the priority of the rule
"is in shadow tree".
LayoutTests:
Add regressions tests for the crash and for isOutermostSVGSVGElement().
- svg/foreignObject/svg-child-of-foreign-object-in-shadow-tree-crash-expected.txt: Added.
- svg/foreignObject/svg-child-of-foreign-object-in-shadow-tree-crash.html: Added.
- svg/outermost-svg-root-expected.txt: Added.
- svg/outermost-svg-root.html: Added.
- 6:57 AM Changeset in webkit [275943] by
-
- 3 edits in trunk/Source/WebCore
InlineBox should not hold a reference to RenderObject
https://bugs.webkit.org/show_bug.cgi?id=224506
Reviewed by Antti Koivisto.
The InlineBox/RenderObject relationship is somewhat error-prone (see RenderBox::setInlineBoxWrapper vs. InlineElementBox::extractLine) and it's rather easy to delete one without letting the other know.
- rendering/InlineBox.cpp:
(WebCore::InlineBox::showNodeTreeForThis const):
(WebCore::InlineBox::showLineTreeForThis const):
(WebCore::InlineBox::caretMinOffset const):
(WebCore::InlineBox::caretMaxOffset const):
(WebCore::InlineBox::adjustPosition):
(WebCore::InlineBox::selectionState):
(WebCore::InlineBox::canAccommodateEllipsis const):
(WebCore::InlineBox::locationIncludingFlipping const):
(WebCore::InlineBox::flipForWritingMode const):
- rendering/InlineBox.h:
(WebCore::InlineBox::renderer const):
(WebCore::InlineBox::boxModelObject const):
(WebCore::InlineBox::InlineBox):
- 6:30 AM Changeset in webkit [275942] by
-
- 3 edits in trunk/Source/WebCore
[iOS][FCR] Indeterminate progress bars should update at 60fps
https://bugs.webkit.org/show_bug.cgi?id=224372
<rdar://problem/76416848>
Reviewed by Wenson Hsieh.
- rendering/RenderProgress.cpp:
(WebCore::RenderProgress::animationTimerFired):
Added a FIXME to state that progress bar animation should be performed
as part of the rendering update lifecycle. Progress bars have always
maintained their own timers for animation, however, the update interval
may not always match the display's refresh rate.
- rendering/RenderThemeIOS.mm:
Ensure a smoother animation by increasing the frame rate to 60fps.
- 3:18 AM Changeset in webkit [275941] by
-
- 3 edits in trunk/Tools
Commit queue isn't skipping builds and test on revert patches
https://bugs.webkit.org/show_bug.cgi?id=224477
Reviewed by Jonathan Bedard.
- CISupport/ews-build/steps.py:
(BugzillaMixin): Changed preamble to lower-case to match with new logic.
- CISupport/ews-build/steps_unittest.py: Added unit-tests.
- 3:03 AM Changeset in webkit [275940] by
-
- 2 edits in trunk/Tools
[GTK4] Use a while loop in PlatformWebView::dismissAllPopupMenus()
https://bugs.webkit.org/show_bug.cgi?id=224534
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-04-14
Reviewed by Philippe Normand.
The child might be destroyed during the loop iteration. Using a while loop we ensure we get the next sibling
before the current child is destroyed.
- WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
(WTR::PlatformWebView::dismissAllPopupMenus):
- 2:45 AM Changeset in webkit [275939] by
-
- 2 edits in trunk/JSTests
[JSC] Unskip typedarray-functions-with-neutered.js on MIPS
https://bugs.webkit.org/show_bug.cgi?id=224428
Unreviewed test gardening.
This appears to no longer fail.
- stress/typedarray-functions-with-neutered.js:
- 2:42 AM Changeset in webkit [275938] by
-
- 2 edits in trunk/Source/WebCore
Do not reset computed style for element children with display contents style
https://bugs.webkit.org/show_bug.cgi?id=223794
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-04-14
Reviewed by Antti Koivisto.
We were checking hasDisplayContents() was false before calling resetComputedStyle() on the parent, but we don't
check it when iterating the children.
- dom/Element.cpp:
(WebCore::Element::resetComputedStyle):
- style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveComposedTree):
- 1:20 AM Changeset in webkit [275937] by
-
- 4 edits in trunk/Source/WebKit
[iOS] WKMouseDeviceObserver is calling WebProcessProxy::send() on a non-main thread
https://bugs.webkit.org/show_bug.cgi?id=224529
<rdar://76598710>
Reviewed by Tim Horton.
Make sure WKMouseDeviceObserver calls WebProcessProxy::notifyHasMouseDeviceChanged() on the main thread
since:
- It iterates over WebProcessProxy::allProcesses() which is only safe on the main thread
- It calls WebProcessProxy::send() wich is only safe on the main thread
- UIProcess/WebProcessProxy.h:
- UIProcess/ios/WKMouseDeviceObserver.mm:
(-[WKMouseDeviceObserver mousePointerDevicesDidChange:]):
(-[WKMouseDeviceObserver _setHasMouseDeviceForTesting:]):
- UIProcess/ios/WebProcessProxyIOS.mm:
(WebKit::WebProcessProxy::notifyHasMouseDeviceChanged):
- 12:44 AM Changeset in webkit [275936] by
-
- 10 edits in trunk
[GTK][WPE] Add a property to the WebKitWebView indicating whether the web process is responsive
https://bugs.webkit.org/show_bug.cgi?id=224359
Reviewed by Adrian Perez de Castro.
Source/WebKit:
Add a property to WebKitWebView indicating whether the web processes used are responsive.
- UIProcess/API/glib/WebKitNavigationClient.cpp:
- UIProcess/API/glib/WebKitWebView.cpp:
(webkitWebViewConstructed):
(webkitWebViewGetProperty):
(webkit_web_view_class_init):
(webkitWebViewSetIsWebProcessResponsive):
(webkit_web_view_get_is_web_process_responsive):
- UIProcess/API/glib/WebKitWebViewPrivate.h:
- UIProcess/API/gtk/WebKitWebView.h:
- UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
- UIProcess/API/wpe/WebKitWebView.h:
- UIProcess/API/wpe/docs/wpe-1.0-sections.txt:
Tools:
Added unit test for web process responsiveness API.
- TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
(testWebViewIsWebProcessResponsive):
(beforeAll):
Apr 13, 2021:
- 11:59 PM Changeset in webkit [275935] by
-
- 5 edits in trunk/Source/WebCore
Make SVGElement::getBoundingBox retrieve bbox from RenderObject
https://bugs.webkit.org/show_bug.cgi?id=224482
Patch by Rob Buis <rbuis@igalia.com> on 2021-04-13
Reviewed by Zalan Bujtas.
Make SVGElement::getBoundingBox retrieve bbox from RenderObject.
Also make it const and return an Optional.
- dom/Element.cpp:
(WebCore::Element::boundsInRootViewSpace):
(WebCore::Element::absoluteEventBounds):
(WebCore::Element::boundingAbsoluteRectWithoutLayout):
- page/ResizeObservation.cpp:
(WebCore::ResizeObservation::computeObservedSize const):
- svg/SVGElement.cpp:
(WebCore::SVGElement::getBoundingBox const):
(WebCore::SVGElement::getBoundingBox): Deleted.
- svg/SVGElement.h:
- 11:24 PM Changeset in webkit [275934] by
-
- 4 edits2 adds in trunk
[GPUP] MediaSource.addSourceBuffer() will throw if given the same parameter as a previous call to HTMLMediaElement.canPlayType()
https://bugs.webkit.org/show_bug.cgi?id=224273
<rdar://74805071>
Reviewed by Eric Carlson.
Source/WebKit:
Test: media/media-source/media-source-addsourcebuffer-after-canplaytype.html
RemoteMediaPlayerMIMETypeCache will receive requests to verify whether it can handle a MIME/codec combination,
as well as whether this indicates a MediaStream, MSE source, or neither. If a cache for the MSE back-end receives
a query for a MIME type, but the query parameters indicate this is not a MSE source, it will say no and cache the
response. However the cache is keyed solely on the MIME/codec, so when a subsequent call to create a SourceBuffer
hits the cache entry, it thinks it will be unable to handle the MIME and rejects.
Make the mime-type cache triple keyed: use both the raw ContentType (MIME & codecs) as well as the flags stating
whether the source is a MediaStream, MSE, or neither.
- WebProcess/GPU/media/RemoteMediaPlayerMIMETypeCache.cpp:
(WebKit::RemoteMediaPlayerMIMETypeCache::supportsTypeAndCodecs):
- WebProcess/GPU/media/RemoteMediaPlayerMIMETypeCache.h:
LayoutTests:
- media/media-source/media-source-addsourcebuffer-after-canplaytype-expected.txt: Added.
- media/media-source/media-source-addsourcebuffer-after-canplaytype.html: Added.
- 11:12 PM Changeset in webkit [275933] by
-
- 3 edits in trunk/Source/WebCore
AudioSourceProviderAVFObjC should lock all multithreaded objects
https://bugs.webkit.org/show_bug.cgi?id=224230
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-04-13
Reviewed by Eric Carlson.
Lock following objects with TapStorage::lock:
AudioSourceProviderAVFObjC::m_tapStorage
AudioSourceProviderAVFObjC::m_avPlayerItem
Do not clear the tapStorage nor the _this pointer from
the audio thread. This is a race that cannot be overcome
since the main thread needs to access the m_tapStorage pointer to
lock the m_tapStorage pointer for modification.
Initialize m_tap in more robust way, in case initialization fails.
Do not leave stale m_tapStorage present when destroying the mixer.
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.h:
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::~AudioSourceProviderAVFObjC):
(WebCore::AudioSourceProviderAVFObjC::destroyMixIfNeeded):
(WebCore::AudioSourceProviderAVFObjC::createMixIfNeeded):
(WebCore::AudioSourceProviderAVFObjC::initCallback):
(WebCore::AudioSourceProviderAVFObjC::finalizeCallback):
- 10:36 PM Changeset in webkit [275932] by
-
- 2 edits in trunk/LayoutTests
[GLIB] Unreviewed test gardening. Skip sframe tests added in r275656 and r275874.
Currently SFrames are not supported in GTK and WPE ports.
- platform/glib/TestExpectations:
- 10:34 PM Changeset in webkit [275931] by
-
- 3 edits2 adds in trunk
Table caption jumps to the bottom of the table after simplified table relayout
https://bugs.webkit.org/show_bug.cgi?id=187903
<rdar://problem/42506245>
Reviewed by Zalan Bujtas.
Source/WebCore:
Test: fast/table/caption-simplified-layout.html
- rendering/RenderTable.cpp:
(WebCore::RenderTable::simplifiedNormalFlowLayout):
Do not call layoutCaptions().
LayoutTests:
- fast/table/caption-simplified-layout-expected.html: Added.
- fast/table/caption-simplified-layout.html: Added.
- 10:24 PM Changeset in webkit [275930] by
-
- 3 edits4 adds in trunk/LayoutTests
[GTK] Unreviewed test gardening. Update baselines after r275515.
r275515 updated several general baselines that resulted into test
failures for GTK. Emit new baselines for GTK. Other pre-existing GTK
baselines just required an update.
- platform/glib/tables/mozilla/bugs/bug113424-expected.txt:
- platform/gtk/fast/css/empty-inline-003-quirksmode-expected.txt: Added.
- platform/gtk/fast/lists/marker-before-empty-inline-expected.txt:
- platform/gtk/imported/w3c/web-platform-tests/css/css-flexbox/orthogonal-flex-item-crash-expected.txt: Added.
- platform/gtk/imported/w3c/web-platform-tests/innerText/getter-expected.txt: Added.
- 9:16 PM Changeset in webkit [275929] by
-
- 4 edits in trunk/Source
Implement PlatformXRSystem::xrCoordinator() for USE(APPLE_INTERNAL_SDK)
https://bugs.webkit.org/show_bug.cgi?id=224510
Patch by Ada Chan <ada.chan@apple.com> on 2021-04-13
Reviewed by Dean Jackson.
Source/WebKit:
- UIProcess/Cocoa/PlatformXRSystem.mm:
Source/WTF:
Update ENABLE_WEBXR flag
- wtf/PlatformEnableCocoa.h:
- 8:47 PM Changeset in webkit [275928] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed fix after r275921 to address crashes on the iOS bots.
The crash would occur when the WebPage constructor would end up calling WebProcess::ensureGPUProcessConnection().
Since we're in the middle of constructing the page, the pageID has been added to m_pageMap but not the page yet.
ensureGPUProcessConnection() was iterating over m_pageMap and expecting pages in the map to be non-null.
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::createWebPage):
(WebKit::WebProcess::ensureGPUProcessConnection):
- 8:43 PM Changeset in webkit [275927] by
-
- 2 edits in trunk/LayoutTests
[GTK] Unreviewed test gardening. Several 'editing/selections' tests are flaky after r275810.
- platform/gtk/TestExpectations:
- 8:26 PM Changeset in webkit [275926] by
-
- 2 edits in trunk/LayoutTests
[Mac] imported/w3c/web-platform-tests/css/css-fonts/font-feature-settings-tibetan.html is passing
<rdar://problem/66399069>
Unreviewed.
- platform/mac/TestExpectations:
- 7:57 PM Changeset in webkit [275925] by
-
- 10 edits2 adds in trunk
[GPU Process] Simplify DisplayList::Iterator part 4: Move DisplayList::Iterator to its own .h/.cpp files
https://bugs.webkit.org/show_bug.cgi?id=224146
Reviewed by Wenson Hsieh.
Source/WebCore:
This doesn't actually change any lines of code; it just moves code into different files.
This patch isn't strictly necessary, but I think it helps, because the iterator contains
a non-trivial amount of logic.
No new tests because there is no behavior change.
- Headers.cmake:
- Sources.txt:
- WebCore.xcodeproj/project.pbxproj:
- platform/graphics/displaylists/DisplayList.cpp:
(WebCore::DisplayList::DisplayList::begin const):
(WebCore::DisplayList::DisplayList::end const):
(WebCore::DisplayList::DisplayList::iterator::atEnd const): Deleted.
(WebCore::DisplayList::DisplayList::iterator::updateCurrentDrawingItemExtent): Deleted.
(WebCore::DisplayList::DisplayList::iterator::updateCurrentItem): Deleted.
(WebCore::DisplayList::DisplayList::iterator::advance): Deleted.
(WebCore::DisplayList::DisplayList::iterator::clearCurrentItem): Deleted.
(WebCore::DisplayList::DisplayList::iterator::moveToEnd): Deleted.
(WebCore::DisplayList::DisplayList::iterator::moveCursorToStartOfCurrentBuffer): Deleted.
- platform/graphics/displaylists/DisplayList.h:
(WebCore::DisplayList::DisplayList::iterator::iterator): Deleted.
(WebCore::DisplayList::DisplayList::iterator::~iterator): Deleted.
(WebCore::DisplayList::DisplayList::iterator::operator==): Deleted.
(WebCore::DisplayList::DisplayList::iterator::operator!=): Deleted.
(WebCore::DisplayList::DisplayList::iterator::operator++): Deleted.
(WebCore::DisplayList::DisplayList::iterator::operator* const): Deleted.
(WebCore::DisplayList::DisplayList::iterator::itemBuffer const): Deleted.
(WebCore::DisplayList::DisplayList::begin const): Deleted.
(WebCore::DisplayList::DisplayList::end const): Deleted.
- platform/graphics/displaylists/DisplayListIterator.cpp: Added.
(WebCore::DisplayList::DisplayList::Iterator::atEnd const):
(WebCore::DisplayList::DisplayList::Iterator::updateCurrentDrawingItemExtent):
(WebCore::DisplayList::DisplayList::Iterator::updateCurrentItem):
(WebCore::DisplayList::DisplayList::Iterator::advance):
(WebCore::DisplayList::DisplayList::Iterator::clearCurrentItem):
(WebCore::DisplayList::DisplayList::Iterator::moveToEnd):
(WebCore::DisplayList::DisplayList::Iterator::moveCursorToStartOfCurrentBuffer):
- platform/graphics/displaylists/DisplayListIterator.h: Added.
(WebCore::DisplayList::DisplayList::Iterator::Iterator):
(WebCore::DisplayList::DisplayList::Iterator::~Iterator):
(WebCore::DisplayList::DisplayList::Iterator::operator==):
(WebCore::DisplayList::DisplayList::Iterator::operator!=):
(WebCore::DisplayList::DisplayList::Iterator::operator++):
(WebCore::DisplayList::DisplayList::Iterator::operator* const):
(WebCore::DisplayList::DisplayList::Iterator::itemBuffer const):
- platform/graphics/displaylists/DisplayListReplayer.cpp:
Tools:
- TestWebKitAPI/Tests/WebCore/DisplayListTests.cpp:
- 7:19 PM Changeset in webkit [275924] by
-
- 3 edits in trunk/Source/JavaScriptCore
The watchdog should not fire when it's not active.
https://bugs.webkit.org/show_bug.cgi?id=224494
rdar://76581259
Reviewed by Saam Barati and Yusuke Suzuki.
The watchdog is only active when we have entered the VM. If we haven't entered
the VM, we postpone starting the watchdog. For example, see Watchdog::enteredVM()
and Watchdog::exitedVM().
The underlying timer may still fire the NeedWatchdogCheck event after
Watchdog::stopTimer() is called. So, we need to just ignore the event if the
watchdog isn't active.
- runtime/VMTraps.cpp:
(JSC::VMTraps::handleTraps):
- runtime/Watchdog.h:
(JSC::Watchdog::isActive const):
- 6:48 PM Changeset in webkit [275923] by
-
- 8 edits in branches/safari-611-branch/Source
Versioning.
WebKit-7611.2.3
- 6:00 PM Changeset in webkit [275922] by
-
- 3 edits in trunk/Source/WebKit
RemoteRenderingBackendProxy should only relaunch the GPUProcess if it actually needs it
https://bugs.webkit.org/show_bug.cgi?id=224516
Reviewed by Geoff Garen.
Previously, RemoteRenderingBackendProxy would launch the GPUProcess as soon as it was
constructed. This went against the goals of r275887 to delay the GPUProcess launch
until it is actually needed. Also, in case a a GPUProcess crash/termination,
RemoteRenderingBackendProxy would relaunch the GPUProcess right away, even if it
did not need it (No live ImageBuffers). This patch addresses both issues.
This patch is a pre-requirement for terminating the GPUProcess on memory pressure when
it is not used by any tabs.
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::~RemoteRenderingBackendProxy):
(WebKit::RemoteRenderingBackendProxy::ensureGPUProcessConnection):
(WebKit::RemoteRenderingBackendProxy::gpuProcessConnectionDidClose):
(WebKit::RemoteRenderingBackendProxy::messageSenderConnection const):
(WebKit::RemoteRenderingBackendProxy::waitForDidCreateImageBufferBackend):
(WebKit::RemoteRenderingBackendProxy::waitForDidFlush):
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.h:
- 5:37 PM Changeset in webkit [275921] by
-
- 13 edits in trunk/Source/WebKit
Stop requiring a RemoteRenderingBackend for visibility propagation views
https://bugs.webkit.org/show_bug.cgi?id=224513
Reviewed by Geoff Garen.
Stop requiring a RemoteRenderingBackend for visibility propagation views. This is
inconvenient because doing media playback in the GPUProcess does not require a
RemoteRenderingBackend. This was also making things difficult to exit the
GPUProcess on memory pressure when unused.
- GPUProcess/GPUConnectionToWebProcess.cpp:
(WebKit::GPUConnectionToWebProcess::createVisibilityPropagationContextForPage):
(WebKit::GPUConnectionToWebProcess::destroyVisibilityPropagationContextForPage):
- GPUProcess/GPUConnectionToWebProcess.h:
- GPUProcess/GPUConnectionToWebProcess.messages.in:
- GPUProcess/graphics/RemoteRenderingBackend.cpp:
(WebKit::RemoteRenderingBackend::RemoteRenderingBackend):
- GPUProcess/graphics/RemoteRenderingBackend.h:
- GPUProcess/graphics/RemoteRenderingBackendCreationParameters.h:
(WebKit::RemoteRenderingBackendCreationParameters::encode const):
(WebKit::RemoteRenderingBackendCreationParameters::decode):
- WebProcess/GPU/GPUProcessConnection.cpp:
(WebKit::GPUProcessConnection::createVisibilityPropagationContextForPage):
(WebKit::GPUProcessConnection::destroyVisibilityPropagationContextForPage):
- WebProcess/GPU/GPUProcessConnection.h:
- WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp:
(WebKit::RemoteRenderingBackendProxy::RemoteRenderingBackendProxy):
- WebProcess/WebPage/WebPage.cpp:
(WebKit::m_lastNavigationWasAppBound):
(WebKit::WebPage::gpuProcessConnectionDidBecomeAvailable):
(WebKit::WebPage::~WebPage):
(WebKit::WebPage::updatePreferences):
- WebProcess/WebPage/WebPage.h:
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::ensureGPUProcessConnection):
- 5:24 PM Changeset in webkit [275920] by
-
- 6 edits1 copy in trunk/Source/JavaScriptCore
Move cloneUBreakIterator declaration to IntlWorkaround.h
https://bugs.webkit.org/show_bug.cgi?id=224511
Reviewed by Yusuke Suzuki.
Follow up to r275856. There's ultimately no reason IntlWorkaround.cpp needs to be headerless;
this was tied to some confusion about how to successfully include ubrk.h in two different ways.
- JavaScriptCore.xcodeproj/project.pbxproj:
- runtime/IntlSegmenter.cpp:
- runtime/IntlSegmenter.h:
- runtime/IntlSegments.cpp:
- runtime/IntlWorkaround.cpp:
- runtime/IntlWorkaround.h: Added.
- 5:04 PM Changeset in webkit [275919] by
-
- 2 edits in branches/safari-611-branch/Source/WebCore
Unreviewed build fix for rdar://76617366.
- page/Quirks.cpp:
(WebCore::Quirks::shouldDisableEndFullscreenEventWhenEnteringPictureInPictureFromFullscreenQuirk const):
(WebCore::Quirks::requiresUserGestureToLoadInPictureInPicture const):
- 4:56 PM Changeset in webkit [275918] by
-
- 2 edits in trunk/Source/WebKit
Unreviewed build fix after r275898; remove unnecessary files from the project.
- WebKit.xcodeproj/project.pbxproj:
- 4:22 PM Changeset in webkit [275917] by
-
- 179 edits5 moves19 adds18 deletes in trunk/LayoutTests
[LayoutTests] Convert http/tests/security convert PHP to Python
https://bugs.webkit.org/show_bug.cgi?id=222668
<rdar://problem/74993152>
Reviewed by Jonathan Bedard.
- TestExpectations:
- http/tests/blink/sendbeacon/connect-src-beacon-allowed.html:
- http/tests/cache/resources/iframe304.py:
- http/tests/contentextensions/block-cookies-in-csp-report.py:
- http/tests/css/resources/webfont-request.py:
(get_request_count): Deleted.
(set_request_count): Deleted.
- http/tests/local/script-crossorigin-loads-file-scheme.html:
- http/tests/media/resources/serve_video.py: Added.
(answering):
- http/tests/resources/portabilityLayer.py:
(get_cookies): Add trailing newline.
(get_request): PHP equivalent of $_REQUEST which is used by numerous scripts.
(get_count): Added trailing newline.
(get_state): Added trailing newline.
(set_state): Changed open file's name to prevent confusion with parameter.
(step_state): Added trailing newline.
- http/tests/security/401-logout/401-logout-expected.txt:
- http/tests/security/401-logout/401-logout.php: Removed.
- http/tests/security/401-logout/401-logout.py: Added.
- http/tests/security/canvas-remote-read-remote-video-allowed-anonymous.html:
- http/tests/security/canvas-remote-read-remote-video-allowed-with-credentials.html:
- http/tests/security/canvas-remote-read-remote-video-blocked-no-crossorigin.html:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-in-report-only-ignored.html:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-cross-origin-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-cross-origin-https-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-cross-origin-https.html:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-cross-origin.html:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-same-origin-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-same-origin-https-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-same-origin-https.html:
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/report-frame-ancestors-same-origin.html:
- http/tests/security/contentSecurityPolicy/1.1/report-uri-effective-directive-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/report-uri-effective-directive.py:
- http/tests/security/contentSecurityPolicy/1.1/resources/testScriptHash.php: Removed.
- http/tests/security/contentSecurityPolicy/1.1/resources/testScriptHash.py: Added.
- http/tests/security/contentSecurityPolicy/1.1/script-blocked-sends-multiple-reports-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/script-blocked-sends-multiple-reports.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-enforced-policy-and-allowed-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/1.1/scripthash-tests.html:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-allowed-by-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-allowed-by-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy-expected.txt:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-enforced-policy-and-allowed-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-allowed-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy.py:
- http/tests/security/contentSecurityPolicy/1.1/scriptnonce-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy2.py:
- http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt:
- http/tests/security/contentSecurityPolicy/block-all-mixed-content/resources/frame-with-insecure-css-report-only.py:
- http/tests/security/contentSecurityPolicy/connect-src-beacon-allowed.html:
- http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked-expected.txt:
- http/tests/security/contentSecurityPolicy/connect-src-beacon-blocked.html:
- http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report-expected.txt:
- http/tests/security/contentSecurityPolicy/eval-allowed-in-report-only-mode-and-sends-report.py:
- http/tests/security/contentSecurityPolicy/eval-blocked-and-sends-report-expected.txt:
- http/tests/security/contentSecurityPolicy/eval-blocked-and-sends-report.html:
- http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt:
- http/tests/security/contentSecurityPolicy/report-and-enforce.py:
- http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt:
- http/tests/security/contentSecurityPolicy/report-blocked-data-uri.py:
- http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt:
- http/tests/security/contentSecurityPolicy/report-blocked-file-uri.py:
- http/tests/security/contentSecurityPolicy/report-blocked-uri-and-do-not-follow-redirect-when-sending-report-expected.txt:
- http/tests/security/contentSecurityPolicy/report-blocked-uri-and-do-not-follow-redirect-when-sending-report.py:
- http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt:
- http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.py:
- http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt:
- http/tests/security/contentSecurityPolicy/report-blocked-uri.py:
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt:
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt:
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.py:
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt:
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.php: Removed.
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.py: Added.
- http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.py:
- http/tests/security/contentSecurityPolicy/report-document-uri-after-blocked-redirect.html:
- http/tests/security/contentSecurityPolicy/report-multiple-violations-01.php: Removed.
- http/tests/security/contentSecurityPolicy/report-multiple-violations-01.py: Added.
- http/tests/security/contentSecurityPolicy/report-multiple-violations-02.php: Removed.
- http/tests/security/contentSecurityPolicy/report-multiple-violations-02.py: Added.
- http/tests/security/contentSecurityPolicy/report-only-connect-src-beacon-redirect-blocked-expected.txt:
- http/tests/security/contentSecurityPolicy/report-only-connect-src-beacon-redirect-blocked.php: Removed.
- http/tests/security/contentSecurityPolicy/report-only-connect-src-beacon-redirect-blocked.py: Added.
- http/tests/security/contentSecurityPolicy/report-only-connect-src-xmlhttprequest-redirect-to-blocked.php: Removed.
- http/tests/security/contentSecurityPolicy/report-only-connect-src-xmlhttprequest-redirect-to-blocked.py: Added.
- http/tests/security/contentSecurityPolicy/report-only-expected.txt:
- http/tests/security/contentSecurityPolicy/report-only-from-header-expected.txt:
- http/tests/security/contentSecurityPolicy/report-only-from-header.py:
- http/tests/security/contentSecurityPolicy/report-only-upgrade-insecure-expected.txt:
- http/tests/security/contentSecurityPolicy/report-only-upgrade-insecure.py:
- http/tests/security/contentSecurityPolicy/report-only.py:
- http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt:
- http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.py:
- http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt:
- http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt:
- http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.py:
- http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.py:
- http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https-expected.txt:
- http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https.html:
- http/tests/security/contentSecurityPolicy/report-uri-expected.txt:
- http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt:
- http/tests/security/contentSecurityPolicy/report-uri-from-child-frame.html:
- http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt:
- http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.py:
- http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt:
- http/tests/security/contentSecurityPolicy/report-uri-from-javascript.py:
- http/tests/security/contentSecurityPolicy/report-uri-in-meta-tag-ignored.html:
- http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt:
- http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.py:
- http/tests/security/contentSecurityPolicy/report-uri.py:
- http/tests/security/contentSecurityPolicy/resources/echo-report.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/echo-report.py: Added.
- http/tests/security/contentSecurityPolicy/resources/generate-csp-report.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/generate-csp-report.py: Added.
- http/tests/security/contentSecurityPolicy/resources/go-to-echo-report.js:
(window.onload):
- http/tests/security/contentSecurityPolicy/resources/go-to-echo-report.py:
- http/tests/security/contentSecurityPolicy/resources/image-document-default-src-none-iframe.py:
- http/tests/security/contentSecurityPolicy/resources/redir.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/report-file-path.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/report_file_path.py: Added.
- http/tests/security/contentSecurityPolicy/resources/save-report-and-redirect-to-save-report.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/save-report-and-redirect-to-save-report.py: Added.
- http/tests/security/contentSecurityPolicy/resources/save-report.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/save-report.py: Added.
- http/tests/security/contentSecurityPolicy/resources/save_report.py: Added.
(not_being_called):
(save_report):
- http/tests/security/contentSecurityPolicy/resources/worker.php: Removed.
- http/tests/security/contentSecurityPolicy/resources/worker.py: Added.
- http/tests/security/contentSecurityPolicy/resources/xhr-redirect-not-allowed.py:
- http/tests/security/contentSecurityPolicy/same-origin-plugin-document-blocked-in-child-window-report-expected.txt:
- http/tests/security/contentSecurityPolicy/same-origin-plugin-document-blocked-in-child-window-report.py:
- http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html:
- http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html:
- http/tests/security/contentSecurityPolicy/worker-eval-blocked.html:
- http/tests/security/contentSecurityPolicy/worker-function-function-blocked.html:
- http/tests/security/contentSecurityPolicy/worker-importscripts-blocked.html:
- http/tests/security/contentSecurityPolicy/worker-multiple-csp-headers.html:
- http/tests/security/contentSecurityPolicy/worker-script-src.html:
- http/tests/security/contentSecurityPolicy/worker-set-timeout-blocked.html:
- http/tests/security/contentSecurityPolicy/worker-without-own-csp.html:
- http/tests/security/contentSecurityPolicy/xmlhttprequest-protected-resource-does-not-crash.html:
- http/tests/security/cookies/cookies-wrong-domain-rejected-result.php: Removed.
- http/tests/security/cookies/cookies-wrong-domain-rejected-result.py: Added.
- http/tests/security/cookies/cookies-wrong-domain-rejected.py:
- http/tests/security/cookies/resources/first-party-cookie-allow.xsl:
- http/tests/security/cookies/resources/set-a-cookie.php: Removed.
- http/tests/security/cookies/resources/set-a-cookie.py: Added.
- http/tests/security/cookies/resources/third-party-cookie-blocking.xsl:
- http/tests/security/cookies/third-party-cookie-blocking-main-frame.html:
- http/tests/security/cookies/third-party-cookie-blocking-user-action.html:
- http/tests/security/cookies/third-party-cookie-blocking.html:
- http/tests/security/credentials-from-different-domains.html:
- http/tests/security/credentials-iframes-allowCrossOriginSubresourcesToAskForCredentials-expected.txt:
- http/tests/security/credentials-iframes-expected.txt:
- http/tests/security/import-module-crossorigin-loads.html:
- http/tests/security/import-script-crossorigin-loads-omit.html:
- http/tests/security/isolatedWorld/bypass-main-world-csp-worker.html:
- http/tests/security/module-crossorigin-error-event-information-expected.txt:
- http/tests/security/module-crossorigin-error-event-information.html:
- http/tests/security/module-crossorigin-loads-correctly-credentials.html:
- http/tests/security/module-crossorigin-loads-omit.html:
- http/tests/security/module-crossorigin-onerror-information-expected.txt:
- http/tests/security/module-crossorigin-onerror-information.html:
- http/tests/security/private-browsing-http-auth-expected.txt:
- http/tests/security/private-browsing-http-auth.html:
- http/tests/security/referrer-policy-header-expected.txt:
- http/tests/security/referrer-policy-header.html:
- http/tests/security/resources/basic-auth.php: Removed.
- http/tests/security/resources/basic-auth.py: Added.
- http/tests/security/resources/cors-basic-auth.php: Removed.
- http/tests/security/resources/cors-basic-auth.py: Added.
- http/tests/security/resources/cors-script.php: Removed.
- http/tests/security/resources/cors-script.py: Added.
- http/tests/security/resources/credentials-from-different-domains-continued-1.html:
- http/tests/security/resources/credentials-from-different-domains-continued-2.html:
- http/tests/security/resources/credentials-iframes-different-domain.html:
- http/tests/security/resources/credentials-iframes-same-domain.html:
- http/tests/security/resources/credentials-main-resource.py:
- http/tests/security/resources/import-module-crossorigin-loads-src.js:
- http/tests/security/resources/reference-movie-cross-origin-allow.php: Removed.
- http/tests/security/resources/reference-movie-cross-origin-allow.py: Added.
- http/tests/security/resources/serve-referrer-policy-and-test.php: Removed.
- http/tests/security/resources/serve-referrer-policy-and-test.py: Added.
- http/tests/security/resources/video-cross-origin-allow-credentials.php: Removed.
- http/tests/security/resources/video-cross-origin-allow-credentials.py: Added.
- http/tests/security/resources/video-cross-origin-allow.php: Removed.
- http/tests/security/resources/video-cross-origin-allow.py: Added.
- http/tests/security/script-crossorigin-error-event-information-expected.txt:
- http/tests/security/script-crossorigin-error-event-information.html:
- http/tests/security/script-crossorigin-loads-correctly-credentials.html:
- http/tests/security/script-crossorigin-loads-correctly.html:
- http/tests/security/script-crossorigin-onerror-information-expected.txt:
- http/tests/security/script-crossorigin-onerror-information.html:
- http/tests/security/script-no-crossorigin-error-event-should-be-sanitized.html:
- http/tests/security/script-no-crossorigin-onerror-should-be-sanitized.html:
- http/tests/security/sync-xhr-partition.html:
- http/tests/security/video-cross-origin-caching.html:
- http/tests/security/video-cross-origin-readback.html:
- http/tests/security/webaudio-render-remote-audio-allowed-crossorigin-redirect.html:
- http/tests/security/webaudio-render-remote-audio-allowed-crossorigin.html:
- http/tests/security/webaudio-render-remote-audio-blocked-no-crossorigin-redirect.html:
- http/tests/security/webaudio-render-remote-audio-blocked-no-crossorigin.html:
- http/tests/security/xssAuditor/report-script-tag-and-do-not-follow-redirect-when-sending-report-expected.txt:
- http/tests/security/xssAuditor/report-script-tag-and-do-not-follow-redirect-when-sending-report.html:
- http/tests/security/xssAuditor/report-script-tag-expected.txt:
- http/tests/security/xssAuditor/report-script-tag-full-block-and-do-not-follow-redirect-when-sending-report-expected.txt:
- http/tests/security/xssAuditor/report-script-tag-full-block-and-do-not-follow-redirect-when-sending-report.html:
- http/tests/security/xssAuditor/report-script-tag-full-block-expected.txt:
- http/tests/security/xssAuditor/report-script-tag-replace-state-expected.txt:
- http/tests/security/xssAuditor/resources/echo-intertag.pl:
- http/tests/security/xssAuditor/resources/tag-with-pause.py:
- http/tests/ssl/curl/certificate-and-authentication.html:
- http/tests/xmlhttprequest/resources/noContentLength.cgi:
- platform/mac-wk1/TestExpectations:
- platform/mac-wk1/http/tests/security/contentSecurityPolicy/report-document-uri-after-blocked-redirect-expected.txt:
- platform/win/TestExpectations:
- platform/win/http/tests/security/contentSecurityPolicy/report-document-uri-after-blocked-redirect-expected.txt:
- platform/wk2/TestExpectations:
- platform/wk2/http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-css-in-iframe-report-only-expected.txt:
- 3:48 PM Changeset in webkit [275916] by
-
- 9 edits in trunk/Source
WebProcessPool should store Vector<Ref<WebProcessProxy>> instead of Vector<RefPtr>
https://bugs.webkit.org/show_bug.cgi?id=224412
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Chris Dumez.
Source/WebKit:
No change in behavior, except I also changed a raw pointer to a WeakPtr, so we should be a little safer.
- UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::remoteWebInspectorEnabledCallback):
(WebKit::WebProcessPool::registerNotificationObservers):
- UIProcess/Cocoa/WebProcessProxyCocoa.mm:
(WebKit::WebProcessProxy::cacheMediaMIMETypes):
- UIProcess/VisitedLinkStore.cpp:
(WebKit::VisitedLinkStore::removeAll):
(WebKit::VisitedLinkStore::sendStoreHandleToProcess):
(WebKit::VisitedLinkStore::didUpdateSharedStringHashes):
- UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::gpuProcessCrashed):
(WebKit::WebProcessPool::establishWorkerContextConnectionToNetworkProcess):
(WebKit::WebProcessPool::tryTakePrewarmedProcess):
(WebKit::WebProcessPool::initializeNewWebProcess):
(WebKit::WebProcessPool::enableProcessTermination):
(WebKit::WebProcessPool::shouldTerminate):
(WebKit::WebProcessPool::processDidFinishLaunching):
(WebKit::WebProcessPool::disconnectProcess):
(WebKit::WebProcessPool::processForRegistrableDomain):
(WebKit::WebProcessPool::createWebPage):
(WebKit::WebProcessPool::terminateAllWebContentProcesses):
(WebKit::webProcessProxyFromConnection):
- UIProcess/WebProcessPool.h:
(WebKit::WebProcessPool::sendToAllProcesses):
(WebKit::WebProcessPool::sendToAllProcessesForSession):
- UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didFinishLaunching):
Source/WTF:
- wtf/Ref.h:
(WTF::operator==):
(WTF::operator!=):
- 3:42 PM Changeset in webkit [275915] by
-
- 2 edits in trunk/Source/WebKit
REGRESSION(r275262) [WebDriver] Make automation JS code aware of injected script headers
https://bugs.webkit.org/show_bug.cgi?id=224422
Reviewed by BJ Burg.
r275262 introduced "# sourceURL..." prefixes to injected scripts and
this broke Automation JS evaluation, as the code evaluated is wrapped
with "(async " + CODE + ")". This results in "Unexpected keyword 'function'.
Expected ')' to end a compound expression." errors.
Covered by existing tests.
- WebProcess/Automation/WebAutomationSessionProxy.js:
(let.AutomationSessionProxy.prototype._execute): Move initial lines
with leading comments before the async expression.
- 2:54 PM Changeset in webkit [275914] by
-
- 2 edits in trunk/Source/WebKit
[iOS][FCR] Color picker sheet should use default height
https://bugs.webkit.org/show_bug.cgi?id=224371
<rdar://problem/76416775>
Reviewed by Wenson Hsieh.
System color pickers have a default height that is between a half-sheet
and a full sheet. WebKit should match the default so that users do not
need to swipe up and down to access all of the controls in the color
picker.
- UIProcess/ios/forms/WKFormColorControl.mm:
(-[WKColorPicker configurePresentation]):
Always use UIModalPresentationPopover when presenting the
UIColorPickerViewController. In compact environments, this style
behaves the same as UIModalPresentationFormSheet, and the presented
height of the color picker matches the system default.
This method of presentation matches the logic in UIColorWell.
- 2:44 PM Changeset in webkit [275913] by
-
- 7 edits2 adds in trunk/Source/WebKit
[macOS] Refactor logic for presenting the shared QLPreviewPanel when revealing an image
https://bugs.webkit.org/show_bug.cgi?id=224445
<rdar://problem/76552762>
Reviewed by Andy Estes and Devin Rousso.
QLPreviewPanel.hstates thatQLPreviewPanel's state should never be modified by something that is not
currently controlling it (where "control" is determined through theQLPreviewPanelControllercategory
methods declared in the same header file). Currently, WebKit code for revealing an image using the shared
QuickLook panel does not respect this requirement, and instead attempts to set thedataSourceanddelegate
properties ofQLPreviewPanelout of band.
While this is not an issue if nothing in the responder chain accepts preview panel control (i.e. implements the
method-acceptsPreviewPanelControl:and returnsYES), it leads to compatibility issues in apps like Mail
that override these methods and replace thedataSourceanddelegateproperties onQLPreviewPanel. The end
result is thatWebPageProxyends up in an unexpected state whereWKImageExtractionPreviewControllerhas been
created, but will never be destroyed (until the web view itself is destroyed) because we're no longer the
delegate for the sharedQLPreviewPanel, and therefore won't receive the teardown message when the preview
window is dismissed.
To address this, we refactor this logic so that
WKWebView(orWKView, if applicable) is capable of accepting
preview panel control. See below for more details.
- SourcesCocoa.txt:
- UIProcess/API/mac/WKView.mm:
(-[WKView acceptsPreviewPanelControl:]):
(-[WKView beginPreviewPanelControl:]):
(-[WKView endPreviewPanelControl:]):
Implement
QLPreviewPanelControllerhooks onWKView, and plumb directly intoWebViewImpl.
- UIProcess/API/mac/WKWebViewMac.mm:
(-[WKWebView acceptsPreviewPanelControl:]):
(-[WKWebView beginPreviewPanelControl:]):
(-[WKWebView endPreviewPanelControl:]):
Implement
QLPreviewPanelControllerhooks onWKWebView, and plumb directly intoWebViewImpl.
- UIProcess/Cocoa/WebViewImpl.h:
- UIProcess/Cocoa/WebViewImpl.mm:
(WebKit::WebViewImpl::acceptsPreviewPanelControl):
Only accept control of the preview panel if we have an active image extraction preview controller.
(WebKit::WebViewImpl::beginPreviewPanelControl):
(WebKit::WebViewImpl::endPreviewPanelControl):
When beginning to take control (and relinquishing control) of the preview panel, respectively set and unset the
dataSourceanddelegateproperties to the active image extraction preview controller.
- UIProcess/mac/WKImageExtractionPreviewController.h: Added.
- UIProcess/mac/WKImageExtractionPreviewController.mm: Added.
(-[WKImageExtractionPreviewItem initWithURL:title:]):
(-[WKImageExtractionPreviewItem dealloc]):
(-[WKImageExtractionPreviewItem previewItemURL]):
(-[WKImageExtractionPreviewItem previewItemTitle]):
(-[WKImageExtractionPreviewController initWithPage:url:title:]):
(-[WKImageExtractionPreviewController numberOfPreviewItemsInPreviewPanel:]):
(-[WKImageExtractionPreviewController previewPanel:previewItemAtIndex:]):
Partially upstream
_WKImageExtractionPreviewControllerto OpenSource, asWKImageExtractionPreviewController
(the underscore is unnecessary because this object is not SPI- or API-exposed). Additionally, move it out into
its own header and source, so that it can be imported elsewhere.
- WebKit.xcodeproj/project.pbxproj:
- 2:20 PM Changeset in webkit [275912] by
-
- 6 edits in trunk
Remove support for NPAPI plugins in WebView
https://bugs.webkit.org/show_bug.cgi?id=224449
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Chris Dumez.
Source/WebKitLegacy/mac:
- WebView/WebPreferences.mm:
(-[WebPreferences setPlugInsEnabled:]):
Source/WTF:
- Scripts/Preferences/WebPreferences.yaml:
Tools:
Keep them on in tests until we remove the code.
- DumpRenderTree/TestOptions.cpp:
(WTR::TestOptions::defaults):
- 2:19 PM Changeset in webkit [275911] by
-
- 2 edits in trunk/Source/WebCore
Disable YouTube Flash and QuickTime plug in replacements on iOS
https://bugs.webkit.org/show_bug.cgi?id=224453
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Chris Dumez.
- page/Settings.yaml:
- 2:18 PM Changeset in webkit [275910] by
-
- 5 edits in trunk
Remove support for NPAPI plugins in WKWebView
https://bugs.webkit.org/show_bug.cgi?id=224451
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Chris Dumez.
Source/WebKit:
- UIProcess/API/Cocoa/WKPreferences.mm:
(-[WKPreferences encodeWithCoder:]):
(-[WKPreferences initWithCoder:]):
(-[WKPreferences plugInsEnabled]):
(-[WKPreferences setPlugInsEnabled:]):
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/Copying.mm:
(TEST):
- TestWebKitAPI/Tests/WebKitCocoa/UIDelegate.mm:
(-[PlugInDelegate _webView:unavailablePlugInButtonClickedWithReason:plugInInfo:]): Deleted.
- 1:55 PM Changeset in webkit [275909] by
-
- 2 edits in trunk/Source/WTF
Make MemoryPressureHandler::isUnderMemoryPressure() return true for 2 seconds after a simulated warning
https://bugs.webkit.org/show_bug.cgi?id=224505
Reviewed by Darin Adler.
Make MemoryPressureHandler::isUnderMemoryPressure() return true for 2 seconds after a simulated warning,
to make our simulated warning more realistic.
- wtf/cocoa/MemoryPressureHandlerCocoa.mm:
(WTF::MemoryPressureHandler::install):
- 1:52 PM Changeset in webkit [275908] by
-
- 7 edits in trunk
[css-grid] Incorrect track sizing when using relative sized items in 'auto' column tracks
https://bugs.webkit.org/show_bug.cgi?id=191627
Patch by Ziran Sun <Ziran Sun> on 2021-04-13
Reviewed by Javier Fernandez.
LayoutTests/imported/w3c:
- web-platform-tests/css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-001-expected.txt:
Source/WebCore:
This is a reland of r274596. The original patch was reverted because Google logo is not visible
on google.com.
Containing block for a grid item is the grid area it's located in. During the GridTrackSizingAlgorithm,
we determine that this item has a relative size (percent in this case) and that the grid area is still
indefinite. Hence, we set nullopt for the grid area width and mark the item for layout. During the item's
layout, we call this RenderBox::containingBlockLogicalWidthForContent to determine the available height.
However, this method checks the containing block's width if the overridingContentLogicalWidth is nullopt,
which is incorrect for grid items. We should never use the grid container for resolving grid item's size.
This change is to return 0_lu for grid item when overridingContainingBlockContentLogicalWidth() returns
nullopt rather than use containing block's width. It also comments that there might be an issue with
RenderBox::containingBlockLogicalHeightForContent for grid item. It should return whatever value we get from
overridingContainingBlockContentLogicalHeight(), including WTF::nullopt.
- rendering/RenderBox.cpp:
(WebCore::RenderBox::containingBlockLogicalWidthForContent const):
(WebCore::RenderBox::containingBlockLogicalHeightForContent const):
LayoutTests:
- TestExpectations:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-self-baseline-not-applied-if-sizing-cyclic-dependency-001-expected.txt:
- 1:38 PM Changeset in webkit [275907] by
-
- 5 edits2 copies1 add in trunk/Source/WebCore
[WebIDL] includes for
Conditionaldictionary members should also be guarded
https://bugs.webkit.org/show_bug.cgi?id=224501
<rdar://problem/76598492>
Reviewed by Tim Horton.
WebKitAdditions sometimes needs to conditionally include IDL files and in those cases the
generatedJS*.hmight not get created even though the wrapped C++ type does exist. In
these cases, we should also guard the#include JS*.h(in addition to the already guarded
usage of the wrapped C++ type inconvertDictionary).
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDictionaryImplementationContent):
- bindings/scripts/test/TestDictionary.idl: Added.
- bindings/scripts/test/JS/JSTestDictionary.h: Added.
- bindings/scripts/test/JS/JSTestDictionary.cpp: Added.
- bindings/scripts/test/TestDictionaryWithOnlyConditionalMembers.idl:
- bindings/scripts/test/JS/JSTestDictionaryWithOnlyConditionalMembers.cpp:
- bindings/scripts/test/SupplementalDependencies.dep:
- 1:37 PM Changeset in webkit [275906] by
-
- 2 edits in trunk/LayoutTests
http/.../contentSecurityPolicy/report-document-uri-after-blocked-redirect.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=224498
<rdar://problem/76602331>
The error reported by the xhr may not always happen before the
document URI is reported. We should only end the test if both
the error and URI have been reported.
Reviewed by Jonathan Bedard.
- http/tests/security/contentSecurityPolicy/report-document-uri-after-blocked-redirect.html:
- 1:19 PM Changeset in webkit [275905] by
-
- 20 edits in trunk/Source
[GPU Process] Make ImageBuffer calculate its memoryCost() from its size
https://bugs.webkit.org/show_bug.cgi?id=224306
Reviewed by Simon Fraser.
Source/WebCore:
Instead of round-trip processes to get the backend memoryCost(), we can
calculate it from the size and the bytes alignment of each row in the
backend. These are static values so in the case of RemoteImageBufferProxy,
there is no need to ensure the backend is created in GPUP and it is mapped
in the Web Process.
- platform/graphics/ConcreteImageBuffer.h:
- platform/graphics/ImageBufferBackend.cpp:
(WebCore::ImageBufferBackend::calculateBackendSize):
(WebCore::ImageBufferBackend::calculateMemoryCost):
(WebCore::ImageBufferBackend::ImageBufferBackend):
- platform/graphics/ImageBufferBackend.h:
(WebCore::ImageBufferBackend::calculateExternalMemoryCost):
(WebCore::ImageBufferBackend::memoryCost const): Deleted.
(WebCore::ImageBufferBackend::externalMemoryCost const): Deleted.
(WebCore::ImageBufferBackend::bytesPerRow const): Deleted.
- This is the general case of the backend which is 4-bytes aligned rows.
- calculateSafeBackendSize() returns the size whose bytesPerRow does not
overflow unsigned and whose memoryCost does not not overflow size_t.
- platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp:
(WebCore::ImageBufferCairoImageSurfaceBackend::calculateSafeBackendSize):
(WebCore::ImageBufferCairoImageSurfaceBackend::calculateBytesPerRow):
(WebCore::ImageBufferCairoImageSurfaceBackend::calculateMemoryCost):
(WebCore::ImageBufferCairoImageSurfaceBackend::create):
(WebCore::ImageBufferCairoImageSurfaceBackend::bytesPerRow const):
- platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.h:
cairo_format_stride_for_width() is used to calculate the bytesPerRow()
for Cairo port.
- platform/graphics/cg/ImageBufferCGBackend.cpp:
(WebCore::ImageBufferCGBackend::calculateBytesPerRow):
- platform/graphics/cg/ImageBufferCGBackend.h:
This is the CG case when the backend is 4-bytes aligned rows.
- platform/graphics/cg/ImageBufferCGBitmapBackend.cpp:
(WebCore::ImageBufferCGBitmapBackend::calculateSafeBackendSize):
(WebCore::ImageBufferCGBitmapBackend::calculateMemoryCost):
(WebCore::ImageBufferCGBitmapBackend::create):
(WebCore::ImageBufferCGBitmapBackend::bytesPerRow const):
- platform/graphics/cg/ImageBufferCGBitmapBackend.h:
This is the CG bitmap case where the backend is 4-bytes aligned rows.
- platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp:
(WebCore::ImageBufferIOSurfaceBackend::calculateSafeBackendSize):
(WebCore::ImageBufferIOSurfaceBackend::calculateBytesPerRow):
(WebCore::ImageBufferIOSurfaceBackend::calculateMemoryCost):
(WebCore::ImageBufferIOSurfaceBackend::calculateExternalMemoryCost):
(WebCore::ImageBufferIOSurfaceBackend::create):
(WebCore::ImageBufferIOSurfaceBackend::context const):
(WebCore::ImageBufferIOSurfaceBackend::calculateBackendSize): Deleted.
(WebCore::ImageBufferIOSurfaceBackend::memoryCost const): Deleted.
(WebCore::ImageBufferIOSurfaceBackend::externalMemoryCost const): Deleted.
- platform/graphics/cg/ImageBufferIOSurfaceBackend.h:
IOSurfaceAlignProperty() is used to align the CG bytesPerRow to the proper
IOSurface alignment.
Source/WebKit:
- Shared/ShareableBitmap.h:
Make ShareableBitmap::calculateBytesPerRow() public.
- WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.cpp:
(WebKit::ImageBufferShareableBitmapBackend::configuration):
(WebKit::ImageBufferShareableBitmapBackend::calculateSafeBackendSize):
(WebKit::ImageBufferShareableBitmapBackend::calculateBytesPerRow):
(WebKit::ImageBufferShareableBitmapBackend::calculateMemoryCost):
(WebKit::ImageBufferShareableBitmapBackend::create):
- WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.h:
ShareableBitmap::calculateBytesPerRow() is used to get the bytesPerRow()
by giving it the scaled backend size.
- WebProcess/GPU/graphics/RemoteImageBufferProxy.h:
(WebKit::RemoteImageBufferProxy::create):
Use the new name of the function calculateSafeBackendSize().
- WebProcess/GPU/graphics/cocoa/ImageBufferShareableIOSurfaceBackend.cpp:
(WebKit::ImageBufferShareableIOSurfaceBackend::calculateSafeBackendSize):
(WebKit::ImageBufferShareableIOSurfaceBackend::calculateMemoryCost):
(WebKit::ImageBufferShareableIOSurfaceBackend::calculateExternalMemoryCost):
(WebKit::ImageBufferShareableIOSurfaceBackend::bytesPerRow const):
- WebProcess/GPU/graphics/cocoa/ImageBufferShareableIOSurfaceBackend.h:
Implement these static functions and make them call the corresponding
functions from ImageBufferIOSurfaceBackend because this class is derived
from ImageBufferBackend.
- WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBackend.cpp:
(WebKit::ImageBufferShareableMappedIOSurfaceBackend::create):
Use the new name of the function calculateSafeBackendSize().
- 1:09 PM Changeset in webkit [275904] by
-
- 2 edits in trunk/Source/WebCore
Web Inspector: Forced color scheme should reset on page refresh
https://bugs.webkit.org/show_bug.cgi?id=224485
<rdar://76227216>
Reviewed by BJ Burg.
Reset the forced color scheme on page reload to keep in sync with Web Inspector
behavior for other forced states, like pseudo-classes.
- page/Page.cpp:
(WebCore::Page::didCommitLoad):
- 1:06 PM Changeset in webkit [275903] by
-
- 3 edits in branches/safari-612.1.11-branch/Source/WebKit
Cherry-pick r275898. rdar://problem/76520529
[Cocoa] remove link-time dependency on WebKitSwift
https://bugs.webkit.org/show_bug.cgi?id=224493
Reviewed by Eric Carlson.
- Configurations/WebKit.xcconfig:
- WebKit.xcodeproj/project.pbxproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- 12:56 PM Changeset in webkit [275902] by
-
- 2 edits in trunk/Source/JavaScriptCore
Use a JSString for the TerminationException value instead of a Symbol.
https://bugs.webkit.org/show_bug.cgi?id=224490
Reviewed by Yusuke Suzuki.
This makes it convertible to a String for clients that wish to report the exception.
Clients, in this case, does not apply to JS code, only C++ code that catches the
exception at the outermost point to handle the termination. The TerminationException
value is not visible to JS code because the TerminationException cannot be caught.
So, this change is transparent to JS code.
- runtime/VM.cpp:
(JSC::VM::ensureTerminationException):
- 12:54 PM Changeset in webkit [275901] by
-
- 5 edits in trunk
[WTF] Add Vector&& move constructor / assignment to FixedVector and RefCountedArray
https://bugs.webkit.org/show_bug.cgi?id=224475
Reviewed by Ryosuke Niwa.
Source/WTF:
This patch adds move constructor and move-assignment taking Vector to FixedVector / RefCountedArray.
This allows transferring MoveOnly things from Vector to FixedVector.
- wtf/FixedVector.h:
(WTF::FixedVector::FixedVector):
(WTF::FixedVector::operator=):
- wtf/RefCountedArray.h:
(WTF::RefCountedArray::RefCountedArray):
(WTF::RefCountedArray::operator=):
(WTF::RefCountedArray::~RefCountedArray):
(WTF::RefCountedArray::allocateUninitializedData):
(WTF::RefCountedArray::assign):
Tools:
- TestWebKitAPI/Tests/WTF/FixedVector.cpp:
(TestWebKitAPI::TEST):
- 12:51 PM Changeset in webkit [275900] by
-
- 5 edits in trunk
Remove SharedBuffer's equality operators with Ref<SharedBuffer>
https://bugs.webkit.org/show_bug.cgi?id=224464
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Chris Dumez.
Source/WebCore:
No change in behavior.
I'm doing this to make a Ref comparator for all Refs to remove another reason we use RefPtr instead of Ref, even when they're all non-null.
See bug 224412
- platform/SharedBuffer.h:
(WebCore::operator==): Deleted.
(WebCore::operator!=): Deleted.
- platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::CDMInstanceFairPlayStreamingAVFObjC::sessionForKeyIDs const):
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::updateLicense):
Tools:
- TestWebKitAPI/Tests/WebCore/SharedBuffer.cpp:
(TestWebKitAPI::TEST_F):
- 12:46 PM Changeset in webkit [275899] by
-
- 6 edits in trunk/Source
Revert r275172
https://bugs.webkit.org/show_bug.cgi?id=224499
<rdar://76396241>
Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-13
Reviewed by Tim Horton.
Source/WebKit:
It turns out that terminate_with_reason uses a different syscall than xpc_connection_kill in its implementation,
and the former is not allowed by Messages's sandbox yet. Revert for Messages until they add it.
- Platform/IPC/cocoa/ConnectionCocoa.mm:
(IPC::ConnectionTerminationWatchdog::watchdogTimerFired):
(IPC::Connection::kill):
- Platform/spi/Cocoa/ReasonSPI.h:
- UIProcess/Launcher/mac/ProcessLauncherMac.mm:
(WebKit::ProcessLauncher::platformInvalidate):
(WebKit::terminateWithReason):
Source/WTF:
- wtf/spi/darwin/XPCSPI.h:
- 12:10 PM Changeset in webkit [275898] by
-
- 3 edits in trunk/Source/WebKit
[Cocoa] remove link-time dependency on WebKitSwift
https://bugs.webkit.org/show_bug.cgi?id=224493
Reviewed by Eric Carlson.
- Configurations/WebKit.xcconfig:
- WebKit.xcodeproj/project.pbxproj:
- 11:35 AM Changeset in webkit [275897] by
-
- 3 edits in trunk/Source/WebCore
AudioSourceProviderAVFObjC should check for m_client when dispatching setFormat
https://bugs.webkit.org/show_bug.cgi?id=224479
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-04-13
Reviewed by Eric Carlson.
Use a weak pointer to schedule the setFormat client callback.
If client is unset before any callback is run, cancel the
pending callbacks.
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.h:
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::destroyMixIfNeeded):
(WebCore::AudioSourceProviderAVFObjC::createMixIfNeeded):
(WebCore::AudioSourceProviderAVFObjC::prepare):
- 11:31 AM Changeset in webkit [275896] by
-
- 3 edits in trunk/Source/WebCore
AudioSourceProviderAVFObjC::setClient should check for m_avAssetTrack
https://bugs.webkit.org/show_bug.cgi?id=224478
Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-04-13
Reviewed by Eric Carlson.
Check for m_avAssetTrack when setting the client.
This is done for consistency, it is unclear if this affects
real world content.
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.h:
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::setClient):
(WebCore::AudioSourceProviderAVFObjC::setPlayerItem):
(WebCore::AudioSourceProviderAVFObjC::setAudioTrack):
(WebCore::AudioSourceProviderAVFObjC::destroyMixIfNeeded):
(WebCore::AudioSourceProviderAVFObjC::createMixIfNeeded):
- 11:29 AM Changeset in webkit [275895] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, reverting r275867.
https://bugs.webkit.org/show_bug.cgi?id=224495
Need alternate fix.
Reverted changeset:
"Reduce functionWithHellaArguments3()'s number of arguments
from 5000 to 500."
https://bugs.webkit.org/show_bug.cgi?id=224474
https://trac.webkit.org/changeset/275867
- 10:52 AM Changeset in webkit [275894] by
-
- 4 edits in trunk
[iOS] Only use the theme color if it's valid when
UseThemeColorForScrollAreaBackgroundColoris enabled
https://bugs.webkit.org/show_bug.cgi?id=224455
Reviewed by Wenson Hsieh.
Source/WebKit:
Without a check for
isValid(), them_themeColorwould always be used, even if not set.
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::scrollAreaBackgroundColor const):
Tools:
- TestWebKitAPI/Tests/WebKitCocoa/HTMLMetaThemeColor.mm:
(createWebView): Added.
(TEST.HTMLMetaThemeColor.ExperimentalUseThemeColorForScrollAreaBackgroundColor): Added.
- 10:42 AM Changeset in webkit [275893] by
-
- 2 edits in trunk/Source/WebKit
Fix typo in GPUProcessConnection::enableVP9Decoders()
https://bugs.webkit.org/show_bug.cgi?id=224491
Reviewed by Darin Adler.
- WebProcess/GPU/GPUProcessConnection.cpp:
(WebKit::GPUProcessConnection::enableVP9Decoders):
- 9:55 AM Changeset in webkit [275892] by
-
- 8 edits in trunk/Source
Unreviewed, reverting r275889.
https://bugs.webkit.org/show_bug.cgi?id=224488
Unintentional commit
Reverted changeset:
- 9:53 AM Changeset in webkit [275891] by
-
- 10 edits in trunk/Source
Make WebIDBServer not block main thread during initialization
https://bugs.webkit.org/show_bug.cgi?id=224299
Reviewed by Geoffrey Garen.
Source/WebCore:
- Modules/indexeddb/server/IDBServer.cpp:
(WebCore::IDBServer::IDBServer::IDBServer):
- Modules/indexeddb/server/IDBServer.h:
(WebCore::IDBServer::IDBServer::lock): Deleted.
- Modules/indexeddb/server/UniqueIDBDatabase.cpp:
(WebCore::IDBServer::UniqueIDBDatabase::abortActiveTransactions):
Source/WebKit:
Move Lock from WebCore::IDBServer to WebIDBServer so we can block background thread in suspend() when m_server
is uninitialized.
- NetworkProcess/IndexedDB/WebIDBServer.cpp:
(WebKit::m_closeCallback):
(WebKit::WebIDBServer::getOrigins):
(WebKit::WebIDBServer::closeAndDeleteDatabasesModifiedSince):
(WebKit::WebIDBServer::closeAndDeleteDatabasesForOrigins):
(WebKit::WebIDBServer::renameOrigin):
(WebKit::WebIDBServer::suspend):
(WebKit::WebIDBServer::resume):
(WebKit::WebIDBServer::openDatabase):
(WebKit::WebIDBServer::deleteDatabase):
(WebKit::WebIDBServer::abortTransaction):
(WebKit::WebIDBServer::commitTransaction):
(WebKit::WebIDBServer::didFinishHandlingVersionChangeTransaction):
(WebKit::WebIDBServer::createObjectStore):
(WebKit::WebIDBServer::deleteObjectStore):
(WebKit::WebIDBServer::renameObjectStore):
(WebKit::WebIDBServer::clearObjectStore):
(WebKit::WebIDBServer::createIndex):
(WebKit::WebIDBServer::deleteIndex):
(WebKit::WebIDBServer::renameIndex):
(WebKit::WebIDBServer::putOrAdd):
(WebKit::WebIDBServer::getRecord):
(WebKit::WebIDBServer::getAllRecords):
(WebKit::WebIDBServer::getCount):
(WebKit::WebIDBServer::deleteRecord):
(WebKit::WebIDBServer::openCursor):
(WebKit::WebIDBServer::iterateCursor):
(WebKit::WebIDBServer::establishTransaction):
(WebKit::WebIDBServer::databaseConnectionPendingClose):
(WebKit::WebIDBServer::databaseConnectionClosed):
(WebKit::WebIDBServer::abortOpenAndUpgradeNeeded):
(WebKit::WebIDBServer::didFireVersionChangeEvent):
(WebKit::WebIDBServer::openDBRequestCancelled):
(WebKit::WebIDBServer::getAllDatabaseNamesAndVersions):
(WebKit::WebIDBServer::addConnection):
(WebKit::WebIDBServer::removeConnection):
(WebKit::WebIDBServer::close):
- NetworkProcess/IndexedDB/WebIDBServer.h:
Source/WebKitLegacy:
- Storage/InProcessIDBServer.cpp:
(InProcessIDBServer::InProcessIDBServer):
(InProcessIDBServer::deleteDatabase):
(InProcessIDBServer::openDatabase):
(InProcessIDBServer::abortTransaction):
(InProcessIDBServer::commitTransaction):
(InProcessIDBServer::didFinishHandlingVersionChangeTransaction):
(InProcessIDBServer::createObjectStore):
(InProcessIDBServer::deleteObjectStore):
(InProcessIDBServer::renameObjectStore):
(InProcessIDBServer::clearObjectStore):
(InProcessIDBServer::createIndex):
(InProcessIDBServer::deleteIndex):
(InProcessIDBServer::renameIndex):
(InProcessIDBServer::putOrAdd):
(InProcessIDBServer::getRecord):
(InProcessIDBServer::getAllRecords):
(InProcessIDBServer::getCount):
(InProcessIDBServer::deleteRecord):
(InProcessIDBServer::openCursor):
(InProcessIDBServer::iterateCursor):
(InProcessIDBServer::establishTransaction):
(InProcessIDBServer::databaseConnectionPendingClose):
(InProcessIDBServer::databaseConnectionClosed):
(InProcessIDBServer::abortOpenAndUpgradeNeeded):
(InProcessIDBServer::didFireVersionChangeEvent):
(InProcessIDBServer::openDBRequestCancelled):
(InProcessIDBServer::getAllDatabaseNamesAndVersions):
(InProcessIDBServer::closeAndDeleteDatabasesModifiedSince):
- Storage/InProcessIDBServer.h:
- 9:50 AM Changeset in webkit [275890] by
-
- 2 edits in trunk/Tools
REGRESSION (r275792): [ iOS wk2 ] TestWebKitAPI.IndexedDB.DatabaseProcessKill is a flakey timeout
https://bugs.webkit.org/show_bug.cgi?id=224454
Reviewed by Brady Eidson, Sihui Liu.
This test was racey; the content ran script immediately, and it was possible for
the first set of messages to be received before -_test_waitForDidFinishNavigation
returned; the test would then stall because nothing triggered any more messages.
Fix by having the content run the tests from a function, and call that function
from the test. Also handle the case where receivedScriptMessage can be true
before entering the first TestWebKitAPI::Util::run().
- TestWebKitAPI/Tests/WebKitCocoa/IndexedDBDatabaseProcessKill-1.html:
- TestWebKitAPI/Tests/WebKitCocoa/IndexedDBDatabaseProcessKill.mm:
(TEST):
- 9:50 AM Changeset in webkit [275889] by
-
- 6 edits in trunk/Source
Try not to schedule updates every time
- 9:47 AM Changeset in webkit [275888] by
-
- 5 edits in trunk/Tools
Test objects should know if they need servers
https://bugs.webkit.org/show_bug.cgi?id=224442
Reviewed by Jonathan Bedard.
This also removes the unused Manager.needs_servers
- Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py:
(LayoutTestFinder.init): Move known paths from Manager.init
(LayoutTestFinder.find_tests_by_path):
- Scripts/webkitpy/layout_tests/controllers/manager.py:
(Manager.init):
(Manager._is_http_test): Deleted.
(Manager._is_websocket_test): Deleted.
(Manager._needs_web_platform_test): Deleted.
(Manager._http_tests): Deleted.
(Manager._tests_to_run):
(Manager._test_input_for_file):
(Manager.needs_servers): Deleted.
(Manager.run):
- Scripts/webkitpy/layout_tests/controllers/manager_unittest.py:
(ManagerTest.test_needs_servers): Deleted.
(ManagerTest.integration_test_needs_servers): Deleted.
- Scripts/webkitpy/layout_tests/models/test.py:
(Test):
(Test.needs_http_server):
(Test.needs_websocket_server):
(Test.needs_wpt_server):
(Test.needs_any_server):
- 9:36 AM Changeset in webkit [275887] by
-
- 11 edits in trunk
The GPUProcess should only launch when it is needed
https://bugs.webkit.org/show_bug.cgi?id=224461
Reviewed by Eric Carlson.
Source/WebKit:
The GPUProcess should only launch when it is needed. This avoids wasting memory
on simple pages, especially until we enable "DOM rendering in GPU Process".
- WebProcess/GPU/GPUProcessConnection.cpp:
(WebKit::GPUProcessConnection::GPUProcessConnection):
As soon as we create a GPUProcessConnection, if "Media in GPUProcess" is enabled
we do some media-related initialization that we used to do in
WebProcess::setUseGPUProcessForMedia(). setUseGPUProcessForMedia() gets called
when constructing a WebPage and this initialization requires a GPUProcess. We
thus want to delay the initialization until we actually need a GPUProcess.
(WebKit::GPUProcessConnection::enableVP9Decoders):
Rename function to make it clear it is only used for VP9.
- WebProcess/GPU/GPUProcessConnection.h:
- WebProcess/GPU/media/RemoteAudioSession.cpp:
(WebKit::RemoteAudioSession::create):
(WebKit::RemoteAudioSession::RemoteAudioSession):
(WebKit::RemoteAudioSession::~RemoteAudioSession):
(WebKit::RemoteAudioSession::gpuProcessConnectionDidClose):
(WebKit::RemoteAudioSession::ensureConnection):
(WebKit::RemoteAudioSession::configuration const):
(WebKit::RemoteAudioSession::configuration):
(WebKit::RemoteAudioSession::setCategory):
(WebKit::RemoteAudioSession::setPreferredBufferSize):
(WebKit::RemoteAudioSession::tryToSetActiveInternal):
(WebKit::RemoteAudioSession::category const):
(WebKit::RemoteAudioSession::configurationChanged):
- WebProcess/GPU/media/RemoteAudioSession.h:
Update RemoteAudioSession to lazily initiate the GPUProcess connection instead
of doing it on construction. The RemoteAudioSession gets created as soon as we
create a WebPage, at which point we may not need a GPUProcess yet.
- WebProcess/GPU/media/ios/RemoteMediaSessionHelper.cpp:
(WebKit::RemoteMediaSessionHelper::RemoteMediaSessionHelper):
(WebKit::RemoteMediaSessionHelper::ensureConnection):
(WebKit::RemoteMediaSessionHelper::gpuProcessConnectionDidClose):
(WebKit::RemoteMediaSessionHelper::startMonitoringWirelessRoutesInternal):
(WebKit::RemoteMediaSessionHelper::stopMonitoringWirelessRoutesInternal):
(WebKit::RemoteMediaSessionHelper::providePresentingApplicationPID):
- WebProcess/GPU/media/ios/RemoteMediaSessionHelper.h:
Update RemoteMediaSessionHelper to lazily initiate the GPUProcess connection instead
of doing it on construction. The RemoteAudioSession gets created as soon as we
create a WebPage, at which point we may not need a GPUProcess yet.
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
- Update GPUProcessConnection::updateParameters() call to enableVP9Decoders() due to rename. This makes it clear it is only useful for VP9. We also only call it if there is already a GPUProcess connection. If there is no connection right now, the GPUProcessConnection constructor will take care of getting the latest values from the PlatformMediaSessionManager and send them to the GPUProcess.
- Call ensureRemoteRenderingBackendProxy() only if we already have a GPUProcessConnection, to avoid eagerly launching the GPUProcess. If no GPUProcessConnection exists, WebProcess::ensureGPUProcessConnection() will take care of calling ensureRemoteRenderingBackendProxy() on its pages.
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::ensureGPUProcessConnection):
This logic used to happen in WebPage::updatePreferences(). However, I had to make it conditional on
have a GPUProcessConnection to avoid eagerly launching the GPUProcess. As a result, I now need some
logic when we initiate the GPUProcessConnection to call ensureRemoteRenderingBackendProxy() on the
WebPages. Note that this is a temporary workaround until we enable DOM Rendering in the GPUProcess.
(WebKit::WebProcess::setUseGPUProcessForMedia):
setUseGPUProcessForMedia() gets called when constructing a WebPage, at which point a GPUProcess is
not useful yet. As a result, we should make sure setUseGPUProcessForMedia() does not call
ensureGPUProcessConnection() to avoid eagerly launching the GPUProcess and potentially wasting memory.
To fix this, I moved some of the logic to the GPUProcessConnection constructor so that we do the
media-related GPUProcess initialization ONLY once we actually have a GPUProcess.
Tools:
Add layout test coverage.
- TestWebKitAPI/Tests/WebKitCocoa/GPUProcess.mm:
(TEST):
- 8:55 AM Changeset in webkit [275886] by
-
- 5 edits in trunk/Source/WebKit
StorageArea in LocalStorageNamespace can be abandoned
https://bugs.webkit.org/show_bug.cgi?id=224459
Reviewed by Geoffrey Garen.
Remove StorageArea from LocalStorageNamespace if it has no connection (no web page is using it).
- NetworkProcess/WebStorage/LocalStorageNamespace.cpp:
(WebKit::LocalStorageNamespace::removeStorageArea):
- NetworkProcess/WebStorage/LocalStorageNamespace.h:
- NetworkProcess/WebStorage/StorageArea.cpp:
(WebKit::StorageArea::removeListener):
- NetworkProcess/WebStorage/StorageManagerSet.cpp:
(WebKit::StorageManagerSet::removeConnection):
(WebKit::StorageManagerSet::disconnectFromStorageArea):
- 8:30 AM Changeset in webkit [275885] by
-
- 2 edits in trunk/Tools
[GTK4] WTR crash in PlatformWebView::dismissAllPopupMenus()
https://bugs.webkit.org/show_bug.cgi?id=224487
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-04-13
Reviewed by Philippe Normand.
This is because we are using a for loop to iterate children that are destroyed. We should not be destroying the
children, though, we should just hide them, since they are owned by the web view.
- WebKitTestRunner/gtk/PlatformWebViewGtk.cpp:
(WTR::PlatformWebView::dismissAllPopupMenus):
- 7:20 AM Changeset in webkit [275884] by
-
- 1 edit8 deletes in trunk/Tools
Delete various old EWS specific scripts
https://bugs.webkit.org/show_bug.cgi?id=224460
Reviewed by Alexey Proskuryakov.
- EWSTools/Start-Queue.ps1: Removed.
- EWSTools/boot.sh: Removed.
- EWSTools/build-boot-cmd.sh: Removed.
- EWSTools/screen-config: Removed.
- EWSTools/start-queue-mac.sh: Removed.
- EWSTools/start-queue-win.sh: Removed.
- EWSTools/start-queue.sh: Removed.
- EWSTools/ubuntu-ews-packages: Removed.
- 7:10 AM Changeset in webkit [275883] by
-
- 5 edits2 adds in trunk
[macOS] Netflix videos opened in background tab never become playable after foregrounding
https://bugs.webkit.org/show_bug.cgi?id=224384
Reviewed by Eric Carlson.
Source/WebKit:
When a page calls
navigator.requestMediaKeySystemAccess()in a background tab, the request
will be added to a pending request hash map. However, the current implementation of
MediaKeySystemPermissionRequestManagerdoes not send the request when the tab switches
to foreground. This patch fixes this issue by adding theMediaKeySystemPermissionRequestManager
object as aMediaCanStartListenerofDocument, so that it will send its pending requests
when the tab switches to foreground (mediaCanStart()).
- WebKit.xcodeproj/project.pbxproj: Add two cpp files to the xcode project.
- WebProcess/EncryptedMedia/MediaKeySystemPermissionRequestManager.cpp:
Add the object as a
MediaCanStartListenerso that it can send theMediaKeySystemRequest
to the UI process when the tab switches to foreground.
(WebKit::MediaKeySystemPermissionRequestManager::startMediaKeySystemRequest):
(WebKit::MediaKeySystemPermissionRequestManager::cancelMediaKeySystemRequest):
(WebKit::MediaKeySystemPermissionRequestManager::mediaCanStart):
- WebProcess/EncryptedMedia/MediaKeySystemPermissionRequestManager.h:
LayoutTests:
- media/encrypted-media/mock-navigator-requestMediaKeySystemAccess-in-background-expected.txt: Added.
- media/encrypted-media/mock-navigator-requestMediaKeySystemAccess-in-background.html: Added.
- 7:08 AM Changeset in webkit [275882] by
-
- 3 edits2 adds in trunk
ASSERTION FAILED: !m_needExceptionCheck in CloneSerializer::serialize with postMessage({g:42})
https://bugs.webkit.org/show_bug.cgi?id=223785
Patch by Frédéric Wang <fwang@igalia.com> on 2021-04-13
Reviewed by Yusuke Suzuki.
Source/WebCore:
Test: js/dom/missing-exception-check-in-clone-serializer-serialize.html
- bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneSerializer::serialize): Use a local throw scope within this method and
handle potential exceptions.
(WebCore::CloneBase::shouldTerminate): Deleted.
LayoutTests:
Add regression test.
- js/dom/missing-exception-check-in-clone-serializer-serialize-expected.txt: Added.
- js/dom/missing-exception-check-in-clone-serializer-serialize.html: Added.
- 6:21 AM Changeset in webkit [275881] by
-
- 2 edits in trunk/JSTests
[JSC] Unskip stress/intl-displaynames.js on ARM
https://bugs.webkit.org/show_bug.cgi?id=224427
Unreviewed test gardening.
- stress/intl-displaynames.js:
- 4:38 AM Changeset in webkit [275880] by
-
- 4 edits in trunk
[GTK][WPE] Avif decoder build broken
https://bugs.webkit.org/show_bug.cgi?id=224232
Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-13
Reviewed by Carlos Garcia Campos.
.:
- Source/cmake/OptionsGTK.cmake: Require 0.9.0 due to avifIO usage in the decoder.
Source/WebCore:
libavif 0.9.0 introduces an API break. avifDecoderParse() no
longer takes the image data as input. Instead, an avifIO object
needs to be associated with an avifDecoder and the avifDecoder
calls the read() method of the avifIO object to read image data
incrementally.
- platform/image-decoders/avif/AVIFImageReader.cpp:
(WebCore::AVIFImageReader::parseHeader):
(WebCore::AVIFImageReader::decodeFrame):
- 4:13 AM WebKitGTK/2.32.x edited by
- (diff)
- 4:11 AM Changeset in webkit [275879] by
-
- 177 edits1 copy5 moves17 adds19 deletes in trunk/LayoutTests
Unreviewed, reverting r275849.
https://bugs.webkit.org/show_bug.cgi?id=224476
caused few tests to flake
Reverted changeset:
"[LayoutTests] Convert http/tests/security convert PHP to
Python"
https://bugs.webkit.org/show_bug.cgi?id=222668
https://trac.webkit.org/changeset/275849
- 3:53 AM Changeset in webkit [275878] by
-
- 3 edits in trunk/Source/WebCore
[GStreamer] CaptureDevice monitoring is not implemented
https://bugs.webkit.org/show_bug.cgi?id=222889
Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-13
Reviewed by Xabier Rodriguez-Calvar.
GStreamer capture device events are notified through a message bus associated to the the
GstDeviceMonitor, so we need to watch out for those messages and notify the
RealtimeSourceMediaCenter accordingly.
- platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:
(WebCore::GStreamerCaptureDeviceManager::~GStreamerCaptureDeviceManager):
(WebCore::GStreamerCaptureDeviceManager::captureDevices):
(WebCore::GStreamerCaptureDeviceManager::addDevice):
(WebCore::GStreamerCaptureDeviceManager::refreshCaptureDevices):
- platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.h:
- 3:26 AM Changeset in webkit [275877] by
-
- 4 edits2 adds in trunk
ASSERTION FAILED: !m_needExceptionCheck in RTCPeerConnection::CertificateParameters
https://bugs.webkit.org/show_bug.cgi?id=223788
Patch by Frédéric Wang <fwang@igalia.com> on 2021-04-13
Reviewed by Ryosuke Niwa.
Source/WebCore:
Test: js/dom/missing-exception-check-in-convertNumbers.html
- bindings/js/JSDOMConvertNumbers.h:
(WebCore::Converter<IDLFloat>::convert): Handle potential exceptions thrown by toNumber.
(WebCore::Converter<IDLDouble>::convert): Ditto.
LayoutTests:
Add regression test.
- js/dom/missing-exception-check-in-convertNumbers-expected.txt: Added.
- js/dom/missing-exception-check-in-convertNumbers.html: Added.
- platform/win/TestExpectations: Skip test on windows since there is no WebRTC support.
- 3:17 AM Changeset in webkit [275876] by
-
- 3 edits in trunk/Source/WebCore
Skip style update
https://bugs.webkit.org/show_bug.cgi?id=223365
Patch by Rob Buis <rbuis@igalia.com> on 2021-04-13
Reviewed by Ryosuke Niwa.
Skip style update for getting the SVG bounding box
since boundingClientRect already updated style.
- dom/Element.cpp:
(WebCore::Element::boundingAbsoluteRectWithoutLayout):
- svg/SVGElement.cpp:
(WebCore::SVGElement::getBoundingBox):
- 3:04 AM Changeset in webkit [275875] by
-
- 3 edits in trunk/LayoutTests/imported/w3c
Unreviewed. Upstream a test.
- web-platform-tests/css/css-backgrounds/animations/background-position-origin-interpolation-expected.txt:
- web-platform-tests/css/css-backgrounds/animations/background-position-origin-interpolation.html:
- 2:26 AM Changeset in webkit [275874] by
-
- 3 edits2 adds in trunk
SFrameTransform should be able to take array buffer views as input
https://bugs.webkit.org/show_bug.cgi?id=224437
Reviewed by Eric Carlson.
Source/WebCore:
Add support for processing ArrayBufferView.
We still output ArrayBuffer as output.
Test: webrtc/sframe-transform-buffer-source.html
- Modules/mediastream/RTCRtpSFrameTransform.cpp:
(WebCore::transformFrame):
(WebCore::RTCRtpSFrameTransform::createStreams):
LayoutTests:
- webrtc/sframe-transform-buffer-source-expected.txt: Added.
- webrtc/sframe-transform-buffer-source.html: Added.
- 2:14 AM Changeset in webkit [275873] by
-
- 8 edits1 add in trunk
[css-flexbox] CDC COVID Vaccine Tracker: Safari garbles data table
https://bugs.webkit.org/show_bug.cgi?id=222581
Reviewed by Zalan Bujtas.
PerformanceTests:
- Layout/nested-flexboxes-percentage-flex-basis.html: Added.
Source/WebCore:
With nested flexboxes in which the flex-basis is a percentage the current code that stretches the item forces a relayout
of the children because it thinks it has percentage height descendants. That happens because we call
computePercentageLogicalHeights() with a mock percentage length to check whether a size is definite and that call performs
the addPercentageHeightDescendants() call. We should avoid calling the latter in those cases as we're just trying to
figure out whether we can compute the flex-basis used value or not.
Adding a new parameter to the aforementioned method so that the percentage height descendants map could be left untouched
in those cases where we just want to test size definiteness.
Apart from making the implementation more correct this brings some performance improvements for the cases described in the
first paragraph as it can be seen in the provided performance test (24.5% of improvement).
- rendering/RenderBox.cpp:
(WebCore::RenderBox::computePercentageLogicalHeight const):
- rendering/RenderBox.h:
- rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::canComputePercentageFlexBasis const):
(WebCore::RenderFlexibleBox::childMainSizeIsDefinite const):
(WebCore::RenderFlexibleBox::useChildOverridingMainSizeForPercentageResolution):
- rendering/RenderFlexibleBox.h:
LayoutTests:
- TestExpectations: Unskipped a WPT test which is now passing.
- 2:05 AM Changeset in webkit [275872] by
-
- 2 edits in trunk/Source/WebCore
Use WTF::compactMap in HTMLSlotElement
https://bugs.webkit.org/show_bug.cgi?id=224470
Reviewed by Antti Koivisto.
Cleaned up the code in assignedNodes and assignedElements with WTF::compactMap.
- html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::assignedNodes const):
(WebCore::HTMLSlotElement::assignedElements const):
- 1:38 AM Changeset in webkit [275871] by
-
- 9 edits in trunk/Source
[GStreamer] CaptureDevice monitor used from UIProcess
https://bugs.webkit.org/show_bug.cgi?id=222888
Patch by Philippe Normand <pnormand@igalia.com> on 2021-04-13
Source/WebCore:
Reviewed by Youenn Fablet .
Move the device observer infrastructure from the WebKit UserMediaProcessManager to the
RealtimeMediaSourceCenter.
- platform/mediastream/CaptureDevice.h:
(WebCore::haveDevicesChanged):
- platform/mediastream/RealtimeMediaSourceCenter.cpp:
(WebCore::RealtimeMediaSourceCenter::RealtimeMediaSourceCenter):
(WebCore::RealtimeMediaSourceCenter::Observer::~Observer):
(WebCore::RealtimeMediaSourceCenter::addDevicesChangedObserver):
(WebCore::RealtimeMediaSourceCenter::removeDevicesChangedObserver):
(WebCore::RealtimeMediaSourceCenter::captureDevicesChanged):
(WebCore::RealtimeMediaSourceCenter::triggerDevicesChangedObservers):
(WebCore::RealtimeMediaSourceCenter::setDevicesChangedObserver): Deleted.
- platform/mediastream/RealtimeMediaSourceCenter.h:
(WebCore::RealtimeMediaSourceCenter::Observer::devicesChanged):
Source/WebKit:
Reviewed by Youenn Fablet.
GStreamer ports aim to reduce usage of the GStreamer library in the UIProcess and thus
should not relay capture devicechange monitoring to the UIProcess. For the long term we plan
to migrate media processing to the GPUProcess but for now we have to maintain the media
pipelines in the WebProcess. Initializing GStreamer in multiple processes (including the
UIProcess) has a significant performance impact on embedded platforms, that's why we try to
avoid it as much as possible.
The device monitoring code from the UserMediaProcessManager was partly moved to the
RealtimeMediaSourceCenter so that it can be easily reused by GStreamer ports from the
UserMediaPermissionRequestManager.
- UIProcess/UserMediaProcessManager.cpp:
(WebKit::UserMediaProcessManager::UserMediaProcessManager):
(WebKit::UserMediaProcessManager::updateCaptureDevices):
(WebKit::UserMediaProcessManager::devicesChanged):
(WebKit::UserMediaProcessManager::beginMonitoringCaptureDevices):
- UIProcess/UserMediaProcessManager.h:
- WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp:
(WebKit::UserMediaPermissionRequestManager::UserMediaPermissionRequestManager):
(WebKit::UserMediaPermissionRequestManager::updateCaptureDevices):
(WebKit::UserMediaPermissionRequestManager::DeviceObserver::devicesChanged):
(WebKit::UserMediaPermissionRequestManager::addDeviceChangeObserver):
- WebProcess/MediaStream/UserMediaPermissionRequestManager.h:
(WebKit::UserMediaPermissionRequestManager::DeviceObserver::DeviceObserver):
- 1:34 AM Changeset in webkit [275870] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, casting to unsigned long long to suppress warning
https://bugs.webkit.org/show_bug.cgi?id=224473
- b3/B3ConstDoubleValue.cpp:
(JSC::B3::ConstDoubleValue::dumpMeta const):
- 1:08 AM Changeset in webkit [275869] by
-
- 20 edits in trunk
calc() simplification for a multiplication should apply the multiplication to each value of an addition
https://bugs.webkit.org/show_bug.cgi?id=224376
Reviewed by Simon Fraser.
LayoutTests/imported/w3c:
Mark 99 WPT progressions.
- web-platform-tests/css/css-backgrounds/animations/background-position-origin-interpolation-expected.txt:
- web-platform-tests/css/css-shapes/animation/shape-outside-interpolation-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-margin-003-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-010-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-circle-011-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-010-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-ellipse-011-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-008-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-inset-009-expected.txt:
- web-platform-tests/css/css-shapes/shape-outside/values/shape-outside-polygon-006-expected.txt:
- web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt:
Source/WebCore:
An expression such as calc(0.5 * (100% + 100px)) should be simplified to calc(50% + 50px). We produce
these types of expressions when blending between a percentage and a dimension, and they can also be
specified explicitly in style.
- css/CSSCalculationValue.cpp:
(WebCore::CSSCalcOperationNode::combineChildren):
LayoutTests:
Rebase some non-WPT tests to account for new results.
- css3/calc/simplification-expected.txt:
- transitions/background-position-transitions-expected.txt:
- transitions/background-position-transitions.html:
- 1:05 AM Changeset in webkit [275868] by
-
- 6 edits2 adds in trunk
SVG paced value animations overwrite user-provided keyTimes
https://bugs.webkit.org/show_bug.cgi?id=109010
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
- web-platform-tests/svg/animations/scripted/paced-value-animation-overwrites-keyTimes-expected.txt:
Source/WebCore:
If the calcMode is Paced, the 'keyTimes' attribute is ignored. Distances
between the 'values' are used produce an even pace of change across the
animation.
When changing calcMode, times defined in the 'keyTimes' attribute should
be used instead. To fix this, SVGAnimationElement can maintain two lists
for keyTimes: (1) keyTimesFromAttribute (2) keyTimesForPaced.
One of these lists will be picked by a new function 'keyTimes()' based
on the current calcMode.
Specs: https://www.w3.org/TR/SVG11/animate.html#CalcModeAttribute
Test: svg/animations/animate-calcMode-paced-overwrite-key-times.html
- svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::parseAttribute):
(WebCore::SVGAnimationElement::calculateKeyTimesForCalcModePaced):
(WebCore::SVGAnimationElement::keyTimes const):
(WebCore::SVGAnimationElement::calculateKeyTimesIndex const):
(WebCore::SVGAnimationElement::calculatePercentFromKeyPoints const):
(WebCore::SVGAnimationElement::calculatePercentForFromTo const):
(WebCore::SVGAnimationElement::currentValuesFromKeyPoints const):
(WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
(WebCore::SVGAnimationElement::startedActiveInterval):
(WebCore::SVGAnimationElement::updateAnimation):
- svg/SVGAnimationElement.h:
LayoutTests:
Simplified from the WPT paced-value-animation-overwrites-keyTimes.html.
- svg/animations/animate-calcMode-paced-overwrite-key-times-expected.html: Added.
- svg/animations/animate-calcMode-paced-overwrite-key-times.html: Added.
- 1:04 AM Changeset in webkit [275867] by
-
- 2 edits in trunk/Source/JavaScriptCore
Reduce functionWithHellaArguments3()'s number of arguments from 5000 to 500.
https://bugs.webkit.org/show_bug.cgi?id=224474
rdar://73614896
Reviewed by Yusuke Suzuki.
Using 5000 arguments seems excessive, and may blow out the stack on more resource
constrained devices. 500 should be high enough.
- b3/testb3_5.cpp:
(JSC_DEFINE_JIT_OPERATION):
(testCallFunctionWithHellaArguments3):
- 12:35 AM Changeset in webkit [275866] by
-
- 7 edits in trunk/Source/JavaScriptCore
[JSC] Remove CodeBlock::m_constantsSourceCodeRepresentation
https://bugs.webkit.org/show_bug.cgi?id=224473
Reviewed by Mark Lam.
CodeBlock::m_constantsSourceCodeRepresentation is identical to UnlinkedCodeBlock::m_constantsSourceCodeRepresentation.
- For all constants existing at bytecode compile time, elements of the above vectors are identical.
- For lazily added constants from DFG, it is always SourceCodeRepresentation::Other.
And the array is effectively accessed only when compiling DFG code. So we should remove copy of that in CodeBlock, and
get SourceCodeRepresentation from UnlinkedCodeBlock.
- bytecode/BytecodeDumper.cpp:
(JSC::CodeBlockBytecodeDumper<Block>::dumpConstants):
- bytecode/CodeBlock.cpp:
(JSC::CodeBlock::CodeBlock):
(JSC::CodeBlock::setConstantRegisters):
(JSC::CodeBlock::shrinkToFit):
- bytecode/CodeBlock.h:
(JSC::CodeBlock::constants):
(JSC::CodeBlock::addConstant):
(JSC::CodeBlock::addConstantLazily):
(JSC::CodeBlock::constantSourceCodeRepresentation const):
(JSC::CodeBlock::constantsSourceCodeRepresentation): Deleted.
- bytecode/UnlinkedCodeBlock.h:
(JSC::UnlinkedCodeBlock::constantSourceCodeRepresentation const):
- bytecode/UnlinkedCodeBlockGenerator.h:
(JSC::UnlinkedCodeBlockGenerator::constantSourceCodeRepresentation const):
(JSC::UnlinkedCodeBlockGenerator::constantsSourceCodeRepresentation): Deleted.
- dfg/DFGGraph.cpp:
(JSC::DFG::Graph::registerFrozenValues):