Timeline
Oct 12, 2016:
- 10:23 PM Changeset in webkit [207279] by
-
- 22 edits in trunk
[Web IDL] Drop support for legacy [ConstructorConditional=*]
https://bugs.webkit.org/show_bug.cgi?id=163368
Reviewed by Ryosuke Niwa.
.:
Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
- Source/cmake/OptionsEfl.cmake:
- Source/cmake/OptionsMac.cmake:
- Source/cmake/OptionsWin.cmake:
- Source/cmake/WebKitFeatures.cmake:
- Source/cmake/tools/vsprops/FeatureDefines.props:
- Source/cmake/tools/vsprops/FeatureDefinesCairo.props:
Source/JavaScriptCore:
Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
- Configurations/FeatureDefines.xcconfig:
Source/WebCore:
Drop support for legacy [ConstructorConditional=*] webkit-specific IDL
extended attribute. This was introduced to disable DOM4 event
constructors at compile time. However, nowadays, those constructors are
enabled everywhere.
- Configurations/FeatureDefines.xcconfig:
- bindings/scripts/CodeGenerator.pm:
(GenerateConstructorConditionalString): Deleted.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorHelperMethods):
- bindings/scripts/IDLAttributes.txt:
- bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::JSTestInterfaceConstructor::getConstructData): Deleted.
- bindings/scripts/test/TestInterface.idl:
- dom/UIEvent.idl:
Source/WebKit/mac:
Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
- Configurations/FeatureDefines.xcconfig:
Source/WebKit2:
Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
- Configurations/FeatureDefines.xcconfig:
- 10:21 PM Changeset in webkit [207278] by
-
- 3 edits in trunk/Source/WebCore
The bindings generator should provide a better error message when it does not find a dictionary definition
https://bugs.webkit.org/show_bug.cgi?id=163377
Reviewed by Ryosuke Niwa.
The bindings generator should provide a better error message when it does
not find a dictionary definition.
- bindings/scripts/CodeGenerator.pm:
(GetDictionaryByName):
- bindings/scripts/CodeGeneratorJS.pm:
(assert):
(GenerateDictionaryImplementationContent):
(GenerateHeader):
(GenerateDictionaryHeader):
- 10:18 PM Changeset in webkit [207277] by
-
- 14 edits2 adds in trunk
Update WebKitMediaKeyMessageEvent / WebKitMediaKeyNeededEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163369
Reviewed by Ryosuke Niwa.
Source/WebCore:
Update WebKitMediaKeyMessageEvent / WebKitMediaKeyNeededEvent to stop
using legacy [ConstructorTemplate=Event] and use regular constructors
instead.
This also adds support for having dictionary members that are typed
arrays because this was needed.
Test: fast/events/webkit-media-key-events-constructor.html
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp:
(WebCore::WebKitMediaKeyMessageEvent::WebKitMediaKeyMessageEvent):
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h:
(WebCore::WebKitMediaKeyMessageEvent::create):
(WebCore::WebKitMediaKeyMessageEvent::createForBindings): Deleted.
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.idl:
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp:
(WebCore::WebKitMediaKeyNeededEvent::WebKitMediaKeyNeededEvent):
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h:
(WebCore::WebKitMediaKeyNeededEvent::create):
(WebCore::WebKitMediaKeyNeededEvent::createForBindings): Deleted.
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.idl:
- bindings/js/JSDOMConvert.h:
(WebCore::Converter<IDLInterface<JSC::GenericTypedArrayView<Adaptor>>>::convert):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDefaultValue):
- dom/InputEvent.cpp:
(WebCore::InputEvent::InputEvent):
- dom/InputEvent.h:
- dom/InputEvent.idl:
LayoutTests:
Add layout test coverage.
- fast/events/webkit-media-key-events-constructor-expected.txt: Added.
- fast/events/webkit-media-key-events-constructor.html: Added.
- 9:13 PM Changeset in webkit [207276] by
-
- 3 edits2 adds in trunk
Update HTMLSelectElement::recalcListItems() to ignore nested optgroup elements
https://bugs.webkit.org/show_bug.cgi?id=163358
Reviewed by Kent Tamura.
Source/WebCore:
Update HTMLSelectElement::recalcListItems() to ignore nested optgroup elements.
As per the specification, we only want optgroup elements that are direct
children of the select element. This also matches the behavior of Chrome.
Test: fast/dom/HTMLSelectElement/nested-optgroup.html
- html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::recalcListItems):
LayoutTests:
Add layout test coverage.
- fast/dom/HTMLSelectElement/nested-optgroup-expected.txt: Added.
- fast/dom/HTMLSelectElement/nested-optgroup.html: Added.
- 8:48 PM Changeset in webkit [207275] by
-
- 5 edits2 adds in trunk
RenderRubyRun should not mark child renderers dirty at the end of layout.
https://bugs.webkit.org/show_bug.cgi?id=163359
<rdar://problem/28711840>
Reviewed by David Hyatt.
Source/WebCore:
The current layout logic does not support marking renderers dirty for subsequent layouts.
Layout needs to exit with a clean tree.
Should relayoutChild be insufficient, we could also mark the base/text dirty for the justified content.
Test: fast/ruby/rubyrun-has-bad-child.html
- rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlockFlow::updateRubyForJustifiedText):
- rendering/RenderRubyRun.cpp:
(WebCore::RenderRubyRun::layout):
(WebCore::RenderRubyRun::layoutBlock):
- rendering/RenderRubyRun.h:
LayoutTests:
- fast/ruby/rubyrun-has-bad-child-expected.txt: Added.
- fast/ruby/rubyrun-has-bad-child.html: Added.
- 8:16 PM Changeset in webkit [207274] by
-
- 3 edits2 adds in trunk
Source/WebCore:
Crash when using megaplan.ru
https://bugs.webkit.org/show_bug.cgi?id=163276
rdar://problem/28446672
Reviewed by Sam Weinig.
Make sure we allocate enough space in the vector of CGPoints that we use for path building.
Test: css3/masking/large-clip-path.html
- platform/graphics/cg/PathCG.cpp:
(WebCore::Path::polygonPathFromPoints):
LayoutTests:
polygonPathFromPoints calls uncheckedAppend, but assertion size() < capacity() fails
https://bugs.webkit.org/show_bug.cgi?id=163276
Reviewed by Sam Weinig.
- css3/masking/large-clip-path-expected.txt: Added.
- css3/masking/large-clip-path.html: Added.
- 7:38 PM Changeset in webkit [207273] by
-
- 4 edits in trunk
Fix out-of-bounds reading in URLParser when parsing improperly percent-encoded values
https://bugs.webkit.org/show_bug.cgi?id=163376
Reviewed by Saam Barati.
Source/WebCore:
Covered by new API tests, which used to crash under asan.
- platform/URLParser.cpp:
(WebCore::percentDecode):
If you subtract 2 from size_t's smaller than 2, you're gonna have a bad time.
Tools:
- TestWebKitAPI/Tests/WebCore/URLParser.cpp:
(TestWebKitAPI::TEST_F):
- 7:28 PM Changeset in webkit [207272] by
-
- 3 edits in branches/safari-602-branch/Source/WebCore
Merge r205163. rdar://problem/28216249
2016-08-29 Brent Fulgham <Brent Fulgham>
Avoid holding GlyphData in MathOperator
https://bugs.webkit.org/show_bug.cgi?id=161256
<rdar://problem/28033400>
Reviewed by Myles C. Maxfield.
Do not cache GlyphData in MathOperator elements, because the fonts referenced in the
GlyphData may be purged during low-memory conditions. Instead, we should store either
the relevant CodePoint, or the fallback Glyph (for the current system font).
Added an initialization function for GlyphAssemblyData, since unions containing structs
do not properly call constructors, resulting in garbage font/glyph content.
No new tests. Changes are covered by existing MathML test suite.
- rendering/mathml/MathOperator.cpp: (WebCore::MathOperator::GlyphAssemblyData::initialize): Added. (WebCore::MathOperator::MathOperator): Initialize m_assembly/m_variant. (WebCore::MathOperator::setSizeVariant): Only store the glyph, not the font. (WebCore::glyphDataForCodePointOrFallbackGlyph): Added helper function. (WebCore::MathOperator::setGlyphAssembly): Do not rely on stored GlyphData. (WebCore::MathOperator::calculateGlyphAssemblyFallback): Remove unneeded argument. Check if a fallback glyph is being used and remember for later. (WebCore::MathOperator::calculateStretchyData): Do not rely on stored GlyphData. (WebCore::MathOperator::fillWithVerticalExtensionGlyph): Ditto. (WebCore::MathOperator::fillWithHorizontalExtensionGlyph): Ditto. (WebCore::MathOperator::paintVerticalGlyphAssembly): Ditto. (WebCore::MathOperator::paintHorizontalGlyphAssembly): Ditto. (WebCore::MathOperator::paint): Ditto.
- rendering/mathml/MathOperator.h: (WebCore::MathOperator::GlyphAssemblyData::hasExtension): Added. (WebCore::MathOperator::GlyphAssemblyData::hasMiddle): Added. (WebCore::MathOperator::MathOperator): Deleted.
Patch by Brent Fulgham <Brent Fulgham> on 2016-08-25
- 7:28 PM Changeset in webkit [207271] by
-
- 3 edits in branches/safari-602-branch/Source/WebCore
Merge r205031. rdar://problem/28216249
2016-08-25 Brent Fulgham <Brent Fulgham>
Crash when getting font bounding rect
https://bugs.webkit.org/show_bug.cgi?id=161202
<rdar://problem/27986981>
Reviewed by Myles C. Maxfield.
We should never store GlyphData objects for later use, because they contain raw pointers to Font elements
contained in caches, and those font caches get periodically purged.
Instead, we should hold onto the ‘key’ representing the GlyphData, and simply ask the system for the
GlyphData the next time it is needed.
Tested by existing MathML tests under ASAN and GuardMalloc.
- rendering/mathml/RenderMathMLToken.cpp: (WebCore::RenderMathMLToken::RenderMathMLToken): Clean up constructors. (WebCore::RenderMathMLToken::computePreferredLogicalWidths): Use keys to get correct GlyphData when needed. (WebCore::RenderMathMLToken::updateMathVariantGlyph): Ditto. (WebCore::RenderMathMLToken::firstLineBaseline): Ditto. (WebCore::RenderMathMLToken::layoutBlock): Ditto. (WebCore::RenderMathMLToken::paint): Ditto. (WebCore::RenderMathMLToken::paintChildren): Ditto.
- rendering/mathml/RenderMathMLToken.h:
Patch by Brent Fulgham <Brent Fulgham> on 2016-08-25
- 7:28 PM Changeset in webkit [207270] by
-
- 5 edits in branches/safari-602-branch/Source
Versioning.
- 7:26 PM Changeset in webkit [207269] by
-
- 5 edits in branches/safari-602.2.14.0-branch/Source
Versioning.
- 7:14 PM Changeset in webkit [207268] by
-
- 3 edits in trunk/Source/WebCore
Mail needs nonspecial URLs to keep case in host and not have slash after host
https://bugs.webkit.org/show_bug.cgi?id=163373
Reviewed by Saam Barati.
Mail uses urls like scheme://HoSt which were not changed when canonicalized
before enabling the URLParser but now are canonicalized to scheme://host/
I manually verified this fixes the issue.
This should be reverted once Mail will accept modern canonicalized URLs.
- platform/URLParser.cpp:
(WebCore::URLParser::parse):
(WebCore::URLParser::parseHostAndPort):
- platform/URLParser.h:
If the application is mail and the scheme is nonspecial, don't make the host lower case and don't add a slash after the host.
- 7:05 PM Changeset in webkit [207267] by
-
- 6 edits2 adds in trunk
Web Inspector: step-into
console.log(o)
should not step through inspector javascript
https://bugs.webkit.org/show_bug.cgi?id=161656
<rdar://problem/28181123>
Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-10-12
Reviewed by Timothy Hatcher.
Source/JavaScriptCore:
- debugger/Debugger.h:
- debugger/Debugger.cpp:
(JSC::Debugger::pauseIfNeeded):
If the Script is blacklisted skip checking if we need to pause.
(JSC::Debugger::isBlacklisted):
(JSC::Debugger::addToBlacklist):
(JSC::Debugger::clearBlacklist):
Add the ability to add a Script to a blacklist. Currently the blacklist
only prevents pausing in the Script.
- inspector/agents/InspectorDebuggerAgent.cpp:
(Inspector::isWebKitInjectedScript):
(Inspector::InspectorDebuggerAgent::didParseSource):
Always add Internal InjectedScripts to the Debugger's blacklist.
(Inspector::InspectorDebuggerAgent::clearDebuggerBreakpointState):
Clear blacklists when clearing debugger state.
LayoutTests:
- inspector/debugger/stepping/stepping-internal-scripts-expected.txt: Added.
- inspector/debugger/stepping/stepping-internal-scripts.html: Added.
Ensure step-into a console.log statement steps past it, and doesn't pause
inside the non-visible internal script.
- 6:42 PM Changeset in webkit [207266] by
-
- 17 edits2 adds in trunk
B3 needs a special WasmBoundsCheck Opcode
https://bugs.webkit.org/show_bug.cgi?id=163246
Reviewed by Filip Pizlo.
Source/JavaScriptCore:
This patch adds a new Opcode, WasmBoundsCheck, as well as a B3::Value subclass for it,
WasmBoundsCheckValue. WasmBoundsCheckValue takes three pieces of information. The first is
the Int32 pointer value used to be used by the Load. Next is the pinned register. The
pinned register must be pinned by calling proc.setPinned() prior to compiling the
Procedure. Lastly, the WasmBoundsCheckValue takes an offset. The WasmBoundsCheckValue is
will then emit code that side-exits if the Int64 sum of the offset and pointer is greater
than or equal to the value in the pinnedRegister. Instead of taking a generator for each
value like Check/Patchpoint, WasmBoundsCheck gets its generator directly off Air::Code. In
Air this patch adds a new Custom opcode, WasmBoundsCheck.
In the future we should add WasmBoundsCheck to CSE so it can eliminate redundant bounds
checks. At the first cut, we can remove any WasmBoundsCheck dominated by another
WasmBoundsCheck with the same pointer and pinnedGPR, and a larger offset.
- CMakeLists.txt:
- JavaScriptCore.xcodeproj/project.pbxproj:
- b3/B3LowerToAir.cpp:
(JSC::B3::Air::LowerToAir::imm):
(JSC::B3::Air::LowerToAir::lower):
- b3/B3Opcode.cpp:
(WTF::printInternal):
- b3/B3Opcode.h:
- b3/B3Procedure.cpp:
(JSC::B3::Procedure::setWasmBoundsCheckGenerator):
- b3/B3Procedure.h:
(JSC::B3::Procedure::setWasmBoundsCheckGenerator):
- b3/B3Validate.cpp:
- b3/B3Value.cpp:
(JSC::B3::Value::effects):
(JSC::B3::Value::typeFor):
- b3/B3WasmBoundsCheckValue.cpp: Added.
(JSC::B3::WasmBoundsCheckValue::~WasmBoundsCheckValue):
(JSC::B3::WasmBoundsCheckValue::WasmBoundsCheckValue):
(JSC::B3::WasmBoundsCheckValue::dumpMeta):
- b3/B3WasmBoundsCheckValue.h: Added.
(JSC::B3::WasmBoundsCheckValue::accepts):
(JSC::B3::WasmBoundsCheckValue::pinnedGPR):
(JSC::B3::WasmBoundsCheckValue::offset):
- b3/air/AirCode.h:
(JSC::B3::Air::Code::setWasmBoundsCheckGenerator):
(JSC::B3::Air::Code::wasmBoundsCheckGenerator):
- b3/air/AirCustom.cpp:
(JSC::B3::Air::WasmBoundsCheckCustom::isValidForm):
- b3/air/AirCustom.h:
(JSC::B3::Air::WasmBoundsCheckCustom::forEachArg):
(JSC::B3::Air::WasmBoundsCheckCustom::isValidFormStatic):
(JSC::B3::Air::WasmBoundsCheckCustom::admitsStack):
(JSC::B3::Air::WasmBoundsCheckCustom::isTerminal):
(JSC::B3::Air::WasmBoundsCheckCustom::hasNonArgNonControlEffects):
(JSC::B3::Air::WasmBoundsCheckCustom::generate):
- b3/air/AirOpcode.opcodes:
- b3/testb3.cpp:
(JSC::B3::testWasmBoundsCheck):
(JSC::B3::run):
Websites/webkit.org:
Update the docs for the new WasmBoundsCheck opcode.
- docs/b3/intermediate-representation.html:
- 6:14 PM Changeset in webkit [207265] by
-
- 16 edits2 copies in trunk
Add preliminary support for extended colors to WebCore::Color
https://bugs.webkit.org/show_bug.cgi?id=162878
<rdar://problem/28596413>
Reviewed by Darin Adler.
Source/WebCore:
Add an ExtendedColor class that will hold the data necessary
for wider-than-sRGB (and more precise) colors. In order to
avoid increasing the size of Color, implement a tagged
pointer that is either referencing an ExtendedColor, or
is a 64-bit number with the top 32-bits being the RGBA, and
the bottom 2 bits indicating an invalid RGBA or a valid RGBA,
plus the tag.
Add copy constructors and operator= so that the new Color objects
are correctly copied.
There isn't yet a way to create an ExtendedColor. That's coming
in a followup patch (and will require changes to the CSS parser).
Covered by existing tests, and new API tests in Color.
- CMakeLists.txt:
- WebCore.xcodeproj/project.pbxproj: Add new files.
- platform/graphics/Color.cpp: Update everything to use m_rgbaAndFlags
instead of m_color + m_valid.
(WebCore::Color::Color):
(WebCore::Color::~Color):
(WebCore::Color::operator=):
(WebCore::Color::nameForRenderTreeAsText):
(WebCore::Color::setNamedColor):
(WebCore::Color::light):
(WebCore::Color::dark):
(WebCore::Color::setValid):
(WebCore::Color::setExtended):
(WebCore::Color::isExtended):
(WebCore::Color::asExtended):
- platform/graphics/Color.h: Implement the tagged union.
(WebCore::Color::Color):
(WebCore::Color::isValid):
(WebCore::Color::red):
(WebCore::Color::green):
(WebCore::Color::blue):
(WebCore::Color::alpha):
(WebCore::Color::rgb):
(WebCore::Color::setRGB):
(WebCore::operator==):
- platform/graphics/ExtendedColor.cpp: New file. Holds floating point
red, green, blue and alpha, plus a color space.
(WebCore::ExtendedColor::create):
(WebCore::ExtendedColor::~ExtendedColor):
(WebCore::ExtendedColor::ref):
(WebCore::ExtendedColor::deref):
- platform/graphics/ExtendedColor.h:
(WebCore::ExtendedColor::red):
(WebCore::ExtendedColor::green):
(WebCore::ExtendedColor::blue):
(WebCore::ExtendedColor::alpha):
(WebCore::ExtendedColor::colorSpace):
(WebCore::ExtendedColor::ExtendedColor):
- platform/graphics/cg/ColorCG.cpp: Update the constructors for
the platform specific color classes.
(WebCore::Color::Color):
- platform/graphics/gtk/ColorGtk.cpp:
(WebCore::Color::Color):
- platform/graphics/win/ColorDirect2D.cpp:
(WebCore::Color::Color):
- rendering/RenderEmbeddedObject.cpp: Use NeverDestroyed.
(WebCore::replacementTextRoundedRectPressedColor):
(WebCore::replacementTextRoundedRectColor):
(WebCore::replacementTextColor):
(WebCore::unavailablePluginBorderColor):
- rendering/RenderFrameSet.cpp: Ditto.
(WebCore::borderStartEdgeColor):
(WebCore::borderEndEdgeColor):
(WebCore::borderFillColor):
- rendering/RenderTableCell.cpp: This grows in size slightly
because it can no longer pack bits.
Tools:
A new API test for Colors.
- TestWebKitAPI/Tests/WebCore/Color.cpp:
(TestWebKitAPI::TEST):
- 5:07 PM Changeset in webkit [207264] by
-
- 1 copy in tags/Safari-602.2.14.0.7
New Tag.
- 4:56 PM Changeset in webkit [207263] by
-
- 10 edits in trunk/Source/JavaScriptCore
The blackening of CellState is a bad way of tracking if the object is being marked for the first time
https://bugs.webkit.org/show_bug.cgi?id=163343
Reviewed by Mark Lam.
When I first added the concept of NewGrey/OldGrey, I had the SlotVisitor store the old cell
state in itself, so that it could use it to decide what to do for reportExtraMemoryVisited().
Then I changed it in a recent commit, because I wanted the freedom to have SlotVisitor visit
multiple objects in tandem. But I never ended up using this capability. Still, I liked the
new way better: instead of the SlotVisitor rembemering the state-before-blackening, we would
make the object's state reflect whether it was black for the first time or not. That seemed
convenient.
Unfortunately it's wrong. After we blacken the object, a concurrent barrier could instantly
grey it. Then we would forget that we are visiting this object for the first time.
Subsequent visits will think that they are not the first. So, we will fail to do the right
thing in reportExtraMemoryVisited().
So, this reverts that change. This is a little more than just a revert, though. I've changed
the terminology a bit. For example, I got tired of reading Black and having to remind myself
that it really means that the object has begun being visited, instead of the more strict
meaning that implies that it has already been visited. We want to say that it's Black or
currently being scanned. I'm going to adopt Siebert's term for this: Anthracite [1]. So, our
black CellState is now called AnthraciteOrBlack.
[1] https://pdfs.semanticscholar.org/7ae4/633265aead1f8835cf7966e179d02c2c8a4b.pdf
- heap/CellState.h:
(JSC::isBlack): Deleted.
(JSC::blacken): Deleted.
- heap/Heap.cpp:
(JSC::Heap::addToRememberedSet):
(JSC::Heap::writeBarrierSlowPath):
- heap/Heap.h:
- heap/HeapInlines.h:
(JSC::Heap::reportExtraMemoryVisited):
(JSC::Heap::reportExternalMemoryVisited):
- heap/SlotVisitor.cpp:
(JSC::SlotVisitor::appendToMarkStack):
(JSC::SlotVisitor::visitChildren):
- heap/SlotVisitor.h:
- heap/SlotVisitorInlines.h:
(JSC::SlotVisitor::reportExtraMemoryVisited):
(JSC::SlotVisitor::reportExternalMemoryVisited):
- llint/LLIntData.cpp:
(JSC::LLInt::Data::performAssertions):
- llint/LowLevelInterpreter.asm:
- 4:17 PM Changeset in webkit [207262] by
-
- 50 edits26 deletes in branches/safari-602.2.14.0-branch
Revert changes that should not have landed on the branch.
- 4:12 PM Changeset in webkit [207261] by
-
- 1 edit1 add in trunk/LayoutTests
Unreviewed, add expected file for new test after r207239
https://bugs.webkit.org/show_bug.cgi?id=163245
Add an "expected.txt" file.
- js/dom/domjit-accessor-node-type-expected.txt: Added.
- 4:02 PM Changeset in webkit [207260] by
-
- 2 edits in branches/safari-602.2.14.0-branch/Source/WebKit/mac
Merge r207246. rdar://problem/28732731
- 4:02 PM Changeset in webkit [207259] by
-
- 5 edits1 add in branches/safari-602.2.14.0-branch
Merge r205197. rdar://problem/28481424
- 4:02 PM Changeset in webkit [207258] by
-
- 14 edits in branches/safari-602.2.14.0-branch
Merge r205190. rdar://problem/28545010
- 4:02 PM Changeset in webkit [207257] by
-
- 4 edits in branches/safari-602.2.14.0-branch
Merge r204868. rdar://problem/28216263
- 4:02 PM Changeset in webkit [207256] by
-
- 3 edits in branches/safari-602.2.14.0-branch/Source/WebCore
Merge r204631. rdar://problem/28481427
- 4:02 PM Changeset in webkit [207255] by
-
- 3 edits1 add in branches/safari-602.2.14.0-branch
Merge r204612. rdar://problem/28216278
- 4:01 PM Changeset in webkit [207254] by
-
- 2 edits in branches/safari-602.2.14.0-branch/Source/WebInspectorUI
Merge r204428. rdar://problem/28476954
- 4:01 PM Changeset in webkit [207253] by
-
- 3 edits4 adds in branches/safari-602.2.14.0-branch
Merge r204266. rdar://problem/28216261
- 4:01 PM Changeset in webkit [207252] by
-
- 4 edits in branches/safari-602.2.14.0-branch/Source/bmalloc
Merge r204091. rdar://problem/28476960
- 4:01 PM Changeset in webkit [207251] by
-
- 2 edits in branches/safari-602.2.14.0-branch/Source/WebCore
Merge r203903. rdar://problem/28476961
- 4:01 PM Changeset in webkit [207250] by
-
- 2 edits in branches/safari-602.2.14.0-branch/Source/WebCore
Merge r203792. rdar://problem/28476951
- 4:01 PM Changeset in webkit [207249] by
-
- 8 edits16 adds in branches/safari-602.2.14.0-branch
Merge r203611. rdar://problem/28476958
- 4:01 PM Changeset in webkit [207248] by
-
- 9 edits in branches/safari-602.2.14.0-branch
Merge r203522. rdar://problem/28476959
- 4:01 PM Changeset in webkit [207247] by
-
- 5 edits4 adds in branches/safari-602.2.14.0-branch
Merge r203383. rdar://problem/28216264
- 3:37 PM Changeset in webkit [207246] by
-
- 2 edits in trunk/Source/WebKit/mac
Adobe Contribute CS 6.5 Trial crashes on launch
https://bugs.webkit.org/show_bug.cgi?id=163365
-and corresponding-
<rdar://problem/28732731>
Reviewed by Tim Horton.
- Carbon/CarbonWindowFrame.m:
(-[CarbonWindowFrame contentFill]):
- 2:50 PM Changeset in webkit [207245] by
-
- 3 edits23 adds in trunk
[Modern Media Controls] Sliders: scrubber and volume
https://bugs.webkit.org/show_bug.cgi?id=163328
<rdar://problem/28733838>
Patch by Antoine Quint <Antoine Quint> on 2016-10-12
Reviewed by Dean Jackson.
Source/WebCore:
We add a new Slider class that provides a custom slider backed by an
invisible <input type="range"> element and a fill underlay to provide
a custom color between the left edge of the slider and the slider thumb.
As the slider's value changes, a UI delegate receives messages to track
such changes.
Tests: media/modern-media-controls/scrubber/scrubber.html
media/modern-media-controls/slider/slider-constructor.html
media/modern-media-controls/slider/slider-fill.html
media/modern-media-controls/slider/slider-styles.html
media/modern-media-controls/volume-slider/volume-slider-value.html
media/modern-media-controls/volume-slider/volume-slider.html
- Modules/modern-media-controls/controls/scrubber.css: Added.
(.scrubber.slider > input::-webkit-slider-thumb):
- Modules/modern-media-controls/controls/scrubber.js: Added.
(Scrubber):
- Modules/modern-media-controls/controls/slider.css: Added.
(.slider):
(.slider > input,):
(.slider > .fill):
(.slider > input):
(.slider > input::-webkit-slider-thumb):
- Modules/modern-media-controls/controls/slider.js: Added.
(Slider.prototype.get value):
(Slider.prototype.set value):
(Slider.prototype.get width):
(Slider.prototype.set width):
(Slider.prototype.handleEvent):
(Slider.prototype.commitProperty):
(Slider.prototype._handleInputEvent):
(Slider.prototype._handleChangeEvent):
(Slider.prototype._updateFill):
- Modules/modern-media-controls/controls/volume-slider.css: Added.
(.volume.slider > input::-webkit-slider-thumb):
- Modules/modern-media-controls/controls/volume-slider.js: Added.
(VolumeSlider):
LayoutTests:
Testing the properties of the new Slider class and its subclasses.
- media/modern-media-controls/resources/media-controls-utils.js: Added.
(rgba):
(shouldBeEqualToRGBAColor):
- media/modern-media-controls/scrubber/scrubber-expected.txt: Added.
- media/modern-media-controls/scrubber/scrubber.html: Added.
- media/modern-media-controls/slider/slider-constructor-expected.txt: Added.
- media/modern-media-controls/slider/slider-constructor.html: Added.
- media/modern-media-controls/slider/slider-fill-expected.txt: Added.
- media/modern-media-controls/slider/slider-fill.html: Added.
- media/modern-media-controls/slider/slider-styles-expected.txt: Added.
- media/modern-media-controls/slider/slider-styles.html: Added.
- media/modern-media-controls/volume-slider/volume-slider-expected.txt: Added.
- media/modern-media-controls/volume-slider/volume-slider-value-expected.txt: Added.
- media/modern-media-controls/volume-slider/volume-slider-value.html: Added.
- media/modern-media-controls/volume-slider/volume-slider.html: Added.
- platform/ios-simulator/TestExpectations:
- 2:49 PM Changeset in webkit [207244] by
-
- 5 edits2 adds in trunk
Add experimental support for the "formatForeColor" inputType
https://bugs.webkit.org/show_bug.cgi?id=163348
<rdar://problem/28739334>
Reviewed by Ryosuke Niwa.
Source/WebCore:
Adds support for the "formatForeColor" attribute. This patch introduces a simple hook in Editor.cpp to extract
data for an input event from an EditingStyle when performing an editing action.
Test: fast/events/input-events-forecolor-data.html
- editing/EditCommand.cpp:
(WebCore::inputTypeNameForEditingAction):
- editing/Editor.cpp:
(WebCore::inputEventDataForEditingStyleAndAction):
Added a new static helper to compute the data attribute of an InputEvent when handling a style change.
(WebCore::Editor::computeAndSetTypingStyle):
LayoutTests:
Adds a new test verifying that input events with inputType "formatForeColor" are dispatched when changing
foreground color, and that their data attributes are as expected.
- fast/events/input-events-forecolor-data-expected.txt: Added.
- fast/events/input-events-forecolor-data.html: Added.
- platform/ios-simulator/TestExpectations:
- 2:09 PM Changeset in webkit [207243] by
-
- 6 edits in trunk/Source/WebCore
[Web IDL] Generated bindings include the wrong header when ImplementedAs is used on a dictionary
https://bugs.webkit.org/show_bug.cgi?id=163352
Reviewed by Ryosuke Niwa.
Generated bindings include the wrong header when ImplementedAs is used
on a dictionary.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDictionaryHeader):
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionOperationWithExternalDictionaryParameterCaller):
- bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp:
(WebCore::convertDictionary<DictionaryImplName>):
(WebCore::convertDictionary<TestStandaloneDictionary>): Deleted.
- bindings/scripts/test/JS/JSTestStandaloneDictionary.h:
- bindings/scripts/test/TestStandaloneDictionary.idl:
- 2:02 PM Changeset in webkit [207242] by
-
- 8 copies1 add in releases/Apple/Safari Technology Preview 15
Added a tag for Safari Technology Preview release 15.
- 2:01 PM Changeset in webkit [207241] by
-
- 2 edits in trunk/Source/JavaScriptCore
Rename variables in arrayProtoFuncSplice() to match names in the spec.
https://bugs.webkit.org/show_bug.cgi?id=163354
Reviewed by Saam Barati.
This will make it easier to see whether the code matches the spec or not.
Ref: https://tc39.github.io/ecma262/#sec-array.prototype.splice
- runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncSplice):
- 1:58 PM FAQ edited by
- (diff)
- 1:53 PM Changeset in webkit [207240] by
-
- 1 copy in tags/Safari-603.1.9
New tag.
- 1:52 PM FAQ edited by
- (diff)
- 1:47 PM Changeset in webkit [207239] by
-
- 22 edits2 copies1 add in trunk
[DOMJIT][JSC] Explore the way to embed nodeType into JSC::JSType in WebCore
https://bugs.webkit.org/show_bug.cgi?id=163245
Reviewed by Filip Pizlo.
Source/JavaScriptCore:
We reserve the highest bit of JSC::JSType for extensions outside JSC.
JSC does not use JSType bits so many: only 52 types are defined.
And we extend CallDOM patchpoint to claim that it does not require a global object.
This global object is used to generate a DOM wrapper. However, nodeType does not require
it since it just returns integer. In the future, we will extend CallDOM to claim
its result type. And we can decide thisrequireGlobalObject
condition automatically
according to the result type.
- JavaScriptCore.xcodeproj/project.pbxproj:
- dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleDOMJITGetter):
- dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
- dfg/DFGGraph.h:
- dfg/DFGNode.h:
(JSC::DFG::Node::hasCheckDOMPatchpoint):
(JSC::DFG::Node::checkDOMPatchpoint):
(JSC::DFG::Node::hasCallDOMPatchpoint):
(JSC::DFG::Node::callDOMPatchpoint):
(JSC::DFG::Node::hasDOMJIT): Deleted.
(JSC::DFG::Node::domJIT): Deleted.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileCallDOM):
(JSC::DFG::SpeculativeJIT::compileCheckDOM):
- domjit/DOMJITCallDOMPatchpoint.h: Copied from Source/JavaScriptCore/domjit/DOMJITGetterSetter.h.
(JSC::DOMJIT::CallDOMPatchpoint::create):
- domjit/DOMJITGetterSetter.h:
- domjit/DOMJITPatchpoint.h:
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCheckDOM):
(JSC::FTL::DFG::LowerDFGToB3::compileCallDOM):
- jsc.cpp:
- llint/LLIntData.cpp:
(JSC::LLInt::Data::performAssertions):
- llint/LowLevelInterpreter.asm:
- runtime/JSType.h:
Source/WebCore:
Node.nodeType accessor is so frequently called. For example, jQuery's $ function uses
this to distinguish DOM objects from the other JS objects. So every time you call$(dom)
,
nodeType accessor is called. In addition to that, jQuery's prev, next, parent etc. also uses
thisnodeType
. And Ember.js also uses it. And ... So this function is super critical for DOM
performance.
The challenge is that there is no room for putting NodeType into C++ Node class. Node class
has a 32bit field to store some data. However, these bits are already exhausted. Extending
Node class is unacceptable since it significantly enlarges memory consumption of WebKit (Node
is everywhere!). Unfortunately, current Node::nodeType is implemented as a virtual function
even though this function is frequently called from JS world.
Interestingly, we already store some duplicate data in JSObject, JSC::JSType. WebCore already
extends it with JSElementType, JSNodeType, and JSDocumentWrapperType. And these types are
corresponding to specific NodeTypes. For example, JSElementType should have ELEMENT_NODE type.
This patch further extends this JSC::JSType in WebCore side safely. We embed NodeType bits into
JSC::JSType. This design offers significantly faster nodeType implementation. Furthermore, it
makes DOMJIT easy for nodeType accessor.
Even without the IC change[1], Dromaeo dom-query shows 8 - 10% improvement,
1452.96 runs/s vs 1578.56 runs/s. We can expect that this improvement will be applied to the
other benchmarks / real applications when the IC change is landed.
[1]: https://bugs.webkit.org/show_bug.cgi?id=163226
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSDOMWrapper.h:
- bindings/js/JSNodeCustom.h:
(WebCore::JSNode::nodeType):
- bindings/scripts/CodeGeneratorJS.pm:
(GetJSTypeForNode):
(GenerateHeader):
- dom/Node.idl:
- dom/NodeConstants.h: Copied from Source/JavaScriptCore/domjit/DOMJITGetterSetter.h.
- domjit/JSNodeDOMJIT.cpp:
(WebCore::createCallDOMForOffsetAccess):
(WebCore::NodeFirstChildDOMJIT::callDOM):
(WebCore::NodeLastChildDOMJIT::callDOM):
(WebCore::NodeNextSiblingDOMJIT::callDOM):
(WebCore::NodePreviousSiblingDOMJIT::callDOM):
(WebCore::NodeParentNodeDOMJIT::callDOM):
(WebCore::NodeNodeTypeDOMJIT::checkDOM):
(WebCore::NodeNodeTypeDOMJIT::callDOM):
LayoutTests:
- js/dom/domjit-accessor-node-type.html: Added.
- 1:41 PM Changeset in webkit [207238] by
-
- 22 edits in trunk
Update more events to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163339
Reviewed by Ryosuke Niwa.
Source/WebCore:
Update more events to stop using legacy [ConstructorTemplate=Event]
and use regular constructors instead.
No new tests, updated existing tests.
- bindings/scripts/test/JS/JSTestEventConstructor.cpp:
(WebCore::convertDictionary<TestEventConstructor::Init>):
(WebCore::JSTestEventConstructorConstructor::construct):
(WebCore::JSTestEventConstructorConstructor::prototypeForStructure):
(WebCore::JSTestEventConstructor::JSTestEventConstructor):
(WebCore::JSTestEventConstructor::createPrototype):
(WebCore::JSTestEventConstructorPrototype::create): Deleted.
(WebCore::JSTestEventConstructorPrototype::createStructure): Deleted.
(WebCore::JSTestEventConstructorPrototype::JSTestEventConstructorPrototype): Deleted.
(WebCore::setJSTestEventConstructorConstructor): Deleted.
(WebCore::JSTestEventConstructor::getConstructor): Deleted.
- bindings/scripts/test/JS/JSTestEventConstructor.h:
(WebCore::JSTestEventConstructor::wrapped):
(WebCore::JSTestEventConstructor::create): Deleted.
(WebCore::toJS): Deleted.
(WebCore::toJSNewlyCreated): Deleted.
- bindings/scripts/test/TestEventConstructor.idl:
- css/CSSFontFaceLoadEvent.cpp:
(WebCore::CSSFontFaceLoadEvent::CSSFontFaceLoadEvent):
- css/CSSFontFaceLoadEvent.h:
- css/CSSFontFaceLoadEvent.idl:
- html/canvas/WebGLContextEvent.cpp:
(WebCore::WebGLContextEvent::WebGLContextEvent):
- html/canvas/WebGLContextEvent.h:
- html/canvas/WebGLContextEvent.idl:
- storage/StorageEvent.cpp:
(WebCore::StorageEvent::create):
(WebCore::StorageEvent::StorageEvent):
- storage/StorageEvent.h:
- storage/StorageEvent.idl:
LayoutTests:
Update existing tests to reflect minor behavior changes.
- fast/events/constructors/storage-event-constructor-expected.txt:
- fast/events/constructors/storage-event-constructor.html:
- fast/events/constructors/webgl-context-event-constructor-expected.txt:
- fast/events/constructors/webgl-context-event-constructor.html:
- 1:38 PM Changeset in webkit [207237] by
-
- 4 edits in trunk
Unreviewed, rolling out r207225.
This change causes debug tests to exit early with crashes.
Reverted changeset:
"Optional's move-constructor and move-assignment operator
don't disengage the value being moved from"
https://bugs.webkit.org/show_bug.cgi?id=163309
http://trac.webkit.org/changeset/207225
- 1:23 PM Changeset in webkit [207236] by
-
- 4 edits in trunk
Fix assertion after switching to URLParser
https://bugs.webkit.org/show_bug.cgi?id=163350
rdar://problem/28739938
Reviewed by Brady Eidson.
Source/WebKit2:
Covered by a new API test.
- UIProcess/API/Cocoa/_WKUserStyleSheet.mm:
(-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]):
The { } here is not understood by the compiler to mean WebCore::URL(), but rather the empty constructor for the enum ParsedURLStringTag.
We used to be unsafely trusting that the URL was valid and canonicalized, but with URLParser we are canonicalizing it,
and the assertion (url == m_string) in URL.cpp was failing.
Tools:
- TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:
(TEST):
- 12:40 PM Changeset in webkit [207235] by
-
- 4 edits1 add in trunk
Handle non-function, non-undefined comparator in Array.prototype.sort
https://bugs.webkit.org/show_bug.cgi?id=163085
Reviewed by Yusuke Suzuki.
JSTests:
- ChakraCore/test/Array/array_sort.baseline-jsc:
- stress/array-sort-bad-comparator.js: Added.
(test):
Source/JavaScriptCore:
- builtins/ArrayPrototype.js:
(sort.comparatorSort):
(sort.stringSort):
(sort):
- 12:35 PM Changeset in webkit [207234] by
-
- 2 edits in trunk/Source/WebCore
Make Document::existingAXObjectCache() fast with accessibility disabled.
<https://webkit.org/b/163347>
Reviewed by Antti Koivisto.
Instruments says we were spending 2.3% of Dromaeo/dom-modify.html in this function,
traversing ancestors. Track whether we've ever had a cache, and use that knowledge
to return early if possible.
- dom/Document.cpp:
(WebCore::Document::existingAXObjectCache):
(WebCore::Document::axObjectCache):
- 12:31 PM Changeset in webkit [207233] by
-
- 1 copy in tags/Safari-602.3.2
New tag.
- 12:18 PM Changeset in webkit [207232] by
-
- 2 edits in trunk/Source/WebCore
[SOUP] trunk r207192 fails to compile due to missing std::function being unavailable (missing #include <functional>)
https://bugs.webkit.org/show_bug.cgi?id=163340
Patch by Jeremy Huddleston Sequoia <jeremyhu@apple.com> on 2016-10-12
Reviewed by Michael Catanzaro.
- platform/network/soup/SoupNetworkSession.h: Add missing #include <functional>
- 12:03 PM Changeset in webkit [207231] by
-
- 2 edits in trunk/Source/WebKit/win
[Win] Unreviewed build fix after r207218.
The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
It should be using USE(CFURLCONNECTION).
- WebCache.cpp: Missed one!
- 12:01 PM Changeset in webkit [207230] by
-
- 3 edits in trunk/Source/JavaScriptCore
REGRESSION (r207179): ASSERTION FAILED: node.cell != previousCell
https://bugs.webkit.org/show_bug.cgi?id=163337
Reviewed by Mark Lam.
It turns out that HeapSnapshot was not down with revisiting. The concurrent GC is going to be
built around the idea that we can revisit objects many times. This means that any action that
should only take place once per object must check the object's state. This fixes the snapshot
code to do this.
While writing this code, I realized that we're actually doing this check incorrectly, so I
filed bug 163343. That bug requires a race, so we aren't going to see it yet.
- heap/HeapSnapshot.cpp:
(JSC::HeapSnapshot::finalize):
- heap/SlotVisitor.cpp:
(JSC::SlotVisitor::appendToMarkStack):
(JSC::SlotVisitor::visitChildren):
- 11:47 AM Changeset in webkit [207229] by
-
- 14 edits2 adds in trunk
Web Inspector: Improve support for logging Proxy objects in console
https://bugs.webkit.org/show_bug.cgi?id=163323
<rdar://problem/28432553>
Reviewed by Timothy Hatcher.
Source/JavaScriptCore:
This is based off of similiar patches in Blink for Proxy handling.
- bindings/ScriptValue.cpp:
(Deprecated::ScriptValue::isEqual):
Use strict equality. This is the intent, and it prevents the possibility of triggering
primitive conversion on objects in previous ConsoleMessage argument lists.
- inspector/InjectedScriptSource.js:
(InjectedScript.prototype._propertyDescriptors):
Bail if the object is a Proxy.
(InjectedScript.prototype._describe):
Provide a friendlier name, "Proxy" instead of "ProxyObject".
(InjectedScript.RemoteObject):
When generating a preview for a Proxy object, generate it from the final target
and mark it as lossy so that the object can always be expanded to get the internal
target/handler properties.
- inspector/JSInjectedScriptHost.h:
- inspector/JSInjectedScriptHost.cpp:
(Inspector::JSInjectedScriptHost::subtype):
New subtype for Proxy objects.
(Inspector::JSInjectedScriptHost::proxyTargetValue):
Resolve the final target value for a Proxy.
- inspector/JSInjectedScriptHostPrototype.cpp:
(Inspector::JSInjectedScriptHostPrototype::finishCreation):
(Inspector::jsInjectedScriptHostPrototypeFunctionProxyTargetValue):
Add the new method.
- inspector/ScriptArguments.cpp:
(Inspector::ScriptArguments::getFirstArgumentAsString):
Avoid triggering Proxy traps on a Proxy object when getting a quick
string description for ConsoleMessages.
- inspector/protocol/Runtime.json:
Add new "proxy" subtype.
Source/WebInspectorUI:
- UserInterface/Views/ConsoleMessageView.js:
(WebInspector.ConsoleMessageView.prototype._formatParameter):
Treat a Proxy like any other object.
LayoutTests:
- inspector/console/console-log-proxy-expected.txt: Added.
- inspector/console/console-log-proxy.html: Added.
Add a test specific to console logs of Proxy objects to ensure the get
trap is not used in different cases.
- inspector/model/remote-object-expected.txt:
- inspector/model/remote-object.html:
- platform/mac/inspector/model/remote-object-expected.txt:
Update results for Proxy objects and include a test for a multi-level
Proxy object, which should preview the target.
- 11:47 AM Changeset in webkit [207228] by
-
- 15 edits in trunk
Emit DebugHooks uniformly with pause locations instead of having separate pause locations and op_debug emits
https://bugs.webkit.org/show_bug.cgi?id=162809
Reviewed by Geoffrey Garen.
Source/JavaScriptCore:
Change how BytecodeGeneration emits debug hooks to be more consistent.
Previously most nodes individually generated their own debug hook
and we asserted that it matched a breakpoint location identified
by the parser. This could get out of sync, or nodes could forget to
emit debug hooks expected by the parser.
With this change, we always check and emit a debug hook for any
node. The default behavior is for BytecodeGenerator::emitNode
to emit the debug hook when emitting the node itself. This covers
the majority of cases (statements).
There are a few exceptions where we continue to need to customize
emitting debug hooks:
- Nodes with emitBytecodeInConditionContext
- non-Expression nodes customize how they emit their children
- constants conditions may emit nothing, but we had recorded a breakpoint location so emit a debug hook
- always emit one debug hook in case we recorded a breakpoint location, but avoid emitting multiple in nodes which may call up to the ExpressionNode::emitBytecodeInConditionContext base impl.
- Specialized Debug Hooks
- such as hooks for Program start/end, debugger statements, etc.
- Debug Hooks in for..of / for..in that don't correspond to re-emitting nodes
- such as pausing on the assignment expression inside these loops
The majority of nodes no longer have custom emits.
- bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::emitNodeInTailPosition):
(JSC::BytecodeGenerator::emitNodeInConditionContext):
- bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitDebugHook):
(JSC::BytecodeGenerator::emitEnumeration):
By default, when emitting a node check if we should also emit an op_debug for it.
This default DebugHook is WillExecuteStatement, which is a normal pause point.
- bytecompiler/NodesCodegen.cpp:
(JSC::ConstantNode::emitBytecodeInConditionContext):
(JSC::LogicalNotNode::emitBytecodeInConditionContext):
(JSC::BinaryOpNode::emitBytecodeInConditionContext):
(JSC::LogicalOpNode::emitBytecodeInConditionContext):
The parser would have generated a pause location for these conditions
no matter what constant folding and re-writing these nodes may perform.
So, when emitting these nodes in condition context check if they need
emit their own debug hook.
(JSC::EmptyStatementNode::emitBytecode):
(JSC::ExprStatementNode::emitBytecode):
(JSC::DeclarationStatement::emitBytecode):
(JSC::IfElseNode::emitBytecode):
(JSC::DoWhileNode::emitBytecode):
(JSC::WhileNode::emitBytecode):
(JSC::ForNode::emitBytecode):
(JSC::ContinueNode::emitBytecode):
(JSC::BreakNode::emitBytecode):
(JSC::ReturnNode::emitBytecode):
(JSC::WithNode::emitBytecode):
(JSC::SwitchNode::emitBytecode):
(JSC::ThrowNode::emitBytecode):
No longer need to custom emit debug hooks. The default emitNode will handle these.
(JSC::ForInNode::emitBytecode):
Include extra debug hooks the user expects to return back to the assignment
expression in the loop header before starting the body again. The same is done
for for..of with emitEnumeration.
- parser/ASTBuilder.h:
(JSC::ASTBuilder::createExportDefaultDeclaration):
(JSC::ASTBuilder::createExportLocalDeclaration):
These are no longer needed to fake-satisfy assertions. We never wanted to
emit debug hooks for these inner statements because the export statement
will already have the debug hooks.
(JSC::ASTBuilder::createForInLoop):
(JSC::ASTBuilder::createForOfLoop):
Include the correct location where the declaration starts.
(JSC::ASTBuilder::breakpointLocation):
Simplify to a general implementation for Node.
- parser/SyntaxChecker.h:
(JSC::SyntaxChecker::createForInLoop):
(JSC::SyntaxChecker::createForOfLoop):
Ignore the new extra parameter.
- parser/Nodes.h:
(JSC::Node::needsDebugHook):
(JSC::Node::setNeedsDebugHook):
(JSC::ExpressionNode::needsDebugHook): Deleted.
(JSC::ExpressionNode::setNeedsDebugHook): Deleted.
(JSC::StatementNode::isEmptyStatement): Deleted.
(JSC::StatementNode::needsDebugHook): Deleted.
(JSC::StatementNode::setNeedsDebugHook): Deleted.
Move debug hook logic into the base Node class.
(JSC::StatementNode::isDebuggerStatement):
Provide a way to distinguish a debugger statement.
- parser/Parser.cpp:
(JSC::Parser<LexerType>::parseForStatement):
Provide the location before the declaration starts.
Source/WebInspectorUI:
- UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange):
When pausing on the variable assignment inside for..of and for..in don't just
highlight "var foo" but include the right hand side "var foo in ..." or
"var foo of ...".
LayoutTests:
- inspector/debugger/stepping/stepping-control-flow-expected.txt:
- inspector/debugger/stepping/stepping-control-flow.html:
Add new tests for stepping through conditional expressions with constants,
logical operations, binary operations, and unary negations.
- inspector/debugger/stepping/stepping-loops-expected.txt:
- inspector/debugger/stepping/stepping-loops.html:
Update tests for changes in stepping behavior in for loops.
- 11:43 AM Changeset in webkit [207227] by
-
- 3 edits in trunk/Source/WebInspectorUI
Web Inspector: Whole program sometimes highlighted instead of just first statement
https://bugs.webkit.org/show_bug.cgi?id=163300
<rdar://problem/28723162>
Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-10-12
Reviewed by Timothy Hatcher.
- UserInterface/Views/SourceCodeTextEditor.js:
(WebInspector.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange):
Avoid highlighting the entire program by skipping a Program type Node.
- UserInterface/Views/TextEditor.js:
(WebInspector.TextEditor.prototype.setExecutionLineAndColumn):
Avoid unnecessary work before content has loaded.
(WebInspector.TextEditor.prototype.currentPositionToOriginalOffset):
Avoid unnecessary indirection to get the CodeMirror editor.
- 11:27 AM Changeset in webkit [207226] by
-
- 3 edits1 add in trunk
Array.prototype.slice should not modify frozen objects.
https://bugs.webkit.org/show_bug.cgi?id=163338
Reviewed by Filip Pizlo.
JSTests:
- stress/array-slice-on-frozen-object.js: Added.
Source/JavaScriptCore:
- The ES6 spec for Array.prototype.slice (https://tc39.github.io/ecma262/#sec-array.prototype.slice) states that it uses the CreateDataPropertyOrThrow() (https://tc39.github.io/ecma262/#sec-createdatapropertyorthrow) to add items to the result array. The spec for CreateDataPropertyOrThrow states:
"This abstract operation creates a property whose attributes are set to the
same defaults used for properties created by the ECMAScript language assignment
operator. Normally, the property will not already exist. If it does exist and
is not configurable or if O is not extensible, DefineOwnProperty will
return false causing this operation to throw a TypeError exception."
- Array.prototype.slice also uses a Set function (https://tc39.github.io/ecma262/#sec-set-o-p-v-throw) to set the "length" property and passes true for the Throw argument. Ultimately, it ends up calling the OrdinarySet function (https://tc39.github.io/ecma262/#sec-ordinaryset) that will fail if the property is not writable. This failure should result in a TypeError being thrown in Set.
Since the properties of frozen objects are not extensible, not configurable,
and not writeable, Array.prototype.slice should fail to write to the result
array if it is frozen.
If the source array being sliced has 1 or more elements, (1) will take effect
when we try to set the element in the non-writeable result obj.
If the source array being sliced has 0 elements, we will not set any elements and
(1) will not trigger. Subsequently, (2) will take effect when we will try to
set the length of the result obj.
- runtime/ArrayPrototype.cpp:
(JSC::putLength):
(JSC::setLength):
(JSC::arrayProtoFuncSlice):
(JSC::arrayProtoFuncSplice):
- 10:41 AM Changeset in webkit [207225] by
-
- 4 edits in trunk
Optional's move-constructor and move-assignment operator don't disengage the value being moved from
https://bugs.webkit.org/show_bug.cgi?id=163309
Reviewed by Anders Carlsson.
Source/WTF:
- wtf/Optional.h:
(WTF::Optional::Optional):
(WTF::Optional::operator=):
Disengage 'other' on move-construction and move-assignment.
Tools:
- TestWebKitAPI/Tests/WTF/Optional.cpp:
(TestWebKitAPI::TEST):
Add tests for Optional's move-constructor and move-assignment operator.
- 10:31 AM Changeset in webkit [207224] by
-
- 3 edits in trunk/Source/WebKit2
Remove an unused function
https://bugs.webkit.org/show_bug.cgi?id=163341
Reviewed by Dan Bernstein.
- WebProcess/WebPage/WebBackForwardListProxy.cpp:
(WebKit::WebBackForwardListProxy::isActive): Deleted.
- WebProcess/WebPage/WebBackForwardListProxy.h:
- 10:22 AM Changeset in webkit [207223] by
-
- 2 edits in trunk/Source/WebKit/win
[Win] Unreviewed build fix after r207218.
The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
It should be using USE(CFURLCONNECTION).
- WebCache.cpp:
(WebCache::cacheFolder):
(WebCache::setCacheFolder):
- 9:56 AM Changeset in webkit [207222] by
-
- 7 edits1 delete in trunk/Source/JavaScriptCore
Remove JITWriteBarrier.h
https://bugs.webkit.org/show_bug.cgi?id=163334
Reviewed by Mark Lam.
I guess that the idea of JITWriteBarrier was to make sure that if you slap some heap pointer
bits into machine code, then you better execute a barrier on the code block. But it's a
complicated piece of code, and I can never remember how it quite works. These days it looks
vestigial, particularly since only the CallLinkInfo patchable callee immediate uses it. It's
not really necessary to have something like this, since our convention is that any pointer
stored in machine code must always be shadowed in the GC heap. I think that convention has
won by overwhelming majority, so we should finally remove JITWriteBarrier.
A practical outcome of this change is that it makes it easier to implement DirectCall ICs,
which will have to store the callee in the CallLinkInfo but not in the machine code.
- JavaScriptCore.xcodeproj/project.pbxproj:
- assembler/AbstractMacroAssembler.h:
- bytecode/CallLinkInfo.cpp:
(JSC::CallLinkInfo::setCallee):
(JSC::CallLinkInfo::clearCallee):
- bytecode/CallLinkInfo.h:
(JSC::CallLinkInfo::setCallee): Deleted.
(JSC::CallLinkInfo::clearCallee): Deleted.
- heap/SlotVisitor.h:
- jit/JITWriteBarrier.h: Removed.
- 9:50 AM Changeset in webkit [207221] by
-
- 2 edits in trunk/Source/WebCore
[WebGL] Revise vertex array attribute checks to account for lazy memory allocation.
https://bugs.webkit.org/show_bug.cgi?id=163149
<rdar://problem/28629774>
Reviewed by Dean Jackson.
Tested by fast/canvas/webgl/webgl-drawarrays-crash-2.html
- html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::validateVertexAttributes):
- 9:48 AM Changeset in webkit [207220] by
-
- 7 edits in trunk
Now playing media sessions are always cleared for the active foreground tab
https://bugs.webkit.org/show_bug.cgi?id=163310
<rdar://problem/28573301>
Reviewed by Jer Noble.
Source/WebCore:
Currently, we clear out Now Playing info whenever we set the visibility of Now Playing controls to Never. This
is incorrect, as the Now Playing session needs to still be active (just not visible) in this state. Instead, we
should not be taking the active/foregrounded-ness of a media session for Now Playing into account in
MediaElementSession::canShowControlsManager so that even if a media session is in the active/foreground tab, we
will update the Now Playing session with the latest info. However, when setting the visibility, we now check
and see if the session allows Now Playing visibility, and set the Now Playing visibility to Always or Never
depending on the answer.
Tweaked existing unit tests in NowPlayingControlsTests.
- html/MediaElementSession.cpp:
(WebCore::MediaElementSession::canShowControlsManager):
(WebCore::MediaElementSession::allowsNowPlayingControlsVisibility):
(WebCore::MediaElementSession::pageAllowsNowPlayingControls): Deleted.
- html/MediaElementSession.h:
- platform/audio/PlatformMediaSession.h:
(WebCore::PlatformMediaSession::allowsNowPlayingControlsVisibility):
- platform/audio/mac/MediaSessionManagerMac.mm:
(WebCore::MediaSessionManagerMac::updateNowPlayingInfo):
Tools:
Tweaks existing unit tests to verify that media session info persists when backgrounding and foregrounding, but
that media session info is correctly cleared out if the media session itself is no longer eligible for Now
Playing (not accounting for foreground/active state). Previously, these tests were verifying that we would
always clear out the information, but this is incorrect, and is the source of the problem.
- TestWebKitAPI/Tests/WebKit2Cocoa/NowPlayingControlsTests.mm:
(-[NowPlayingTestWebView waitForNowPlayingInfoToChange]):
(TestWebKitAPI::TEST):
- 9:45 AM Changeset in webkit [207219] by
-
- 4 edits in trunk/Source/WebCore
Refactor LineLayoutState's float box handling.
https://bugs.webkit.org/show_bug.cgi?id=163286
Reviewed by David Hyatt.
We keep track of float boxes both per line (RootInlineBox::m_floats) and
per flow block (LineLayoutState::m_floats) during layout.
As we lay out the lines and iterate through RootInlineBox::m_floats, we
increment LineLayoutState::m_floatIndex. This LineLayoutState::m_floatIndex is
later used to find the matching float box in the per-block-flow float list.
This logic works fine as long as the lists and the index manipulation are tightly coded.
However due to the complexity of the line/float layout code, this is no longer the case.
This patch makes float box handling more secure by changing this index based setup
to a list iterator. It helps to eliminate potential vector overflow issues.
LineLayoutState::FloatList (new class) keeps track of all the floats for the block flow.
It groups the float box related functions/members and provides an iterator interface to ensure safer
syncing between this and the line based floats.
No change in functionality.
- rendering/RenderBlockFlow.h:
- rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlockFlow::appendFloatingObjectToLastLine):
(WebCore::repaintDirtyFloats):
(WebCore::RenderBlockFlow::layoutRunsAndFloats):
(WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange):
(WebCore::RenderBlockFlow::linkToEndLineIfNeeded):
(WebCore::RenderBlockFlow::layoutLineBoxes):
(WebCore::RenderBlockFlow::checkFloatInCleanLine):
(WebCore::RenderBlockFlow::determineStartPosition):
(WebCore::RenderBlockFlow::determineEndPosition):
(WebCore::RenderBlockFlow::repaintDirtyFloats): Deleted.
(WebCore::RenderBlockFlow::checkFloatsInCleanLine): Deleted.
- rendering/line/LineLayoutState.h:
(WebCore::FloatWithRect::create):
(WebCore::FloatWithRect::renderer):
(WebCore::FloatWithRect::rect):
(WebCore::FloatWithRect::everHadLayout):
(WebCore::FloatWithRect::adjustRect):
(WebCore::FloatWithRect::FloatWithRect):
(WebCore::LineLayoutState::FloatList::append):
(WebCore::LineLayoutState::FloatList::setLastFloat):
(WebCore::LineLayoutState::FloatList::lastFloat):
(WebCore::LineLayoutState::FloatList::setLastCleanFloat):
(WebCore::LineLayoutState::FloatList::lastCleanFloat):
(WebCore::LineLayoutState::FloatList::floatWithRect):
(WebCore::LineLayoutState::FloatList::begin):
(WebCore::LineLayoutState::FloatList::end):
(WebCore::LineLayoutState::FloatList::find):
(WebCore::LineLayoutState::FloatList::isEmpty):
(WebCore::LineLayoutState::LineLayoutState):
(WebCore::LineLayoutState::floatList):
(WebCore::LineLayoutState::lastFloat): Deleted.
(WebCore::LineLayoutState::setLastFloat): Deleted.
(WebCore::LineLayoutState::floats): Deleted.
(WebCore::LineLayoutState::floatIndex): Deleted.
(WebCore::LineLayoutState::setFloatIndex): Deleted.
- 9:36 AM Changeset in webkit [207218] by
-
- 11 edits in trunk
[Win] Parallel DRTs are sharing preferences and cache.
https://bugs.webkit.org/show_bug.cgi?id=163013
Reviewed by Brent Fulgham.
Source/WebKit/win:
Make it possible for a WebKit client to use separate preferences and cache.
- Interfaces/IWebPreferencesPrivate.idl:
- WebApplicationCache.cpp:
(applicationCachePath):
- WebCache.cpp:
(WebCache::cacheFolder):
(WebCache::setCacheFolder):
- WebDatabaseManager.cpp:
(databasesDirectory):
- WebPreferences.cpp:
(WebPreferences::applicationId):
(WebPreferences::valueForKey):
(WebPreferences::setValueForKey):
(WebPreferences::save):
(WebPreferences::QueryInterface):
(WebPreferences::modernMediaControlsEnabled):
(WebPreferences::setApplicationId):
- WebPreferences.h:
- WebView.cpp:
(WebView::setCacheModel):
Tools:
Use separate cache and preferences for each DRT instance.
- DumpRenderTree/win/DumpRenderTree.cpp:
(applicationId):
(setApplicationId):
(setCacheFolder):
(setDefaultsToConsistentValuesForTesting):
- Scripts/webkitpy/port/win.py:
(WinPort.setup_test_run):
- 9:32 AM Changeset in webkit [207217] by
-
- 2 edits22 adds in trunk/LayoutTests
[GTK] Tests that fail since the new URLParser has been enabled on r207162.
https://bugs.webkit.org/show_bug.cgi?id=163335
Unreviewed gardening.
Rebaseline 12 tests that don't look like real failures, and report the other 36 that look as such.
- platform/gtk/TestExpectations:
- platform/gtk/fast/css-generated-content/malformed-url-expected.txt: Added.
- platform/gtk/fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt: Added.
- platform/gtk/fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt: Added.
- platform/gtk/fast/loader/url-parse-1-expected.txt: Added.
- platform/gtk/fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt: Added.
- platform/gtk/fast/url/invalid-idn-expected.txt: Added.
- platform/gtk/fast/url/segments-userinfo-vs-host-expected.txt: Added.
- platform/gtk/fast/url/tab-and-newline-stripping-expected.txt: Added.
- platform/gtk/fast/url/url-credentials-escaping-expected.txt: Added.
- platform/gtk/http/tests/eventsource/eventsource-cors-non-http-expected.txt: Added.
- platform/gtk/http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt: Added.
- platform/gtk/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt: Added.
- 9:24 AM Changeset in webkit [207216] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed, fix Windows build break after r207182.
- platform/graphics/cg/ImageDecoderCG.cpp:
- 9:23 AM Changeset in webkit [207215] by
-
- 58 edits in trunk
Update remaining DOM events to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163319
Reviewed by Darin Adler.
Source/WebCore:
Update remaining DOM events to stop using legacy [ConstructorTemplate=Event]
and use regular constructors instead.
No new tests, updated existing tests.
- dom/AutocompleteErrorEvent.h:
- dom/AutocompleteErrorEvent.idl:
- dom/BeforeLoadEvent.h:
- dom/BeforeLoadEvent.idl:
- dom/CompositionEvent.cpp:
(WebCore::CompositionEvent::CompositionEvent):
- dom/CompositionEvent.h:
- dom/CompositionEvent.idl:
- dom/ErrorEvent.cpp:
(WebCore::ErrorEvent::ErrorEvent):
- dom/ErrorEvent.h:
- dom/ErrorEvent.idl:
- dom/FocusEvent.cpp:
(WebCore::FocusEvent::FocusEvent):
- dom/FocusEvent.h:
- dom/FocusEvent.idl:
- dom/HashChangeEvent.h:
- dom/HashChangeEvent.idl:
- dom/OverflowEvent.cpp:
(WebCore::OverflowEvent::OverflowEvent):
- dom/OverflowEvent.h:
- dom/OverflowEvent.idl:
- dom/PageTransitionEvent.cpp:
(WebCore::PageTransitionEvent::PageTransitionEvent):
- dom/PageTransitionEvent.h:
- dom/PageTransitionEvent.idl:
- dom/PopStateEvent.cpp:
(WebCore::PopStateEvent::PopStateEvent):
(WebCore::PopStateEvent::create):
- dom/PopStateEvent.h:
- dom/PopStateEvent.idl:
- dom/SecurityPolicyViolationEvent.h:
- dom/SecurityPolicyViolationEvent.idl:
- dom/TouchEvent.cpp:
(WebCore::TouchEvent::TouchEvent):
- dom/TouchEvent.h:
- dom/TouchEvent.idl:
- dom/TransitionEvent.cpp:
(WebCore::TransitionEvent::TransitionEvent):
- dom/TransitionEvent.h:
- dom/TransitionEvent.idl:
- dom/WebKitAnimationEvent.cpp:
(WebCore::WebKitAnimationEvent::WebKitAnimationEvent):
- dom/WebKitAnimationEvent.h:
- dom/WebKitAnimationEvent.idl:
- dom/WebKitTransitionEvent.cpp:
(WebCore::WebKitTransitionEvent::WebKitTransitionEvent):
- dom/WebKitTransitionEvent.h:
- dom/WebKitTransitionEvent.idl:
LayoutTests:
Rebaseline several existing tests to reflect minor behavior changes:
- We now properly use the default member value when an explicit undefined is passed.
- We throw more exceptions when bad input is passed.
- Exception messages are sometimes slightly different.
- fast/events/constructors/before-load-event-constructor-expected.txt:
- fast/events/constructors/before-load-event-constructor.html:
- fast/events/constructors/composition-event-constructor-expected.txt:
- fast/events/constructors/composition-event-constructor.html:
- fast/events/constructors/error-event-constructor-expected.txt:
- fast/events/constructors/error-event-constructor.html:
- fast/events/constructors/focus-event-constructor-expected.txt:
- fast/events/constructors/focus-event-constructor.html:
- fast/events/constructors/hash-change-event-constructor-expected.txt:
- fast/events/constructors/hash-change-event-constructor.html:
- fast/events/constructors/pop-state-event-constructor-expected.txt:
- fast/events/constructors/pop-state-event-constructor.html:
- fast/events/constructors/transition-event-constructor-expected.txt:
- fast/events/constructors/transition-event-constructor.html:
- fast/events/constructors/webkit-animation-event-constructor-expected.txt:
- fast/events/constructors/webkit-animation-event-constructor.html:
- fast/events/constructors/webkit-transition-event-constructor-expected.txt:
- fast/events/constructors/webkit-transition-event-constructor.html:
- 7:41 AM Changeset in webkit [207214] by
-
- 8 edits in trunk/Source
Stop using PassRefPtr in platform/efl
https://bugs.webkit.org/show_bug.cgi?id=163321
Reviewed by Laszlo Gombos.
Stop using PassRefPtr in platform/efl.
- platform/efl/BatteryProviderEfl.cpp:
(WebCore::batteryProperties):
(WebCore::BatteryProviderEfl::setBatteryStatus):
(WebCore::BatteryProviderEfl::dispatchEvent):
- platform/efl/BatteryProviderEfl.h:
- platform/efl/BatteryProviderEflClient.h:
- platform/efl/PlatformSpeechSynthesisProviderEfl.cpp:
(WebCore::PlatformSpeechSynthesisProviderEfl::voiceName):
(WebCore::PlatformSpeechSynthesisProviderEfl::speak):
- platform/efl/PlatformSpeechSynthesisProviderEfl.h:
- 2:54 AM Changeset in webkit [207213] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed buildfix for GCC 4.9 after r207186.
https://bugs.webkit.org/show_bug.cgi?id=163255
- runtime/HasOwnPropertyCache.h:
(JSC::HasOwnPropertyCache::Entry::Entry):
- 1:41 AM Changeset in webkit [207212] by
-
- 5 edits2 adds in branches/safari-602-branch
Merge r206975. rdar://problem/28545012
- 1:41 AM Changeset in webkit [207211] by
-
- 2 edits in branches/safari-602-branch/Source/JavaScriptCore
Merge r206955. rdar://problem/28216236
- 1:41 AM Changeset in webkit [207210] by
-
- 3 edits1 add in branches/safari-602-branch
Merge r206472. rdar://problem/28545009
- 1:41 AM Changeset in webkit [207209] by
-
- 3 edits5 adds in branches/safari-602-branch
Merge r206280. rdar://problem/28476953
- 1:41 AM Changeset in webkit [207208] by
-
- 3 edits2 adds in branches/safari-602-branch
Merge r205861. rdar://problem/28409523
- 1:41 AM Changeset in webkit [207207] by
-
- 9 edits2 adds in branches/safari-602-branch
Merge r205786. rdar://problem/28476956
- 1:41 AM Changeset in webkit [207206] by
-
- 5 edits1 add in branches/safari-602-branch
Merge r205197. rdar://problem/28481424
- 1:41 AM Changeset in webkit [207205] by
-
- 14 edits in branches/safari-602-branch
Merge r205190. rdar://problem/28545010
- 1:41 AM Changeset in webkit [207204] by
-
- 4 edits in branches/safari-602-branch
Merge r204868. rdar://problem/28216263
- 1:41 AM Changeset in webkit [207203] by
-
- 3 edits in branches/safari-602-branch/Source/WebCore
Merge r204631. rdar://problem/28481427
- 1:41 AM Changeset in webkit [207202] by
-
- 3 edits1 add in branches/safari-602-branch
Merge r204612. rdar://problem/28216278
- 1:41 AM Changeset in webkit [207201] by
-
- 2 edits in branches/safari-602-branch/Source/WebInspectorUI
Merge r204428. rdar://problem/28476954
- 1:41 AM Changeset in webkit [207200] by
-
- 3 edits4 adds in branches/safari-602-branch
Merge r204266. rdar://problem/28216261
- 1:41 AM Changeset in webkit [207199] by
-
- 4 edits in branches/safari-602-branch/Source/bmalloc
Merge r204091. rdar://problem/28476960
- 1:41 AM Changeset in webkit [207198] by
-
- 2 edits in branches/safari-602-branch/Source/WebCore
Merge r203903. rdar://problem/28476961
- 1:41 AM Changeset in webkit [207197] by
-
- 2 edits in branches/safari-602-branch/Source/WebCore
Merge r203792. rdar://problem/28476951
- 1:40 AM Changeset in webkit [207196] by
-
- 8 edits16 adds in branches/safari-602-branch
Merge r203611. rdar://problem/28476958
- 1:40 AM Changeset in webkit [207195] by
-
- 9 edits in branches/safari-602-branch
Merge r203522. rdar://problem/28476959
- 1:40 AM Changeset in webkit [207194] by
-
- 5 edits4 adds in branches/safari-602-branch
Merge r203383. rdar://problem/28216264
- 12:37 AM Changeset in webkit [207193] by
-
- 13 edits in trunk/Source/WebCore
Attribute setter binding generated code should use more references
https://bugs.webkit.org/show_bug.cgi?id=163275
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-12
Reviewed by Alex Christensen.
No change of behavior.
- bindings/scripts/CodeGeneratorJS.pm:
(JSValueToNative):
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
Oct 11, 2016:
- 11:57 PM Changeset in webkit [207192] by
-
- 38 edits in trunk/Source/WebCore
Refactor binding generated casted-this checks for methods
https://bugs.webkit.org/show_bug.cgi?id=163198
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-11
Reviewed by Darin Adler.
Covered by existing tests and binding rebased tests..
Introducing BindingCaller::callMethod and callPromiseMethod to encapsulate casted-this checks for methods.
This is supported for all methods except seralizer and iterators methods.
Introduced castForMethod similarly to castForAttribute.
Moved this from static methods of JSClass to static methods of BindingCaller<JSClass>
This allows removing the corresponding declarations from JSClass header file.
Note the difference of handling thisValue between the two in case of CustomProxyToJSObject.
This should be made more consistent.
In case of bad casted this check, CustomProxyToJSObject objects will throw a TypeError with an error message like other methods.
Before the patch, a TypeError without error message was thrown.
EventTarget being different, added a specialization of BindingCaller for it.
This allows also removing some binding generated code dedicated to EventTarget.
A similar approach might also be done for CustomProxyToJSObject objects to further simplify the binding generator.
- bindings/js/JSDOMBinding.cpp:
(WebCore::rejectPromiseWithThisTypeError):
- bindings/js/JSDOMBinding.h:
(WebCore::BindingCaller::callPromiseMethod):
(WebCore::BindingCaller::callMethod):
- bindings/js/JSEventTargetCustom.h:
(WebCore::BindingCaller<JSEventTarget>::callMethod):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateImplementation):
(GenerateFunctionCastedThis): Deleted.
- bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
- bindings/scripts/test/JS/JSTestActiveDOMObject.h:
- bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
- bindings/scripts/test/JS/JSTestCustomNamedGetter.h:
- bindings/scripts/test/JS/JSTestEventTarget.cpp:
- bindings/scripts/test/JS/JSTestEventTarget.h:
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestGlobalObject.h:
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestInterface.h:
- bindings/scripts/test/JS/JSTestIterable.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.h:
- bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
- bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNode.h:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.h:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestObj.h:
- bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
- bindings/scripts/test/JS/JSTestOverrideBuiltins.h:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.h:
- 11:39 PM Changeset in webkit [207191] by
-
- 3 edits in trunk/Source/WebKit2
[EFL] Update API tests which are passed or failed
https://bugs.webkit.org/show_bug.cgi?id=163322
Unreviewed, simple on/off API test.
*ewk_favicon_database_clear* has been crashed for a long time, however
*ewk_cookie_manager_permanent_storage* is fine now. So the passing test
is enabled again, and disable the failure tests.
Patch by Gyuyoung Kim <gyuyoung.kim@navercorp.com> on 2016-10-11
- UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
(TEST_F):
- UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
(TEST_F):
- 11:26 PM Changeset in webkit [207190] by
-
- 5 edits in trunk/Source/WebCore
MediaResourceLoader::requestResource should take a ResourceRequest&& as input
https://bugs.webkit.org/show_bug.cgi?id=160397
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-11
Reviewed by Alex Christensen.
No change in behavior.
- loader/MediaResourceLoader.cpp:
(WebCore::MediaResourceLoader::requestResource): Passing a ResourceRequest&& as input parameter.
- loader/MediaResourceLoader.h:
- platform/graphics/PlatformMediaResourceLoader.h: Ditto.
- platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcStart): Creating an extra copy since MediaResourceLoader::requestResource expects a Resourcerequest&&.
- 10:34 PM Changeset in webkit [207189] by
-
- 2 edits in trunk/LayoutTests
[EFL] Mark url tests to failure
Unreviewed EFL gardening on Oct. 12th.
URL tests have been failed since r207162.
- platform/efl/TestExpectations:
- 9:48 PM Changeset in webkit [207188] by
-
- 4 edits in trunk/Source/WebCore
Update AnimationEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163312
Reviewed by Ryosuke Niwa.
Update AnimationEvent to stop using legacy [ConstructorTemplate=Event]
and use a regular constructor as in the specification:
- dom/AnimationEvent.cpp:
(WebCore::AnimationEvent::AnimationEvent):
- dom/AnimationEvent.h:
- dom/AnimationEvent.idl:
- 9:47 PM Changeset in webkit [207187] by
-
- 4 edits in trunk/Source/WebCore
Update DeviceProximityEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163311
Reviewed by Ryosuke Niwa.
Update DeviceProximityEvent to stop using legacy [ConstructorTemplate=Event]
and use a regular constructor instead, as in the specification:
- Modules/proximity/DeviceProximityEvent.cpp:
(WebCore::DeviceProximityEvent::DeviceProximityEvent):
- Modules/proximity/DeviceProximityEvent.h:
(WebCore::DeviceProximityEvent::create):
(WebCore::DeviceProximityEventInit::DeviceProximityEventInit): Deleted.
- Modules/proximity/DeviceProximityEvent.idl:
- 8:14 PM Changeset in webkit [207186] by
-
- 2 edits in trunk/Source/JavaScriptCore
HasOwnPropertyCache needs to ref the UniquedStringImpls it sees
https://bugs.webkit.org/show_bug.cgi?id=163255
Reviewed by Geoffrey Garen.
The cache needs to be responsible for ensuring that things
in the cache stay alive. Before, it wasn't doing this, and
that was wrong.
- runtime/HasOwnPropertyCache.h:
(JSC::HasOwnPropertyCache::Entry::operator=):
(JSC::HasOwnPropertyCache::operator delete):
(JSC::HasOwnPropertyCache::create):
(JSC::HasOwnPropertyCache::get):
(JSC::HasOwnPropertyCache::tryAdd):
(JSC::HasOwnPropertyCache::clear):
(JSC::HasOwnPropertyCache::zeroBuffer):
- 7:24 PM Changeset in webkit [207185] by
-
- 2 edits in trunk/LayoutTests
Fix a typo in the test.
- fast/media/mq-color-gamut.html:
- 7:06 PM Changeset in webkit [207184] by
-
- 2 edits in trunk/Tools
Update API test expectation after r207162.
- TestWebKitAPI/Tests/WebKit2Cocoa/LoadInvalidURLRequest.mm:
(-[LoadInvalidURLNavigationActionDelegate webView:didFailProvisionalNavigation:withError:]):
Like r207167 but with a WebKit2 test.
"https://www.example.com<>/" was an invalid URL with the old URL parser, is now valid with URLParser but not with NSURL's parser.
- 6:52 PM Changeset in webkit [207183] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed, EFL build fix because of r207173.
- testing/InternalSettings.cpp:
(WebCore::InternalSettings::forcedPrefersReducedMotionValue):
- 6:40 PM Changeset in webkit [207182] by
-
- 12 edits in trunk/Source/WebCore
[CG] Add the option to immediately decode an image frame and control its memory caching
https://bugs.webkit.org/show_bug.cgi?id=163298
Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-10-11
Reviewed by Simon Fraser.
This patch fixes two things. (1) An option is added to immediately decode an
image frame. This can be done by adding kCGImageSourceShouldCacheImmediately
to the ImageSource options dictionary. (2) BitmapImage should also control
when the image frame is actually deleted from memory. This can be done by
calling CGImageSourceCreateThumbnailAtIndex(). CG does not keep a reference
to the returned CGImageRef.
- platform/graphics/ImageFrame.h: Adding the DecodingMode enum class.
Ideally this should be a member of ImageDecoder class. But since we
have three header files for ImageDecoder, this can be added here till
the three files combined in one header file.
- platform/graphics/ImageFrameCache.cpp:
(WebCore::ImageFrameCache::setRenderTarget): Deleted.
- platform/graphics/ImageFrameCache.h:
- platform/graphics/ImageSource.cpp:
(WebCore::ImageSource::setRenderTarget):
- platform/graphics/ImageSource.h:
(WebCore::ImageSource::setRenderTarget): Deleted.
Unrelated change. The native image decoder is available from the ImageSource.
ImageSource::setTarget() does not need not to get it through ImageFrameCache.
- platform/graphics/cg/ImageDecoderCG.cpp:
(WebCore::createImageSourceOptions): Clean this function by using CFMutableDictionary.
(WebCore::imageSourceOptions): Cache two default ImageSource options and create new
ones for the non default cases.
(WebCore::ImageDecoder::createFrameImageAtIndex): Use the appropriate ImageSource function
- platform/graphics/cg/ImageDecoderCG.h:
- platform/graphics/win/ImageDecoderDirect2D.cpp:
(WebCore::ImageDecoder::createFrameImageAtIndex):
- platform/graphics/win/ImageDecoderDirect2D.h:
- platform/image-decoders/ImageDecoder.cpp:
(WebCore::ImageDecoder::createFrameImageAtIndex):
- platform/image-decoders/ImageDecoder.h: Change functions' signature to include a DecodingMode argument.
- 5:25 PM Changeset in webkit [207181] by
-
- 3 edits31 adds in trunk
select.options may return too many option elements
https://bugs.webkit.org/show_bug.cgi?id=163296
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
Import html/infrastructure web-platform-tests from upstream.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/contains.json: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection-expected.txt: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection-expected.txt: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmlformcontrolscollection.html: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmloptionscollection-expected.txt: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/radionodelist-expected.txt: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/radionodelist.html: Added.
- web-platform-tests/html/infrastructure/common-dom-interfaces/collections/w3c-import.log: Added.
- web-platform-tests/html/infrastructure/common-microsyntaxes/dates-and-times/contains.json: Added.
- web-platform-tests/html/infrastructure/common-microsyntaxes/dates-and-times/w3c-import.log: Added.
- web-platform-tests/html/infrastructure/common-microsyntaxes/numbers/contains.json: Added.
- web-platform-tests/html/infrastructure/common-microsyntaxes/numbers/w3c-import.log: Added.
- web-platform-tests/html/infrastructure/conformance-requirements/extensibility/foreign-expected.txt: Added.
- web-platform-tests/html/infrastructure/conformance-requirements/extensibility/foreign.html: Added.
- web-platform-tests/html/infrastructure/conformance-requirements/extensibility/w3c-import.log: Added.
- web-platform-tests/html/infrastructure/terminology/plugins/sample.txt: Added.
- web-platform-tests/html/infrastructure/terminology/plugins/text-plain-expected.txt: Added.
- web-platform-tests/html/infrastructure/terminology/plugins/text-plain.html: Added.
- web-platform-tests/html/infrastructure/terminology/plugins/w3c-import.log: Added.
Source/WebCore:
select.options may return too many option elements. We're only supposed
to return the option element children of the select element, and the
option element children of all the optgroup element children of the
select element, in tree order:
- https://html.spec.whatwg.org/#dom-select-options
- https://html.spec.whatwg.org/#concept-select-option-list
Firefox and Chrome agrees with the specification. However, WebKit was
returning all the option elements that are descendants of the select
element.
Test: imported/w3c/web-platform-tests/html/infrastructure/common-dom-interfaces/collections/htmloptionscollection.html
- html/HTMLOptionsCollection.h:
- 5:17 PM Changeset in webkit [207180] by
-
- 3 edits in trunk/LayoutTests
Skipping loader/stateobjects tests on mac and ios-simulator debug.
https://bugs.webkit.org/show_bug.cgi?id=163307
Unreviewed test gardening.
- platform/ios-simulator/TestExpectations:
- platform/mac/TestExpectations:
- 4:52 PM Changeset in webkit [207179] by
-
- 20 edits1 add in trunk/Source
MarkedBlock should know what objects are live during marking
https://bugs.webkit.org/show_bug.cgi?id=162309
Reviewed by Geoffrey Garen.
Source/JavaScriptCore:
It used to be that we would forget which objects are live the moment we started collection.
That's because the flip at the beginning clears all mark bits.
But we already have a facility for tracking objects that are live-but-not-marked. It's called
newlyAllocated. So, instead of clearing mark bits, we want to just transfer them to
newlyAllocated. Then we want to clear all newlyAllocated after GC.
This implements such an approach, along with a versioning optimization for newlyAllocated.
Instead of walking the whole heap to clear newlyAllocated bits at the end of the GC, we bump
the newlyAllocatedVersion, which causes MarkedBlock to treat newlyAllocated as if it was
clear.
We could have even avoided allocating newlyAllocated in most cases, since empirically most
blocks are either completely empty or completely full. An earlier version of this patch did
this, but it was not better than this patch. In fact, it seemed to actually be worse for PLT
and membuster.
To validate this change, we now run the conservative scan after the beginMarking flip. And it
totally works!
This is a huge step towards concurrent GC. It means that we ought to be able to run the
allocator while marking. Since we already separately made it possible to run the barrier
while marking, this means that we're pretty much ready for some serious concurrency action.
This appears to be perf-neutral and space-neutral.
- JavaScriptCore.xcodeproj/project.pbxproj:
- bytecode/CodeBlock.cpp:
- bytecode/CodeBlock.h:
(JSC::CodeBlockSet::mark): Deleted.
- heap/CodeBlockSet.cpp:
(JSC::CodeBlockSet::writeBarrierCurrentlyExecuting):
(JSC::CodeBlockSet::clearCurrentlyExecuting):
(JSC::CodeBlockSet::writeBarrierCurrentlyExecutingCodeBlocks): Deleted.
- heap/CodeBlockSet.h:
- heap/CodeBlockSetInlines.h: Added.
(JSC::CodeBlockSet::mark):
- heap/ConservativeRoots.cpp:
- heap/Heap.cpp:
(JSC::Heap::markRoots):
(JSC::Heap::beginMarking):
(JSC::Heap::collectImpl):
(JSC::Heap::writeBarrierCurrentlyExecutingCodeBlocks):
(JSC::Heap::clearCurrentlyExecutingCodeBlocks):
- heap/Heap.h:
- heap/HeapUtil.h:
(JSC::HeapUtil::findGCObjectPointersForMarking):
- heap/MarkedAllocator.cpp:
(JSC::MarkedAllocator::isPagedOut):
- heap/MarkedBlock.cpp:
(JSC::MarkedBlock::Handle::Handle):
(JSC::MarkedBlock::Handle::sweepHelperSelectHasNewlyAllocated):
(JSC::MarkedBlock::Handle::stopAllocating):
(JSC::MarkedBlock::Handle::lastChanceToFinalize):
(JSC::MarkedBlock::Handle::resumeAllocating):
(JSC::MarkedBlock::aboutToMarkSlow):
(JSC::MarkedBlock::Handle::resetAllocated):
(JSC::MarkedBlock::resetMarks):
(JSC::MarkedBlock::setNeedsDestruction):
(JSC::MarkedBlock::Handle::didAddToAllocator):
(JSC::MarkedBlock::Handle::isLive):
(JSC::MarkedBlock::Handle::isLiveCell):
(JSC::MarkedBlock::clearMarks): Deleted.
- heap/MarkedBlock.h:
(JSC::MarkedBlock::Handle::newlyAllocatedVersion):
(JSC::MarkedBlock::Handle::hasAnyNewlyAllocated): Deleted.
(JSC::MarkedBlock::Handle::clearNewlyAllocated): Deleted.
- heap/MarkedBlockInlines.h:
(JSC::MarkedBlock::Handle::cellsPerBlock):
(JSC::MarkedBlock::Handle::isLive):
(JSC::MarkedBlock::Handle::isLiveCell):
(JSC::MarkedBlock::Handle::isNewlyAllocatedStale):
(JSC::MarkedBlock::Handle::hasAnyNewlyAllocatedWithSweep):
(JSC::MarkedBlock::Handle::hasAnyNewlyAllocated):
(JSC::MarkedBlock::heap):
(JSC::MarkedBlock::space):
(JSC::MarkedBlock::Handle::space):
(JSC::MarkedBlock::resetMarkingVersion): Deleted.
- heap/MarkedSpace.cpp:
(JSC::MarkedSpace::beginMarking):
(JSC::MarkedSpace::endMarking):
(JSC::MarkedSpace::clearNewlyAllocated): Deleted.
- heap/MarkedSpace.h:
(JSC::MarkedSpace::nextVersion):
(JSC::MarkedSpace::newlyAllocatedVersion):
(JSC::MarkedSpace::markingVersion): Deleted.
- runtime/SamplingProfiler.cpp:
Source/WTF:
This removes the atomicity mode, because it's not really used: it only affects the
concurrentBlah methods, but their only users turn on atomicity. This was useful because
previously, some binary Bitmap methods (like merge(const Bitmap&)) couldn't be used
effectively in the GC because some of the GC's bitmaps set the atomic mode and some didn't.
Removing this useless mode is the best solution.
Also added some new binary Bitmap methods: mergeAndClear(Bitmap& other) and
setAndClear(Bitmap& other). They perform their action on 'this' (either merge or set,
respectively) while also clearing the contents of 'other'. This is great for one of the GC
hot paths.
- wtf/Bitmap.h:
(WTF::WordType>::Bitmap):
(WTF::WordType>::get):
(WTF::WordType>::set):
(WTF::WordType>::testAndSet):
(WTF::WordType>::testAndClear):
(WTF::WordType>::concurrentTestAndSet):
(WTF::WordType>::concurrentTestAndClear):
(WTF::WordType>::clear):
(WTF::WordType>::clearAll):
(WTF::WordType>::nextPossiblyUnset):
(WTF::WordType>::findRunOfZeros):
(WTF::WordType>::count):
(WTF::WordType>::isEmpty):
(WTF::WordType>::isFull):
(WTF::WordType>::merge):
(WTF::WordType>::filter):
(WTF::WordType>::exclude):
(WTF::WordType>::forEachSetBit):
(WTF::WordType>::mergeAndClear):
(WTF::WordType>::setAndClear):
(WTF::=):
(WTF::WordType>::hash):
- 4:25 PM Changeset in webkit [207178] by
-
- 4 edits1 add in trunk
Array.prototype.concat should not modify frozen objects.
https://bugs.webkit.org/show_bug.cgi?id=163302
Reviewed by Filip Pizlo.
JSTests:
- stress/array-concat-on-frozen-object.js: Added.
Source/JavaScriptCore:
The ES6 spec for Array.prototype.concat states that it uses the
CreateDataPropertyOrThrow() to add items to the result array. The spec for
CreateDataPropertyOrThrow states:
"This abstract operation creates a property whose attributes are set to the same
defaults used for properties created by the ECMAScript language assignment
operator. Normally, the property will not already exist. If it does exist and is
not configurable or if O is not extensible, DefineOwnProperty will return
false causing this operation to throw a TypeError exception."
Since the properties of frozen objects are not extensible, not configurable, and
not writable, Array.prototype.concat should fail to write to the result array if
it is frozen.
Ref: https://tc39.github.io/ecma262/#sec-array.prototype.concat,
https://tc39.github.io/ecma262/#sec-createdatapropertyorthrow, and
https://tc39.github.io/ecma262/#sec-createdataproperty.
The fix consists of 2 parts:
- moveElement() should use the PutDirectIndexShouldThrow mode when invoking putDirectIndex(), and
- SparseArrayValueMap::putDirect() should check for the case where the property is read only.
(2) ensures that we don't write into a non-writable property.
(1) ensures that we throw a TypeError for attempts to write to a non-writeable
property.
- runtime/ArrayPrototype.cpp:
(JSC::moveElements):
- runtime/SparseArrayValueMap.cpp:
(JSC::SparseArrayValueMap::putDirect):
- 4:24 PM Changeset in webkit [207177] by
-
- 2 edits in trunk/Source/WebCore
Fix assertion when creating first WebCore::URL from non-main thread after r207162
https://bugs.webkit.org/show_bug.cgi?id=163304
Reviewed by Filip Pizlo.
This fixes assertions when running UserContentWorld.NormalWorld API tests.
- platform/text/TextEncodingRegistry.cpp:
(WebCore::buildBaseTextCodecMaps):
(WebCore::atomicCanonicalTextEncodingName):
The new URLParser requires a TextEncoding& in its constructor, which defaults to UTF8Encoding.
When creating the first TextEncoding in a process, it calls buildBaseTextCodecMaps which asserts
it's on the main thread because it initializes static variables. Since we are getting a lock right
after this call anyway, just put this function call inside the lock.
- 4:20 PM Changeset in webkit [207176] by
-
- 5 edits in trunk
color-gamut media query shouldn't ASSERT on invalid values
https://bugs.webkit.org/show_bug.cgi?id=163303
<rdar://problem/28724566>
Reviewed by Simon Fraser.
Source/WebCore:
Remove the ASSERT_NOT_REACHED in the evaluation, since it
can be hit when there is a valid CSS keyword that is not
expected in the query.
Updated fast/media/mq-color-gamut.html
- css/MediaQueryEvaluator.cpp:
(WebCore::colorGamutEvaluate):
LayoutTests:
Add a 'none' test.
- fast/media/mq-color-gamut-expected.html:
- fast/media/mq-color-gamut.html:
- 4:11 PM Changeset in webkit [207175] by
-
- 20 edits in trunk
Update MediaStream events to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163289
Reviewed by Sam Weinig.
Source/WebCore:
Update MediaStream events to stop using legacy [ConstructorTemplate=Event]
and use regular constructors instead.
- Modules/mediastream/MediaStreamEvent.cpp:
(WebCore::MediaStreamEvent::create):
(WebCore::MediaStreamEvent::MediaStreamEvent):
- Modules/mediastream/MediaStreamEvent.h:
- Modules/mediastream/MediaStreamEvent.idl:
- Modules/mediastream/MediaStreamTrackEvent.cpp:
(WebCore::MediaStreamTrackEvent::create):
(WebCore::MediaStreamTrackEvent::MediaStreamTrackEvent):
- Modules/mediastream/MediaStreamTrackEvent.h:
- Modules/mediastream/MediaStreamTrackEvent.idl:
- Modules/mediastream/OverconstrainedErrorEvent.h:
(WebCore::OverconstrainedErrorEvent::create):
(WebCore::OverconstrainedErrorEvent::OverconstrainedErrorEvent):
(WebCore::OverconstrainedErrorEvent::~OverconstrainedErrorEvent): Deleted.
- Modules/mediastream/OverconstrainedErrorEvent.idl:
- Modules/mediastream/RTCDTMFToneChangeEvent.cpp:
(WebCore::RTCDTMFToneChangeEvent::create):
(WebCore::RTCDTMFToneChangeEvent::RTCDTMFToneChangeEvent):
- Modules/mediastream/RTCDTMFToneChangeEvent.h:
- Modules/mediastream/RTCDTMFToneChangeEvent.idl:
- Modules/mediastream/RTCTrackEvent.cpp:
(WebCore::RTCTrackEvent::create):
(WebCore::RTCTrackEvent::RTCTrackEvent):
- Modules/mediastream/RTCTrackEvent.h:
- Modules/mediastream/RTCTrackEvent.idl:
LayoutTests:
Update existing test cases now that we throw more exceptions on bad input.
- fast/events/constructors/overconstrained-error-event-constructor-expected.txt:
- fast/events/constructors/overconstrained-error-event-constructor.html:
- fast/mediastream/MediaStreamTrackEvent-constructor-expected.txt:
- fast/mediastream/MediaStreamTrackEvent-constructor.html:
- 4:07 PM Changeset in webkit [207174] by
-
- 4 edits in trunk/Source/WebCore
Update UIRequestEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163288
Reviewed by Darin Adler.
Update UIRequestEvent to stop using legacy [ConstructorTemplate=Event]
and use a constructor as in the specification:
- Modules/indieui/UIRequestEvent.cpp:
(WebCore::UIRequestEvent::create):
(WebCore::UIRequestEvent::UIRequestEvent):
(WebCore::UIRequestEvent::createForBindings): Deleted.
- Modules/indieui/UIRequestEvent.h:
- Modules/indieui/UIRequestEvent.idl:
- 3:45 PM Changeset in webkit [207173] by
-
- 21 edits4 adds in trunk
Implement prefers-reduced-motion media query
https://bugs.webkit.org/show_bug.cgi?id=163250
<rdar://problem/28704129>
Reviewed by Simon Fraser.
Source/WebCore:
Implement the prefers-reduced-motion media query, as
described in https://github.com/w3c/csswg-drafts/issues/442.
Tests: fast/media/mq-prefers-reduced-motion-forced-value.html
fast/media/mq-prefers-reduced-motion.html
- Configurations/WebCoreTestSupport.xcconfig: Link against AppKit and UIKit.
- css/CSSValueKeywords.in: New keyword for "reduce".
- css/MediaFeatureNames.h: Add prefers-reduced-motion.
- css/MediaQueryEvaluator.cpp:
(WebCore::prefersReducedMotionEvaluate):
- css/MediaQueryExp.cpp:
(WebCore::featureWithValidIdent):
(WebCore::isFeatureValidWithoutValue):
- platform/Theme.h: New API to detect the system accessibility settings.
(WebCore::Theme::userPrefersReducedMotion):
- platform/ios/ThemeIOS.h:
- platform/ios/ThemeIOS.mm:
(WebCore::ThemeIOS::userPrefersReducedMotion):
- platform/mac/ThemeMac.h:
- platform/mac/ThemeMac.mm:
(WebCore::ThemeMac::userPrefersReducedMotion):
- testing/Internals.cpp: Expose the same API to internals, so that
a test can examine the value too.
(WebCore::Internals::userPrefersReducedMotion):
- testing/Internals.h:
- testing/Internals.idl:
- testing/Internals.mm:
(WebCore::Internals::userPrefersReducedMotion):
- page/Settings.h: New setting to override the system value...
- page/Settings.in:
- testing/InternalSettings.cpp: ... plumbed through internals.
(WebCore::InternalSettings::Backup::Backup):
(WebCore::InternalSettings::Backup::restoreTo):
(WebCore::InternalSettings::forcedPrefersReducedMotionValue):
(WebCore::InternalSettings::setForcedPrefersReducedMotionValue):
- testing/InternalSettings.h:
- testing/InternalSettings.idl:
- testing/Internals.cpp:
(WebCore::Internals::userPrefersReducedMotion):
- testing/Internals.h:
- testing/Internals.idl:
- testing/Internals.mm:
(WebCore::Internals::userPrefersReducedMotion):
LayoutTests:
One test checks the system value. The other test overrides
the system values to make sure as much as possible is working.
- fast/media/mq-prefers-reduced-motion-expected.html: Added.
- fast/media/mq-prefers-reduced-motion-forced-value-expected.html: Added.
- fast/media/mq-prefers-reduced-motion-forced-value.html: Added.
- fast/media/mq-prefers-reduced-motion.html: Added.
- 3:37 PM Changeset in webkit [207172] by
-
- 2 edits in trunk/LayoutTests
Skip tests added with r207155 that rely on touch events.
Unreviewed test gardening.
- platform/ios-simulator/TestExpectations:
- 3:19 PM Changeset in webkit [207171] by
-
- 4 edits in trunk/Source
Attempt to fix the Apple Internal Mac build following r207159
(https://bugs.webkit.org/show_bug.cgi?id=163244)
Source/WebKit/mac:
- WebView/WebView.mm:
(shouldRequireUserGestureToLoadVideo):
Source/WebKit2:
- UIProcess/API/Cocoa/WKWebView.mm:
(shouldRequireUserGestureToLoadVideo):
- 3:07 PM Changeset in webkit [207170] by
-
- 23 edits6 adds in trunk
Annotate DOM API with CEReactions
https://bugs.webkit.org/show_bug.cgi?id=163268
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Rebaseline tests now that more test cases are passing.
- web-platform-tests/custom-elements/reactions/Attr-expected.txt:
- web-platform-tests/custom-elements/reactions/ChildNode-expected.txt:
- web-platform-tests/custom-elements/reactions/DOMTokenList-expected.txt:
- web-platform-tests/custom-elements/reactions/Document-expected.txt:
- web-platform-tests/custom-elements/reactions/Element-expected.txt:
- web-platform-tests/custom-elements/reactions/NamedNodeMap-expected.txt:
- web-platform-tests/custom-elements/reactions/Node-expected.txt:
- web-platform-tests/custom-elements/reactions/ParentNode-expected.txt:
- web-platform-tests/custom-elements/reactions/Range-expected.txt:
Source/WebCore:
Added CEReactions IDL attribute to APIs defined in https://dom.spec.whatwg.org.
No new tests since existing tests cover the code change.
Added a dedicated code generation test: JSTestCEReactions.idl and TestCEReactionsStringifier.idl.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation): Generate CustomElementReactionStack in attribute setters. In the case of PutForwards,
check the extended attributes of the target attribute's stringifier.
- bindings/scripts/test/JS/JSTestCEReactions.cpp: Added.
- bindings/scripts/test/JS/JSTestCEReactions.h: Added.
- bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: Added.
- bindings/scripts/test/JS/JSTestCEReactionsStringifier.h: Added.
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionMethodWithNeedsCustomElementReactionStack): Deleted.
- bindings/scripts/test/TestCEReactions.idl: Added.
- bindings/scripts/test/TestCEReactionsStringifier.idl: Added.
- bindings/scripts/test/TestObj.idl:
- dom/Attr.idl:
- dom/ChildNode.idl:
- dom/Document.idl:
- dom/Element.idl:
- dom/NamedNodeMap.idl:
- dom/Node.idl:
- dom/ParentNode.idl:
- dom/Range.idl:
- html/DOMTokenList.idl:
- 3:03 PM Changeset in webkit [207169] by
-
- 6 edits in trunk
Update CloseEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163293
Reviewed by Darin Adler.
Source/WebCore:
Update CloseEvent to stop using legacy [ConstructorTemplate=Event] and
use a regular constructor as in the specification:
No new tests, updated existing test.
- Modules/websockets/CloseEvent.h:
(WebCore::CloseEvent::create):
(WebCore::CloseEvent::CloseEvent):
- Modules/websockets/CloseEvent.idl:
LayoutTests:
Update existing test to reflect a small behavior change. Passing an explicit
undefined as 'reason' members now initializes the attribute to the empty
string (the member's default value) instead of the string "undefined". This
new behavior matches Chrome and Firefox.
- fast/events/constructors/close-event-constructor-expected.txt:
- fast/events/constructors/close-event-constructor.html:
- 3:01 PM Changeset in webkit [207168] by
-
- 6 edits in trunk/Source/WebKit2
Clean up WebPageGroup somewhat
https://bugs.webkit.org/show_bug.cgi?id=163299
Reviewed by Tim Horton.
- Shared/API/c/WKDeprecatedFunctions.cpp:
(WKPageGroupCopyIdentifier):
Move this here from WKPageGroup.
(WKPageGroupAddUserContentFilter):
(WKPageGroupRemoveUserContentFilter):
(WKPageGroupRemoveAllUserContentFilters):
Just call directly into the user content controller.
- UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupAddUserStyleSheet):
(WKPageGroupRemoveAllUserStyleSheets):
(WKPageGroupAddUserScript):
(WKPageGroupRemoveAllUserScripts):
Just call directly into the user content controller.
- UIProcess/API/C/WKPageGroup.h:
- UIProcess/WebPageGroup.cpp:
(WebKit::WebPageGroup::addUserStyleSheet): Deleted.
(WebKit::WebPageGroup::addUserScript): Deleted.
(WebKit::WebPageGroup::removeAllUserStyleSheets): Deleted.
(WebKit::WebPageGroup::removeAllUserScripts): Deleted.
(WebKit::WebPageGroup::removeAllUserContent): Deleted.
(WebKit::WebPageGroup::addUserContentExtension): Deleted.
(WebKit::WebPageGroup::removeUserContentExtension): Deleted.
(WebKit::WebPageGroup::removeAllUserContentExtensions): Deleted.
Get rid of these, all their callers just call into the user content controller now.
- UIProcess/WebPageGroup.h:
(WebKit::WebPageGroup::identifier): Deleted.
(WebKit::WebPageGroup::sendToAllProcessesInGroup): Deleted.
Remove unused code.
- 2:58 PM Changeset in webkit [207167] by
-
- 2 edits in trunk/Tools
Update API test expectation after r207162.
https://bugs.webkit.org/show_bug.cgi?id=162660
- TestWebKitAPI/Tests/mac/LoadInvalidURLRequest.mm:
(-[LoadInvalidURLWebFrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
"https://www.example.com<>/" was an invalid URL with the old URL parser.
It is now a valid URL, but NSURL still considers it invalid.
This will be looked into more with https://bugs.webkit.org/show_bug.cgi?id=163127
- 2:33 PM Changeset in webkit [207166] by
-
- 10 edits1 copy in trunk/Source
[DOMJIT] DOMJIT::Patchpoint should have a way to receive constant folded arguments
https://bugs.webkit.org/show_bug.cgi?id=163224
Reviewed by Filip Pizlo.
Source/JavaScriptCore:
We use the GetGlobalObject DFG node to retrieve a global object from a DOM node.
This global object is necessary to check whether the world is normal before entering
the fast path of looking up the DOM wrapper cache.
We can sometimes constant-fold this GetGlobalObject. For example, if we performed
CheckStructure, the structure can offer the information about the possible result
of GetGlobalObject. By using this constant-folded global object, we can drop some
checks.
This patch introduces the way to tell the constant-folded values to DOMJIT::Patchpoint.
We pass DOMJIT::Value instead of DOMJIT::Reg as a parameter of DOMJIT::PatchpointParams.
This DOMJIT::Value is a pair of DOMJIT::Reg and JSValue. If the given parameter has a
constant value, this JSValue is filled with it.
- JavaScriptCore.xcodeproj/project.pbxproj:
- dfg/DFGDOMJITPatchpointParams.h:
(JSC::DFG::DOMJITPatchpointParams::DOMJITPatchpointParams):
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileCallDOM):
(JSC::DFG::SpeculativeJIT::compileCheckDOM):
- domjit/DOMJITPatchpointParams.h:
(JSC::DOMJIT::PatchpointParams::at):
(JSC::DOMJIT::PatchpointParams::operator[]):
(JSC::DOMJIT::PatchpointParams::PatchpointParams):
- domjit/DOMJITValue.h: Copied from Source/JavaScriptCore/dfg/DFGDOMJITPatchpointParams.h.
(JSC::DOMJIT::Value::Value):
(JSC::DOMJIT::Value::isGPR):
(JSC::DOMJIT::Value::isFPR):
(JSC::DOMJIT::Value::isJSValueRegs):
(JSC::DOMJIT::Value::gpr):
(JSC::DOMJIT::Value::fpr):
(JSC::DOMJIT::Value::jsValueRegs):
(JSC::DOMJIT::Value::reg):
(JSC::DOMJIT::Value::value):
- ftl/FTLDOMJITPatchpointParams.h:
(JSC::FTL::DOMJITPatchpointParams::DOMJITPatchpointParams):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCheckDOM):
(JSC::FTL::DFG::LowerDFGToB3::compileCallDOM):
Source/WebCore:
- domjit/DOMJITHelpers.h:
(WebCore::DOMJITHelpers::toWrapper):
- domjit/JSNodeDOMJIT.cpp:
(WebCore::createCallDOMForOffsetAccess):
- 2:24 PM Changeset in webkit [207165] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Remove line highlight on primary execution line while stepping because it is distracting
https://bugs.webkit.org/show_bug.cgi?id=163294
<rdar://problem/28721176>
Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-10-11
Reviewed by Timothy Hatcher.
- UserInterface/Views/TextEditor.js:
(WebInspector.TextEditor.prototype._updateExecutionLine):
When setting the primary execution line, remove default line highlights.
- 1:51 PM Changeset in webkit [207164] by
-
- 3 edits in trunk/Source/JavaScriptCore
Air should be able to replace constant materializations with adds
https://bugs.webkit.org/show_bug.cgi?id=162749
Reviewed by Yusuke Suzuki.
We have a lot of defenses against emitting code that materializes huge contants. But if we do
end up with such code in the backend, it's better to convert those materializations into add
instructions by checking if other registers are known to contain nearby constants. That's
what this patch does.
- b3/air/AirFixObviousSpills.cpp:
- b3/testb3.cpp:
- 1:37 PM Changeset in webkit [207163] by
-
- 3 edits in trunk/Source/JavaScriptCore
B3->Air lowering needs the same defenses in effectiveAddr() that it has in tryAppendLea()
https://bugs.webkit.org/show_bug.cgi?id=163264
Reviewed by Mark Lam.
When writing the lea patch (r207039), I was very careful about how I convert a Shl into a
BaseIndex scale. But I forgot to check if the older code for creating BaseIndexes for
effectiveAddr() got this right. It turns out that the older code missed the <<32 corner
case.
It's sad that the two paths can't share all of their code, but it's somewhat inevitable due
to how matching an address and matching a lea have to do very different things. Matching a
lea means creating an instruction that is distinct from other instructions to do multiple
math operations at once. Matching an address means making some instruction do extra work
for free. Also, address matching can take advantage of the fact that the offset is already
associated with the memory operation by strength reduction - lea matching can't do this; it
has to figure out Add(@value, $const) on its own. This change makes the situation slightly
more sane by adding a scaleForShl() helper that handles this weird case. It's based on the
new Shl handling from r207039, and exposes it as an API for effectiveAddr() to use.
The testLoadBaseIndexShift32() used to crash. I don't think that this case affects JS
content, since <<32 is such a bizarre outlier. I don't think we even have a path along
which the FTL would emit a 64-bit <<32. It probably won't even affect WebAssembly since
that uses 32-bit pointers, so we won't see 64-bit <<32 in effectiveAddr() there.
- b3/B3LowerToAir.cpp:
(JSC::B3::Air::LowerToAir::scaleForShl):
(JSC::B3::Air::LowerToAir::effectiveAddr):
(JSC::B3::Air::LowerToAir::tryAppendLea):
(JSC::B3::Air::LowerToAir::crossesInterference): Deleted.
- b3/testb3.cpp:
(JSC::B3::testLoadBaseIndexShift2):
(JSC::B3::testLoadBaseIndexShift32):
(JSC::B3::run):
- 1:27 PM Changeset in webkit [207162] by
-
- 90 edits15 adds in trunk
Enable URLParser by default
https://bugs.webkit.org/show_bug.cgi?id=162660
<rdar://28601706>
Reviewed by Sam Weinig.
LayoutTests/imported/w3c:
- web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt:
- web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/src-expected.txt:
- web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt:
These tests need more investigation. See https://bugs.webkit.org/show_bug.cgi?id=163127
- web-platform-tests/url/a-element-expected.txt:
- web-platform-tests/url/a-element-xhtml-expected.txt:
- web-platform-tests/url/url-constructor-expected.txt:
- web-platform-tests/url/url-setters-expected.txt:
Many more tests pass. Hooray!
Source/WebCore:
Covered by updates to many LayoutTests.
- platform/URLParser.cpp:
Make the default value true for URLParser::enabled.
This is the most impactful and well-documented one-line change I've ever written.
LayoutTests:
Many failing tests are now passing.
The tests in fast/url look like they are an old test suite, some of which we were failing.
We now pass many more of the tests. Those results are updated.
Some URLs in the suite are invalid, and we now "fail" those tests. Rather than update the
tests, I just changed the expectation to FAIL, which seems to be tolerable in this directory
because there were many tests whose result was FAIL. Each such case is explained below.
- fast/dom/DOMURL/parsing-expected.txt:
- fast/dom/DOMURL/parsing.html:
Percent-encoded values in the host are supposed to be decoded according to the spec.
%2f decodes to '/' which is an invalid domain character.
- fast/dom/DOMURL/set-href-attribute-hash-expected.txt:
- fast/dom/DOMURL/set-href-attribute-hash.html:
Added a space to the domain (which is an invalid domain character and the others in this
test are not according to the spec) in order to continue to test that setting the hash of
an invalid URL does not change its href.
- fast/dom/DOMURL/set-href-attribute-protocol-expected.txt:
- fast/dom/DOMURL/set-href-attribute-protocol.html:
- fast/dom/HTMLAnchorElement/set-href-attribute-protocol-expected.txt:
- fast/dom/HTMLAnchorElement/set-href-attribute-protocol.html:
"http:??bar" now canonicalizes to "http://??bar" instead of adding one slash.
- fast/url/file-expected.txt:
- fast/url/file-http-base-expected.txt:
Updated results. Many tests that were failing are now passing.
- fast/url/anchor-expected.txt:
Percent-encoding of non-ASCII characters in fragments now matches Firefox.
- fast/url/host-expected.txt:
Wide characters in the host such as http://%ef%bc%85%ef%bc%90%ef%bc%90.com/ should fail to parse.
This matches Chrome and the spec.
URLs with an empty host with a port should fail to parse.
This matches Chrome, Firefox, and the spec.
- fast/url/host-lowercase-per-scheme-expected.txt:
According to spec, hosts of non-special URLs should be parsed the same as special URL hosts.
Different browsers seem to have the existing behavior for different reasons.
See https://github.com/whatwg/url/issues/148 and https://bugs.webkit.org/show_bug.cgi?id=162885
- fast/url/idna2003-expected.txt:
- fast/url/invalid-urls-utf8-expected.txt:
Host encoding is now done according to the spec.
- fast/url/invalid-idn-expected.txt:
Neither Chrome, Firefox, nor the spec change invalid hosts to about:blank.
- fast/url/ipv4-expected.txt:
- fast/url/ipv6-expected.txt:
"http://[0:0::0:0:8:]/" should indeed be compressed to "http://[::8]/"
This kind of deterministic compression makes it so that two IPv6 addresses that are equal will
parse to URLs that are also equal, even if they are written differently.
- fast/url/path-expected.txt:
- fast/url/relative-expected.txt:
- fast/url/relative-win-expected.txt:
- fast/url/safari-extension-expected.txt:
Proper canonicalization of non-special hosts should be scheme://host/ or scheme:/// if there is no host.
safari-extension is not special.
Hosts should always be canonicalized to lowercase.
- fast/url/segments-expected.txt:
- fast/url/segments-from-data-url-expected.txt:
The path of "foo://" should be "/" not "".
Extra slashes immediately after scheme:// should be ignored.
URLs with no host but a port like "http:@:80/www.apple.com" are now invalid, matching Chrome, Firefox, and the spec.
- fast/url/segments-userinfo-vs-host-expected.txt:
'@' can be in the user. If it is, it is percent encoded. This matches Chrome and Firefox.
"foo://" has a path of "/" not ""
Extra slashes after the scheme such as in "foo://///////" are now ignored according to spec.
- fast/url/standard-url-expected.txt:
- fast/url/tab-and-newline-stripping-expected.txt:
http://[2001:5::042:44::0370:7334]/ is an invalid IPv6 address, so parsing it should fail.
It passed with URL::parse because we used to only check that the characters inside the []
were valid ipv6 characters, not that they made any sense or were in any kind of bounds.
- fast/url/url-credentials-escaping-expected.txt:
Credential encoding is now according to spec.
- http/tests/appcache/resources/x-frame-options-prevents-framing-test.html:
http:/path1/path2 relative to http://host/path3 now canonicalizes to http://host/path1/path2
instead of http://path1/path2 so this test, which I believe was missing the second slash in error,
needs to be fixed.
- imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt:
Having a '}' in the host of a URL used to be invalid and it is now percent-escaped, matching Chrome and the spec.
This test still passes on w3c-test.org. We can look into why it is failing locally later.
See webkit.org/b/163127
- fast/loader/redirect-to-invalid-url-using-javascript-calls-policy-delegate-expected.txt:
- fast/loader/redirect-to-invalid-url-using-meta-refresh-calls-policy-delegate-expected.txt:
- fast/loader/window-open-to-invalid-url-calls-policy-delegate-expected.txt:
http://HoSt is now being correctly interpreted as the host, and it is being punycode encoded if it's
non-ASCII and lowercased if it is.
- fast/forms/ValidityState-typeMismatch-url.html:
- fast/forms/ValidityState-typeMismatch-url-expected.txt:
Spaces in the host are invalid. This matches Firefox and the spec.
- http/tests/inspector/network/copy-as-curl.html:
'{' and '}' are now percent encoded in the URL path. This matches Firefox, Chrome, and the spec.
- fast/loader/location-port.html:
- fast/loader/location-port-expected.txt:
parsing or setting ports in URLs with no host is no longer supported. This matches Firefox and Chrome.
- security/block-test-expected.txt:
- platform/mac/security/block-test-expected.txt:
out-of-bounds ports now cause parsing failures.
- imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/fetch-src/failure-expected.txt:
"http://[]/" now fails to parse because it is an invalid IPv6 host.
- fast/url/ipv6-expected.txt:
IPv4 addresses at the end of IPv6 addresses are now serialized as the equivalent hex value in IPv6 form.
This matches Chrome and the spec, and makes it so that equal IPv6 addresses written in different forms are equal.
- fast/loader/url-parse-1-expected.txt:
Extra or missing slashes and spaces around scheme:// are now handled according to the spec.
- http/tests/websocket/tests/hybi/handshake-ok-with-http-version-beyond-1_1-expected.txt:
The non-standard apple logo character is represented here by its non-standard Latin1 representation, 0xF0.
It was encoded as 0xF0 UTF-8 then percent encoded, which is %EF%A3%BF.
It is now encoded as the UTF-8 then percent encoded representation of its unicode value, 0xF8FF which matches other browsers.
This test is still valid, because it still verifies that the URLs in r199590 are rejected, and they still are.
See webkit.org/b/163127
- http/tests/contentextensions/make-https-expected.txt:
- contentfiltering/block-after-add-data-then-allow-unblock-expected.txt:
- contentfiltering/block-after-add-data-then-deny-unblock-expected.txt:
- contentfiltering/block-after-finished-adding-data-then-allow-unblock-expected.txt:
- contentfiltering/block-after-finished-adding-data-then-deny-unblock-expected.txt:
- contentfiltering/block-after-response-then-allow-unblock-expected.txt:
- contentfiltering/block-after-response-then-deny-unblock-expected.txt:
- contentfiltering/block-after-will-send-request-then-allow-unblock-expected.txt:
- contentfiltering/block-after-will-send-request-then-deny-unblock-expected.txt:
- fast/backgrounds/background-shorthand-after-set-backgroundSize-expected.txt:
- fast/backgrounds/background-shorthand-after-set-backgroundSize.html:
- fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt:
- fast/backgrounds/background-shorthand-with-backgroundSize-style.html:
- fast/css/getComputedStyle/computed-style-border-image-expected.txt:
- fast/css/getComputedStyle/computed-style-border-image.html:
- fast/css/getComputedStyle/computed-style-cross-fade-expected.txt:
- fast/css/getComputedStyle/computed-style-cross-fade.html:
- fast/css/getComputedStyle/getComputedStyle-background-shorthand-expected.txt:
- fast/css/getComputedStyle/getComputedStyle-background-shorthand.html:
- fast/css/getComputedStyle/getComputedStyle-list-style-shorthand-expected.txt:
- fast/css/getComputedStyle/getComputedStyle-list-style-shorthand.html:
URLs with non-special schemes and no slash after the host now do when canonicalized.
- fast/css-generated-content/malformed-url.html:
This tested what happens when you have an invalid host. | is now a valid host character.
I changed it to have a % in the host to test the same behavior.
- fast/loader/window-open-to-invalid-url-disallowed.html:
- fast/loader/window-open-to-invalid-url-disallowed-expected.txt:
- fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed.html:
- fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt:
- fast/loader/redirect-to-invalid-url-using-javascript-disallowed.html:
- fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt:
"http://a=a&b=b" is no longer an invalid URL. We used to consider the '&' character to be an invalid domain character
and we don't any more. This matches Chrome, Firefox, and the spec.
To keep this test testing what happens if you have an invalid URL, I changed the '&' to a '%' which is an invalid domain character.
- fast/loader/file-URL-with-port-number.html:
File URLs with a port but no host are now invalid, matching Chrome and Firefox. File URLs with a port and a host are Ok, though.
- platform/ios-simulator-wk1/fast/loader: Added.
- platform/ios-simulator-wk1/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt: Added.
- platform/ios-simulator-wk1/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt: Added.
- platform/ios-simulator-wk1/fast/loader/window-open-to-invalid-url-disallowed-expected.txt: Added.
- platform/ios-simulator-wk1/imported/w3c/web-platform-tests/XMLHttpRequest: Added.
- platform/ios-simulator-wk1/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt: Added.
- platform/mac-wk1/fast/loader: Added.
- platform/mac-wk1/fast/loader/redirect-to-invalid-url-using-javascript-disallowed-expected.txt: Added.
- platform/mac-wk1/fast/loader/redirect-to-invalid-url-using-meta-refresh-disallowed-expected.txt: Added.
- platform/mac-wk1/fast/loader/window-open-to-invalid-url-disallowed-expected.txt: Added.
- platform/mac-wk1/imported: Added.
- platform/mac-wk1/imported/w3c: Added.
- platform/mac-wk1/imported/w3c/web-platform-tests: Added.
- platform/mac-wk1/imported/w3c/web-platform-tests/XMLHttpRequest: Added.
- platform/mac-wk1/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub-expected.txt: Added.
- platform/mac/security/block-test-expected.txt:
Differences between the URLParser and NSURL's parser cause differences in output for WK1 where NSURLRequests are made without serializing WebCore::ResourceRequests.
In particular, '{' in the host is newly accepted as a valid URL by URLParser, but it is percent-encoded by NSURL's parser.
See rdar://problem/28701914
- 1:23 PM Changeset in webkit [207161] by
-
- 2 edits in trunk/Tools
Update my name in contributors.json
https://bugs.webkit.org/show_bug.cgi?id=163251
Patch by Edward O'Connor <Theresa O'Connor> on 2016-10-11
Reviewed by Simon Fraser.
- Scripts/webkitpy/common/config/contributors.json:
- 1:18 PM Changeset in webkit [207160] by
-
- 2 edits in trunk/Source/WebKit/mac
REGRESSION (r198251): -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO
https://bugs.webkit.org/show_bug.cgi?id=163259
<rdar://problem/28680515>
Reviewed by Jer Noble.
In WebKit1 on iOS we want to require user action to load and play videos by default and
allow an embedding app to change this behavior via -[UIWebView setMediaPlaybackRequiresUserAction:].
Following r198251, -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO and videos
can load and play without being initiated by a user action.
- WebView/WebPreferences.mm:
(+[WebPreferences initialize]): Initialize the default value of the deprecated preference
WebKitRequiresUserGestureForMediaPlaybackPreferenceKey to YES on iOS. The value of this
preference takes precedence over the values of its replacement preferences
WebKitRequiresUserGestureForVideoPlaybackPreferenceKey and WebKitRequiresUserGestureForAudioPlaybackPreferenceKey.
- 1:17 PM Changeset in webkit [207159] by
-
- 19 edits4 adds in trunk
[iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps
https://bugs.webkit.org/show_bug.cgi?id=163244
<rdar://problem/27250015>
Reviewed by Jer Noble.
Source/WebCore:
Adds a new setting to toggle requiring a user gesture to load a video (enabled by default).
Disable this setting for apps built against iOS 9 or earlier.
Tests: media/loadedmetadata-fires-without-user-gesture-when-setRequiresUserGestureToLoadVideo-false.html
media/require-user-gesture-to-load-video.html
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::HTMLMediaElement): Only require a user gesture to load a video
when Settings::requiresUserGestureToLoadVideo() is true.
- page/Settings.cpp: Enable setting requiresUserGestureToLoadVideo by default.
- page/Settings.in: Add setting, requiresUserGestureToLoadVideo.
Source/WebKit/mac:
Enable or disable the Setting::requiresUserGestureToLoadVideo() in legacy WebKit depending
on the version of iOS SDK that the app was linked against. We require a user gesture to
begin loading a video as of iOS 10.
- WebView/WebView.mm:
(shouldRequireUserGestureToLoadVideo):
(-[WebView _preferencesChanged:]): Modified to pass the WebKit requiresUserGestureToLoadVideo
preference to WebCore.
Source/WebKit2:
Enable or disable the Setting::requiresUserGestureToLoadVideo() in WebKit depending on the
version of iOS SDK that the app was linked against. We require a user gesture to begin
loading a video as of iOS 10.
- Shared/WebPreferencesDefinitions.h:
- UIProcess/API/Cocoa/WKWebView.mm:
(shouldRequireUserGestureToLoadVideo): Added.
(-[WKWebView _initializeWithConfiguration:]): Set the requiresUserGestureToLoadVideo preference.
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences): Modified to pass the WebKit requiresUserGestureToLoadVideo
preference to WebCore.
LayoutTests:
Add tests to ensure that Settings::setRequiresUserGestureToLoadVideo() behaves as expected.
- media/loadedmetadata-fires-without-user-gesture-when-setRequiresUserGestureToLoadVideo-false-expected.txt: Added.
- media/loadedmetadata-fires-without-user-gesture-when-setRequiresUserGestureToLoadVideo-false.html: Added.
- media/media-controls.js:
(clickPlayButton): Added.
- media/require-user-gesture-to-load-video-expected.txt: Added.
- media/require-user-gesture-to-load-video.html: Added.
- media/video-controls-transformed.html: Write in terms of clickPlayButton().
- media/video-controls-visible-audio-only.html: Ditto.
- media/video-fullscreeen-only-playback.html: Ditto.
- media/video-play-audio-require-user-gesture.html: Ditto.
- media/video-play-require-user-gesture.html: Ditto.
- media/video-test.js:
(passTest): Added.
- platform/ios-simulator/TestExpectations: Skip test media/require-user-gesture-to-load-video.html as
we need to fix <https://bugs.webkit.org/show_bug.cgi?id=163291> to support tapping the play button on iOS.
- 12:52 PM Changeset in webkit [207158] by
-
- 2 edits in trunk/Source/WebCore
Fix the iOS build.
- bindings/js/JSDOMConvert.h:
- 12:40 PM Changeset in webkit [207157] by
-
- 2 edits in trunk/Source/WebCore
[iOS] Sandbox QuickLook previews
https://bugs.webkit.org/show_bug.cgi?id=163240
<rdar://problem/25961633>
Fix bad merge following r207151.
- platform/network/cf/ResourceResponse.h: Define m_isQuickLook.
- 12:35 PM Changeset in webkit [207156] by
-
- 4 edits2 adds in trunk
Add SynchronizedFixedQueue class
https://bugs.webkit.org/show_bug.cgi?id=162478
Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-10-11
Reviewed by Geoffrey Garen.
Source/WTF:
This class represents a simple producer/consumer worker. It facilitates
synchronizing enqueuing to and dequeuing from a fixed size-queue. It uses
a single lock and a single condition to synchronize all its members among
the working threads. This means a single thread is active at any time and
and the other threads are blocked waiting for the lock to be released. Or
they are sleeping waiting for the condition to be satisfied.
- WTF.xcodeproj/project.pbxproj:
- wtf/SynchronizedFixedQueue.h: Added.
(WTF::SynchronizedFixedQueue::SynchronizedFixedQueue):
(WTF::SynchronizedFixedQueue::open): Restore the queue to its original state.
(WTF::SynchronizedFixedQueue::close): Wake all the sleeping threads with a closing state.
(WTF::SynchronizedFixedQueue::isOpen): Does the queue accept new items?
(WTF::SynchronizedFixedQueue::enqueue): Enqueue an item into the queue.
(WTF::SynchronizedFixedQueue::dequeue): Dequeue an item form the queue.
Tools:
Add a new test for SynchronizedFixedQueue. The test defines a new class
called ToUpperConverter which converts strings from lower case to upper
case. It creates two threads : (1) produce thread and (2) consume thread.
Here is what each thread does:
- Main threads: Enqueues lower case strings into m_lowerQueue.
- Produce thread: Dequeues lower case strings from m_lowerQueue and enqueue their upper case strings in the m_upperQueue.
- Consume thread: Dequeues upper case strings from m_upperQueue.
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp: Added.
(TestWebKitAPI::textItem): A helper function which returns a lower case string given an index.
(TestWebKitAPI::toUpper): A helper function which Returns the upper case of a string.
(TestWebKitAPI::ToUpperConverter::ToUpperConverter):
(TestWebKitAPI::ToUpperConverter::produceQueue): Returns a workQueue for the produce thread.
(TestWebKitAPI::ToUpperConverter::consumeQueue): Returns a workQueue for the consume thread.
(TestWebKitAPI::ToUpperConverter::startProducing): Creates a thread for the producer.
(TestWebKitAPI::ToUpperConverter::startConsuming): Creates a thread for the consumer.
(TestWebKitAPI::ToUpperConverter::start): Starts both the producer and the consumer threads.
(TestWebKitAPI::ToUpperConverter::stopProducing): Terminates the producer thread.
(TestWebKitAPI::ToUpperConverter::stopConsuming): Terminates the consumer thread.
(TestWebKitAPI::ToUpperConverter::stop): Terminates both the producer and the consumer threads.
(TestWebKitAPI::ToUpperConverter::enqueueLower): Adds a lower case string to the m_lowerQueue on the main thread.
(TestWebKitAPI::ToUpperConverter::isProducing): Returns whether the producing thread is active.
(TestWebKitAPI::ToUpperConverter::isConsuming): Returns whether the consuming thread is active.
(TestWebKitAPI::ToUpperConverter::produceCount): Returns the number of produced elements.
(TestWebKitAPI::ToUpperConverter::consumeCount): Returns the number of consumed elements.
(TestWebKitAPI::TEST):
- 12:29 PM Changeset in webkit [207155] by
-
- 10 edits31 adds in trunk
[iOS] Sandbox QuickLook previews
https://bugs.webkit.org/show_bug.cgi?id=163240
<rdar://problem/25961633>
Reviewed by Brent Fulgham.
Source/WebCore:
Use a unique origin for- and limit the capabilities of- QuickLook previews.
Tests: http/tests/quicklook/at-import-stylesheet-blocked.html
http/tests/quicklook/base-url-blocked.html
http/tests/quicklook/cross-origin-iframe-blocked.html
http/tests/quicklook/csp-header-ignored.html
http/tests/quicklook/document-domain-is-empty-string.html
http/tests/quicklook/external-stylesheet-blocked.html
http/tests/quicklook/hide-referer-on-navigation.html
http/tests/quicklook/submit-form-blocked.html
http/tests/quicklook/top-navigation-blocked.html
- dom/Document.cpp:
(WebCore::Document::processHttpEquiv): Call ContentSecurityPolicy::didReceiveHeader().
(WebCore::Document::processReferrerPolicy): Do not process referrer policy for QuickLook previews.
(WebCore::Document::initSecurityContext): Apply sandbox for QuickLook previews.
(WebCore::Document::shouldEnforceQuickLookSandbox): Added.
(WebCore::Document::applyQuickLookSandbox): Added.
- dom/Document.h:
- page/csp/ContentSecurityPolicy.h: Change accessibility of didReceiveHeader() from private to public.
(WebCore::ContentSecurityPolicy::processHTTPEquiv): Deleted.
- platform/network/cf/ResourceResponse.h:
(WebCore::ResourceResponse::isQuickLook): Added.
(WebCore::ResourceResponse::setIsQuickLook): Added.
- platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp:
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse): Modified to mark
resource response as a QuickLook preview, if appropriate. Also remove the name of the first argument
and the need to use UNUSED_PARAM(connection) as we no longer make use of the first argument
following r207151.
- platform/network/ios/QuickLook.mm:
(-[WebResourceLoaderQuickLookDelegate _sendDidReceiveResponseIfNecessary]): Ditto.
- platform/network/mac/WebCoreResourceHandleAsDelegate.mm:
(-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): Ditto. Fix style nits,
including renaming the function argument "r" to "resource" to better describe its purpose.
LayoutTests:
Add tests to ensure that we sandbox QuickLook previews.
- http/tests/quicklook/at-import-stylesheet-blocked-expected.txt: Added.
- http/tests/quicklook/at-import-stylesheet-blocked.html: Added.
- http/tests/quicklook/base-url-blocked-expected.txt: Added.
- http/tests/quicklook/base-url-blocked.html: Added.
- http/tests/quicklook/cross-origin-iframe-blocked-expected.txt: Added.
- http/tests/quicklook/cross-origin-iframe-blocked.html: Added.
- http/tests/quicklook/csp-header-ignored-expected.txt: Added.
- http/tests/quicklook/csp-header-ignored.html: Added.
- http/tests/quicklook/document-domain-is-empty-string-expected.txt: Added.
- http/tests/quicklook/document-domain-is-empty-string.html: Added.
- http/tests/quicklook/external-stylesheet-blocked-expected.txt: Added.
- http/tests/quicklook/external-stylesheet-blocked.html: Added.
- http/tests/quicklook/hide-referer-on-navigation-expected.txt: Added.
- http/tests/quicklook/hide-referer-on-navigation.html: Added.
- http/tests/quicklook/resources/at-import-stylesheet-blocked.docx: Added.
- http/tests/quicklook/resources/base-url-blocked.docx: Added.
- http/tests/quicklook/resources/cross-origin-iframe-blocked.docx: Added.
- http/tests/quicklook/resources/document-domain-is-empty-string.docx: Added.
- http/tests/quicklook/resources/external-stylesheet-blocked.docx: Added.
- http/tests/quicklook/resources/fail.html: Added.
- http/tests/quicklook/resources/hide-referer-on-navigation.docx: Added.
- http/tests/quicklook/resources/http-equiv-blocked.docx: Added.
- http/tests/quicklook/resources/pass.docx: Added.
- http/tests/quicklook/resources/submit-form-blocked.docx: Added.
- http/tests/quicklook/resources/tap-at-point-and-notify-done.js: Added.
(tapAtPointAndNotifyDone):
(uiScript):
(tapAtPoint):
- http/tests/quicklook/resources/top-navigation-blocked.docx: Added.
- http/tests/quicklook/resources/word-document-with-csp-block-frame-ancestors.php: Added.
- http/tests/quicklook/submit-form-blocked-expected.txt: Added.
- http/tests/quicklook/submit-form-blocked.html: Added.
- http/tests/quicklook/top-navigation-blocked-expected.txt: Added.
- http/tests/quicklook/top-navigation-blocked.html: Added.
- platform/ios-simulator-wk1/TestExpectations: Skip tests that cannot run in DumpRenderTree
because uiController.singleTapAtPoint() is not implemented.
- 12:14 PM Changeset in webkit [207154] by
-
- 2 edits in trunk/Source/WebCore
Fix bindings tests after r207150.
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::convertDictionary<TestObj::Dictionary>):
- 11:38 AM Changeset in webkit [207153] by
-
- 4 edits3 adds in trunk
Extend event stream to include interpolated events and add a force press test that uses that interpolation
https://bugs.webkit.org/show_bug.cgi?id=163161
Patch by Megan Gardner <Megan Gardner> on 2016-10-11
Reviewed by Simon Fraser.
Added functionality to the event stream to allow for interpolated events.
Can now do long press, as well as a better way to do drag and other time-based
events that require a large stream of descrete HID events.
Added a basic force touch test to demostrate this interpolation.
Also updated the script to allow for iPhone 7 specific tests, as force touch
needs to be on a device that had force touch.
- Scripts/webkitpy/port/ios.py:
(IOSSimulatorPort):
- TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl:
- WebKitTestRunner/ios/HIDEventGenerator.mm:
(linearInterpolation):
(simpleCurveInterpolation):
(calculateNextCurveLocation):
(phaseFromString):
(interpolationFromString):
(-[HIDEventGenerator eventMaskFromEventInfo:]):
(-[HIDEventGenerator _createIOHIDEventWithInfo:]):
(-[HIDEventGenerator moveToPoints:touchCount:duration:]):
(-[HIDEventGenerator interpolatedEvents:]):
(-[HIDEventGenerator processEventsArray:withStartTime:]):
(-[HIDEventGenerator eventDispatchThreadEntry:]):
(simpleDragCurve): Deleted.
(calculateNextLocation): Deleted.
- 11:28 AM Changeset in webkit [207152] by
-
- 5 edits in trunk
URLParser should percent-encode non-ASCII and non-printable characters in fragment
https://bugs.webkit.org/show_bug.cgi?id=163287
Reviewed by Brady Eidson.
Source/WebCore:
Based on discussion in https://github.com/whatwg/url/issues/150
If that discussion decides to keep the spec as-is (which keeps non-ASCII characters in the fragment
to match IE and Edge's behavior, which Chrome has followed for special schemes) then we can revert
this change later after enabling the URL parser. Making this change keeps behavior matching Safari
and Firefox, as well as Chrome's handling of non-special schemes, such as data URLs.
Covered by updated API tests.
- platform/URLParser.cpp:
(WebCore::URLParser::appendToASCIIBuffer):
(WebCore::URLParser::copyURLPartsUntil):
(WebCore::URLParser::syntaxViolation):
(WebCore::URLParser::currentPosition):
(WebCore::URLParser::parse):
(WebCore::URLParser::fragmentSyntaxViolation): Deleted.
- platform/URLParser.h:
No more non-ASCII characters in canonicalized URLs.
Tools:
- TestWebKitAPI/Tests/WebCore/URLParser.cpp:
(TestWebKitAPI::TEST_F):
- 11:20 AM Changeset in webkit [207151] by
-
- 117 edits3 deletes in trunk
Remove dead networking code
https://bugs.webkit.org/show_bug.cgi?id=163263
Reviewed by Daniel Bates.
.:
- Source/cmake/OptionsAppleWin.cmake:
Source/WebCore:
There are no more Cocoa platforms using CFURLConnection.
USE(CFNETWORK) is being replaced by USE(CFURLCONNECTION) and it is only used on the AppleWin port.
No change in behavior.
- WebCore.xcodeproj/project.pbxproj:
- WebCorePrefix.h:
- loader/DocumentLoader.h:
- loader/EmptyClients.h:
- loader/FrameLoaderClient.h:
- loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
- loader/ResourceLoader.h:
- loader/SubresourceLoader.h:
- loader/cf/ResourceLoaderCFNet.cpp:
- loader/cocoa/SubresourceLoaderCocoa.mm:
(WebCore::SubresourceLoader::willCacheResponse): Deleted.
- loader/mac/DocumentLoaderMac.cpp:
- loader/mac/ResourceLoaderMac.mm:
(WebCore::ResourceLoader::willCacheResponse): Deleted.
- page/mac/PageMac.mm:
(WebCore::Page::platformInitialize):
(WebCore::Page::addSchedulePair):
(WebCore::Page::removeSchedulePair):
- platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForResponseToAuthenticationChallenge):
(WebCore::WebCoreNSURLAuthenticationChallengeClient::create): Deleted.
(WebCore::WebCoreNSURLAuthenticationChallengeClient::WebCoreNSURLAuthenticationChallengeClient): Deleted.
- platform/mac/WebCoreSystemInterface.h:
- platform/network/NetworkStorageSession.h:
- platform/network/ProtectionSpace.h:
- platform/network/ProtectionSpaceBase.cpp:
- platform/network/ResourceHandle.cpp:
- platform/network/ResourceHandle.h:
- platform/network/ResourceHandleClient.cpp:
- platform/network/ResourceHandleClient.h:
(WebCore::ResourceHandleClient::willCacheResponse):
(WebCore::ResourceHandleClient::shouldCacheResponse):
- platform/network/ResourceHandleInternal.h:
(WebCore::ResourceHandleInternal::ResourceHandleInternal):
- platform/network/ResourceRequestBase.cpp:
- platform/network/cf/AuthenticationCF.cpp:
(WebCore::AuthenticationChallenge::AuthenticationChallenge):
(WebCore::createCF):
(WebCore::core):
- platform/network/cf/AuthenticationCF.h:
- platform/network/cf/AuthenticationChallenge.h:
- platform/network/cf/CookieJarCFNet.cpp:
- platform/network/cf/CredentialStorageCFNet.cpp:
(WebCore::CredentialStorage::getFromPersistentStorage):
(WebCore::CredentialStorage::saveToPersistentStorage): Deleted.
- platform/network/cf/LoaderRunLoopCF.cpp:
- platform/network/cf/LoaderRunLoopCF.h:
- platform/network/cf/NetworkStorageSessionCFNet.cpp:
(WebCore::NetworkStorageSession::cookieStorage):
- platform/network/cf/ProtectionSpaceCFNet.cpp:
- platform/network/cf/ProtectionSpaceCFNet.h:
- platform/network/cf/ResourceError.h:
- platform/network/cf/ResourceErrorCF.cpp:
- platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::shouldSniffConnectionProperty):
(WebCore::ResourceHandle::createCFURLConnection):
(WebCore::ResourceHandle::start):
(WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
(WebCore::ResourceHandle::tryHandlePasswordBasedAuthentication):
(WebCore::ResourceHandle::receivedCredential):
(WebCore::ResourceHandle::schedule): Deleted.
(WebCore::ResourceHandle::unschedule): Deleted.
- platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp:
- platform/network/cf/ResourceHandleCFURLConnectionDelegate.h:
- platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp:
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::setupRequest):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse):
(WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::canRespondToProtectionSpace):
- platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.h:
- platform/network/cf/ResourceRequest.h:
(WebCore::ResourceRequest::encodingRequiresPlatformData):
- platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::findCFURLRequestCopyContentDispositionEncodingFallbackArrayFunction):
(WebCore::ResourceRequest::doUpdatePlatformRequest):
(WebCore::ResourceRequest::doUpdatePlatformHTTPBody):
(WebCore::ResourceRequest::doUpdateResourceRequest):
(WebCore::ResourceRequest::setStorageSession):
(WebCore::findCFURLRequestSetContentDispositionEncodingFallbackArrayFunction): Deleted.
- platform/network/cf/ResourceRequestCFNet.h:
- platform/network/cf/ResourceResponse.h:
(WebCore::ResourceResponse::ResourceResponse):
- platform/network/cf/ResourceResponseCFNet.cpp:
(WebCore::ResourceResponse::cfURLResponse):
(WebCore::ResourceResponse::platformCertificateInfo):
- platform/network/cf/SynchronousLoaderClientCFNet.cpp:
- platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp:
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::setupRequest):
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::setupConnectionScheduling):
(WebCore::adjustMIMETypeIfNecessary):
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse):
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::willCacheResponse):
(WebCore::SynchronousResourceHandleCFURLConnectionDelegate::canRespondToProtectionSpace):
- platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.h:
- platform/network/cocoa/CredentialCocoa.h:
- platform/network/cocoa/CredentialCocoa.mm:
(WebCore::Credential::Credential): Deleted.
(WebCore::Credential::cfCredential): Deleted.
- platform/network/cocoa/ProtectionSpaceCocoa.h:
- platform/network/cocoa/ProtectionSpaceCocoa.mm:
(WebCore::ProtectionSpace::ProtectionSpace): Deleted.
(WebCore::ProtectionSpace::cfSpace): Deleted.
- platform/network/cocoa/ResourceRequestCocoa.mm:
(WebCore::ResourceRequest::nsURLRequest):
- platform/network/cocoa/ResourceResponseCocoa.mm:
(WebCore::ResourceResponse::platformCertificateInfo):
(WebCore::ResourceResponse::nsURLResponse): Deleted.
(WebCore::ResourceResponse::ResourceResponse): Deleted.
- platform/network/ios/QuickLook.h:
- platform/network/ios/QuickLook.mm:
(-[WebQuickLookHandleAsDelegate initWithConnectionDelegate:]): Deleted.
(-[WebQuickLookHandleAsDelegate connection:didReceiveDataArray:]): Deleted.
(-[WebQuickLookHandleAsDelegate connection:didReceiveData:lengthReceived:]): Deleted.
(-[WebQuickLookHandleAsDelegate connectionDidFinishLoading:]): Deleted.
(-[WebQuickLookHandleAsDelegate connection:didFailWithError:]): Deleted.
(-[WebQuickLookHandleAsDelegate detachHandle]): Deleted.
(WebCore::QuickLookHandle::create): Deleted.
(WebCore::QuickLookHandle::cfResponse): Deleted.
- platform/network/ios/ResourceHandleIOS.mm: Removed.
- platform/network/ios/ResourceRequestIOS.mm: Removed.
- platform/network/mac/AuthenticationMac.mm:
(-[WebCoreAuthenticationClientAsChallengeSender setCFChallenge:]): Deleted.
(-[WebCoreAuthenticationClientAsChallengeSender cfChallenge]): Deleted.
(WebCore::core): Deleted.
(WebCore::mac): Deleted.
- platform/network/mac/CookieJarMac.mm:
(WebCore::setCookiesFromDOM):
(WebCore::cookieStorage):
(WebCore::addCookie):
- platform/network/mac/CredentialStorageMac.mm:
- platform/network/mac/FormDataStreamMac.h:
- platform/network/mac/FormDataStreamMac.mm:
- platform/network/mac/ResourceErrorMac.mm:
(NSErrorFromCFError): Deleted.
(WebCore::ResourceError::ResourceError): Deleted.
(WebCore::ResourceError::nsError): Deleted.
(WebCore::ResourceError::operator NSError *): Deleted.
- platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::continueWillCacheResponse):
(WebCore::ResourceHandle::getConnectionTimingData): Deleted.
- platform/network/mac/ResourceRequestMac.mm: Removed.
- platform/network/mac/SynchronousLoaderClient.mm:
(WebCore::SynchronousLoaderClient::platformBadResponseError):
- platform/network/mac/WebCoreResourceHandleAsDelegate.h:
- platform/network/mac/WebCoreResourceHandleAsDelegate.mm:
- platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.h:
- platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
- platform/network/mac/WebCoreURLResponse.mm:
(WebCore::synthesizeRedirectResponseIfNecessary):
- platform/win/TemporaryLinkStubs.cpp:
- testing/js/WebCoreTestSupportPrefix.h:
Source/WebKit:
- WebCoreSupport/WebResourceLoadScheduler.cpp:
(WebResourceLoadScheduler::scheduleLoad):
Source/WebKit/cf:
- WebCoreSupport/WebInspectorClientCF.cpp:
Source/WebKit/mac:
- Misc/WebDownload.mm:
(-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]): Deleted.
- Misc/WebDownloadInternal.h:
- WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::convertMainResourceLoadToDownload):
- WebView/WebPreferences.mm:
(+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
- WebView/WebView.mm:
(-[WebView scheduleInRunLoop:forMode:]):
(-[WebView unscheduleFromRunLoop:forMode:]):
Source/WebKit/win:
- DefaultDownloadDelegate.h:
- WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::savePlatformDataToCachedFrame):
- WebCoreSupport/WebFrameNetworkingContext.cpp:
(WebFrameNetworkingContext::ensurePrivateBrowsingSession):
- WebCoreSupport/WebFrameNetworkingContext.h:
- WebCoreSupport/WebPlatformStrategies.cpp:
- WebDownload.h:
- WebError.cpp:
(WebError::localizedDescription):
(WebError::sslPeerCertificate):
- WebError.h:
- WebMutableURLRequest.cpp:
(WebMutableURLRequest::mutableCopy):
- WebURLAuthenticationChallenge.cpp:
(WebURLAuthenticationChallenge::initWithProtectionSpace):
(WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
- WebURLResponse.cpp:
(WebURLResponse::sslPeerCertificate):
- WebURLResponse.h:
- WebView.cpp:
(WebView::setCacheModel):
(WebView::canHandleRequest):
(WebView::notifyPreferencesChanged):
(updateSharedSettingsFromPreferencesIfNeeded):
Source/WebKit2:
- NetworkProcess/Downloads/Download.h:
- NetworkProcess/Downloads/ios/DownloadIOS.mm: Removed.
- NetworkProcess/Downloads/mac/DownloadMac.mm:
- NetworkProcess/NetworkLoad.h:
- NetworkProcess/mac/NetworkLoadMac.mm:
(WebKit::NetworkLoad::willCacheResponseAsync): Deleted.
- Shared/Authentication/cocoa/AuthenticationManagerCocoa.mm:
(WebKit::AuthenticationManager::receivedCredential):
(WebKit::AuthenticationManager::receivedRequestToContinueWithoutCredential):
(WebKit::AuthenticationManager::receivedCancellation):
(WebKit::AuthenticationManager::receivedRequestToPerformDefaultHandling):
(WebKit::AuthenticationManager::receivedChallengeRejection):
- Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode):
(WebKit::WebProcessCreationParameters::decode):
- Shared/WebProcessCreationParameters.h:
- Shared/mac/WebCoreArgumentCodersMac.mm:
(IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
(IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
- WebKit2.xcodeproj/project.pbxproj:
Source/WTF:
- wtf/Platform.h:
- wtf/SchedulePair.h:
- wtf/SchedulePairMac.mm:
Tools:
- DumpRenderTree/DumpRenderTree.h:
- DumpRenderTree/config.h:
- DumpRenderTree/win/DumpRenderTree.cpp:
(main):
- 10:33 AM Changeset in webkit [207150] by
-
- 26 edits in trunk
Use IDLTypes in more places
https://bugs.webkit.org/show_bug.cgi?id=163247
Reviewed by Darin Adler.
Source/WebCore:
Switch JS -> Native type conversions to use convert<IDLType>(...) rather
than convert<NativeType>(...). This allows us to differentiate things like
conversion from JSValue to DOMString vs. JSValue to USVString which have different
rules.
- bindings/generic/IDLTypes.h:
Add predicate for integer types.
- bindings/js/IDBBindingUtilities.cpp:
(WebCore::idbKeyPathFromValue):
- bindings/js/JSApplePaySessionCustom.cpp:
(WebCore::JSApplePaySession::completeShippingMethodSelection):
(WebCore::JSApplePaySession::completeShippingContactSelection):
- bindings/js/JSCryptoAlgorithmDictionary.cpp:
(WebCore::createAesKeyGenParams):
(WebCore::createRsaKeyGenParams):
- bindings/js/JSCustomElementRegistryCustom.cpp:
(WebCore::JSCustomElementRegistry::define):
- bindings/js/JSDocumentCustom.cpp:
(WebCore::JSDocument::getCSSCanvasContext):
- bindings/js/JSMockContentFilterSettingsCustom.cpp:
(WebCore::JSMockContentFilterSettings::setDecisionPoint):
(WebCore::toDecision):
- bindings/js/JSNodeFilterCustom.cpp:
(WebCore::JSNodeFilter::acceptNode):
Switch to new convert<IDLType> style.
- bindings/js/JSDOMBinding.h:
(WebCore::toRefPtrNativeArray): Deleted.
(WebCore::toNativeArray): Deleted.
These can now be called as convert<IDLSequence<IDLInterface<T>>> and convert<IDLType> respectively.
- bindings/js/JSDOMConvert.h:
(WebCore::Converter<IDLNullable<T>>::convert):
(WebCore::Converter<IDLBoolean>::convert):
(WebCore::Converter<IDLInterface<T>>::convert):
(WebCore::Converter<IDLByte>::convert):
(WebCore::Converter<IDLOctet>::convert):
(WebCore::Converter<IDLShort>::convert):
(WebCore::Converter<IDLUnsignedShort>::convert):
(WebCore::Converter<IDLLong>::convert):
(WebCore::Converter<IDLUnsignedLong>::convert):
(WebCore::Converter<IDLLongLong>::convert):
(WebCore::Converter<IDLUnsignedLongLong>::convert):
(WebCore::Converter<IDLFloat>::convert):
(WebCore::Converter<IDLUnrestrictedFloat>::convert):
(WebCore::Converter<IDLDouble>::convert):
(WebCore::Converter<IDLUnrestrictedDouble>::convert):
(WebCore::Converter<IDLDOMString>::convert):
(WebCore::Converter<IDLUSVString>::convert):
(WebCore::Detail::ArrayConverter::convert):
(WebCore::Converter<IDLSequence<T>>::convert):
(WebCore::Converter<IDLFrozenArray<T>>::convert):
(WebCore::Converter<IDLDictionary<T>>::convert):
(WebCore::Converter<IDLEnumeration<T>>::convert):
(WebCore::Detail::VariadicConverterBase::convert):
(WebCore::Detail::VariadicConverterBase<IDLInterface<T>>::convert):
(WebCore::convertVariadicArguments):
(WebCore::convertWrapperType): Deleted.
(WebCore::convertWrapperTypeSequence): Deleted.
(WebCore::Converter<bool>::convert): Deleted.
(WebCore::Converter<String>::convert): Deleted.
(WebCore::Converter<Vector<T>>::convert): Deleted.
(WebCore::Converter<int8_t>::convert): Deleted.
(WebCore::Converter<uint8_t>::convert): Deleted.
(WebCore::Converter<int16_t>::convert): Deleted.
(WebCore::Converter<uint16_t>::convert): Deleted.
(WebCore::Converter<int32_t>::convert): Deleted.
(WebCore::Converter<uint32_t>::convert): Deleted.
(WebCore::Converter<int64_t>::convert): Deleted.
(WebCore::Converter<uint64_t>::convert): Deleted.
Switch Converter to be specialized on IDLTypes. Add support for IDLNullable, IDLSequence, and IDLFrozenArray.
- bindings/scripts/CodeGenerator.pm:
(GetFlattenedMemberTypes): Deleted.
(GetNumberOfNullableMemberTypes): Deleted.
(GetIDLUnionMemberTypes): Deleted.
(GetBaseIDLType): Deleted.
(GetIDLType): Deleted.
Move IDLType conversion logic to CodeGeneratorJS so it can use GetEnumerationClassName and GetDictionaryClassName.
- bindings/scripts/CodeGeneratorJS.pm:
(AddToImplIncludesForIDLType):
Add support for sequences, FrozenArrays and external dictionaries.
(GenerateEnumerationsImplementationContent):
(GenerateEnumerationsHeaderContent):
Change the name of parse<enum> and convert<enum> to parseEnumeration<enum> and convertEnumeration<enum>
to make them more consistent with dictionary conversion specialization and not interfere with the convert
function specialization.
(GenerateDictionaryImplementationContent):
Simplify by using convert<IDLType>.
(GetFlattenedMemberTypes):
(GetNumberOfNullableMemberTypes):
(GetIDLUnionMemberTypes):
(GetBaseIDLType):
(GetIDLType):
Moved from CodeGenerator.pm
(IsHandledByDOMConvert):
(JSValueToNative):
Start switching JSValueToNative over to using convert<IDLType>. Use IsHandledByDOMConvert as a predicate
for what is supported.
- bindings/scripts/IDLParser.pm:
(applyTypedefs):
(cloneType):
(applyTypedefsForSignature):
(parseTypedef):
(parseOperationOrIterator):
(parseSpecialOperation):
Make typedefs work with aggregate types (unions, sequences and FrozenArrays).
- bindings/scripts/test/JS/JSTestEventTarget.cpp:
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestObj.h:
- bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp:
- bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
Update test results.
- bindings/scripts/test/TestTypedefs.idl:
Add additional tests for typedefs that use unions and sequences.
- testing/InternalSettings.idl:
Change the name of a parameter to avoid a name collision.
LayoutTests:
- fast/events/constructors/message-event-constructor-expected.txt:
- fast/mediastream/MediaStreamConstructor-expected.txt:
Update tests for different error message.
- 10:05 AM Changeset in webkit [207149] by
-
- 4 edits in trunk/Source/WebKit2
Move no longer used functions to WKDeprecatedFunctions.cpp
https://bugs.webkit.org/show_bug.cgi?id=163290
Reviewed by Dan Bernstein.
- Shared/API/c/WKDeprecatedFunctions.cpp:
(WKPageGroupAddUserContentFilter):
(WKPageGroupRemoveUserContentFilter):
(WKPageGroupRemoveAllUserContentFilters):
(WKContextSetProcessModel): Deleted.
- UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupRemoveAllUserScripts):
(WKPageGroupAddUserContentFilter): Deleted.
(WKPageGroupRemoveUserContentFilter): Deleted.
(WKPageGroupRemoveAllUserContentFilters): Deleted.
- UIProcess/API/C/WKPageGroup.h:
- 9:49 AM Changeset in webkit [207148] by
-
- 1 copy in releases/WebKitGTK/webkit-2.14.1
WebKitGTK+ 2.14.1
- 9:49 AM Changeset in webkit [207147] by
-
- 4 edits in releases/WebKitGTK/webkit-2.14
Unreviewed. Update OptionsGTK.cmake and NEWS for 2.14.1 release.
.:
- Source/cmake/OptionsGTK.cmake: Bump version numbers.
Source/WebKit2:
- gtk/NEWS: Add release notes for 2.14.1.
- 9:38 AM Changeset in webkit [207146] by
-
- 3 edits in trunk/Tools
Modify check-webkit-style to prohibit sensitive phrases
https://bugs.webkit.org/show_bug.cgi?id=163048
<rdar://problem/28289755>
Terms considered or found to be too general to flag:
ASSERT_WITH_SECURITY_IMPLICATION, bad cast, bug, bypass, crash,
denial of service, dereference, disclosure, error, exploit,
failure, heap, integer overflow, leak, null dereference,
null pointer dereference, out of bounds, overflow,
race condition, sensitive information, stack, type confusion.
Reviewed by Brent Fulgham.
- Scripts/webkitpy/style/checkers/changelog.py:
(ChangeLogChecker.check_entry):
Now calls ChangeLogChecker.check_for_unwanted_security_terms().
(ChangeLogChecker):
(ChangeLogChecker.check_for_unwanted_security_terms):
New function to check for sensitive terms.
(ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm):
(ChangeLogChecker.check_for_unwanted_security_terms.FoundUnwantedSecurityTerm.init):
Convenience class.
- Scripts/webkitpy/style/checkers/changelog_unittest.py:
(ChangeLogCheckerTest.test_unwanted_security_terms):
- 9:36 AM Changeset in webkit [207145] by
-
- 3 edits in trunk/Source/WebKit2
Use modern for loops for iterating supplement maps
https://bugs.webkit.org/show_bug.cgi?id=163274
Reviewed by Alex Christensen.
- NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::initializeNetworkProcess):
(WebKit::NetworkProcess::initializeConnection):
- UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::~WebProcessPool):
(WebKit::WebProcessPool::networkProcessCrashed):
(WebKit::WebProcessPool::databaseProcessCrashed): Iterate by values()
like in other places.
- 9:33 AM Changeset in webkit [207144] by
-
- 11 edits in trunk
Unreviewed, rolling out r207067.
This change caused webkitpy test failures.
Reverted changeset:
"[Win] Parallel DRTs are sharing preferences and cache."
https://bugs.webkit.org/show_bug.cgi?id=163013
http://trac.webkit.org/changeset/207067
- 9:28 AM Changeset in webkit [207143] by
-
- 2 edits in trunk/Source/WebCore
Fixed compilation with !ENABLE(SVG_FONTS)
https://bugs.webkit.org/show_bug.cgi?id=163281
Reviewed by Csaba Osztrogonác.
No new tests needed.
- loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::shouldUpdateCachedResourceWithCurrentRequest):
- 9:20 AM Changeset in webkit [207142] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed build fix after r207140.
- PlatformAppleWin.cmake: Add missing compile file.
- 9:16 AM WebKitGTK/2.14.x edited by
- (diff)
- 9:13 AM Changeset in webkit [207141] by
-
- 2 edits in trunk
[cmake] Make INDEXED_DATABASE_IN_WORKERS depending on INDEXED_DATABASE
https://bugs.webkit.org/show_bug.cgi?id=163280
Reviewed by Csaba Osztrogonác.
- Source/cmake/WebKitFeatures.cmake:
- 8:57 AM Changeset in webkit [207140] by
-
- 5 edits1 add in trunk/Source/WebCore
[Win][Direct2D] Add initial Pattern handling implementation
https://bugs.webkit.org/show_bug.cgi?id=163270
Reviewed by Simon Fraser.
Provide an implemenation of Patterns for Direct2D.
No new tests. Covered by fast/borders/border-image-01.html and others.
- platform/graphics/GraphicsContext.h:
- platform/graphics/Pattern.h: Add D2D definitions.
- platform/graphics/win/GraphicsContextDirect2D.cpp:
(WebCore::GraphicsContext::solidStrokeBrush): Use a more generic return type.
(WebCore::GraphicsContext::solidFillBrush): Ditto.
(WebCore::GraphicsContext::patternStrokeBrush): Added.
(WebCore::GraphicsContext::patternFillBrush): Added.
(WebCore::GraphicsContext::drawPattern): Provide D2D implementation.
(WebCore::GraphicsContext::applyStrokePattern): Ditto.
(WebCore::GraphicsContext::applyFillPattern): Ditto.
(WebCore::GraphicsContext::drawPath): Use stroke pattern if available.
(WebCore::GraphicsContext::fillPath): Use fill pattern if available.
(WebCore::GraphicsContext::strokePath): Use stroke pattern if available.
(WebCore::GraphicsContext::fillRect): Use fill pattern if available.
- platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h:
- platform/graphics/win/PatternDirect2D.cpp: Added.
- 8:53 AM Changeset in webkit [207139] by
-
- 2 edits in trunk/Source/WebKit2
The "Input Events" experimental feature runtime flag should not be on by default
https://bugs.webkit.org/show_bug.cgi?id=163278
Reviewed by Zalan Bujtas.
This was intended to be off by default.
- Shared/WebPreferencesDefinitions.h:
- 7:57 AM Changeset in webkit [207138] by
-
- 3 edits in trunk/LayoutTests
[mac] LayoutTest media/modern-media-controls/play-pause-button/play-pause-button.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=163249
Patch by Antoine Quint <Antoine Quint> on 2016-10-11
Reviewed by Antoine Quint.
Wait until all icon images are loaded before running the assertions. We can determine whether
a button's icon image is loaded by checking it's been sized.
- TestExpectations:
- media/modern-media-controls/play-pause-button/play-pause-button.html:
- 7:30 AM Changeset in webkit [207137] by
-
- 2 edits in trunk
[Win][Direct2D] Compile fix.
https://bugs.webkit.org/show_bug.cgi?id=163273
Reviewed by Brent Fulgham.
Define USE_DIRECT2D.
- Source/cmake/OptionsAppleWin.cmake:
- 7:09 AM Changeset in webkit [207136] by
-
- 2 edits in trunk/Source/WebCore
[Win] Compile fix.
https://bugs.webkit.org/show_bug.cgi?id=163272
Reviewed by Brent Fulgham.
When compiling with older SDKs, some CoreText symbols are redefined.
This patch checks if the relevant CoreText header file has been
included before defining the symbol.
- platform/spi/win/CoreTextSPIWin.h:
- 7:06 AM Changeset in webkit [207135] by
-
- 3 edits in trunk/LayoutTests
[mac] LayoutTest media/modern-media-controls/airplay-button/airplay-button.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=163248
Patch by Antoine Quint <Antoine Quint> on 2016-10-11
Reviewed by Antoine Quint.
Wait until all icon images are loaded before running the assertions. We can determine whether
a button's icon image is loaded by checking it's been sized.
- TestExpectations:
- media/modern-media-controls/airplay-button/airplay-button.html:
- 6:58 AM Changeset in webkit [207134] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206985 - [GTK] UIProcess crashes when using Japanese IM
https://bugs.webkit.org/show_bug.cgi?id=163011
We have to reference the current GdkEventKey before we try process it
as later when the lambda body is reached the event could be already
freed.
Patch by Tomas Popela <tpopela@redhat.com> on 2016-10-10
Reviewed by Carlos Garcia Campos.
- UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseKeyPressEvent):
(webkitWebViewBaseKeyReleaseEvent):
- UIProcess/gtk/InputMethodFilter.h:
Use non-copyable Function so we can use WTFMove to pass the event to
lambda.
- 6:56 AM Changeset in webkit [207133] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206998 - [GTK] 2.14.0 Compile Errors: GTK 3.22.1
https://bugs.webkit.org/show_bug.cgi?id=163190
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2016-10-10
Reviewed by Alex Christensen.
- UIProcess/gtk/AcceleratedBackingStoreX11.cpp: Include gtk.h since we are using gtk_widget_queue_draw().
- 6:54 AM Changeset in webkit [207132] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206806 - Unreviewed. Fix GTK+ build with USE_REDIRECTED_XCOMPOSITE_WINDOW disabled.
- UIProcess/AcceleratedDrawingAreaProxy.cpp:
(WebKit::AcceleratedDrawingAreaProxy::setNativeSurfaceHandleForCompositing):
- 6:52 AM Changeset in webkit [207131] by
-
- 5 edits in releases/WebKitGTK/webkit-2.14/Source
Merge r206772 - [SOUP] Remove SSLPolicyFlags from SoupNetworkSession
https://bugs.webkit.org/show_bug.cgi?id=162906
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2016-10-04
Reviewed by Michael Catanzaro.
Source/WebCore:
All soup based ports are setting SSLUseSystemCAFile flag unconditionally, so we can just use that when creating
the session like we do for all other construct parameters.
- platform/network/soup/SoupNetworkSession.cpp:
(WebCore::SoupNetworkSession::createTestingSession):
(WebCore::SoupNetworkSession::setupLogger):
(WebCore::SoupNetworkSession::SoupNetworkSession): Deleted.
(WebCore::SoupNetworkSession::clearOldSoupCache): Deleted.
(WebCore::SoupNetworkSession::setHTTPProxy): Deleted.
- platform/network/soup/SoupNetworkSession.h:
(WebCore::SoupNetworkSession::soupSession): Deleted.
Source/WebKit2:
- NetworkProcess/soup/NetworkProcessMainSoup.cpp:
(WebKit::NetworkProcessMainUnix):
- 6:50 AM Changeset in webkit [207130] by
-
- 3 edits3 adds in releases/WebKitGTK/webkit-2.14
Avoid null dereference when changing focus in design mode.
https://bugs.webkit.org/show_bug.cgi?id=162877
<rdar://problem/28061261>
Reviewed by Chris Dumez.
Source/WebCore:
The bare m_frame pointer in DOMWindow can be cleared when setting focus to a new element. Check
that the m_frame pointer is non-null before using it after calling a routine that could
clear the pointer value.
Test: fast/frames/iframe-focus-crash.html
- page/DOMWindow.cpp:
(WebCore::DOMWindow::focus): Check that the pointer is still non-null after setting the
current focused element to nullptr.
LayoutTests:
- fast/frames/iframe-focus-crash-expected.txt: Added.
- fast/frames/iframe-focus-crash.html: Added.
- fast/frames/resources/iframe-focus-crash.html: Added.
- 6:46 AM Changeset in webkit [207129] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206730 - Unreviewed. Fix the build with coordinated graphics enabled after r206712.
- page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::attachNode):
- 6:46 AM Changeset in webkit [207128] by
-
- 4 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206712 - Bad cast when CSS position programmatically changed from -webkit-sticky to fixed
https://bugs.webkit.org/show_bug.cgi?id=160826
Reviewed by Zalan Bujtas.
Source/WebCore:
If a scrolling state tree node changed type (e.g. from sticky to fixed), we'd fail
to recreate the node so keep a node with the wrong type.
Fix by destroying the node and making a new one with a new ID in this case. The
new ID is necessary to ensure that the scrolling tree is updated.
Test: fast/scrolling/sticky-to-fixed.html
- page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::nodeTypeAndParentMatch):
(WebCore::ScrollingStateTree::attachNode):
(WebCore::ScrollingStateTree::stateNodeForID):
- page/scrolling/ScrollingStateTree.h:
LayoutTests:
- fast/scrolling/sticky-to-fixed-expected.txt: Added.
- fast/scrolling/sticky-to-fixed.html: Added.
- 6:42 AM Changeset in webkit [207127] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206704 - [EFL] Fix build break since r206661. Unreviewed
https://bugs.webkit.org/show_bug.cgi?id=162825
No new tests, no new behaviours.
- rendering/RenderLayer.cpp:
(WebCore::ClipRects::ClipRects):
- 6:42 AM Changeset in webkit [207126] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206661 - Remove ClipRects's custom refcounting.
https://bugs.webkit.org/show_bug.cgi?id=162798
Reviewed by Simon Fraser.
It's safer to use RefCounted<>.
No change in functionality.
- rendering/RenderLayer.cpp:
(WebCore::ClipRects::ClipRects):
(WebCore::ClipRectsCache::getClipRects):
(WebCore::ClipRectsCache::setClipRects):
(WebCore::ClipRectsCache::getIndex):
(WebCore::RenderLayer::updateClipRects):
(WebCore::ClipRects::ref): Deleted.
(WebCore::ClipRects::deref): Deleted.
- 6:37 AM Changeset in webkit [207125] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206639 - RenderLayer::clipRects may return nullptr.
https://bugs.webkit.org/show_bug.cgi?id=162729
Reviewed by Chris Dumez.
This patch refactors RenderLayer::updateClipRects(), parentClipRects() and backgroundClipRect()
so that we don't have to rely on this seemingly unsafe line: clipRects = *parent()->clipRects(clipRectsContext);
Now updateClipRects() returns the computed/cached clip rects as opposed to update and refetch them.
While this patch makes the code look more readable/safer, it also eliminates cached item tripple retrievals.
No change in functionality.
- rendering/RenderLayer.cpp:
(WebCore::ClipRectsCache::getClipRects):
(WebCore::ClipRectsCache::setClipRects):
(WebCore::RenderLayer::updateClipRects):
(WebCore::RenderLayer::clipRects):
(WebCore::RenderLayer::calculateClipRects):
- rendering/RenderLayer.h:
- 6:33 AM Changeset in webkit [207124] by
-
- 3 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206591 - Fix hit testing on display:block <svg> elements
https://bugs.webkit.org/show_bug.cgi?id=162717
rdar://problem/23261130
Reviewed by Zalan Bujtas.
Source/WebCore:
RenderSVGRoot::nodeAtPoint() needs to test for both the HitTestBlockBackground and
HitTestChildBlockBackground phases, since we only get the HitTestChildBlockBackground
phase when the <svg> is a block. This is similar to code in RenderTable::nodeAtPoint(),
and matches Blink code.
This fixes the point dragging on http://anthonydugois.com/svg-path-builder/.
Test: svg/hittest/block-svg.html
- rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::nodeAtPoint):
LayoutTests:
Test hit testing on inline and block <svg> elements.
- svg/hittest/block-svg-expected.txt: Added.
- svg/hittest/block-svg.html: Added.
- 6:24 AM Changeset in webkit [207123] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206849 - [GTK] Bump Chrome version in Chrome user agent quirk
https://bugs.webkit.org/show_bug.cgi?id=162984
Reviewed by Carlos Garcia Campos.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::buildUserAgentString):
- 6:24 AM Changeset in webkit [207122] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206826 - [GTK] Improve OS X UA quirk
https://bugs.webkit.org/show_bug.cgi?id=162613
Reviewed by Carlos Garcia Campos.
Include OS X version number in user agent, like Safari does.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::buildUserAgentString):
- 6:24 AM Changeset in webkit [207121] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206825 - [GTK] Improve comment in platformVersionForUAString
https://bugs.webkit.org/show_bug.cgi?id=162612
Reviewed by Carlos Garcia Campos.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::platformVersionForUAString):
- 6:24 AM Changeset in webkit [207120] by
-
- 4 edits in releases/WebKitGTK/webkit-2.14
Merge r206519 - [GTK] Add Chrome UA quirk
https://bugs.webkit.org/show_bug.cgi?id=162617
Reviewed by Carlos Garcia Campos.
Source/WebCore:
Add Chrome UA quirk and use it on typekit.net, typekit.com, youtube.com, slack.com, and
any domain that begins with "google".
- platform/gtk/UserAgentGtk.cpp:
(WebCore::buildUserAgentString):
(WebCore::urlRequiresChromeBrowser):
(WebCore::standardUserAgentForURL):
Tools:
Update test. This portion of the commit was actually unreviewed.
- TestWebKitAPI/Tests/WebCore/gtk/UserAgentQuirks.cpp:
(TestWebKitAPI::TEST):
- 6:24 AM Changeset in webkit [207119] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206517 - [GTK] User agent should always claim to be Intel
https://bugs.webkit.org/show_bug.cgi?id=162610
Reviewed by Carlos Garcia Campos.
We should always claim to be running on Intel regardless of actual CPU type. See discussion
in bug #162548 for details. In particular, we can never advertise ARM because it causes dumb
websites to send mobile pages.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::platformVersionForUAString):
(WebCore::buildUserAgentString):
(WebCore::cpuDescriptionForUAString): Deleted.
- 6:23 AM Changeset in webkit [207118] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14
Merge r206515 - [GTK] Adjust OS X UA quirks list
https://bugs.webkit.org/show_bug.cgi?id=162616
Reviewed by Carlos Garcia Campos.
Remove the OS X quirk for yahoo.com as it's no longer needed. Add quirks for taobao.com and
whatsapp.com.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::urlRequiresMacintoshPlatform):
(WebCore::standardUserAgentForURL):
- 6:23 AM Changeset in webkit [207117] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206513 - [GTK] Simplify platformForUAString
https://bugs.webkit.org/show_bug.cgi?id=162614
Reviewed by Carlos Garcia Campos.
Note in particular that the previous PLATFORM(MAC) check was wrong here, as that is never
true for GTK; this patch risks changing it to OS(MAC_OS_X), on the hope that advertising Mac
when running on Mac might not break anything. If it does, then we should remove it and just
always pretend to be on X11.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::platformForUAString):
- 6:23 AM Changeset in webkit [207116] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206512 - [GTK] Bump fake Safari version in UA
https://bugs.webkit.org/show_bug.cgi?id=162615
Reviewed by Carlos Garcia Campos.
Pretend to be Safari 10.0 to fix sites that don't work when we pretend to be Safari 8.0.
- platform/gtk/UserAgentGtk.cpp:
(WebCore::buildUserAgentString):
- 6:23 AM Changeset in webkit [207115] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206510 - [GTK] Add warning comment in UserAgentGtk.cpp
https://bugs.webkit.org/show_bug.cgi?id=162618
Reviewed by Carlos Garcia Campos.
- platform/gtk/UserAgentGtk.cpp:
- 6:23 AM Changeset in webkit [207114] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206436 - Unreviewed typo fix
- platform/gtk/UserAgentGtk.cpp:
(WebCore::standardUserAgent):
- 6:16 AM Changeset in webkit [207113] by
-
- 4 edits in releases/WebKitGTK/webkit-2.14
Merge r206434 - [GTK] Install binaries to pkglibexecdir rather than bindir
https://bugs.webkit.org/show_bug.cgi?id=162602
Reviewed by Carlos Garcia Campos.
Source/JavaScriptCore:
Install jsc shell to LIBEXEC_INSTALL_DIR rather than EXEC_INSTALL_DIR.
Note these locations are the same on non-GTK ports.
- shell/CMakeLists.txt:
Tools:
Install MiniBrowser to LIBEXEC_INSTALL_DIR rather than EXEC_INSTALL_DIR.
- MiniBrowser/gtk/CMakeLists.txt:
- 6:16 AM Changeset in webkit [207112] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Tools
Merge r206428 - [GTK] Disable ACCELERATED_2D_CANVAS when using build-webkit
https://bugs.webkit.org/show_bug.cgi?id=162600
Reviewed by Carlos Garcia Campos.
- Scripts/webkitperl/FeatureList.pm:
- 5:52 AM Changeset in webkit [207111] by
-
- 5 edits9 adds in trunk
[Modern Media Controls] Buttons container
https://bugs.webkit.org/show_bug.cgi?id=163238
<rdar://problem/28701864>
Patch by Antoine Quint <Antoine Quint> on 2016-10-11
Reviewed by Dean Jackson.
Source/WebCore:
We add a new ButtonsContainer class which contains a group of Button objects
and positions them based on the provided padding and margin between buttons.
Buttons that aren't enabled or marked as dropped are not added to the tree of
LayoutNodes, and thus the DOM.
Additionally, we fix a few issues we found while working on tests for ButtonsContainer
where LayoutNodes would schedule layout callbacks even when they would not do any work
during the layout callback due to not resetting theneedsLayout
flag to false and
removing any scheduled tasks when a layout was completed.
Finally, we fix a few style issues that had not been caught so far and an unused
size
property on IconButton.
Tests: media/modern-media-controls/buttons-container/buttons-container-buttons-property.html
media/modern-media-controls/buttons-container/buttons-container-constructor.html
media/modern-media-controls/buttons-container/buttons-container-layout.html
- Modules/modern-media-controls/controls/airplay-button.js:
(AirplayButton.prototype.set on):
(AirplayButton):
- Modules/modern-media-controls/controls/buttons-container.css:
(.buttons-container):
- Modules/modern-media-controls/controls/buttons-container.js:
(ButtonsContainer.prototype.get buttons):
(ButtonsContainer.prototype.set buttons):
(ButtonsContainer.prototype.layout):
- Modules/modern-media-controls/controls/icon-button.js:
- Modules/modern-media-controls/controls/layout-node.js:
(LayoutNode.prototype.set needsLayout):
(LayoutNode.prototype.markDirtyProperty):
(LayoutNode.prototype._markNodeManipulation):
(LayoutNode.prototype._updateDirtyState):
(performScheduledLayout):
(elementFromString):
- Modules/modern-media-controls/controls/scheduler.js:
(const.scheduler.new.prototype.unscheduleLayout):
LayoutTests:
Adding tests for the new ButtonsContainer class.
- media/modern-media-controls/buttons-container/buttons-container-buttons-property-expected.txt: Added.
- media/modern-media-controls/buttons-container/buttons-container-buttons-property.html: Added.
- media/modern-media-controls/buttons-container/buttons-container-constructor-expected.txt: Added.
- media/modern-media-controls/buttons-container/buttons-container-constructor.html: Added.
- media/modern-media-controls/buttons-container/buttons-container-layout-expected.txt: Added.
- media/modern-media-controls/buttons-container/buttons-container-layout.html: Added.
- 5:47 AM Changeset in webkit [207110] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206427 - [GTK] Unreviewed typo fix
- UIProcess/API/gtk/WebKitWebInspector.cpp:
(webkit_web_inspector_class_init):
- 5:47 AM Changeset in webkit [207109] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/WebInspectorUI
Merge r206426 - [GTK] Mac defaults are used for key shortcuts on Linux
https://bugs.webkit.org/show_bug.cgi?id=162564
Don't set Mac's default keymap as a fallthrough for CodeMirror when we
are not on Mac.
Patch by Tomas Popela <tpopela@redhat.com> on 2016-09-27
Reviewed by Carlos Garcia Campos.
- UserInterface/Test.html: Include Platform.js for the
WebInspector.Platform definition.
- UserInterface/Views/CodeMirrorAdditions.js:
- 5:44 AM WebKitGTK/2.14.x edited by
- (diff)
- 5:40 AM Changeset in webkit [207108] by
-
- 1 edit2 adds in releases/WebKitGTK/webkit-2.14/LayoutTests
Merge r206493 - Toggling display: none on a parent element of a slot which shares style with its parent doesn't update the slot's visibility
https://bugs.webkit.org/show_bug.cgi?id=158421
Reviewed by Darin Adler.
Add a regression test now that the bug has been fixed by r206403.
- fast/shadow-dom/shadow-layout-after-toggling-display-slot-parent-expected.html: Added.
- fast/shadow-dom/shadow-layout-after-toggling-display-slot-parent.html: Added.
- 5:39 AM Changeset in webkit [207107] by
-
- 5 edits4 adds in releases/WebKitGTK/webkit-2.14
Merge r206403 - Input elements don't work inside shadow tree
https://bugs.webkit.org/show_bug.cgi?id=160427
Reviewed by Darin Adler.
Source/WebCore:
There is a bug in ComposedTreeIterator. If the iterator is initialized with an initial state where the root
is inside a shadow tree it won't iterate into slots.
If an input element is in a shadow tree it generates narrowly scoped style updates. When RenderTreeUpdater
applies such an update the update root will be inside the shadow tree and the bug will prevent the render tree
for slotted content from updating.
Added tests for both the iterator behavior and the specific symptom with input elements.
Tests: fast/shadow-dom/composed-tree-shadow-child-subtree.html
fast/shadow-dom/input-element-in-shadow.html
- dom/ComposedTreeIterator.cpp:
(WebCore::ComposedTreeIterator::ComposedTreeIterator):
Check and cache if the root is inside shadow tree.
(WebCore::ComposedTreeIterator::traverseNextInShadowTree):
- dom/ComposedTreeIterator.h:
(WebCore::ComposedTreeIterator::traverseNext):
If it is, always use the shadow traversal code path.
LayoutTests:
- fast/shadow-dom/composed-tree-shadow-child-subtree-expected.txt: Added.
- fast/shadow-dom/composed-tree-shadow-child-subtree.html: Added.
- fast/shadow-dom/input-element-in-shadow-expected.html: Added.
- fast/shadow-dom/input-element-in-shadow.html: Added.
- 5:35 AM Changeset in webkit [207106] by
-
- 2 edits1 add in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206383 - Add CairoUniquePtr and use it in FontPlatformDataFreetype.cpp
https://bugs.webkit.org/show_bug.cgi?id=162557
Reviewed by Alex Christensen.
- platform/graphics/cairo/CairoUniquePtr.h: Added.
(WebCore::CairoPtrDeleter<cairo_font_options_t>::operator()):
- platform/graphics/freetype/FontPlatformDataFreeType.cpp:
(WebCore::getDefaultCairoFontOptions): Return a smart pointer.
(WebCore::FontPlatformData::buildScaledFont): Use smart pointer.
- 5:34 AM Changeset in webkit [207105] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Tools
Merge r206382 - [GTK] TestContextMenu is failing
https://bugs.webkit.org/show_bug.cgi?id=162569
We cannot use the MP3 file in the TestContextMenu, as it will not work
by default on most distributions (that don't have an MP3 codecs
installed). Change the test to use OGG file instead.
Patch by Tomas Popela <tpopela@redhat.com> on 2016-09-26
Reviewed by Michael Catanzaro.
- TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
(testContextMenuDefaultMenu):
- 5:33 AM Changeset in webkit [207104] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/bmalloc
Merge r206380 - Avoid implicit conversion from iterator to pointer
https://bugs.webkit.org/show_bug.cgi?id=162482
Patch by Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa@sony.com> on 2016-09-26
Reviewed by Geoffrey Garen.
Not every STL supporting such conversion, we should get a pointer explicitly.
- bmalloc/Chunk.h:
(bmalloc::Chunk::lines):
(bmalloc::Chunk::pages):
- bmalloc/FixedVector.h:
(bmalloc::FixedVector::begin):
- 5:32 AM Changeset in webkit [207103] by
-
- 5 edits in releases/WebKitGTK/webkit-2.14/Source
Merge r206377 - std::unique_ptr deleter functions should not check if pointer is null
https://bugs.webkit.org/show_bug.cgi?id=162558
Reviewed by Alex Christensen.
std::unique_ptr already does this before calling the deleter.
Source/WebCore:
- platform/graphics/x11/XUniquePtr.h:
(WebCore::XPtrDeleter::operator()):
(WebCore::XPtrDeleter<XImage>::operator()):
(WebCore::XPtrDeleter<_XGC>::operator()):
(WebCore::XPtrDeleter<GLXcontextRec>::operator()):
Source/WTF:
- wtf/efl/UniquePtrEfl.h:
- wtf/glib/GUniquePtr.h:
- 5:11 AM Changeset in webkit [207102] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206373 - [GTK] Unnecessary extern functions in FontPlatformDataFreeType.cpp
https://bugs.webkit.org/show_bug.cgi?id=162555
Reviewed by Carlos Garcia Campos.
These functions should be file-static.
- platform/graphics/freetype/FontPlatformDataFreeType.cpp:
(WebCore::convertFontConfigSubpixelOrder):
(WebCore::convertFontConfigHintStyle):
(WebCore::setCairoFontOptionsFromFontConfigPattern):
- 5:08 AM Changeset in webkit [207101] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore/platform/gtk/po
Merge r206362 - [GTK] German translation update
https://bugs.webkit.org/show_bug.cgi?id=152228
Patch by Benedikt M. Thoma <gnome@thomba.net> on 2016-09-25
Rubber-stamped by Michael Catanzaro.
- de.po:
- 5:05 AM Changeset in webkit [207100] by
-
- 3 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206343 - ASSERTION FAILED: !newRelayoutRoot.container() is<RenderView>(newRelayoutRoot.container()) !newRelayoutRoot.container()->needsLayout() while loading sohu.com https://bugs.webkit.org/show_bug.cgi?id=162466
Reviewed by Simon Fraser.
Source/WebCore:
When we come across a out-of-flow positioned renderer during layout, we add it to a tracker map with
its containing block (calling RenderBlock::insertPositionedObject).
It ensures that a containing block can easily access to the out-of-flow positioned descendants during layout/painting/hittesting.
We do it even when the containing block - positioned renderer pair is already in this tracker map.
RenderBlock::insertPositionedObject() eagerly sets the positioned-child-needs-layout flag on the containing block
assuming it needs to layout this descendant later in the layout phase.
This patch ensure that we only flag the containing block dirty when the descendant needs layout.
Test: fast/block/positioning/subtree-assert-when-positioned-element-dirties-containing-block.html
- rendering/RenderBlock.cpp:
(WebCore::RenderBlock::insertPositionedObject):
LayoutTests:
- fast/block/positioning/subtree-assert-when-positioned-element-dirties-containing-block-expected.txt: Added.
- fast/block/positioning/subtree-assert-when-positioned-element-dirties-containing-block.html: Added.
- 5:01 AM Changeset in webkit [207099] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206305 - [GTK] BadDamage X error in /webkit2/WebKitWebView/preferred-size
https://bugs.webkit.org/show_bug.cgi?id=162489
Reviewed by Michael Catanzaro.
Do a XSync right after creating/destroying the XDamage used by the redirected window in X11.
- UIProcess/gtk/AcceleratedBackingStoreX11.cpp:
(WebKit::AcceleratedBackingStoreX11::~AcceleratedBackingStoreX11):
(WebKit::AcceleratedBackingStoreX11::update):
- 5:01 AM Changeset in webkit [207098] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Tools
Merge r206304 - REGRESSION(r204163): [GTK] API test /webkit2/WebKitSecurityManager/file-xhr is failing
https://bugs.webkit.org/show_bug.cgi?id=161607
Reviewed by Michael Catanzaro.
Since r204163, in case of cross origin error when loading the XHR, the load fails and an error message is shown
in the console, but there isn't any js expcetion, which is what we were checking. Now, we check that there
aren't exceptions, and that the error message is sent to the console.
- Scripts/run-gtk-tests:
(TestRunner):
- TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
(consoleMessageReceivedCallback):
(testWebContextSecurityFileXHR):
- 5:00 AM Changeset in webkit [207097] by
-
- 7 edits in releases/WebKitGTK/webkit-2.14/Tools
Merge r206302 - [GTK] Make all WebView tests have a WebKitUserContentManager
https://bugs.webkit.org/show_bug.cgi?id=162487
Reviewed by Michael Catanzaro.
It simplifies tests using the user content manager, and allows to use it without having to subclass WebViewTest.
- TestWebKitAPI/Tests/WebKit2Gtk/TestConsoleMessage.cpp:
(ConsoleMessageTest::ConsoleMessageTest):
(ConsoleMessageTest::~ConsoleMessageTest):
- TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
- TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitUserContentManager.cpp:
(testUserContentManagerInjectedStyleSheet):
(testUserContentManagerInjectedScript):
(UserScriptMessageTest::UserScriptMessageTest):
(beforeAll):
- TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
(testWebViewIsPlayingAudio):
- TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
(WebViewTest::WebViewTest):
- TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h:
- 4:58 AM Changeset in webkit [207096] by
-
- 11 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206295 - REGRESSION(r194387): Crash on github.com in IntlDateTimeFormat::resolvedOptions in C locale
https://bugs.webkit.org/show_bug.cgi?id=162139
Reviewed by Michael Catanzaro.
Source/JavaScriptCore:
The crash happens in unix ports because the resolved locale is empty when system locale is "C". IntlObject
considers any language tag with a size < 2 to be an invalid language, so "C" is not a valid language to resolve
the locale. We should ensure that WTF::platformUserPreferredLanguages() never returns invalid languages, but
that's not enough, because languages can be overriden from the public API, so we need to handle those cases and
throw exceptions instead of crashing.
- runtime/IntlCollator.cpp:
(JSC::IntlCollator::initializeCollator): Throw a exception when we fail to resolve the locale.
- runtime/IntlDateTimeFormat.cpp:
(JSC::IntlDateTimeFormat::initializeDateTimeFormat): Ditto.
- runtime/IntlNumberFormat.cpp:
(JSC::IntlNumberFormat::initializeNumberFormat): Ditto.
Source/WebKit2:
Handle the case of "C" locale passed by the user using "en-US" as default to match what
WTF::platformUserPreferredLanguages() does.
- UIProcess/API/gtk/WebKitWebContext.cpp:
(webkit_web_context_set_preferred_languages): Remove the call to languageDidChange() because
overrideUserPreferredLanguages() already calls it, so we were actually notifying the observers twice.
Source/WTF:
Handle the case of "C" or "POSIX" locale and use "en-US" as default. That matches what ICU and other ports do,
as well as what layout tests expect (some tests like js/intl-collator.html pass in the bots only because we use
en-US as system locale in those bots).
- wtf/PlatformUserPreferredLanguagesUnix.cpp:
(WTF::platformLanguage):
Tools:
Add test cases to check the behavior when using the C locale and an invalid locale.
- TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
(testWebContextLanguages):
LayoutTests:
- js/intl-invalid-locale-crash-expected.txt: Added.
- js/intl-invalid-locale-crash.html: Added.
- 4:52 AM Changeset in webkit [207095] by
-
- 4 edits in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r206294 - [GTK] Improve performance when resizing a window with multiple web views in X11
https://bugs.webkit.org/show_bug.cgi?id=162413
Reviewed by Michael Catanzaro.
Resizing a window with a single way view performs good enough, but when adding more tabs, the performance
decreases a lot. This is because resize is a sync operation, and the UI process waits for the web process to
have a new update for the new size, while still draws the previous frame. This is needed for the visible web
view, to avoid flickering and artifacts while resizing, but for all other hidden web views, we don't really need
to block the UI process. This doesn't happen in Wayland, because in Wayland we never block the UI process while
waiting for web process update after a resize.
- UIProcess/AcceleratedDrawingAreaProxy.cpp:
(WebKit::AcceleratedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): Return early if the web
view is not visible.
- UIProcess/gtk/AcceleratedBackingStoreX11.cpp:
(WebKit::AcceleratedBackingStoreX11::update): Only schedule a redraw on a damage event when the view is visible.
- WebProcess/WebPage/gtk/AcceleratedSurfaceX11.cpp:
(WebKit::AcceleratedSurfaceX11::AcceleratedSurfaceX11): Do a XSync right after creating the new pixmap.
(WebKit::AcceleratedSurfaceX11::resize): Ditto.
- 4:51 AM Changeset in webkit [207094] by
-
- 3 edits5 adds in releases/WebKitGTK/webkit-2.14
Merge r206280 - IDBIndex.openCursor() matches indices on multiple object stores.
<rdar://problem/28434463> and https://bugs.webkit.org/show_bug.cgi?id=158833
Reviewed by Alex Christensen.
Source/WebCore:
Tests: storage/indexeddb/modern/multiple-objectstore-index-cursor-collision-private.html
storage/indexeddb/modern/multiple-objectstore-index-cursor-collision.html
- Modules/indexeddb/server/SQLiteIDBCursor.cpp:
(WebCore::IDBServer::buildIndexStatement): Need to include the object store id in the statement for
index cursors, otherwise there will be collisions amongst multiple object stores that happen to
share primary keys.
(WebCore::IDBServer::SQLiteIDBCursor::bindArguments):
LayoutTests:
- storage/indexeddb/modern/multiple-objectstore-index-cursor-collision-expected.txt: Added.
- storage/indexeddb/modern/multiple-objectstore-index-cursor-collision-private-expected.txt: Added.
- storage/indexeddb/modern/multiple-objectstore-index-cursor-collision-private.html: Added.
- storage/indexeddb/modern/multiple-objectstore-index-cursor-collision.html: Added.
- storage/indexeddb/modern/resources/multiple-objectstore-index-cursor-collision.js: Added.
- 4:49 AM Changeset in webkit [207093] by
-
- 3 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206277 - [XSS Auditor] HTML5 entities can bypass XSS Auditor
https://bugs.webkit.org/show_bug.cgi?id=161939
<rdar://problem/25819815>
Reviewed by David Kilzer.
Source/WebCore:
Merged from Blink:
<https://chromium.googlesource.com/chromium/src/+/04e44060dccee711842d08652bf1c622a0f43179>
Truncate a src-like URL at the first & character as it may mark the start of an HTML entity.
We will evaluate the effectiveness of this approach and adjust it if necessary if we see an
increase in false positives.
HTML5 defines more named character references, including named character references for common
punctuation characters. Characters following some punctuation characters may come from the page
itself. We truncate src-like strings at punctuation characters to avoid considering such page
content when performing a match.
Test: http/tests/security/xssAuditor/script-tag-with-source-data-url5.html
- html/parser/XSSAuditor.cpp:
(WebCore::truncateForSrcLikeAttribute):
LayoutTests:
- http/tests/security/xssAuditor/script-tag-with-source-data-url5-expected.txt: Added.
- http/tests/security/xssAuditor/script-tag-with-source-data-url5.html: Added.
- 4:49 AM Changeset in webkit [207092] by
-
- 4 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206276 - [XSS Auditor] Truncate data URLs at quotes
https://bugs.webkit.org/show_bug.cgi?id=161937
Reviewed by David Kilzer.
Source/WebCore:
Merged from Blink:
<https://chromium.googlesource.com/chromium/src/+/c6d6331190dd43f09459e2341c3111e796f9de12/>
Truncate a data URL at the first single or double quote character to avoid considering
characters that may come from the page content following an injected data URL.
Test: http/tests/security/xssAuditor/script-tag-with-source-data-url4.html
- html/parser/XSSAuditor.cpp:
(WebCore::truncateForSrcLikeAttribute):
LayoutTests:
- http/tests/security/xssAuditor/resources/echo-property.pl:
- http/tests/security/xssAuditor/script-tag-with-source-data-url4-expected.txt: Added.
- http/tests/security/xssAuditor/script-tag-with-source-data-url4.html: Added.
- 4:46 AM Changeset in webkit [207091] by
-
- 35 edits4 moves in releases/WebKitGTK/webkit-2.14/Source
Merge r206256 - [GTK] Rename DataObjectGtk as SelectionData
https://bugs.webkit.org/show_bug.cgi?id=162380
Reviewed by Žan Doberšek.
Source/WebCore:
DataObjectGtk represents the data of a selection, like GtkSelectionData, used for clipboard and drag adn drop
operations. Data object is a very generic name, and the Gtk suffix sounds like if this is the GTK implementation
of a generic DataObject class.
- PlatformGTK.cmake:
- editing/gtk/EditorGtk.cpp:
(WebCore::createFragmentFromPasteboardData):
- page/gtk/DragControllerGtk.cpp:
- platform/DragData.h:
- platform/Pasteboard.h:
- platform/PasteboardStrategy.h:
(WebCore::PasteboardStrategy::~PasteboardStrategy): Deleted.
- platform/PlatformPasteboard.h:
- platform/gtk/DragDataGtk.cpp:
- platform/gtk/PasteboardGtk.cpp:
(WebCore::Pasteboard::createPrivate):
(WebCore::Pasteboard::createForDragAndDrop):
(WebCore::Pasteboard::Pasteboard):
(WebCore::Pasteboard::selectionData):
(WebCore::selectionDataTypeFromHTMLClipboardType):
(WebCore::Pasteboard::writeToClipboard):
(WebCore::Pasteboard::readFromClipboard):
(WebCore::Pasteboard::writeString):
(WebCore::Pasteboard::writePlainText):
(WebCore::Pasteboard::write):
(WebCore::Pasteboard::writePasteboard):
(WebCore::Pasteboard::clear):
(WebCore::Pasteboard::canSmartReplace):
(WebCore::Pasteboard::read):
(WebCore::Pasteboard::hasData):
(WebCore::Pasteboard::types):
(WebCore::Pasteboard::readString):
(WebCore::Pasteboard::readFilenames):
- platform/gtk/PasteboardHelper.cpp:
(WebCore::PasteboardHelper::getClipboardContents):
(WebCore::PasteboardHelper::targetListForSelectionData):
(WebCore::PasteboardHelper::fillSelectionData):
(WebCore::ClipboardSetData::ClipboardSetData):
(WebCore::getClipboardContentsCallback):
(WebCore::PasteboardHelper::writeClipboardContents):
(WebCore::clearClipboardContentsCallback): Deleted.
- platform/gtk/PasteboardHelper.h:
- platform/gtk/PlatformPasteboardGtk.cpp:
(WebCore::PlatformPasteboard::writeToClipboard):
(WebCore::PlatformPasteboard::readFromClipboard):
- platform/gtk/SelectionData.cpp: Renamed from Source/WebCore/platform/gtk/DataObjectGtk.cpp.
(WebCore::SelectionData::setText):
(WebCore::SelectionData::setURIList):
(WebCore::SelectionData::setURL):
(WebCore::SelectionData::urlLabel):
(WebCore::SelectionData::clearAllExceptFilenames):
(WebCore::SelectionData::clearAll):
- platform/gtk/SelectionData.h: Renamed from Source/WebCore/platform/gtk/DataObjectGtk.h.
(WebCore::SelectionData::create):
(WebCore::SelectionData::text):
(WebCore::SelectionData::hasText):
(WebCore::SelectionData::clearText):
(WebCore::SelectionData::setMarkup):
(WebCore::SelectionData::markup):
(WebCore::SelectionData::hasMarkup):
(WebCore::SelectionData::clearMarkup):
(WebCore::SelectionData::hasURL):
(WebCore::SelectionData::clearURL):
(WebCore::SelectionData::filenames):
(WebCore::SelectionData::hasURIList):
(WebCore::SelectionData::hasFilenames):
(WebCore::SelectionData::setImage):
(WebCore::SelectionData::image):
(WebCore::SelectionData::hasImage):
(WebCore::SelectionData::unknownTypeData):
(WebCore::SelectionData::unknownTypes):
(WebCore::SelectionData::hasUnknownTypeData):
(WebCore::SelectionData::canSmartReplace):
(WebCore::SelectionData::url): Deleted.
(WebCore::SelectionData::uriList): Deleted.
(WebCore::SelectionData::clearURIList): Deleted.
(WebCore::SelectionData::clearImage): Deleted.
(WebCore::SelectionData::setUnknownTypeData): Deleted.
Source/WebKit2:
- PlatformGTK.cmake:
- Shared/gtk/ArgumentCodersGtk.cpp:
(IPC::ArgumentCoder<SelectionData>::encode):
(IPC::ArgumentCoder<SelectionData>::decode):
- Shared/gtk/ArgumentCodersGtk.h:
- Shared/gtk/WebSelectionData.cpp: Renamed from Source/WebKit2/Shared/gtk/PasteboardContent.cpp.
(WebKit::WebSelectionData::WebSelectionData):
(WebKit::WebSelectionData::encode):
(WebKit::WebSelectionData::decode):
- Shared/gtk/WebSelectionData.h: Renamed from Source/WebKit2/Shared/gtk/PasteboardContent.h.
- UIProcess/API/gtk/PageClientImpl.cpp:
(WebKit::PageClientImpl::startDrag):
- UIProcess/API/gtk/PageClientImpl.h:
- UIProcess/PageClient.h:
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::performDragControllerAction):
(WebKit::WebPageProxy::startDrag):
- UIProcess/WebPageProxy.h:
- UIProcess/WebPageProxy.messages.in:
- UIProcess/WebPasteboardProxy.h:
- UIProcess/WebPasteboardProxy.messages.in:
- UIProcess/gtk/DragAndDropHandler.cpp:
(WebKit::DragAndDropHandler::DroppingContext::DroppingContext):
(WebKit::DragAndDropHandler::startDrag):
(WebKit::DragAndDropHandler::fillDragData):
(WebKit::DragAndDropHandler::finishDrag):
(WebKit::DragAndDropHandler::dropDataSelection):
(WebKit::DragAndDropHandler::dragEntered):
(WebKit::DragAndDropHandler::dragDataSelection):
(WebKit::DragAndDropHandler::dragMotion):
(WebKit::DragAndDropHandler::dragLeave):
(WebKit::DragAndDropHandler::drop):
- UIProcess/gtk/DragAndDropHandler.h:
- UIProcess/gtk/WebPasteboardProxyGtk.cpp:
(WebKit::WebPasteboardProxy::writeToClipboard):
(WebKit::WebPasteboardProxy::readFromClipboard):
(WebKit::WebPasteboardProxy::setPrimarySelectionOwner): Deleted.
- WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::writeToClipboard):
(WebKit::WebPlatformStrategies::readFromClipboard):
- WebProcess/WebCoreSupport/WebPlatformStrategies.h:
- WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
(WebKit::WebDragClient::startDrag):
- WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::performDragControllerAction):
- WebProcess/WebPage/WebPage.h:
- WebProcess/WebPage/WebPage.messages.in:
- 4:38 AM Changeset in webkit [207090] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206205 - [GTK] Fix build failure of ScrollbarThemeGtk with libc++
https://bugs.webkit.org/show_bug.cgi?id=162302
Patch by Jeremy Huddleston Sequoia <jeremyhu@apple.com> on 2016-09-21
Reviewed by Carlos Garcia Campos.
- platform/gtk/ScrollbarThemeGtk.cpp:
(WebCore::ScrollbarThemeGtk::paint): Add missing #include <cstdlib>
- 4:37 AM Changeset in webkit [207089] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206200 - [GTK] Fix build failure in clipboard support
https://bugs.webkit.org/show_bug.cgi?id=162261
Patch by Jeremy Huddleston Sequoia <jeremyhu@apple.com> on 2016-09-21
Reviewed by Carlos Garcia Campos.
- platform/PlatformPasteboard.h: Add missing #include <functional>
- platform/gtk/PasteboardHelper.h: Add missing #include <functional>
- 4:36 AM Changeset in webkit [207088] by
-
- 28 edits in releases/WebKitGTK/webkit-2.14/Source
Merge r206197 - [GTK] Clean up DataObjectGtk handling
https://bugs.webkit.org/show_bug.cgi?id=162267
Reviewed by Michael Catanzaro.
Source/WebCore:
- platform/Pasteboard.h: Use Ref instead of RefPtr for DataObjectGtk member.
- platform/PasteboardStrategy.h: Pass a const reference to DataObjectGtk in write method and return a Ref from read.
- platform/PlatformPasteboard.h: Ditto.
- platform/gtk/DataObjectGtk.h:
(WebCore::DataObjectGtk::image): Use Image instead of GdkPixbuf.
(WebCore::DataObjectGtk::setImage):
- platform/gtk/PasteboardGtk.cpp:
(WebCore::Pasteboard::createForDragAndDrop): Use a reference instead of a pointer.
(WebCore::Pasteboard::Pasteboard): Receives a reference, so we can also remove the ASSERT.
(WebCore::Pasteboard::dataObject):
(WebCore::Pasteboard::writeToClipboard): Remove the ShouldIncludeSmartPaste parameter, callers should also update
canSmartPaste property of DataObjectGtk before calling this.
(WebCore::Pasteboard::writePlainText):
(WebCore::Pasteboard::write): Do not convert the image the GdkPixbuf, pass the image to the DataObjectGtk instead.
- platform/gtk/PasteboardHelper.cpp:
(WebCore::PasteboardHelper::fillSelectionData): Convert the DataObjectGtk image to GdkPixbuf right before
passing it to gtk_selection_data_set_pixbuf().
(WebCore::ClipboardSetData::ClipboardSetData): Use reference instead of pointer.
(WebCore::getClipboardContentsCallback):
(WebCore::clearClipboardContentsCallback): Never clear the saved DataObjectGtk, that was only needed when we had
a global DataObjectGtk associated to a GtkClipboard.
(WebCore::PasteboardHelper::writeClipboardContents): Use TemporaryChange to set the settingClipboardDataObject global.
- platform/gtk/PlatformPasteboardGtk.cpp:
(WebCore::PlatformPasteboard::writeToClipboard):
(WebCore::PlatformPasteboard::readFromClipboard):
Source/WebKit2:
In some cases the ownership of DataObjectGtk instances is not clear enough, and we have hacks to avoid memory
leaks because of that.
- Shared/gtk/ArgumentCodersGtk.cpp:
(IPC::encodeImage): Use Image instead of GdkPixbuf.
(IPC::decodeImage): Ditto.
(IPC::ArgumentCoder<DataObjectGtk>::encode):
(IPC::ArgumentCoder<DataObjectGtk>::decode):
(IPC::encode): Deleted.
(IPC::decode): Deleted.
(IPC::ArgumentCoder<DragData>::encode): Deleted.
(IPC::ArgumentCoder<DragData>::decode): Deleted.
- Shared/gtk/ArgumentCodersGtk.h:
- Shared/gtk/PasteboardContent.cpp:
(WebKit::PasteboardContent::PasteboardContent): Add empty constructor that creates a new DataObjectGtk, a
constructor that receives a const reference and another one that takes the ownership of the given DataObjectGtk.
(WebKit::PasteboardContent::encode):
(WebKit::PasteboardContent::decode):
- Shared/gtk/PasteboardContent.h: Use Ref instead of RefPtr for the DataObjectGtk member.
- UIProcess/API/gtk/PageClientImpl.cpp:
(WebKit::PageClientImpl::startDrag): Transfer the DataObjectGtk to the DragAndDropHandler, instead of using DragData.
- UIProcess/API/gtk/PageClientImpl.h:
- UIProcess/PageClient.h:
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::performDragControllerAction): Instead of sending a DragData object to the web process,
send the DataObjectGtk and DragData members needed as parameters.
(WebKit::WebPageProxy::startDrag): Transfer the received DataObjectGtk to page client, instead of using
DragData. Also notify the web process that drag started.
- UIProcess/WebPageProxy.h:
- UIProcess/WebPageProxy.messages.in: Update StartDrag message parameters.
- UIProcess/gtk/DragAndDropHandler.cpp:
(WebKit::DragAndDropHandler::DragAndDropHandler): Remove unneeded initialization.
(WebKit::DragAndDropHandler::startDrag): Take ownership of the given DataObjectGtk.
- UIProcess/gtk/DragAndDropHandler.h:
- UIProcess/gtk/WebPasteboardProxyGtk.cpp:
(WebKit::WebPasteboardProxy::writeToClipboard):
(WebKit::WebPasteboardProxy::readFromClipboard):
- WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::writeToClipboard):
(WebKit::WebPlatformStrategies::readFromClipboard):
- WebProcess/WebCoreSupport/WebPlatformStrategies.h:
- WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
(WebKit::convertCairoSurfaceToShareableBitmap):
(WebKit::WebDragClient::startDrag): Do not create a DragData and pass the DataObjectGtk directly to the
message. Also notify the WebPage that drag is about to start.
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::performDragControllerAction): Remove explicit DataObjectGtk derefs and simply create a
DragData using the DataObjectGtk pointer as platform data.
- WebProcess/WebPage/WebPage.h:
- WebProcess/WebPage/WebPage.messages.in: Update PerformDragControllerAction message parameters.
- 4:09 AM Changeset in webkit [207087] by
-
- 5 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206188 - REGRESSION (r204552): Athlete search on Strava gives bad rendering.
https://bugs.webkit.org/show_bug.cgi?id=162250
Reviewed by Simon Fraser.
Source/WebCore:
Test: fast/layers/blank-content-when-child-layer-is-at-negative-big-number.html
- platform/graphics/LayoutRect.cpp:
(WebCore::LayoutRect::checkedUnite):
- platform/graphics/LayoutRect.h:
(WebCore::LayoutRect::isMaxXMaxYRepresentable):
(WebCore::LayoutRect::maxXMaxYCorner): Deleted.
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects):
LayoutTests:
While computing the size of a particular layer, we unite the content size and the descendant layers' size.
If a descendant layer is positioned far off, the computed rectangle might not fully cover the original rectangles.
This happens when the 2 rectangles' distance is close to the maximum LayoutUnit value.
It's fairly common technic to put some content offscreen (top: -99999999px;). In order to keep the main content
visible, we need to ensure that the parent layer never gets cut off, while uniting it with the descendant layers.
- fast/layers/blank-content-when-child-layer-is-at-negative-big-number-expected.html: Added.
- fast/layers/blank-content-when-child-layer-is-at-negative-big-number.html: Added.
- 3:53 AM Changeset in webkit [207086] by
-
- 23 edits in trunk
[Fetch API] Support Request cache mode
https://bugs.webkit.org/show_bug.cgi?id=162281
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-11
Reviewed by Alex Christensen.
LayoutTests/imported/w3c:
- web-platform-tests/fetch/api/request/request-cache-expected.txt: Rebasing test now that more tests are passing.
- web-platform-tests/fetch/api/request/request-error-expected.txt:
- web-platform-tests/fetch/api/request/request-error.html: Adding test to ensure only-if-cached is used with same-origin fetch mode.
Source/WebCore:
Covered by updated test.
Added support for only-if-cached mode at Request level.
Added support for cache mode at CachedResourceLoader, by setting HTTP headers and ResourceRequest cache policy
based on https://fetch.spec.whatwg.org/#concept-request-cache-mode and https://fetch.spec.whatwg.org/#http-network-or-cache-fetch.
Disabled default cache policy computation (done in FrameLoader) when cache mode is different from the default.
Activated no-store cache mode for EventSource as per https://html.spec.whatwg.org/#the-eventsource-interface.
- Modules/fetch/FetchRequest.cpp:
(WebCore::setCache): Adding support for only-if-cached.
(WebCore::buildOptions): Throw if only-if-cached and fetch mode is not same-origin.
- loader/FetchOptions.h: Adding support for only-if-cached.
- loader/FrameLoader.cpp:
(WebCore::FrameLoader::defaultRequestCachingPolicy): Introduced to ease readability.
(WebCore::FrameLoader::addExtraFieldsToRequest): Updating cache policy only if request has the default cache policy.
This allows bypassing the default behavior for fetch cache mode different from "default".
- loader/FrameLoader.h:
- loader/cache/CachedResourceLoader.cpp:
(WebCore::updateRequestAccordingCacheMode): Introduced to set headers and request cache policy according fetch cache mode.
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::loadResource):
(WebCore::CachedResourceLoader::determineRevalidationPolicy): Ensure bypassing the memory cache in no-store and reload cases.
We reload in case of cache mode=reload to refresh the meory cache entry.
- loader/cache/CachedResourceRequest.h:
(WebCore::CachedResourceRequest::setCacheModeToNoStore):
- page/EventSource.cpp:
(WebCore::EventSource::connect): Use no-store cache mode as per https://html.spec.whatwg.org/#the-eventsource-interface.
- platform/network/HTTPHeaderMap.cpp:
(WebCore::HTTPHeaderMap::addIfNotPresent): Helper routine.
- platform/network/HTTPHeaderMap.h:
- platform/network/HTTPHeaderValues.cpp:
- platform/network/HTTPHeaderValues.h:
- platform/network/ResourceRequestBase.cpp:
(WebCore::ResourceRequestBase::addHTTPHeaderFieldIfNotPresent):
(WebCore::ResourceRequestBase::addHTTPHeaderField):
(WebCore::ResourceRequestBase::hasHTTPHeaderField):
- platform/network/ResourceRequestBase.h:
LayoutTests:
Activating request-cache.html tests for WK1, but not yet for WK2.
- TestExpectations:
- platform/mac/TestExpectations:
- platform/wk2/TestExpectations:
- 3:51 AM Changeset in webkit [207085] by
-
- 5 edits in releases/WebKitGTK/webkit-2.14/Source
Merge r206151 - Undefined behavior: Left shift negative number
https://bugs.webkit.org/show_bug.cgi?id=161866
Reviewed by Keith Miller.
Left shifting a negative number is undefined behavior in C/C++, although most implementations do define it. Explicitly clarifying the intended behavior due to shifting negative number in some cases.
Source/JavaScriptCore:
- dfg/DFGAbstractHeap.h:
(JSC::DFG::AbstractHeap::encode): Explicitly cast signed integer for left shift.
Source/WTF:
- wtf/text/Base64.cpp:
(WTF::base64EncodeInternal): Changed signed character to unsigned when shifting.
(WTF::base64Encode): Ditto.
(WTF::base64URLEncode): Ditto.
(WTF::base64DecodeInternal): Ditto.
- wtf/text/Base64.h: Ditto.
(WTF::SignedOrUnsignedCharVectorAdapter): Rebuilt to stop using union as a bitwise_cast.
(WTF::ConstSignedOrUnsignedCharVectorAdapter): Ditto.
- 3:49 AM Changeset in webkit [207084] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206122 - Cleanup: Remove an extraneous copy of SecurityOrigin
https://bugs.webkit.org/show_bug.cgi?id=162118
Reviewed by Youenn Fablet.
Share one isolated copy of the SecurityOrigin between the ContentSecurityPolicy and
LoaderTaskOptions objects instead of creating two isolated copies of the SecurityOrigin.
This is safe because both ContentSecurityPolicy and LoaderTaskOptions are instantiated
in WorkerThreadableLoader::MainThreadBridge for use on the main thread only.
- loader/WorkerThreadableLoader.cpp:
(WebCore::LoaderTaskOptions::LoaderTaskOptions):
(WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
- 3:45 AM Changeset in webkit [207083] by
-
- 3 edits5 adds in releases/WebKitGTK/webkit-2.14
Merge r206118 - Update XHTMLParser to recognize "-W3CDTD MathML 2.0EN" public identifier
https://bugs.webkit.org/show_bug.cgi?id=162166
Reviewed by Alex Christensen.
LayoutTests/imported/w3c:
Import test coverage from W3C web-platform-tests.
- web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/w3c-import.log: Added.
- web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-support-expected.txt: Added.
- web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-support.htm: Added.
Source/WebCore:
Update XHTMLParser to recognize "-W3CDTD MathML 2.0EN" public identifier as
per the latest HTML specification.
Firefox already recognizes it properly.
Test: imported/w3c/web-platform-tests/html/the-xhtml-syntax/parsing-xhtml-documents/xhtml-mathml-dtd-entity-support.htm
- xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::convertUTF16EntityToUTF8):
Fix assertion that was causing the new test to crash in debug. The input '\u0026'
gets converted to '&' which is only 1 character. However, the assertion wrongly
expected WTF::Unicode::convertUTF16ToUTF8() to generate more than 1 character.
(WebCore::externalSubsetHandler):
Add "-W3CDTD MathML 2.0EN" to the list.
- 3:42 AM Changeset in webkit [207082] by
-
- 3 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r206100 - ASSERTION FAILED: clipRectsContext.rootLayer == m_clipRectsCache->m_clipRectsRoot[clipRectsType] while loading guardian.co.uk
https://bugs.webkit.org/show_bug.cgi?id=162129
<rdar://problem/28353350>
Reviewed by Antti Koivisto.
Source/WebCore:
Neither ::localClipRect() nor ::selfClipRect() accounts for paginated context while computing the cliprects (See FIXMEs).
This patch ensures that we don't end up caching these invalid cliprects.
Test: fast/multicol/assert-on-cliprect-caching-when-paginated.html
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects):
LayoutTests:
- fast/multicol/assert-on-cliprect-caching-when-paginated-expected.txt: Added.
- fast/multicol/assert-on-cliprect-caching-when-paginated.html: Added.
- 3:40 AM Changeset in webkit [207081] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206074 - MainThreadBridge needs an isolatedCopy() of SecurityOrigin
<https://webkit.org/b/162116>
<rdar://problem/27525870>
Reviewed by Carlos Garcia Campos.
Covered by existing tests.
- loader/WorkerThreadableLoader.cpp:
(WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
Make an isolatedCopy() of SecurityOrigin here since that's the
correct idiom to use when the object is passed from a worker
thread back to the main thread. Fix suggested by Daniel Bates.
- 3:38 AM Changeset in webkit [207080] by
-
- 4 edits6 adds in releases/WebKitGTK/webkit-2.14
Merge r206062 - Cancelling one frame's load cancels load in other frames that have the same URL as well
https://bugs.webkit.org/show_bug.cgi?id=162094
Reviewed by Antti Koivisto.
Source/WebCore:
Cancelling one frame's load cancels load in other frames that have the same URL as well.
So if you have several frames that are loading URL X and you navigate one of the frames
to Y, then the load of X will be cancelled and this frame will navigate to Y. All other
frames will not load URL X even though they should.
The issue is that all the DocumentLoaders share the same CachedResource because of the
memoryCache. When we call DocumentLoader::stopLoading(), it will cancel the
CachedResource's load even though there are several clients for this CachedResource
and other clients still want the load.
The approach chosen in this patch is to not reuse CachedResources that are still
loading when trying to load a main resource. This is not the most efficient approach.
I still chose this approach because:
- It is very unlikely to introduce new bugs.
- The change is very simple.
- This is a corner case (several iframes having the same URL and cancelling the load in one of them).
Test: http/tests/navigation/frames-same-url-cancel-load.html
- loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::determineRevalidationPolicy):
LayoutTests:
Add layout test coverage.
- http/tests/cache/iframe-detach-expected.txt: Added.
- http/tests/cache/iframe-detach.html: Added.
- http/tests/cache/resources/slow-iframe.php: Added.
Import Alex Christensen's test from Bug 157563.
- http/tests/navigation/frames-same-url-cancel-load-expected.txt: Added.
- http/tests/navigation/frames-same-url-cancel-load.html: Added.
- http/tests/navigation/resources/success.html: Added.
- http/tests/security/XFrameOptions/x-frame-options-deny-multiple-clients-expected.txt:
- 3:36 AM Changeset in webkit [207079] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206061 - ASSERTION FAILED: The string being removed is atomic in the string table of an other thread! iterator != atomicStringTable.end() at Source/WTF/wtf/text/AtomicStringImpl.cpp(453)
https://bugs.webkit.org/show_bug.cgi?id=161800
Reviewed by Žan Doberšek.
Speculative fix. These strings are created as static objects on a secondary thread, but all
static objects are destroyed in exit handlers on the main thread, and AtomicStrings must
always be destroyed on the same thread they are created.
- platform/graphics/texmap/TextureMapperShaderProgram.h:
- 3:31 AM Changeset in webkit [207078] by
-
- 5 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r205999 - ASSERTION FAILED: willBeComposited == needsToBeComposited(layer) in WebCore::RenderLayerCompositor::computeCompositingRequirements
https://bugs.webkit.org/show_bug.cgi?id=151097
<rdar://problem/27711678>
Reviewed by Simon Fraser.
Source/WebCore:
This patch ensures that when will-change property triggers stacking context, we make the associated layer a non-normal flow layer.
(This is similar to what any other stacking context-triggering CSS property does.)
Test: compositing/assert-on-will-change-transform-with-composited-descendant.html
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects):
LayoutTests:
- compositing/assert-on-will-change-transform-with-composited-descendant-expected.txt: Added.
- compositing/assert-on-will-change-transform-with-composited-descendant.html: Added.
- 3:24 AM Changeset in webkit [207077] by
-
- 7 edits in trunk/Source/WebCore
Stop copying author shadow pseudo rules into shadow tree style resolver
https://bugs.webkit.org/show_bug.cgi?id=163232
Reviewed by Darin Adler.
- css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::collectMatchingRules):
(WebCore::ElementRuleCollector::matchAuthorRules):
(WebCore::ElementRuleCollector::matchAuthorShadowPseudoElementRules):
If we are resolving a user agent shadow tree also look up pseudo element rules from the host scope author sheet.
This is needed to keep web exposed ::-webkit-foo pseudo elements working.
(WebCore::ElementRuleCollector::collectMatchingShadowPseudoElementRules):
Factor to a function.
- css/ElementRuleCollector.h:
- css/RuleSet.cpp:
(WebCore::RuleSet::copyShadowPseudoElementRulesFrom): Deleted.
- css/RuleSet.h:
- dom/Document.cpp:
(WebCore::Document::userAgentShadowTreeStyleResolver):
- style/StyleScope.cpp:
(WebCore::Style::Scope::updateStyleResolver):
No need to awkwardly copy these rules anymore.
- 3:22 AM Changeset in webkit [207076] by
-
- 5 edits in releases/WebKitGTK/webkit-2.14
Merge r205970 - Cleanup RenderLayer::shouldBeNormalFlowOnly
https://bugs.webkit.org/show_bug.cgi?id=161981
Reviewed by Simon Fraser.
Source/WebCore:
This patch changes the logic of figuring about if a particular layer is normal flow only by simply checking
if the layer creates a stacking context. If it does, we assume that it can't be a normal flow layer anymore.
This patch slightly changes behaviour by making layers with isolation and reflection to be non normal flow layers anymore.
Covered by existing testcases.
- rendering/RenderLayer.cpp:
(WebCore::RenderLayer::calculateClipRects):
LayoutTests:
Rebaselining.
- fast/table/overflow-table-collapsed-borders-section-self-painting-layer-painting-expected.txt:
- 3:21 AM Changeset in webkit [207075] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WTF
Merge r205921 - Atomics on ARM don't require full-system fencing, and other minutiae
https://bugs.webkit.org/show_bug.cgi?id=161928
Reviewed by Geoffrey Garen.
Add cmpxchg versions with both success and failure memory
ordering. In some interesting cases we can craft code which needs
barriers which aren't as strong.
weakCompareAndSwap is super dubious, its 3 uses seem
questionable... but for now I'm just adding debug asserts.
Rename armv7_dmb* functions to arm_dmb* because they apply to v7
and v8 (or more precisely; to ARMv7's ARM and Thumb2, as well as
ARMv8's aarch32 A32/T32 and aarch64).
Use inner-shareability domain for ARM barriers instead of
full-system. This is what C++ uses.
The default case for barriers simply used a compiler barrier. This
is generally wrong, e.g. for MIPS.
- wtf/Atomics.h:
(WTF::Atomic::compareExchangeWeak): offer two-order version
(WTF::Atomic::compareExchangeStrong): offer two-order version
(WTF::weakCompareAndSwap): a few assertions
(WTF::arm_dmb): rename since it applies to ARMv7 and v8; make it innser-shareable
(WTF::arm_dmb_st): rename since it applies to ARMv7 and v8; make it innser-shareable
(WTF::loadLoadFence): incorrect generally
(WTF::loadStoreFence): incorrect generally
(WTF::storeLoadFence): incorrect generally
(WTF::storeStoreFence): incorrect generally
(WTF::memoryBarrierAfterLock): incorrect generally
(WTF::memoryBarrierBeforeUnlock): incorrect generally
(WTF::armV7_dmb): Deleted.
(WTF::armV7_dmb_st): Deleted.
- 3:21 AM Changeset in webkit [207074] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r205920 - ShowRenderTree should take position offset into account when printing inflow positioned renderers.
https://bugs.webkit.org/show_bug.cgi?id=161978
Reviewed by Simon Fraser.
Adjust (x, y) with the inflow positioned renderer's offset.
Not testable.
- rendering/RenderObject.cpp:
(WebCore::RenderObject::showRenderObject):
- 2:53 AM Changeset in webkit [207073] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WTF
Merge r205914 - Alwasys inline atomic operations
https://bugs.webkit.org/show_bug.cgi?id=155371
Reviewed by Geoffrey Garen.
Fixes "build fails with memory model cannot be stronger than
success memory model for ‘atomic_compare_exchange’".
Pre-5 revisions of GCC at Os only generated an error message
related to invalid failure memory ordering. The reason is that
libstdc++ tries to be clever about enforcing the C++ standard's
clause [atomics.types.operations.req] ¶21 which states:
Requires: The failure argument shall not be
memory_order_release
normemory_order_acq_rel
. The failure
argument shall be no stronger than the success argument.
It fails at doing this because its inlining heuristics are
modified by Os, and they're not quite as dumb as O0 but not smart
enough to get to the good code at O1. Adding ALWAYS_INLINE fixes
the silliness at Os, leaves O1 great, and makes O0 slightly less
bad but still pretty bad.
The other good news is that I'm going to get this particular
problem fixed in the version of C++ which will come after C++17:
https://github.com/jfbastien/papers/blob/master/source/P0418r1.bs
While we're at it we should always inline all of these wrapped
functions because the generated code is horrendous if the memory
order isn't known at compile time.
- wtf/Atomics.h:
(WTF::Atomic::load):
(WTF::Atomic::store):
(WTF::Atomic::compareExchangeWeak):
(WTF::Atomic::compareExchangeStrong):
(WTF::Atomic::exchangeAndAdd):
(WTF::Atomic::exchange):
- 2:25 AM Changeset in webkit [207072] by
-
- 3 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r205861 - Input type object and the associated render can go out of sync.
https://bugs.webkit.org/show_bug.cgi?id=161871
<rdar://problem/28178094>
Reviewed by Antti Koivisto.
Source/WebCore:
Bail out when we've got a mismatched renderer.
Test: fast/forms/assert-on-input-type-change.html
- html/ImageInputType.cpp:
(WebCore::ImageInputType::altAttributeChanged):
LayoutTests:
- fast/forms/assert-on-input-type-change-expected.txt: Added.
- fast/forms/assert-on-input-type-change.html: Added.
- 2:23 AM Changeset in webkit [207071] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WTF
Merge r205859 - ParkingLot is going to have a bad time with threads dying
https://bugs.webkit.org/show_bug.cgi?id=161893
Reviewed by Michael Saboff.
If a thread dies right as it falls out of parkConditionally, then unparkOne() and friends
might die because they will dereference a deallocated ThreadData.
The solution is to ref-count ThreadData's. When unparkOne() and friends want to hold onto a
ThreadData past the queue lock, they can use RefPtr<>.
- wtf/ParkingLot.cpp:
(WTF::ParkingLot::unparkOne):
(WTF::ParkingLot::unparkOneImpl):
(WTF::ParkingLot::unparkAll):
- 2:18 AM Changeset in webkit [207070] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/WTF
Merge r205836 - [WTF] HashTable's rehash is not compatible to Ref<T> and ASan
https://bugs.webkit.org/show_bug.cgi?id=161763
Reviewed by Darin Adler.
Destructors of HashTable's empty values need to be called while ones of deleted values don't.
- wtf/HashTable.h:
(WTF::KeyTraits>::deallocateTable):
- wtf/Ref.h:
- 1:49 AM Changeset in webkit [207069] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r206299 - Replace redundant prepareForDestruction() call with RELEASE_ASSERT in Document::removedLastRef.
https://bugs.webkit.org/show_bug.cgi?id=162467
Reviewed by Chris Dumez.
Since r205786 fixed the root cause of webkit.org/b/159372, we no longer need the workaround.
Replace it with a RELEASE_ASSERT to ensure clean state.
No new tests, covered by existing test.
- dom/Document.cpp:
(WebCore::Document::removedLastRef):
- 1:48 AM Changeset in webkit [207068] by
-
- 9 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r205786 - It is possible for Document::m_frame pointer to become stale
https://bugs.webkit.org/show_bug.cgi?id=161812
<rdar://problem/27745023>
Reviewed by Ryosuke Niwa.
Source/WebCore:
Document::m_frame is supposed to get cleared by Document::prepareForDestruction().
The Frame destructor calls Frame::setView(nullptr) which is supposed to call the
prepareForDestruction() on the Frame's associated document. However,
Frame::setView(nullptr) was calling prepareForDestruction() only if
Document::inPageCache() returned true. This is because, we allow Documents to
stay alive in the PageCache even though they don't have a frame.
The issue is that Document::m_inPageCache flag was set to true right before
firing the pagehide event, so technically before really entering PageCache.
Therefore, we can run into problems if a Frame gets destroyed by a pagehide
EventHandler because ~Frame() will not call Document::prepareForDestruction()
due to Document::m_inPageCache being true. After the frame is destroyed,
Document::m_frame becomes stale and any action on the document will likely
lead to crashes (such as the one in the layout test and the radar which
happens when trying to unregister event listeners from the document).
The solution adopted in this patch is to replace the m_inPageCache boolean
with a m_pageCacheState enumeration that has 3 states:
- NotInPageCache
- AboutToEnterPageCache
- InPageCache
Frame::setView() / Frame::setDocument() were then updated to call
Document::prepareForDestruction() on the associated document whenever
the document's pageCacheState is not InPageCache. This means that we
will now call Document::prepareForDestruction() when the document is
being detached from its frame while firing the pagehide event.
Note that I tried to keep this patch minimal. Therefore, I kept
the Document::inPageCache() getter for now. I plan to switch all its
calls sites to the new Document::pageCacheState() getter in a follow-up
patch so that we can finally drop the confusing Document::inPageCache().
Test: fast/history/pagehide-remove-iframe-crash.html
- dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::~Document):
(WebCore::Document::createRenderTree):
(WebCore::Document::destroyRenderTree):
(WebCore::Document::setFocusedElement):
(WebCore::Document::setPageCacheState):
(WebCore::Document::topDocument):
- dom/Document.h:
(WebCore::Document::pageCacheState):
(WebCore::Document::inPageCache):
- history/CachedFrame.cpp:
(WebCore::CachedFrame::destroy):
- history/PageCache.cpp:
(WebCore::setPageCacheState):
(WebCore::PageCache::addIfCacheable):
- loader/FrameLoader.cpp:
(WebCore::FrameLoader::stopAllLoaders):
(WebCore::FrameLoader::open):
- loader/HistoryController.cpp:
(WebCore::HistoryController::invalidateCurrentItemCachedPage):
- page/Frame.cpp:
(WebCore::Frame::setView):
LayoutTests:
Add layout test that crashes on both Mac and iOS due to using a stale
Document::m_frame pointer.
- fast/history/pagehide-remove-iframe-crash-expected.txt: Added.
- fast/history/pagehide-remove-iframe-crash.html: Added.
- 1:35 AM Changeset in webkit [207067] by
-
- 11 edits in trunk
[Win] Parallel DRTs are sharing preferences and cache.
https://bugs.webkit.org/show_bug.cgi?id=163013
Reviewed by Brent Fulgham.
Source/WebKit/win:
Make it possible for a WebKit client to use separate preferences and cache.
- Interfaces/IWebPreferencesPrivate.idl:
- WebApplicationCache.cpp:
(applicationCachePath):
- WebCache.cpp:
(WebCache::cacheFolder):
(WebCache::setCacheFolder):
- WebDatabaseManager.cpp:
(databasesDirectory):
- WebPreferences.cpp:
(WebPreferences::applicationId):
(WebPreferences::valueForKey):
(WebPreferences::setValueForKey):
(WebPreferences::save):
(WebPreferences::QueryInterface):
(WebPreferences::modernMediaControlsEnabled):
(WebPreferences::setApplicationId):
- WebPreferences.h:
- WebView.cpp:
(WebView::setCacheModel):
Tools:
Use separate cache and preferences for each DRT instance.
- DumpRenderTree/win/DumpRenderTree.cpp:
(applicationId):
(setApplicationId):
(setCacheFolder):
(setDefaultsToConsistentValuesForTesting):
- Scripts/webkitpy/port/win.py:
(WinPort.setup_test_run):
- 1:30 AM Changeset in webkit [207066] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205767 - jsc.cpp should call initializeMainThread() to make sure that GC thread assertions work
https://bugs.webkit.org/show_bug.cgi?id=161801
Reviewed by Keith Miller.
The GC has debug assertions that certain things don't happen on GC threads. Those assertions
are no-ops unless initializeGCThreads() is called, and I think the most canonical way to do
that is to call initializeMainThread().
- jsc.cpp:
(jscmain):
- 1:29 AM Changeset in webkit [207065] by
-
- 3 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205753 - Make hasOwnProperty ALWAYS_INLINE
https://bugs.webkit.org/show_bug.cgi?id=161775
Reviewed by Ryosuke Niwa.
Speedometer spends around 2.5% of its time in hasOwnProperty.
Let's reduce the overhead of calling that function by marking
it as inline. Also, it's likely that the function will call into
JSObject::getOwnPropertySlot. I added a check to see if that's
the function we're calling, if it is, we do a direct call instead
of an indirect call.
- runtime/JSObject.cpp:
(JSC::JSObject::hasOwnProperty): Deleted.
- runtime/JSObjectInlines.h:
(JSC::JSObject::hasOwnProperty):
- 1:09 AM Changeset in webkit [207064] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/WTF
Merge r205740 - Gardening: fixing a few JSC test failures.
https://bugs.webkit.org/show_bug.cgi?id=161760
Not reviewed.
Without this fix, the following tests will crash on a null dereference of isGCThread.
stress/slow-path-generator-updating-current-node-dfg.js.misc-ftl-no-cjit
stress/unshift-array-storage.js.misc-ftl-no-cjit
- wtf/MainThread.cpp:
(WTF::mayBeGCThread):
- 1:08 AM Changeset in webkit [207063] by
-
- 11 edits in releases/WebKitGTK/webkit-2.14/Source/WebCore
Merge r205701 - v3: WebContent crash due to RELEASE_ASSERT in WebCore: WebCore::StyleResolver::styleForElement
https://bugs.webkit.org/show_bug.cgi?id=161689
Reviewed by Andreas Kling.
These crashes happen because synchronously triggered resource loads generate callbacks that may end up
deleting the resource loader.
Stop triggering resource loads from StyleResolver. Instead trigger them when applying style to render tree.
- css/StyleResolver.cpp:
(WebCore::StyleResolver::~StyleResolver):
Replace the RELEASE_ASSERT against deletion during resource loads by a general isDeleted assert.
(WebCore::StyleResolver::styleForElement):
(WebCore::StyleResolver::styleForKeyframe):
(WebCore::StyleResolver::pseudoStyleForElement):
(WebCore::StyleResolver::styleForPage):
(WebCore::StyleResolver::applyMatchedProperties):
(WebCore::StyleResolver::loadPendingResources): Deleted.
- css/StyleResolver.h:
- page/animation/KeyframeAnimation.cpp:
(WebCore::KeyframeAnimation::KeyframeAnimation):
(WebCore::KeyframeAnimation::resolveKeyframeStyles):
Ensure resource load for all animation frames.
- page/animation/KeyframeAnimation.h:
- rendering/RenderElement.cpp:
(WebCore::RenderElement::createFor):
(WebCore::RenderElement::initializeStyle):
Load resources when renderer initializes a style.
(WebCore::RenderElement::setStyle):
(WebCore::RenderElement::getUncachedPseudoStyle):
Load resources for pseudo styles.
- rendering/RenderImage.cpp:
(WebCore::RenderImage::RenderImage):
(WebCore::RenderImage::styleWillChange):
Shuffle image resource initialization out from constructor so initializeStyle gets called before.
- rendering/RenderImage.h:
- rendering/style/StyleCachedImage.cpp:
(WebCore::StyleCachedImage::StyleCachedImage):
Track pending status with a bit instead of implicitly by the existence of CachedResource.
This is useful for asserts.
(WebCore::StyleCachedImage::load):
(WebCore::StyleCachedImage::isPending):
(WebCore::StyleCachedImage::addClient):
(WebCore::StyleCachedImage::removeClient):
(WebCore::StyleCachedImage::image):
- rendering/style/StyleCachedImage.h:
- 1:05 AM Changeset in webkit [207062] by
-
- 7 edits in releases/WebKitGTK/webkit-2.14
Merge r205694 - [WTF] HashTable's rehash is not compatible to Ref<T> and ASan
https://bugs.webkit.org/show_bug.cgi?id=161763
Reviewed by Mark Lam.
Source/WebCore:
Include wtf/text/StringHash.h to avoid linking errors in EFL port.
- loader/ResourceLoadStatistics.h:
Source/WTF:
If we move an object, the location which the moved object used should not be touched anymore.
HashTable::rehash performs WTFMove for the object that resides in the old table.
However, after moving it, we accidentally touch this location by using!isEmptyOrDeletedBucket(table[i])
in HashTable::deallocateTable. And it causes ASan crashing if we use Ref<> for HashTable's key or value.
In this patch, we call the destructor right after moving the object. And HashTable::rehash just calls
fastFree since all the objects in the old table are already moved and destructed.
And we also change HashTable::deallocate to destruct only live objects. Calling destructors for empty objects
is meaningless. And according to the Ref<>'s comment, empty object is not designed to be destructed.
- wtf/HashTable.h:
(WTF::KeyTraits>::deallocateTable):
Tools:
Add tests that inserts many Ref<>s. It incurs HashTable::rehash, and we can ensure
that ASan crash does not occur with this patch.
- TestWebKitAPI/Tests/WTF/HashMap.cpp:
(TestWebKitAPI::TEST):
- TestWebKitAPI/Tests/WTF/HashSet.cpp:
(TestWebKitAPI::TEST):
- 12:38 AM Changeset in webkit [207061] by
-
- 13 edits in releases/WebKitGTK/webkit-2.14/Source
Merge r205683 - Heap::isMarked() shouldn't pay the price of concurrent lazy flipping
https://bugs.webkit.org/show_bug.cgi?id=161760
Reviewed by Mark Lam.
Source/JavaScriptCore:
To fix a race condition in marking, I made Heap::isMarked() and Heap::isLive() atomic by
using flipIfNecessaryConcurrently() instead of flipIfNecessary().
This introduces three unnecessary overheads:
- isLive() is not called by marking, so that change was not necessary.
- isMarked() gets calls many times outside of marking, so it shouldn't always do the concurrent thing. This adds isMarkedConcurrently() for use in marking, and reverts isMarked().
- isMarked() and isMarkedConcurrently() don't actually have to do the lazy flip. They can return false if the flip is necessary.
I added a bunch of debug assertions to make sure that isLive() and isMarked() are not called
during marking.
If we needed to, we could remove most of the calls to isMarkedConcurrently(). As a kind of
optimization, CodeBlock does an initial fixpoint iteration during marking, and so all of the
code called from CodeBlock's fixpoint iterator needs to use isMarkedConcurrently(). But we
could probably arrange for CodeBlock only do fixpoint iterating during the weak reference
thing.
- bytecode/CodeBlock.cpp:
(JSC::CodeBlock::visitWeakly):
(JSC::CodeBlock::shouldJettisonDueToOldAge):
(JSC::shouldMarkTransition):
(JSC::CodeBlock::propagateTransitions):
(JSC::CodeBlock::determineLiveness):
- bytecode/PolymorphicAccess.cpp:
(JSC::AccessCase::propagateTransitions):
- heap/Heap.h:
- heap/HeapInlines.h:
(JSC::Heap::isLive):
(JSC::Heap::isMarked):
(JSC::Heap::isMarkedConcurrently):
- heap/MarkedBlock.cpp:
(JSC::MarkedBlock::flipIfNecessarySlow):
(JSC::MarkedBlock::flipIfNecessaryConcurrentlySlow):
(JSC::MarkedBlock::needsFlip):
- heap/MarkedBlock.h:
(JSC::MarkedBlock::needsFlip):
(JSC::MarkedBlock::flipIfNecessary):
(JSC::MarkedBlock::flipIfNecessaryConcurrently):
- heap/SlotVisitor.cpp:
(JSC::SlotVisitor::appendToMarkStack):
(JSC::SlotVisitor::markAuxiliary):
(JSC::SlotVisitor::visitChildren):
- runtime/Structure.cpp:
(JSC::Structure::isCheapDuringGC):
(JSC::Structure::markIfCheap):
Source/WTF:
- wtf/MainThread.cpp:
(WTF::isMainThreadOrGCThread):
(WTF::mayBeGCThread):
- wtf/MainThread.h:
- 12:28 AM Changeset in webkit [207060] by
-
- 5 edits1 add in trunk
ValueAdd should be constant folded if the operands are constant String,Primitive or Primitive,String
https://bugs.webkit.org/show_bug.cgi?id=163182
Reviewed by Filip Pizlo.
JSTests:
- microbenchmarks/string-add-constant-folding.js: Added.
(assert):
(runTests):
(add):
(test):
Source/JavaScriptCore:
This code pattern shows up in Dromaeo, so it's worth optimizing for.
This might also show up in real world JS code due to inlining and other
types of constant folding.
- dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
- dfg/DFGLazyJSValue.cpp:
(JSC::DFG::LazyJSValue::getValue):
- dfg/DFGStrengthReductionPhase.cpp:
(JSC::DFG::StrengthReductionPhase::handleNode):
- 12:14 AM Changeset in webkit [207059] by
-
- 13 edits1 add in releases/WebKitGTK/webkit-2.14
Merge r205675 - We should inline operationConvertJSValueToBoolean into JIT code
https://bugs.webkit.org/show_bug.cgi?id=161729
Reviewed by Filip Pizlo.
JSTests:
- stress/value-to-boolean.js: Added.
(assert):
(test1):
(test2):
(test3):
Source/JavaScriptCore:
This patch introduces an AssemblyHelpers emitter function
that replaces operationConvertJSValueToBoolean. This operation
was showing up when I was doing performance analysis for the
speedometer benchmark. I saw that it was spending about 1% of
its time in this function. Hopefully this patch can help us speedup
up speedometer by a little bit.
- dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compileLogicalNot):
(JSC::DFG::SpeculativeJIT::emitBranch):
- dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compileLogicalNot):
(JSC::DFG::SpeculativeJIT::emitBranch):
- jit/AssemblyHelpers.cpp:
(JSC::AssemblyHelpers::emitConvertValueToBoolean):
- jit/AssemblyHelpers.h:
(JSC::AssemblyHelpers::emitAllocateDestructibleObject): Deleted.
- jit/JIT.cpp:
(JSC::JIT::privateCompileSlowCases):
- jit/JIT.h:
- jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_jfalse):
(JSC::JIT::emit_op_jtrue):
(JSC::JIT::emitSlow_op_jfalse): Deleted.
(JSC::JIT::emitSlow_op_jtrue): Deleted.
- jit/JITOpcodes32_64.cpp:
(JSC::JIT::emit_op_jfalse):
(JSC::JIT::emit_op_jtrue):
(JSC::JIT::emitSlow_op_jfalse): Deleted.
(JSC::JIT::emitSlow_op_jtrue): Deleted.
- jit/JITOperations.cpp:
- jit/JITOperations.h:
- 12:11 AM Changeset in webkit [207058] by
-
- 11 edits in trunk
Update IDBVersionChangeEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163266
Reviewed by Darin Adler.
Source/WebCore:
Update IDBVersionChangeEvent to stop using legacy [ConstructorTemplate=Event]
and use a regular constructor instead, as in the specification:
This patch also fixes a bug where the IDBVersionChangeEvent was ignoring the
EventInit dictionary members passed by the JavaScript (e.g. bubbles).
No new tests, updated existing test.
- Modules/indexeddb/IDBVersionChangeEvent.cpp:
(WebCore::IDBVersionChangeEvent::IDBVersionChangeEvent):
- Modules/indexeddb/IDBVersionChangeEvent.h:
- Modules/indexeddb/IDBVersionChangeEvent.idl:
- bindings/js/JSDOMConvert.h:
(WebCore::convertNullable):
(WebCore::convert): Deleted.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDefaultValue):
(GenerateDictionaryImplementationContent):
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::convertDictionary<TestObj::Dictionary>):
- bindings/scripts/test/TestObj.idl:
LayoutTests:
Update existing layout test covering the IDBVersionChangeEvent constructor
to test to EventInit dictionary members as well.
- storage/indexeddb/modern/idbversionchangeevent-constructor-expected.txt:
- storage/indexeddb/modern/idbversionchangeevent-constructor.html:
- 12:09 AM Changeset in webkit [207057] by
-
- 4 edits in trunk/Source/WebCore
Update WebKitPlaybackTargetAvailabilityEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163265
Reviewed by Darin Adler.
Update WebKitPlaybackTargetAvailabilityEvent to stop using legacy
[ConstructorTemplate=Event] and use a regular constructor instead.
- Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp:
(WebCore::WebKitPlaybackTargetAvailabilityEvent::WebKitPlaybackTargetAvailabilityEvent):
- Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h:
(WebCore::WebKitPlaybackTargetAvailabilityEvent::createForBindings):
(WebCore::WebKitPlaybackTargetAvailabilityEvent::~WebKitPlaybackTargetAvailabilityEvent): Deleted.
- Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.idl:
Oct 10, 2016:
- 11:54 PM Changeset in webkit [207056] by
-
- 4 edits2 adds in releases/WebKitGTK/webkit-2.14
Merge r205659 - Don't run transitions to or from undefined Lengths
https://bugs.webkit.org/show_bug.cgi?id=161750
rdar://problem/28170460
Reviewed by Zalan Bujtas.
Source/WebCore:
For properties like max-height whose default value is 'none', we would erroneously
attempt to run transitions/animations, and then assert when one of the endpoints
was undefined.
So don't attempt to blend such Length values, just as do when they are auto.
Fixes some transitions on apple.com and developer.apple.com.
Test: transitions/transition-to-from-undefined.html
- page/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimation::blendProperties):
- platform/Length.cpp:
(WebCore::blend):
LayoutTests:
- transitions/transition-to-from-undefined-expected.txt: Added.
- transitions/transition-to-from-undefined.html: Added.
- 11:53 PM Changeset in webkit [207055] by
-
- 14 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205658 - Heap version should be 32-bit
https://bugs.webkit.org/show_bug.cgi?id=161751
Reviewed by Mark Lam.
32-bit devices are probably getting hurt by the 64-bit version number. The reason why I made
it 64-bit initially is so that I wouldn't have to worry about wrap-around. But wrap-around is
easy to handle.
- heap/CellContainer.h:
- heap/CellContainerInlines.h:
(JSC::CellContainer::flipIfNecessary):
- heap/ConservativeRoots.cpp:
(JSC::ConservativeRoots::genericAddPointer):
(JSC::ConservativeRoots::genericAddSpan):
- heap/ConservativeRoots.h:
- heap/Heap.h:
- heap/HeapInlines.h:
(JSC::Heap::testAndSetMarked):
- heap/HeapUtil.h:
(JSC::HeapUtil::findGCObjectPointersForMarking):
- heap/MarkedBlock.cpp:
(JSC::MarkedBlock::MarkedBlock):
- heap/MarkedBlock.h:
(JSC::MarkedBlock::flipIfNecessary):
(JSC::MarkedBlock::flipIfNecessaryConcurrently):
(JSC::MarkedBlock::Handle::flipIfNecessary):
(JSC::MarkedBlock::Handle::flipIfNecessaryConcurrently):
- heap/MarkedSpace.cpp:
(JSC::MarkedSpace::flip):
- heap/MarkedSpace.h:
(JSC::MarkedSpace::version):
- heap/SlotVisitor.cpp:
(JSC::SlotVisitor::SlotVisitor):
- heap/SlotVisitor.h:
- 11:43 PM Changeset in webkit [207054] by
-
- 18 edits in trunk
Add ENABLE_ENCRYPTED_MEDIA configuration option
https://bugs.webkit.org/show_bug.cgi?id=163219
Reviewed by Darin Adler.
.:
Add the ENABLE_ENCRYPTED_MEDIA configuration option to the
CMake and MSVC build systems. It will be used to enable or
disable the new EME implementation at build-time.
- Source/cmake/WebKitFeatures.cmake:
- Source/cmake/tools/vsprops/FeatureDefines.props:
- Source/cmake/tools/vsprops/FeatureDefinesCairo.props:
Source/JavaScriptCore:
- Configurations/FeatureDefines.xcconfig:
Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
to enable or disable the new EME implementation at build-time.
Source/WebCore:
- Configurations/FeatureDefines.xcconfig:
Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
to enable or disable the new EME implementation at build-time.
- DerivedSources.make: Group the legacy option and the new option together.
Source/WebKit/mac:
- Configurations/FeatureDefines.xcconfig:
Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
to enable or disable the new EME implementation at build-time.
Source/WebKit2:
- Configurations/FeatureDefines.xcconfig:
Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
to enable or disable the new EME implementation at build-time.
Source/WTF:
- wtf/FeatureDefines.h:
If undefined, define the ENABLE_ENCRYPTED_MEDIA option to 0.
Tools:
- Scripts/webkitperl/FeatureList.pm:
Make the ENABLE_ENCRYPTED_MEDIA option overridable via build-webkit.
- TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
to enable or disable the new EME implementation at build-time.
- 11:42 PM Changeset in webkit [207053] by
-
- 7 edits in trunk/Source/WebCore
CachedResourceRequest constructor should be made more efficient
https://bugs.webkit.org/show_bug.cgi?id=163210
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Alex Christensen.
No change of behavior.
Refactoring to use one CachedResourceRequest constructor that will move its request and charset to improve efficiency.
- css/StyleRuleImport.cpp:
(WebCore::StyleRuleImport::requestStyleSheet):
- dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::checkStyleSheet):
- html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::process):
- html/parser/HTMLResourcePreloader.cpp:
(WebCore::PreloadRequest::resourceRequest):
- loader/cache/CachedResourceRequest.cpp:
(WebCore::CachedResourceRequest::CachedResourceRequest):
- loader/cache/CachedResourceRequest.h:
- 11:39 PM Changeset in webkit [207052] by
-
- 8 edits2 adds in trunk
WebRTC: Make MediaEndpointPeerConnection handle remotely assigned mids correctly
https://bugs.webkit.org/show_bug.cgi?id=163202
Patch by Adam Bergkvist <adam.bergkvist@ericsson.com> and Alejandro G. Castro <alex@igalia.com> on 2016-10-10
Reviewed by Eric Carlson.
Source/WebCore:
An RTCRtpTransceiver has a null mid until it's been associated with a
media description (with a mid) [1]. During that time, it's identified by
a provisional mid that might become its real mid, but the transceiver
can also get its mid assigned by a remote media description. In the
second case, the mid value is initially unknown. A transceiver's
RTCRtpSender must directly (synchronously in the script) provide a muted
remote source that is playable by, for example, a media element. This
source is initially registered in the MediaEndpoint (WebRTC backend)
with the transceiver's provisional mid. So, if the real mid is set by a
remote description, the registered mid must be updated to preserve the
association between the registered source and the transceiver.
[1] https://w3c.github.io/webrtc-pc/archives/20160913/webrtc.html#dom-rtcrtptransceiver-mid
Test: fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid.html
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
Don't break after finding the first transceiver in the loop that builds the send source map.
Update the mid used to register the muted remote source if the a transceiver's mid gets
assigned by a remote media description.
(WebCore::createSourceMap):
(WebCore::MediaEndpointPeerConnection::setRemoteDescriptionTask):
- platform/mediastream/MediaEndpoint.cpp:
- platform/mediastream/MediaEndpoint.h:
- platform/mock/MockMediaEndpoint.cpp:
(WebCore::MockMediaEndpoint::MockMediaEndpoint):
(WebCore::MockMediaEndpoint::updateReceiveConfiguration):
(WebCore::MockMediaEndpoint::updateSendConfiguration):
(WebCore::MockMediaEndpoint::createMutedRemoteSource):
(WebCore::MockMediaEndpoint::replaceMutedRemoteSourceMid):
(WebCore::MockMediaEndpoint::emulatePlatformEvent):
Add "unmute-remote-sources-by-mid" action that emulates data arriving on media descriptions
which unmutes the remote sources.
(WebCore::MockMediaEndpoint::updateConfigurationMids):
(WebCore::MockMediaEndpoint::unmuteRemoteSourcesByMid):
(WebCore::MockMediaEndpoint::unmuteTimerFired):
- platform/mock/MockMediaEndpoint.h:
LayoutTests:
Test the case when an RTCRtpTransceiver gets its mid assigned from a remote session
description.
- fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid-expected.txt: Added.
- fast/mediastream/RTCPeerConnection-remotely-assigned-transceiver-mid.html: Added.
- platform/mac/TestExpectations:
Skip above test until the Mac port builds with WEB_RTC.
- 11:36 PM Changeset in webkit [207051] by
-
- 9 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205656 - Add support for a ternary sub32 emitter for ARM64 and 32-bit ARM.
https://bugs.webkit.org/show_bug.cgi?id=161724
Reviewed by Filip Pizlo.
ARM architectures support ternary sub instructions. We should make use of them
in emitAllocateWithNonNullAllocator().
- assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::sub32):
- assembler/MacroAssemblerARM64.h:
(JSC::MacroAssemblerARM64::sub32):
- assembler/MacroAssemblerARMv7.h:
(JSC::MacroAssemblerARMv7::sub32):
- assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::sub32):
- assembler/MacroAssemblerX86Common.h:
(JSC::MacroAssemblerX86Common::sub32):
- b3/air/AirOpcode.opcodes:
- b3/testb3.cpp:
(JSC::B3::testTernarySubInstructionSelection):
(JSC::B3::run):
- jit/AssemblyHelpers.h:
(JSC::AssemblyHelpers::emitAllocateWithNonNullAllocator):
- 11:23 PM Changeset in webkit [207050] by
-
- 37 edits in trunk/Source/WebCore
Move audio module off of legacy exceptions
https://bugs.webkit.org/show_bug.cgi?id=163269
Reviewed by Alex Christensen.
- Modules/webaudio/AnalyserNode.cpp:
(WebCore::AnalyserNode::setFftSize): Use ExceptionOr.
(WebCore::AnalyserNode::setMinDecibels): Ditto.
(WebCore::AnalyserNode::setMaxDecibels): Ditto.
(WebCore::AnalyserNode::setSmoothingTimeConstant): Ditto.
- Modules/webaudio/AnalyserNode.h: Update for above.
- Modules/webaudio/AnalyserNode.idl: Ditto.
- Modules/webaudio/AudioBasicInspectorNode.cpp:
(WebCore::AudioBasicInspectorNode::AudioBasicInspectorNode):
Initialize m_needAutomaticPull in class definition.
(WebCore::AudioBasicInspectorNode::connect): Use ExceptionOr.
(WebCore::AudioBasicInspectorNode::disconnect): Ditto.
- Modules/webaudio/AudioBasicInspectorNode.h: Updated for above.
- Modules/webaudio/AudioBuffer.cpp:
(WebCore::AudioBuffer::createFromAudioFileData): Use reference.
(WebCore::AudioBuffer::AudioBuffer): Initialize m_gain in class definition.
(WebCore::AudioBuffer::getChannelData): Use ExceptionOr.
(WebCore::AudioBuffer::channelData): Rename to disambiguate with getChannelData.
(WebCore::AudioBuffer::zero): Use modern for loop.
- Modules/webaudio/AudioBuffer.h: Update for above.
- Modules/webaudio/AudioBuffer.idl: Ditto.
- Modules/webaudio/AudioBufferSourceNode.cpp:
(WebCore::AudioBufferSourceNode::process): Use reference.
(WebCore::AudioBufferSourceNode::setBuffer): Use channelData.
(WebCore::AudioBufferSourceNode::start): Use ExceptionOr.
(WebCore::AudioBufferSourceNode::startPlaying): Ditto.
- Modules/webaudio/AudioBufferSourceNode.h: Update for above.
- Modules/webaudio/AudioBufferSourceNode.idl: Ditto.
- Modules/webaudio/AudioContext.cpp:
(WebCore::AudioContext::createBuffer): Use ExceptionOr.
(WebCore::AudioContext::createMediaElementSource): Ditto.
(WebCore::AudioContext::createMediaStreamSource): Ditto.
(WebCore::AudioContext::createScriptProcessor): Ditto.
(WebCore::AudioContext::createDelay): Ditto.
(WebCore::AudioContext::createChannelSplitter): Ditto.
(WebCore::AudioContext::createChannelMerger): Ditto.
(WebCore::AudioContext::createPeriodicWave): Ditto.
- Modules/webaudio/AudioContext.h: Update for above.
- Modules/webaudio/AudioContext.idl: Ditto.
- Modules/webaudio/AudioDestinationNode.h: Use unsigned instead
of unsigned long for maxChannelCount.
- Modules/webaudio/AudioNode.cpp:
(WebCore::AudioNode::connect): Use ExceptionOr.
(WebCore::AudioNode::disconnect): Ditto.
(WebCore::AudioNode::channelCount): Use unsigned.
(WebCore::AudioNode::setChannelCount): Use ExceptionOr and unsigned.
(WebCore::AudioNode::setChannelCountMode): Ditto.
(WebCore::AudioNode::setChannelInterpretation): Ditto.
- Modules/webaudio/AudioNode.h: Update for above.
- Modules/webaudio/AudioNode.idl: Ditto.
- Modules/webaudio/AudioScheduledSourceNode.cpp:
(WebCore::AudioScheduledSourceNode::AudioScheduledSourceNode):
Initialize data members in class definition.
(WebCore::AudioScheduledSourceNode::updateSchedulingInfo): Take
a reference instead of a pointer to the audio bus.
(WebCore::AudioScheduledSourceNode::start): Use ExceptionOr.
(WebCore::AudioScheduledSourceNode::stop): Ditto.
- Modules/webaudio/AudioScheduledSourceNode.h: Update for above.
- Modules/webaudio/ConvolverNode.cpp:
(WebCore::ConvolverNode::ConvolverNode): Initialize m_normalize
in class definition.
(WebCore::ConvolverNode::setBuffer): Use ExceptionOr.
- Modules/webaudio/ConvolverNode.h: Update for above.
- Modules/webaudio/ConvolverNode.idl: Ditto.
- Modules/webaudio/DefaultAudioDestinationNode.cpp:
(WebCore::DefaultAudioDestinationNode::DefaultAudioDestinationNode):
Initialize m_numberOfInputChannels in class definition.
(WebCore::DefaultAudioDestinationNode::maxChannelCount): Use unsigned.
(WebCore::DefaultAudioDestinationNode::setChannelCount): Use ExceptionOr.
- Modules/webaudio/DefaultAudioDestinationNode.h: Update for changes above.
- Modules/webaudio/DelayNode.cpp:
(WebCore::DelayNode::DelayNode): Moved exception logic out of constructor.
(WebCore::DelayNode::create): Added. Moved exception logic in here.
(WebCore::DelayNode::delayTime): Moved typecast here from header.
- Modules/webaudio/DelayNode.h: Update for above.
- Modules/webaudio/OfflineAudioContext.cpp:
(WebCore::OfflineAudioContext::OfflineAudioContext): Marked inline.
(WebCore::OfflineAudioContext::create): Use ExceptionOr.
(WebCore::OfflineAudioContext::~OfflineAudioContext): Deleted. Unneeded.
- Modules/webaudio/OfflineAudioContext.h: Update for above.
- Modules/webaudio/OfflineAudioContext.idl: Ditto.
- Modules/webaudio/OfflineAudioDestinationNode.cpp:
(WebCore::OfflineAudioDestinationNode::offlineRender): Use channelData.
- Modules/webaudio/OscillatorNode.cpp:
(WebCore::OscillatorNode::OscillatorNode): Updated for change to setType.
(WebCore::OscillatorNode::setType): Use ExceptionOr.
(WebCore::OscillatorNode::process): Use a reference.
- Modules/webaudio/OscillatorNode.h: Update for above.
- Modules/webaudio/OscillatorNode.idl: Ditto.
- Modules/webaudio/ScriptProcessorNode.cpp:
(WebCore::ScriptProcessorNode::process): Use channelData.
- bindings/js/JSDOMBinding.h: Added overloads of toJS to it can be used on
references to array buffers and array buffer views, not just pointers.
- 11:19 PM Changeset in webkit [207049] by
-
- 2 edits3 deletes in releases/WebKitGTK/webkit-2.14/Source/WebKit2
Merge r205590 - [GTK] Remove stale WebSoupRequestManager headers
https://bugs.webkit.org/show_bug.cgi?id=161691
Reviewed by Sergio Villar Senin.
WebSoupRequestManager, WebSoupRequestManagerProxy and WebSoupRequestManagerClient
classes were used to implement custom URI scheme support for Soup. This API and
the implementations of these classes were removed in r174584, but curiously the
headers went unnoticed. This patch removes them, as well as the
WebSoupRequestManagerProxy forwarding declaration in WKAPICastSoup.h.
- UIProcess/API/C/soup/WKAPICastSoup.h:
- UIProcess/soup/WebSoupRequestManagerClient.h: Removed.
- UIProcess/soup/WebSoupRequestManagerProxy.h: Removed.
(WebKit::WebSoupRequestManagerProxy::registeredURISchemes): Deleted.
- WebProcess/soup/WebSoupRequestManager.h: Removed.
- 11:12 PM Changeset in webkit [207048] by
-
- 9 edits in releases/WebKitGTK/webkit-2.14
Merge r205568 - [INTL] some valid language tags cause errors in Intl constructors
https://bugs.webkit.org/show_bug.cgi?id=161672
Patch by Andy VanWagoner <thetalecrafter@gmail.com> on 2016-09-07
Reviewed by Mark Lam.
Source/JavaScriptCore:
Fix private use tag parsing to match spec, allowing single character parts.
https://www.rfc-editor.org/rfc/bcp/bcp47.txt
`
privateuse = "x" 1*("-" (1*8alphanum))
`
- runtime/IntlObject.cpp:
(JSC::privateUseLangTag): Allow singleton parts in private use tag.
LayoutTests:
Add list of valid language tags that should not throw from test262.
- js/intl-collator-expected.txt:
- js/intl-datetimeformat-expected.txt:
- js/intl-numberformat-expected.txt:
- js/script-tests/intl-collator.js:
- js/script-tests/intl-datetimeformat.js:
- js/script-tests/intl-numberformat.js:
- 11:10 PM Changeset in webkit [207047] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205566 - Make emitAllocateWithNonNullAllocator's sub32() disallow-scratch-friendly
https://bugs.webkit.org/show_bug.cgi?id=161706
Reviewed by Geoffrey Garen.
You can't sub32(Addr, Reg) on not-x86 without using a scratch register. So, on those CPUs, we
have to do something different.
- jit/AssemblyHelpers.h:
(JSC::AssemblyHelpers::emitAllocateWithNonNullAllocator):
- 11:10 PM Changeset in webkit [207046] by
-
- 5 edits in trunk/Source/WebCore
Change HTTPHeaderValues from a struct to a namespace
https://bugs.webkit.org/show_bug.cgi?id=163203
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Alex Christensen.
No change of behavior.
- Modules/fetch/FetchBody.cpp:
(WebCore::FetchBody::extract):
- platform/network/HTTPHeaderValues.cpp:
(WebCore::HTTPHeaderValues::textPlainContentType):
(WebCore::HTTPHeaderValues::formURLEncodedContentType):
(WebCore::HTTPHeaderValues::TextPlainContentType): Deleted.
(WebCore::HTTPHeaderValues::FormURLEncodedContentType): Deleted.
- platform/network/HTTPHeaderValues.h:
- xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::send):
- 11:08 PM Changeset in webkit [207045] by
-
- 2 edits in trunk/LayoutTests
[EFL] Skip imported/w3c/web-platform-tests for a while
Unreviewed EFL gardening.
Many imported/w3c/web-platform-tests have been failed, timeout, and crash.
So skip the tests until fixing all problems.
Additionally this patch removes duplciated tests.
Patch by Gyuyoung Kim <gyuyoung.kim@navercorp.com> on 2016-10-10
- platform/efl/TestExpectations:
- 11:06 PM Changeset in webkit [207044] by
-
- 4 edits in releases/WebKitGTK/webkit-2.14
Merge r205565 - Fix handling of negative radius in HTMLAreaElement's coords when in circle state
https://bugs.webkit.org/show_bug.cgi?id=161690
Reviewed by Daniel Bates.
LayoutTests/imported/w3c:
Rebaseline existing test now that one more check is passing.
- web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing-expected.txt:
Source/WebCore:
Fix handling of negative radius in HTMLAreaElement's coords when in
circle state:
The radius must be non-negative as per the specification. However, our
code fails to check.
Firefox and Chrome both reject negative radius.
No new tests, rebaselined existing test.
- html/HTMLAreaElement.cpp:
(WebCore::HTMLAreaElement::getRegion):
- 11:00 PM Changeset in webkit [207043] by
-
- 2 edits in releases/WebKitGTK/webkit-2.14/Source/JavaScriptCore
Merge r205541 - Fix the ENABLE(WEBASSEMBLY) build on Linux
https://bugs.webkit.org/show_bug.cgi?id=161685
Unreviewed buildfix.
- wasm/JSWASMModule.cpp:
- 10:28 PM Changeset in webkit [207042] by
-
- 4 edits in trunk/Source/WebKit2
NetworkSession: NetworkDataTask is leaked if download finishes in didReceiveResponse completion handler
https://bugs.webkit.org/show_bug.cgi?id=163204
Reviewed by Alex Christensen.
After the completion handler a reference of the NetworkDataTask is saved in m_downloadsAfterDestinationDecided.
If the download failed or was canceled DownloadManager::dataTaskBecameDownloadTask is never called and the data
task is kept in the download manager forever. This patch exposes NSURLSessionTask state property in
NetworkDataTask, so that the download manager can check the task state after the completion handler and return
early if the download finished or was cancelled.
- NetworkProcess/Downloads/DownloadManager.cpp:
(WebKit::DownloadManager::continueDecidePendingDownloadDestination):
- NetworkProcess/NetworkDataTask.h:
- NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTask::state):
- 9:43 PM Changeset in webkit [207041] by
-
- 20 edits2 adds in trunk
Update WheelEvent / MouseEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163254
Reviewed by Darin Adler.
Source/WebCore:
Update WheelEvent / MouseEvent to stop using legacy [ConstructorTemplate=Event]
and use a regular constructor instead, as in the specification:
- https://www.w3.org/TR/uievents/#interface-mouseevent
- https://www.w3.org/TR/uievents/#interface-wheelevent
- CMakeLists.txt:
- DerivedSources.cpp:
- DerivedSources.make:
- WebCore.xcodeproj/project.pbxproj:
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateDictionaryHeader):
Fix our broken dependency tracking when it comes to dictionaries.
- dom/MouseEvent.cpp:
(WebCore::MouseEvent::create):
(WebCore::MouseEvent::MouseEvent):
- dom/MouseEvent.h:
- dom/MouseEvent.idl:
- dom/MouseEventInit.h: Added.
- dom/MouseEventInit.idl: Added.
- dom/MouseRelatedEvent.cpp:
(WebCore::MouseRelatedEvent::MouseRelatedEvent):
- dom/MouseRelatedEvent.h:
- dom/UIEventWithKeyState.h:
(WebCore::UIEventWithKeyState::UIEventWithKeyState):
- dom/WheelEvent.cpp:
(WebCore::WheelEvent::WheelEvent):
- dom/WheelEvent.h:
- dom/WheelEvent.idl:
LayoutTests:
Update existing tests now that:
- Exception messages are now slightly different in some cases.
- We now throw when an invalid relatedTarget type is passed in the dictionary.
- fast/events/constructors/mouse-event-constructor.html:
- fast/events/constructors/wheel-event-constructor.html:
- platform/mac/fast/events/constructors/mouse-event-constructor-expected.txt:
- platform/mac/fast/events/constructors/wheel-event-constructor-expected.txt:
- 9:33 PM Changeset in webkit [207040] by
-
- 11 edits2 adds in trunk
Add support for languagechange event
https://bugs.webkit.org/show_bug.cgi?id=163222
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
Rebaseline several W3C tests now that more checks are passing.
- web-platform-tests/html/dom/interfaces-expected.txt:
- web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt:
Source/WebCore:
Add support for languagechange event:
Firefox and Chrome already support this.
Test: fast/dom/window-languagechange-event.html
- dom/EventNames.h:
- html/HTMLAttributeNames.in:
- html/HTMLBodyElement.cpp:
(WebCore::HTMLBodyElement::createWindowEventHandlerNameMap):
- page/DOMWindow.cpp:
(WebCore::languagesChangedCallback):
(WebCore::DOMWindow::DOMWindow):
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::languagesChanged):
(WebCore::DOMWindow::canShowModalDialog): Deleted.
(WebCore::DOMWindow::removeEventListener): Deleted.
- page/DOMWindow.h:
- page/WindowEventHandlers.idl:
LayoutTests:
Add layout test coverage.
- fast/dom/window-languagechange-event-expected.txt: Added.
- fast/dom/window-languagechange-event.html: Added.
- 8:39 PM Changeset in webkit [207039] by
-
- 8 edits in trunk/Source/JavaScriptCore
B3->Air lowering should be able to emit complex leas on x86
https://bugs.webkit.org/show_bug.cgi?id=163234
Reviewed by Saam Barati.
This adds comprehensive support for emitting lea on x86.
When adding this, I found that it was useful to also finally add more reassociation. That
reduces the amount of patterns that the instruction selector has to deal with.
- assembler/MacroAssembler.h:
(JSC::MacroAssembler::lea32):
(JSC::MacroAssembler::lea64):
(JSC::MacroAssembler::lea): Deleted.
- b3/B3LowerToAir.cpp:
(JSC::B3::Air::LowerToAir::commitInternal):
(JSC::B3::Air::LowerToAir::tryAppendLea):
(JSC::B3::Air::LowerToAir::lower):
(JSC::B3::Air::LowerToAir::createSelect): Deleted.
- b3/B3ReduceStrength.cpp:
- b3/B3Value.h:
- b3/B3ValueInlines.h:
(JSC::B3::Value::isRepresentableAs):
(JSC::B3::Value::representableAs): Deleted.
- b3/air/AirOpcode.opcodes:
- b3/testb3.cpp: Lots of tests for lea and reassociation.
- 7:55 PM Changeset in webkit [207038] by
-
- 4 edits in trunk/Source/WebCore
Update GamepadEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163243
Reviewed by Darin Adler.
Update GamepadEvent to stop using legacy [ConstructorTemplate=Event]
and use a proper constructor as in the specification:
- Modules/gamepad/GamepadEvent.cpp:
(WebCore::GamepadEvent::GamepadEvent):
- Modules/gamepad/GamepadEvent.h:
(WebCore::GamepadEvent::create):
(WebCore::GamepadEvent::~GamepadEvent): Deleted.
- Modules/gamepad/GamepadEvent.idl:
- 7:21 PM Changeset in webkit [207037] by
-
- 12 edits in trunk/Source/WebCore
Move Fetch from legacy to new DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163195
Reviewed by Chris Dumez.
- Modules/fetch/FetchHeaders.cpp:
(WebCore::canWriteHeader): Use ExceptionOr.
(WebCore::FetchHeaders::append): Ditto.
(WebCore::FetchHeaders::remove): Ditto.
(WebCore::FetchHeaders::get): Ditto.
(WebCore::FetchHeaders::has): Ditto.
(WebCore::FetchHeaders::set): Ditto.
(WebCore::FetchHeaders::filterAndFill): Ditto.
(WebCore::FetchHeaders::Iterator::next): Got rid of unneeded code to
clear out m_keys after the last call to next, since it will be deleted
as soon as the iterator is deleted.
- Modules/fetch/FetchHeaders.h: Use pragma once. Use ExceptionOr.
- Modules/fetch/FetchHeaders.idl: Move to non-legacy exceptions.
- Modules/fetch/FetchRequest.cpp:
(WebCore::FetchRequest::setBody): Use ExceptionOr.
(WebCore::FetchRequest::clone): Ditto.
- Modules/fetch/FetchRequest.h: Use pragma once. Use ExceptionOr.
- Modules/fetch/FetchRequest.idl: Move to non-legacy exceptions.
- Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::redirect): Use ExceptionOr.
(WebCore::FetchResponse::setStatus): Ditto.
- Modules/fetch/FetchResponse.h: Use ExceptionOr.
- Modules/fetch/FetchResponse.idl: Move to non-legacy exceptions.
- bindings/js/JSDOMBinding.h: Added implementation of toJSNullableString.
- bindings/scripts/CodeGeneratorJS.pm:
(NativeToJSValue): Call toJSNullableString and toJSString for
functions that return ExceptionOr<String>.
- 5:45 PM Changeset in webkit [207036] by
-
- 2 edits in trunk/Source/JavaScriptCore
Change ArrayPrototype.cpp's putLength() and setLength() to take a VM& so that we can use vm.propertyNames.
https://bugs.webkit.org/show_bug.cgi?id=163260
Reviewed by Saam Barati.
In all cases where we call these, we already have the VM& anyway.
- runtime/ArrayPrototype.cpp:
(JSC::putLength):
(JSC::setLength):
(JSC::arrayProtoFuncPop):
(JSC::arrayProtoFuncPush):
(JSC::arrayProtoFuncShift):
(JSC::arrayProtoFuncSlice):
(JSC::arrayProtoFuncSplice):
(JSC::arrayProtoFuncUnShift):
- 5:11 PM Changeset in webkit [207035] by
-
- 3 edits2 adds in trunk
AX: Expose invalid status for input types with that information
https://bugs.webkit.org/show_bug.cgi?id=163252
<rdar://problem/28704409>
Reviewed by Chris Fleizach.
Source/WebCore:
For input types with invalid input value, we should expose the invalid
status to the assitive technology.
Test: accessibility/mac/invalid-status-for-input-types.html
- accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::invalidStatus):
LayoutTests:
- accessibility/mac/invalid-status-for-input-types-expected.txt: Added.
- accessibility/mac/invalid-status-for-input-types.html: Added.
- 4:59 PM Changeset in webkit [207034] by
-
- 2 edits in trunk/Source/WebCore
Added override specifier to PluginViewBase::isPluginViewBase()
https://bugs.webkit.org/show_bug.cgi?id=163218
Reviewed by Alex Christensen.
No new tests needed.
- plugins/PluginViewBase.h:
- 4:51 PM Changeset in webkit [207033] by
-
- 2 edits in trunk/Source/WebCore
Don't run SecurityOrigin's port through URLParser
https://bugs.webkit.org/show_bug.cgi?id=163253
Reviewed by Brady Eidson.
No change in behavior.
- page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::maybeCreateFromDatabaseIdentifier):
(WebCore::SecurityOrigin::create):
We used to parse URLs like "file://:0/" which are valid when using URL::parse
but aren't valid when we start using the URLParser, which matches other browsers' failure
to parse URLs with a port but no host. There is no reason to write and parse the port.
Setting m_port directly accomplishes the same thing.
- 4:51 PM Changeset in webkit [207032] by
-
- 2 edits in trunk/LayoutTests
Marking two media/modern-media-controls tests as failing.
https://bugs.webkit.org/show_bug.cgi?id=163248
Unreviewed test gardening.
- 4:31 PM Changeset in webkit [207031] by
-
- 5 edits in trunk/LayoutTests
TestExpectations cleanup for LayoutTests that no longer exist.
Unreviewed test gardening.
- TestExpectations:
- platform/ios-simulator-wk2/TestExpectations:
- platform/ios-simulator/TestExpectations:
- platform/mac/TestExpectations:
- 4:02 PM Changeset in webkit [207030] by
-
- 2 edits in trunk/Source/WebCore
<Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero
https://bugs.webkit.org/show_bug.cgi?id=138555
Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-10-10
Reviewed by Simon Fraser.
Ensure the dashArray has at least one non-zero element before calling
GraphicsContext::setLineDash(). Call GraphicsContext::setStrokeStyle()
instead, if the dashArray does not have one.
- rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::applyStrokeStyleToContext):
- 3:16 PM Changeset in webkit [207029] by
-
- 1 edit2 adds in trunk/LayoutTests/imported/w3c
Add baseline for two tests imported with r206999.
Unreviewed test gardening.
- web-platform-tests/touch-events/touch-retargeting-expected.txt: Added.
- web-platform-tests/touch-events/touch-touchevent-constructor-expected.txt: Added.
- 3:10 PM Changeset in webkit [207028] by
-
- 3 edits in trunk/Source/WebCore
[Win][Direct2D] Correct Radial Graident Bug
https://bugs.webkit.org/show_bug.cgi?id=163241
Reviewed by Darin Adler.
Radial gradients were not working correctly under Direct2D because the
points and radius values used were incorrect. D2D wants a center point and
an offset, not a start and end point. It wants an X and Y radius (for an
ellipse), not a radius at the start point, and a radius at the end point.
Covered by existing fast/gradients/css-radial-gradients.html (and others).
- platform/graphics/Image.cpp:
(WebCore::Image::drawTiled): Remove 'notImplemented' code path.
- platform/graphics/win/GradientDirect2D.cpp:
(WebCore::Gradient::generateGradient): Use correct input values to
the Radial Gradient constructor.
(WebCore::Gradient::fill): Generate a gradient if we have no active
one to use.
- 3:07 PM Changeset in webkit [207027] by
-
- 43 edits9 moves in trunk/Source/WebCore
Rename CryptoAlgorithmParameters to CryptoAlgorithmParametersDeprecated
https://bugs.webkit.org/show_bug.cgi?id=163163
<rdar://problem/28681544>
Reviewed by Brent Fulgham.
Replace all uses of 'CryptoAlgorithmParameters' with 'CryptoAlgorithmParametersDeprecated' in preparation for a new CryptoAlgorithmParameters type.
No changes of behaviors. No new tests.
- Modules/encryptedmedia/CDMSessionClearKey.cpp:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSCryptoAlgorithmDictionary.cpp:
- bindings/js/JSCryptoAlgorithmDictionary.h:
- bindings/js/JSCryptoKeySerializationJWK.cpp:
- bindings/js/JSCryptoKeySerializationJWK.h:
- bindings/js/JSWebKitSubtleCryptoCustom.cpp:
- crypto/CryptoAlgorithm.cpp:
- crypto/CryptoAlgorithm.h:
- crypto/CryptoAlgorithmParametersDeprecated.h: Renamed from Source/WebCore/crypto/CryptoAlgorithmParameters.h.
- crypto/CryptoKeySerialization.h:
- crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
- crypto/algorithms/CryptoAlgorithmAES_CBC.h:
- crypto/algorithms/CryptoAlgorithmAES_KW.cpp:
- crypto/algorithms/CryptoAlgorithmAES_KW.h:
- crypto/algorithms/CryptoAlgorithmHMAC.cpp:
- crypto/algorithms/CryptoAlgorithmHMAC.h:
- crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.cpp:
- crypto/algorithms/CryptoAlgorithmRSAES_PKCS1_v1_5.h:
- crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.cpp:
- crypto/algorithms/CryptoAlgorithmRSASSA_PKCS1_v1_5.h:
- crypto/algorithms/CryptoAlgorithmRSA_OAEP.cpp:
- crypto/algorithms/CryptoAlgorithmRSA_OAEP.h:
- crypto/algorithms/CryptoAlgorithmSHA1.cpp:
- crypto/algorithms/CryptoAlgorithmSHA1.h:
- crypto/algorithms/CryptoAlgorithmSHA224.cpp:
- crypto/algorithms/CryptoAlgorithmSHA224.h:
- crypto/algorithms/CryptoAlgorithmSHA256.cpp:
- crypto/algorithms/CryptoAlgorithmSHA256.h:
- crypto/algorithms/CryptoAlgorithmSHA384.cpp:
- crypto/algorithms/CryptoAlgorithmSHA384.h:
- crypto/algorithms/CryptoAlgorithmSHA512.cpp:
- crypto/algorithms/CryptoAlgorithmSHA512.h:
- crypto/keys/CryptoKeySerializationRaw.cpp:
- crypto/gnutls/CryptoAlgorithmAES_CBCGnuTLS.cpp:
- crypto/gnutls/CryptoAlgorithmHMACGnuTLS.cpp:
- crypto/gnutls/CryptoAlgorithmRSA_OAEPGnuTLS.cpp:
- crypto/gnutls/CryptoAlgorithmRSASSA_PKCS1_v1_5GnuTLS.cpp:
- crypto/keys/CryptoKeySerializationRaw.h:
- crypto/mac/CryptoAlgorithmAES_CBCMac.cpp:
- crypto/mac/CryptoAlgorithmHMACMac.cpp:
- crypto/mac/CryptoAlgorithmRSASSA_PKCS1_v1_5Mac.cpp:
- crypto/mac/CryptoAlgorithmRSA_OAEPMac.cpp:
- crypto/parameters/CryptoAlgorithmAesCbcParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmAesCbcParams.h.
- crypto/parameters/CryptoAlgorithmAesKeyGenParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmAesKeyGenParams.h.
- crypto/parameters/CryptoAlgorithmHmacKeyParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmHmacKeyParams.h.
- crypto/parameters/CryptoAlgorithmHmacParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmHmacParams.h.
- crypto/parameters/CryptoAlgorithmRsaKeyGenParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyGenParams.h.
- crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHashDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmRsaKeyParamsWithHash.h.
- crypto/parameters/CryptoAlgorithmRsaOaepParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmRsaOaepParams.h.
- crypto/parameters/CryptoAlgorithmRsaSsaParamsDeprecated.h: Renamed from Source/WebCore/crypto/parameters/CryptoAlgorithmRsaSsaParams.h.
- 2:50 PM Changeset in webkit [207026] by
-
- 2 edits in trunk/LayoutTests
Marking tiled-drawing/scrolling/latched-div-with-scroll-snap.html as flaky on mac-wk2.
https://bugs.webkit.org/show_bug.cgi?id=162505
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 2:33 PM Changeset in webkit [207025] by
-
- 12 edits in trunk/Source
Move NotificationCenter from legacy to new DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163217
Reviewed by Chris Dumez.
Source/WebCore:
- Modules/notifications/DOMWindowNotifications.cpp:
(WebCore::DOMWindowNotifications::webkitNotifications): Pass reference to
document instead of pointer. Also use auto and early return.
- Modules/notifications/Notification.cpp:
(WebCore::Notification::Notification): Move checks that can lead to
throwing an exception out of the constructor into the create function.
(WebCore::Notification::create): Changed to use ExceptionOr. Also moved
checks that can lead to throwing an exception here.
(WebCore::Notification::show): Update since NotificationController::client
now returns a reference.
(WebCore::Notification::permission): Ditto.
(WebCore::Notification::requestPermission): Ditto.
- Modules/notifications/Notification.h: Updated for above changes.
- Modules/notifications/NotificationCenter.cpp:
(WebCore::NotificationCenter::create): Take a reference to the script execution
context instead of a pointer.
(WebCore::NotificationCenter::NotificationCenter): Ditto.
(WebCore::NotificationCenter::createNotification): Use ExceptionOr.
(WebCore::NotificationCenter::requestPermission): Take an rvalue reference.
- Modules/notifications/NotificationCenter.h: Use pragma once.
Marked the class final. Updated for changes above.
- Modules/notifications/NotificationCenter.idl: Use non-legacy exceptions.
- Modules/notifications/NotificationController.cpp:
(WebCore::NotificationController::NotificationController): Use a reference rather
than a pointer for m_client, since it is never null.
(WebCore::NotificationController::~NotificationController): Ditto.
(WebCore::NotificationController::clientFrom): Updated for the change above.
- Modules/notifications/NotificationController.h: Updated for the change above.
- Modules/notifications/WorkerGlobalScopeNotifications.cpp:
(WebCore::WorkerGlobalScopeNotifications::webkitNotifications): Updated to
pass a reference for the script execution context. Also added FIXME about the
fact that the client is always null.
Source/WebKit/mac:
- WebView/WebView.mm:
(-[WebView _notificationIDForTesting:]): Pass reference to page rather than pointer.
- 2:17 PM Changeset in webkit [207024] by
-
- 3 edits23 adds in trunk
[Modern Media Controls] Placards
https://bugs.webkit.org/show_bug.cgi?id=163110
<rdar://problem/28669342>
Patch by Antoine Quint <Antoine Quint> on 2016-10-10
Reviewed by Dean Jackson.
Source/WebCore:
Inline media controls need to display placards when the video is no longer playing inline,
such as when the video is playing fullscreen or via AirPlay. To that end, we introduce a
new Placard class and two subclasses for display during fullscreen or AirPlay playback.
Note that localization will be done in a later patch.
Tests: media/modern-media-controls/airplay-placard/airplay-placard.html
media/modern-media-controls/pip-placard/pip-placard.html
media/modern-media-controls/placard/placard.html
- Modules/modern-media-controls/controls/airplay-placard.js:
(AirplayPlacard):
- Modules/modern-media-controls/controls/icon-service.js:
- Modules/modern-media-controls/controls/pip-placard.js:
(PiPPlacard):
- Modules/modern-media-controls/controls/placard.css:
(.placard):
(.placard .container):
(.placard .icon):
(.placard .title,):
(.placard .title):
(.placard .description):
- Modules/modern-media-controls/controls/placard.js:
(Placard.):
- Modules/modern-media-controls/images/iOS/airplay-placard@1x.png: Added.
- Modules/modern-media-controls/images/iOS/airplay-placard@2x.png: Added.
- Modules/modern-media-controls/images/iOS/airplay-placard@3x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-placard@1x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-placard@2x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-placard@3x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay-placard@1x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay-placard@2x.png: Added.
- Modules/modern-media-controls/images/macOS/pip-placard@1x.png: Added.
- Modules/modern-media-controls/images/macOS/pip-placard@2x.png: Added.
LayoutTests:
Testing the properties of the new Placard class and its subclasses.
- media/modern-media-controls/airplay-placard/airplay-placard-expected.txt: Added.
- media/modern-media-controls/airplay-placard/airplay-placard.html: Added.
- media/modern-media-controls/pip-placard/pip-placard-expected.txt: Added.
- media/modern-media-controls/pip-placard/pip-placard.html: Added.
- media/modern-media-controls/placard/placard-expected.txt: Added.
- media/modern-media-controls/placard/placard.html: Added.
- 2:13 PM Changeset in webkit [207023] by
-
- 17 edits in trunk/Source/JavaScriptCore
Rename the StrictModeReadonlyPropertyWriteError string to ReadonlyPropertyWriteError.
https://bugs.webkit.org/show_bug.cgi?id=163239
Reviewed by Filip Pizlo.
This string is also used for reporting the same error in cases which have nothing
to do with strict mode.
- bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitReadOnlyExceptionIfNeeded):
- runtime/CommonSlowPaths.cpp:
(JSC::SLOW_PATH_DECL):
- runtime/GetterSetter.cpp:
(JSC::callSetter):
- runtime/JSArray.cpp:
(JSC::JSArray::setLengthWithArrayStorage):
(JSC::JSArray::pop):
- runtime/JSCJSValue.cpp:
(JSC::JSValue::putToPrimitive):
(JSC::JSValue::putToPrimitiveByIndex):
- runtime/JSFunction.cpp:
(JSC::JSFunction::put):
- runtime/JSModuleEnvironment.cpp:
(JSC::JSModuleEnvironment::put):
- runtime/JSModuleNamespaceObject.cpp:
(JSC::JSModuleNamespaceObject::put):
(JSC::JSModuleNamespaceObject::putByIndex):
- runtime/JSObject.cpp:
(JSC::ordinarySetSlow):
(JSC::JSObject::putInlineSlow):
(JSC::JSObject::setPrototypeWithCycleCheck):
(JSC::JSObject::putByIndexBeyondVectorLengthWithArrayStorage):
(JSC::JSObject::putDirectIndexBeyondVectorLengthWithArrayStorage):
- runtime/JSObject.h:
- runtime/JSObjectInlines.h:
(JSC::JSObject::putInline):
- runtime/JSSymbolTableObject.h:
(JSC::symbolTablePut):
- runtime/Lookup.h:
(JSC::putEntry):
- runtime/RegExpObject.h:
(JSC::RegExpObject::setLastIndex):
- runtime/SparseArrayValueMap.cpp:
(JSC::SparseArrayValueMap::putEntry):
(JSC::SparseArrayEntry::put):
- runtime/StringObject.cpp:
(JSC::StringObject::put):
(JSC::StringObject::putByIndex):
- 2:07 PM Changeset in webkit [207022] by
-
- 2 edits in trunk/LayoutTests
Marking fast/replaced/preferred-widths.html as flaky on mac.
https://bugs.webkit.org/show_bug.cgi?id=116621
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 2:01 PM Changeset in webkit [207021] by
-
- 10 edits in trunk
Add support for Navigator.languages attribute
https://bugs.webkit.org/show_bug.cgi?id=163220
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Rebaseline W3C tests now that more checks are passing.
- web-platform-tests/html/dom/interfaces-expected.txt:
- web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt:
Source/WebCore:
Add support for Navigator.languages attribute:
Firefox and Chrome already support this.
Currently, we always return a single language for privacy reasons so
this API does not actually bring anything new besides interoperability
with other browsers and compliance with the HTML specification.
No new tests, rebaselined existing tests.
- page/NavigatorBase.cpp:
(WebCore::NavigatorBase::languages):
- page/NavigatorBase.h:
- page/NavigatorLanguage.idl:
LayoutTests:
Rebase existing test to reflect change.
- fast/dom/navigator-detached-no-crash-expected.txt:
- platform/mac-wk2/fast/dom/navigator-detached-no-crash-expected.txt:
- 1:59 PM Changeset in webkit [207020] by
-
- 6 edits in trunk/Source/WebCore
[Win][Direct2D] Implement dashed and dotted border line drawing
https://bugs.webkit.org/show_bug.cgi?id=163235
Reviewed by Alex Christensen.
Covered by existing fast/border tests.
- platform/graphics/GraphicsContext.cpp: Use custom 'setPlatformStrokeStyle' for D2D.
- platform/graphics/Path.cpp:
(WebCore::Path::length): Don't use default implementation for Direct2D.
- platform/graphics/win/GraphicsContextDirect2D.cpp:
(WebCore::GraphicsContextPlatformPrivate::brushWithColor): Initialize pointer to nullptr.
(WebCore::GraphicsContext::drawRect): Use proper stroke style.
(WebCore::GraphicsContextPlatformPrivate::setLineCap): Added.
(WebCore::GraphicsContextPlatformPrivate::setLineJoin): Added.
(WebCore::GraphicsContextPlatformPrivate::setStrokeStyle): Added.
(WebCore::GraphicsContextPlatformPrivate::setMiterLimit): Added.
(WebCore::GraphicsContextPlatformPrivate::setDashOffset): Added.
(WebCore::GraphicsContextPlatformPrivate::setPatternWidth): Added.
(WebCore::GraphicsContextPlatformPrivate::setPatternOffset): Added.
(WebCore::GraphicsContextPlatformPrivate::setStrokeThickness): Added.
(WebCore::GraphicsContextPlatformPrivate::setDashes): Added.
(WebCore::GraphicsContextPlatformPrivate::recomputeStrokeStyle): Added.
(WebCore::GraphicsContextPlatformPrivate::strokeStyle): Added.
(WebCore::GraphicsContext::drawLine): Use proper stroke style.
(WebCore::GraphicsContext::drawEllipse): Ditto.
(WebCore::GraphicsContext::drawPath): Ditto.
(WebCore::GraphicsContext::strokePath): Ditto.
(WebCore::GraphicsContext::setPlatformStrokeStyle): Added.
(WebCore::GraphicsContext::setMiterLimit): Tell D2D context about miter limit.
(WebCore::GraphicsContext::setLineCap): Ditto for line cap.
(WebCore::GraphicsContext::setLineDash): Ditto for dashes.
(WebCore::GraphicsContext::setLineJoin): Ditto for join style.
(WebCore::GraphicsContext::setPlatformStrokeThickness): Ditto for stroke thickness.
(WebCore::GraphicsContext::platformStrokeEllipse): Use proper stroke style.
- platform/graphics/win/GraphicsContextPlatformPrivateDirect2D.h:
- platform/graphics/win/PathDirect2D.cpp:
(WebCore::Path::currentPoint): Zero-initialize a value.
(WebCore::Path::length): Added.
- 1:57 PM Changeset in webkit [207019] by
-
- 4 edits in trunk/Source/WebCore
Update ProgressEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163221
Reviewed by Darin Adler.
Update ProgressEvent to stop using legacy [ConstructorTemplate=Event]
and use a regular constructor as in the specification:
- dom/ProgressEvent.cpp:
(WebCore::ProgressEvent::ProgressEvent):
- dom/ProgressEvent.h:
(WebCore::ProgressEvent::create):
- dom/ProgressEvent.idl:
- 1:52 PM Changeset in webkit [207018] by
-
- 3 edits in trunk/Source/WebCore
Address some review feedback from r206979 and r207010
https://bugs.webkit.org/show_bug.cgi?id=163236
Reviewed by Tim Horton.
In TypingCommand.h, some methods on TypingCommand should be marked as final to reflect the fact that they
override methods in CompositeEditCommand. Also, HTMLFormControlElement::dispatchFormControlInputEvent does not
need to specify HTMLElement::dispatchInputEvent() when calling dispatchInputEvent().
No new tests, since there is no behavior change.
- editing/TypingCommand.h:
- html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::dispatchFormControlInputEvent):
- 1:33 PM Changeset in webkit [207017] by
-
- 2 edits1 add in trunk
compileCheckStringIdent in the FTL is wrong
https://bugs.webkit.org/show_bug.cgi?id=163215
Reviewed by Mark Lam and Filip Pizlo.
lowStringIdent() returns the StringImpl pointer. The compileCheckStringIdent()
was treating its return value as the actual JSString. This is wrong.
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCheckStringIdent):
- 1:21 PM Changeset in webkit [207016] by
-
- 10 edits in trunk
Update MessageEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163187
Reviewed by Darin Adler.
Source/WebCore:
Update MessageEvent to stop using legacy [ConstructorTemplate=Event] and
use a regular constructor as in the specification:
No new tests, updated existing test.
- bindings/js/JSDOMBinding.h:
(WebCore::toRefPtrNativeArray):
- bindings/js/JSDOMConvert.h:
(WebCore::convertWrapperTypeSequence):
(WebCore::convertWrapperType): Deleted.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDefaultValue):
(GenerateDictionaryImplementationContent):
(GetNativeType):
- dom/MessageEvent.cpp:
(WebCore::MessageEvent::MessageEvent):
(WebCore::MessageEvent::create):
(WebCore::MessageEvent::trySerializeData):
(WebCore::MessageEvent::createForBindings): Deleted.
(WebCore::MessageEvent::initMessageEvent): Deleted.
- dom/MessageEvent.h:
- dom/MessageEvent.idl:
LayoutTests:
Rebaseline existing test now that:
- Exception messages are sometimes a bit different
- We properly use the default member value when input is an explicit undefined
- We throw in more cases of bad input
- fast/events/constructors/message-event-constructor-expected.txt:
- fast/events/constructors/message-event-constructor.html:
- 1:14 PM Changeset in webkit [207015] by
-
- 6 edits23 copies75 adds in trunk
[Modern Media Controls] Buttons
https://bugs.webkit.org/show_bug.cgi?id=163109
<rdar://problem/28668954>
Patch by Antoine Quint <Antoine Quint> on 2016-10-10
Reviewed by Dean Jackson.
Source/WebCore:
We introduce specific IconButton subclasses for the various buttons we will be using
in media controls on macOS (inline and fullscreen) and iOS. One class, StartButton, is
a subclass of Button and not IconButton because we're only interested in having it display
an <img> element rather than use a mask and requires additional DOM structure.
Tests: media/modern-media-controls/airplay-button/airplay-button-on.html
media/modern-media-controls/airplay-button/airplay-button.html
media/modern-media-controls/aspect-ratio-button/aspect-ratio-button.html
media/modern-media-controls/forward-button/forward-button.html
media/modern-media-controls/fullscreen-button/fullscreen-button.html
media/modern-media-controls/mute-button/mute-button.html
media/modern-media-controls/pip-button/pip-button.html
media/modern-media-controls/play-pause-button/play-pause-button.html
media/modern-media-controls/rewind-button/rewind-button.html
media/modern-media-controls/skip-back-button/skip-back-button.html
media/modern-media-controls/start-button/start-button.html
media/modern-media-controls/tracks-button/tracks-button.html
- Modules/modern-media-controls/controls/airplay-button.css:
(button.airplay.on):
- Modules/modern-media-controls/controls/airplay-button.js:
(AirplayButton):
(AirplayButton.prototype.set on):
- Modules/modern-media-controls/controls/aspect-ratio-button.js:
(AspectRatioButton):
(AspectRatioButton.prototype.get scalesToFill):
(AspectRatioButton.prototype.set scalesToFill):
- Modules/modern-media-controls/controls/forward-button.js:
(ForwardButton):
- Modules/modern-media-controls/controls/fullscreen-button.js:
(FullscreenButton):
- Modules/modern-media-controls/controls/icon-button.js:
- Modules/modern-media-controls/controls/icon-service.js:
- Modules/modern-media-controls/controls/mute-button.js:
(MuteButton):
(MuteButton.prototype.get muted):
(MuteButton.prototype.set muted):
- Modules/modern-media-controls/controls/pip-button.js:
(PiPButton):
- Modules/modern-media-controls/controls/play-pause-button.js:
(PlayPauseButton):
(PlayPauseButton.prototype.get playing):
(PlayPauseButton.prototype.set playing):
- Modules/modern-media-controls/controls/rewind-button.js:
(RewindButton):
- Modules/modern-media-controls/controls/skip-back-button.js:
(SkipBackButton):
- Modules/modern-media-controls/controls/start-button.js:
(StartButton):
- Modules/modern-media-controls/controls/tracks-button.js:
(TracksButton):
- Modules/modern-media-controls/images/iOS/airplay@1x.png: Added.
- Modules/modern-media-controls/images/iOS/airplay@2x.png: Added.
- Modules/modern-media-controls/images/iOS/enter-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/iOS/enter-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/iOS/enter-fullscreen@3x.png: Added.
- Modules/modern-media-controls/images/iOS/interval-skip-back@1x.png: Added.
- Modules/modern-media-controls/images/iOS/interval-skip-back@2x.png: Added.
- Modules/modern-media-controls/images/iOS/interval-skip-back@3x.png: Added.
- Modules/modern-media-controls/images/iOS/pause@1x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-in@1x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-in@2x.png: Added.
- Modules/modern-media-controls/images/iOS/pip-in@3x.png: Added.
- Modules/modern-media-controls/images/iOS/play@1x.png: Added.
- Modules/modern-media-controls/images/iOS/play@2x.png: Added.
- Modules/modern-media-controls/images/iOS/play@3x.png: Added.
- Modules/modern-media-controls/images/iOS/start@1x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay@1x.png: Added.
- Modules/modern-media-controls/images/macOS/airplay@2x.png: Added.
- Modules/modern-media-controls/images/macOS/enter-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/macOS/enter-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/macOS/exit-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/macOS/exit-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/macOS/forward@1x.png: Added.
- Modules/modern-media-controls/images/macOS/forward@2x.png: Added.
- Modules/modern-media-controls/images/macOS/interval-skip-back@1x.png: Added.
- Modules/modern-media-controls/images/macOS/interval-skip-back@2x.png: Added.
- Modules/modern-media-controls/images/macOS/media-selection-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/macOS/media-selection-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/macOS/media-selection@1x.png: Added.
- Modules/modern-media-controls/images/macOS/media-selection@2x.png: Added.
- Modules/modern-media-controls/images/macOS/pip-in@1x.png: Added.
- Modules/modern-media-controls/images/macOS/pip-in@2x.png: Added.
- Modules/modern-media-controls/images/macOS/play-fullscreen@1x.png: Added.
- Modules/modern-media-controls/images/macOS/play-fullscreen@2x.png: Added.
- Modules/modern-media-controls/images/macOS/play@1x.png: Added.
- Modules/modern-media-controls/images/macOS/play@2x.png: Added.
- Modules/modern-media-controls/images/macOS/rewind@1x.png: Added.
- Modules/modern-media-controls/images/macOS/rewind@2x.png: Added.
- Modules/modern-media-controls/images/macOS/scale-to-fill@1x.png: Added.
- Modules/modern-media-controls/images/macOS/scale-to-fill@2x.png: Added.
- Modules/modern-media-controls/images/macOS/scale-to-fit@1x.png: Added.
- Modules/modern-media-controls/images/macOS/scale-to-fit@2x.png: Added.
- Modules/modern-media-controls/images/macOS/volume-mute@1x.png: Added.
- Modules/modern-media-controls/images/macOS/volume-mute@2x.png: Added.
- Modules/modern-media-controls/images/macOS/volume@1x.png: Added.
- Modules/modern-media-controls/images/macOS/volume@2x.png: Added.
LayoutTests:
Adding new tests for all new button types introduced, including any custom JS properties
and backing DOM structure that they may have, as well as checking which assets are loaded.
- media/modern-media-controls/airplay-button/airplay-button-expected.txt: Added.
- media/modern-media-controls/airplay-button/airplay-button-on-expected.txt: Added.
- media/modern-media-controls/airplay-button/airplay-button-on.html: Added.
- media/modern-media-controls/airplay-button/airplay-button.html: Added.
- media/modern-media-controls/aspect-ratio-button/aspect-ratio-button-expected.txt: Added.
- media/modern-media-controls/aspect-ratio-button/aspect-ratio-button.html: Added.
- media/modern-media-controls/forward-button/forward-button-expected.txt: Added.
- media/modern-media-controls/forward-button/forward-button.html: Added.
- media/modern-media-controls/fullscreen-button/fullscreen-button-expected.txt: Added.
- media/modern-media-controls/fullscreen-button/fullscreen-button.html: Added.
- media/modern-media-controls/mute-button/mute-button-expected.txt: Added.
- media/modern-media-controls/mute-button/mute-button.html: Added.
- media/modern-media-controls/pip-button/pip-button-expected.txt: Added.
- media/modern-media-controls/pip-button/pip-button.html: Added.
- media/modern-media-controls/play-pause-button/play-pause-button-expected.txt: Added.
- media/modern-media-controls/play-pause-button/play-pause-button.html: Added.
- media/modern-media-controls/rewind-button/rewind-button-expected.txt: Added.
- media/modern-media-controls/rewind-button/rewind-button.html: Added.
- media/modern-media-controls/skip-back-button/skip-back-button-expected.txt: Added.
- media/modern-media-controls/skip-back-button/skip-back-button.html: Added.
- media/modern-media-controls/start-button/start-button-expected.txt: Added.
- media/modern-media-controls/start-button/start-button.html: Added.
- media/modern-media-controls/tracks-button/tracks-button-expected.txt: Added.
- media/modern-media-controls/tracks-button/tracks-button.html: Added.
- platform/ios-simulator/media/modern-media-controls/airplay-button/airplay-button-on-expected.txt: Added.
- 1:11 PM Changeset in webkit [207014] by
-
- 5 edits in trunk
AX: Update AXPlaceHolder algorithm
https://bugs.webkit.org/show_bug.cgi?id=163229
Reviewed by Chris Fleizach.
Source/WebCore:
From https://w3c.github.io/html-aam/
When the placeholder and aria-placeholder attributes are both present, we
should expose the value of the placeholder attribute. Updated the algorithm
for that.
Changes are covered in the modified test.
- accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::placeholderValue):
LayoutTests:
- accessibility/placeholder-expected.txt:
- accessibility/placeholder.html:
- 12:57 PM Changeset in webkit [207013] by
-
- 22 edits2 copies7 adds in trunk
[DOMJIT] Implement Node accessors in DOMJIT
https://bugs.webkit.org/show_bug.cgi?id=163005
Reviewed by Filip Pizlo.
Source/JavaScriptCore:
Add some helper methods and offsetOfXXX for JSC::Weak since it is used
for DOM wrapper caching.
And make DOMJIT::Patchpoint in FTL closer to one in DFG. We add resultConstraint
to avoid the situation that the same register is allocated to child and result.
We also extend DOMJIT::Patchpoint to tell useTagTypeNumberRegister / useTagMaskRegister.
- dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::callOperation):
- domjit/DOMJITSlowPathCalls.h:
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCheckDOM):
(JSC::FTL::DFG::LowerDFGToB3::compileCallDOM):
- heap/WeakImpl.h:
(JSC::WeakImpl::offsetOfJSValue):
(JSC::WeakImpl::offsetOfWeakHandleOwner):
- jit/AssemblyHelpers.h:
(JSC::AssemblyHelpers::boxCell):
(JSC::AssemblyHelpers::boxInt32): Deleted.
- jit/JITOperations.h:
Source/WebCore:
This patch implements DOMJIT accessors in WebCore. We plan to offer 2 things in DOMJIT.
- Hand written DOM inlining.
We inject DOMJIT::Patchpoint compiler into JSC. And JSC uses this to inline DOM operation,
and drop type checks. Since the operation is fully inlined, potentially it has large
performance boost. Note that CSS Selector JIT compiler already does the similar things:
accessing parentNode etc. directly by using offsets.
- Exposing signature information.
We will offer function type signature by some representation and pass it to JSC.
JSC will use to drop type checks. Since IDL code generator already knows this,
we can automatically generate such a information. Since we don't perform any inlining,
the performance boost may be limited. But it's worth doing.
This patch implements the first one, hand written DOM inlining facility. We add a new IDL attribute,
"DOMJIT". This means that "This readonly attribute have a DOMJIT patchpoint compiler".
We annotate several accessors at first. "firstChild", "lastChild", "nextSibling", "previousSibling",
and "parentNode". And we implement DOMJIT::Patchpoint for that in JSNodeDOMJIT.cpp.
This patchpoint will be integrated into JSC's DFG and FTL. And these tiers can drop type checks and
inline the entire code of these accessors. JSC compiler still does not know much about DOM. And WebCore
does not know much about each tier of JSC. WebCore just offers the generic patchpoints and they are
used in both DFG and FTL tiers. The layer separation is still kept.
While very small microbenchmark[1] shows performance benefit, still we cannot improve DOM
benchmarks due to the lack of following implementations. Once the following implementations
are implemented, we will get performance boost.
- Super polymorphic sites.
This inlining is super effective if we run some microbenchmarks. However, Dromaeo does not
show so much performance benefit. This is because Dromaeo's dom-traverse.html is super
polymorphic call site where JSC gives up optimization. For example, in the following
dromaeo's benchmark, we can see so various DOM nodes at thecur.firstChild
site, like,
HTMLDivElement, HTMLAnchorElement, Text, Comment etc. JSC gives up optimization since we
encounter so many Structures. This should be optimized since they share the large part of
prototype-chain and they hit the exactly same CustomGetter, Node.prototype.firstChild.
We will handle this and when we optimize it, this DOMJIT works well on Dromaeo.
test( "firstChild", function(){
var nodes = document.body.childNodes, nl = nodes.length;
for ( var i = 0; i < num; i++ ) {
for ( var j = 0; j < nl; j++ ) {
var cur = nodes[j];
while ( cur )
cur = cur.firstChild;
ret = cur;
}
}
});
- Emit code in IC.
Currently, we only optimize DOMJIT accessors in DFG and FTL. However, we should leverage
this DOMJIT::Patchpoint to emit inlined code even in Inline Caching (IC). We will emit
CheckDOM's code for IC's guard phase, and emit CallDOM's code for IC's get phase. This
offers performance benefit even if we live in baseline JIT code. And this should be easy.
[1]: With the following one, we can see 3x improvement (26ms v.s. 80ms).
var element = document.getElementsByTagName('div')[3];
var before = Date.now();
for (var i = 0; i < 1e7; ++i)
element.firstChild;
console.log(Date.now() - before);
- CMakeLists.txt:
- ForwardingHeaders/domjit/DOMJITGetterSetter.h:
- ForwardingHeaders/domjit/DOMJITPatchpoint.h: Copied from Source/JavaScriptCore/domjit/DOMJITSlowPathCalls.h.
- ForwardingHeaders/domjit/DOMJITPatchpointParams.h: Copied from Source/JavaScriptCore/domjit/DOMJITSlowPathCalls.h.
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSDOMGlobalObject.h:
- bindings/js/JSDOMWrapper.h:
(WebCore::JSDOMWrapper::offsetOfWrapped):
(WebCore::JSDOMWrapper::wrapped): Deleted.
- bindings/js/ScriptWrappable.h:
(WebCore::ScriptWrappable::offsetOfWrapper):
- bindings/scripts/CodeGeneratorJS.pm:
(GetJSCAttributesForAttribute):
(GenerateHeader):
(GeneratePropertiesHashTable):
(GenerateImplementation):
(GenerateHashTableValueArray):
- bindings/scripts/IDLAttributes.txt:
- dom/ContainerNode.h:
(WebCore::ContainerNode::lastChildMemoryOffset):
(WebCore::ContainerNode::lastChild): Deleted.
- dom/Node.h:
(WebCore::Node::flagIsContainer):
(WebCore::Node::flagIsText): Deleted.
- dom/Node.idl:
- domjit/DOMJITHelpers.h: Added.
(WebCore::DOMJITHelpers::branchIfNotWorldIsNormal):
(WebCore::DOMJITHelpers::branchIfNotWeakIsLive):
(WebCore::DOMJITHelpers::tryLookUpWrapperCache):
(WebCore::DOMJITHelpers::toWrapper):
(WebCore::DOMJITHelpers::branchIfDOMWrapper):
(WebCore::DOMJITHelpers::branchIfNotDOMWrapper):
(WebCore::DOMJITHelpers::branchIfNode):
(WebCore::DOMJITHelpers::branchIfNotNode):
(WebCore::DOMJITHelpers::branchIfElement):
(WebCore::DOMJITHelpers::branchIfNotElement):
(WebCore::DOMJITHelpers::branchIfDocumentWrapper):
(WebCore::DOMJITHelpers::branchIfNotDocumentWrapper):
- domjit/JSNodeDOMJIT.cpp: Added.
(WebCore::toWrapperSlow):
(WebCore::createCallDOMForOffsetAccess):
(WebCore::checkNode):
(WebCore::NodeFirstChildDOMJIT::checkDOM):
(WebCore::NodeFirstChildDOMJIT::callDOM):
(WebCore::NodeLastChildDOMJIT::checkDOM):
(WebCore::NodeLastChildDOMJIT::callDOM):
(WebCore::NodeNextSiblingDOMJIT::checkDOM):
(WebCore::NodeNextSiblingDOMJIT::callDOM):
(WebCore::NodePreviousSiblingDOMJIT::checkDOM):
(WebCore::NodePreviousSiblingDOMJIT::callDOM):
(WebCore::NodeParentNodeDOMJIT::checkDOM):
(WebCore::NodeParentNodeDOMJIT::callDOM):
Source/WTF:
Add CAST_OFFSET. It is not necessary for JSCell thingy
since we don't use virtual member functions. However, it
is not true for WebCore DOM wrapped objects.
- wtf/StdLibExtras.h:
LayoutTests:
- js/dom/domjit-accessor-monomorphic-expected.txt: Added.
- js/dom/domjit-accessor-monomorphic.html: Added.
- js/dom/domjit-accessor-polymorphic-expected.txt: Added.
- js/dom/domjit-accessor-polymorphic.html: Added.
- 12:42 PM Changeset in webkit [207012] by
-
- 2 edits in trunk/Source/WebKit2
Added final specifier to WebInspectorServer and to its overridden methods
https://bugs.webkit.org/show_bug.cgi?id=163228
Reviewed by Darin Adler.
- UIProcess/InspectorServer/WebInspectorServer.h:
- 11:56 AM Changeset in webkit [207011] by
-
- 2 edits in trunk/LayoutTests
Marking media/controls/airplay-picker.html as flaky on ElCapitan+.
https://bugs.webkit.org/show_bug.cgi?id=163231
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 11:30 AM Changeset in webkit [207010] by
-
- 25 edits4 adds in trunk
Support InputEvent.data for the new InputEvent spec
https://bugs.webkit.org/show_bug.cgi?id=163113
<rdar://problem/28681935>
Reviewed by Darin Adler.
Source/WebCore:
Introduces InputEvent.data, a string attribute that, if non-null, indicates the text to be inserted by an input
event. For text areas and text inputs, the 'insertText', 'insertFromPaste', 'insertFromDrop', and
'insertReplacementText' input types should cause subsequentinput
andbeforeinput
events to have non-null
data. However, for contenteditable areas, only 'insertText' leads to having data in resulting InputEvents.
To implement this, we introduce a new virtual method, CompositeEditCommand::inputEventData, which gives
composite editing commands the chance to vend a data string for input events they might fire (by default, this
is null).
Tests: fast/events/input-events-paste-data.html
fast/events/input-events-typing-data.html
- dom/InputEvent.cpp:
(WebCore::InputEvent::InputEvent):
- dom/InputEvent.h:
- dom/InputEvent.idl:
Currently, our InputEventInit struct is wrong. According to the UI-Events spec at www.w3.org/TR/uievents/, the
init struct for an InputEvent should contain a data string (added in this patch) as well as an isComposing flag
(to be added in a future patch along with composition support). While adding support for the data attribute, we
tweak the InputEvent IDL and headers slightly to adjust for this.
- dom/Node.cpp:
(WebCore::Node::dispatchInputEvent):
- dom/Node.h:
- editing/CompositeEditCommand.h:
(WebCore::CompositeEditCommand::inputEventData):
- editing/EditCommand.cpp:
(WebCore::EditCommand::isEditingTextAreaOrTextInput):
- editing/EditCommand.h:
- editing/Editor.cpp:
(WebCore::dispatchBeforeInputEvent):
(WebCore::dispatchInputEvent):
(WebCore::dispatchBeforeInputEvents):
(WebCore::dispatchInputEvents):
(WebCore::Editor::willApplyEditing):
(WebCore::Editor::appliedEditing):
(WebCore::Editor::setBaseWritingDirection):
(WebCore::Editor::computeAndSetTypingStyle):
- editing/ReplaceRangeWithTextCommand.cpp:
(WebCore::ReplaceRangeWithTextCommand::inputEventData):
- editing/ReplaceRangeWithTextCommand.h:
- editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::inputEventData):
- editing/ReplaceSelectionCommand.h:
- editing/SpellingCorrectionCommand.cpp:
(WebCore::SpellingCorrectionCommand::inputEventData):
- editing/SpellingCorrectionCommand.h:
- editing/TypingCommand.cpp:
(WebCore::TypingCommand::TypingCommand):
(WebCore::TypingCommand::inputEventData):
(WebCore::TypingCommand::willAddTypingToOpenCommand):
(WebCore::TypingCommand::insertTextRunWithoutNewlines):
- editing/TypingCommand.h:
- html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::dispatchFormControlInputEvent):
- html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::setEditingValue):
(WebCore::HTMLInputElement::setValueFromRenderer):
- html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::listBoxOnChange):
(WebCore::HTMLSelectElement::dispatchChangeEventForMenuList):
LayoutTests:
Adds 2 new layout tests verifying the data attribute of
beforeinput
andinput
events when typing, pasting,
and selecting candidate replacements in plain text and contenteditable areas.
Also tweaks an existing test to ensure that
data
is an attribute of an InputEvent.
- fast/events/input-events-fired-when-typing-expected.txt:
- fast/events/input-events-fired-when-typing.html:
- fast/events/input-events-paste-data-expected.txt: Added.
- fast/events/input-events-paste-data.html: Added.
- fast/events/input-events-typing-data-expected.txt: Added.
- fast/events/input-events-typing-data.html: Added.
- platform/ios-simulator/TestExpectations:
- 11:29 AM Changeset in webkit [207009] by
-
- 7 edits1 delete in trunk
Unreviewed, rolling out r206972.
https://bugs.webkit.org/show_bug.cgi?id=163227
Making EWS flaky (Requested by bfulgham_ on #webkit).
Reverted changeset:
"[CMake] CMake does not support the dep files for implicit
dependency"
https://bugs.webkit.org/show_bug.cgi?id=161433
http://trac.webkit.org/changeset/206972
- 10:42 AM Changeset in webkit [207008] by
-
- 3 edits in trunk/LayoutTests
Marking storage/indexeddb/modern/abort-requests-cancelled* tests as flaky on mac.
https://bugs.webkit.org/show_bug.cgi?id=156070
Unreviewed test gardening.
- platform/mac-wk1/TestExpectations:
- platform/mac/TestExpectations:
- 10:25 AM Changeset in webkit [207007] by
-
- 8 edits in trunk/Source/WebCore
Move media source from legacy to new DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163201
Reviewed by Chris Dumez.
- Modules/mediasource/MediaSource.cpp: Removed unneeded includes.
(WebCore::MediaSource::create): Use auto.
(WebCore::MediaSource::MediaSource): Initialize m_mediaElement in class definition.
(WebCore::MediaSource::setLiveSeekableRange): Use ExceptionOr.
(WebCore::MediaSource::clearLiveSeekableRange): Ditto.
(WebCore::MediaSource::setDuration): Ditto.
(WebCore::MediaSource::setDurationInternal): Ditto.
(WebCore::MediaSource::endOfStream): Ditto.
(WebCore::MediaSource::streamEndedWithError): Use bufferedInternal.
(WebCore::MediaSource::addSourceBuffer): Use ExceptionOr.
(WebCore::MediaSource::removeSourceBuffer): Ditto.
(WebCore::MediaSource::detachFromElement): Use removeSourceBuffer
without IGNORE_EXCEPTION since that is now the default behavior.
(WebCore::MediaSource::activeRanges): Use bufferedInternal.
(WebCore::MediaSource::createSourceBufferPrivate): Use ExceptionOr.
- Modules/mediasource/MediaSource.h: Removed unneeded includes.
Made more things private and also private rather than protected.
- Modules/mediasource/MediaSource.idl: Use non-legacy exceptions.
- Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::buffered): Use ExceptionOr.
(WebCore::SourceBuffer::setTimestampOffset): Ditto.
(WebCore::SourceBuffer::setAppendWindowStart): Ditto.
(WebCore::SourceBuffer::setAppendWindowEnd): Ditto.
(WebCore::SourceBuffer::appendBuffer): Ditto.
(WebCore::SourceBuffer::abort): Ditto.
(WebCore::SourceBuffer::remove): Ditto.
(WebCore::SourceBuffer::appendBufferInternal): Ditto.
(WebCore::SourceBuffer::setMode): Ditto.
- Modules/mediasource/SourceBuffer.h: Removed unneeded includes.
Updated for above changes. Made more things private.
- Modules/mediasource/SourceBuffer.idl: Use non-legacy exceptions.
- platform/graphics/gstreamer/WebKitMediaSourceGStreamer.h:
Added now-needed include of MediaSourcePrivate.h.
- 10:23 AM Changeset in webkit [207006] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Revealed line not highlighted in TextEditor while debugger paused
https://bugs.webkit.org/show_bug.cgi?id=163197
Reviewed by Timothy Hatcher.
- UserInterface/Views/TextEditor.js:
(WebInspector.TextEditor.prototype.revealPosition.revealAndHighlightLine):
Avoid highlighting the execution line while debugging, but allow
other lines to be highlighted.
- 10:17 AM Changeset in webkit [207005] by
-
- 6 edits in trunk
Address flaky airplay-* LayouTests
https://bugs.webkit.org/show_bug.cgi?id=163044
Reviewed by Brent Fulgham.
Source/WebCore:
Two separate problems conspired to make airplay tests a bit flaky:
For one, when the HTMLMediaElement clears its MediaPlayer, it won't necessarily notify
clients that it has stopped playing to a wireless target. The WebMediaSessionManager may
eventually cause this value to reset, but it's asynchronous, and may fire after the next
test starts. Reset this state explicitly.
For two, the state of the mock playback target picker was not being reset between test
invocations.
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::clearMediaPlayer):
- testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):
LayoutTests:
- media/airplay-autoplay.html:
- platform/mac/TestExpectations:
- 10:12 AM Changeset in webkit [207004] by
-
- 16 edits2 deletes in trunk/Source/JavaScriptCore
Air should expose API for pinning registers
https://bugs.webkit.org/show_bug.cgi?id=163175
Reviewed by Keith Miller.
You can now call Procedure::pinRegister(), or Code::pinRegister(), and it will make this
register behave as follows:
- B3 and Air will emit no code that modifies the value in this register, except if that happens via a Patchpoint or stackmap constraint (i.e. the user explicitly asked for it).
- B3 and Air will allow others to modify the register. For example, if the register is not callee-save, then the compiler knows that the register's value will be trashed by any C-style call.
- Air will be happy to emit code that reads from this register, including coalescing tmps with it, so longer as there is no interference (i.e. no chance of the register's value changing). For example, if we went back to having pinned tag registers, we would tell B3 to use them by (1) excluding them from any clobber set (easy, since they're callee save) and (2) emitting ArgumentReg to grab their value. There's a test that does this.
This is accomplished by taking regsInPriorityOrder() and making it a method of Code. Air
already used this API when choosing registers in register allocation. Code now also vends a
mutableRegs() set, which is derived from regsInPriorityOrder(), that can quickly tell you if
a register can be mutated. Doing it this way means that most of this is a purely mechanical
change. The calls to mutableRegs() are the places where we had to change logic:
- The register allocators needs to know that coalescing with a precolored pinned tmp is free.
- The callee-save handler needs to know that we're not supposed to save/restore pinned registers.
Note that in this scheme, pinned registers are simply registers that do not appear in
regsInPriorityOrder(). This means, for example, that we will now say that FP is pinned. So,
this means that you can also pin registers by calling setRegsInPriorityOrder() and passing a
vector that excludes some registers. More generally, this means that clients can now tweak
the register allocator's register preferences, since the ordering in that list reflects the
order in which the allocator will try registers.
- CMakeLists.txt:
- JavaScriptCore.xcodeproj/project.pbxproj:
- b3/B3Procedure.cpp:
(JSC::B3::Procedure::pinRegister):
- b3/B3Procedure.h:
- b3/air/AirCode.cpp:
(JSC::B3::Air::Code::Code):
(JSC::B3::Air::Code::setRegsInPriorityOrder):
(JSC::B3::Air::Code::pinRegister):
- b3/air/AirCode.h:
(JSC::B3::Air::Code::regsInPriorityOrder):
(JSC::B3::Air::Code::mutableRegs):
(JSC::B3::Air::Code::isPinned):
(JSC::B3::Air::Code::regsInPriorityOrderImpl):
(JSC::B3::Air::Code::proc): Deleted.
- b3/air/AirEmitShuffle.cpp:
(JSC::B3::Air::emitShuffle):
- b3/air/AirEmitShuffle.h:
- b3/air/AirHandleCalleeSaves.cpp:
(JSC::B3::Air::handleCalleeSaves):
- b3/air/AirIteratedRegisterCoalescing.cpp:
- b3/air/AirLowerAfterRegAlloc.cpp:
(JSC::B3::Air::lowerAfterRegAlloc):
- b3/air/AirRegisterPriority.cpp: Removed.
- b3/air/AirRegisterPriority.h: Removed.
- b3/air/AirSpillEverything.cpp:
(JSC::B3::Air::spillEverything):
- b3/air/testair.cpp:
(JSC::B3::Air::testShuffleBroadcastAllRegs):
(JSC::B3::Air::testShuffleShiftAllRegs):
(JSC::B3::Air::testShuffleRotateAllRegs):
(JSC::B3::Air::testShuffleShiftMemoryAllRegs):
(JSC::B3::Air::testShuffleShiftMemoryAllRegs64):
(JSC::B3::Air::testShuffleShiftMemoryAllRegsMixedWidth):
(JSC::B3::Air::testShuffleRotateMemoryAllRegs64):
(JSC::B3::Air::testShuffleRotateMemoryAllRegsMixedWidth):
- b3/testb3.cpp:
(JSC::B3::testPinRegisters):
(JSC::B3::run):
- jit/RegisterSet.h:
- 10:11 AM Changeset in webkit [207003] by
-
- 2 edits in trunk/Source/WebCore
Correct typo in comment (patining -> painting).
- platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::centerLineAndCutOffCorners):
- 10:02 AM Changeset in webkit [207002] by
-
- 7 edits in trunk/Source/WebCore
Reduce code duplication between CG, Cairo, and Direct2D
https://bugs.webkit.org/show_bug.cgi?id=163157
Reviewed by Darin Adler.
Move a number of routines that have been copied-and-pasted to different
platform files into the main GraphicsContext.cpp file.
No new tests because there is no change in behavior.
- platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::dashedLineCornerWidthForStrokeWidth): Added.
(WebCore::GraphicsContext::dashedLinePatternWidthForStrokeWidth): Added.
(WebCore::GraphicsContext::dashedLinePatternOffsetForPatternAndStrokeWidth): Added.
(WebCore::GraphicsContext::centerLineAndCutOffCorners): Added.
- platform/graphics/GraphicsContext.h:
- platform/graphics/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::drawLine): Call new helper function.
- platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::drawLine): Ditto.
- platform/graphics/win/GraphicsContextDirect2D.cpp:
(WebCore::GraphicsContext::drawLine): Ditto.
- 10:00 AM Changeset in webkit [207001] by
-
- 2 edits in trunk/LayoutTests
Marking http/tests/xmlhttprequest/onabort-response-getters.html as flaky on ios-simulator.
https://bugs.webkit.org/show_bug.cgi?id=162647
Unreviewed test gardening.
- platform/ios-simulator/TestExpectations:
- 9:45 AM Changeset in webkit [207000] by
-
- 3 edits in trunk/Source/JavaScriptCore
B3 should know about mutable pinned registers
https://bugs.webkit.org/show_bug.cgi?id=163172
Reviewed by Keith Miller.
If we have mutable pinned registers then we need to know which operations mutate them. At
first I considered making this into a heap range thing, but I think that this would be very
confusing. Also, in the future, we might want to make Effects track register sets of
clobbered registers (see bug 163173).
- b3/B3Effects.cpp:
(JSC::B3::Effects::interferes):
(JSC::B3::Effects::operator==):
(JSC::B3::Effects::dump):
- b3/B3Effects.h:
(JSC::B3::Effects::forCall):
(JSC::B3::Effects::mustExecute):
- 9:23 AM Changeset in webkit [206999] by
-
- 406 edits15 copies3 moves109 adds2 deletes in trunk/LayoutTests
Sync web-platform-tests up to revision 33f4da1
https://bugs.webkit.org/show_bug.cgi?id=163205
Patch by Youenn Fablet <youennf@gmail.com> on 2016-10-10
Reviewed by Alex Christensen.
LayoutTests/imported/w3c:
- resources/ImportExpectations:
- resources/TestRepositories:
- resources/resource-files.json:
- resources/web-platform-tests-modules.json:
- web-platform-tests/IndexedDB/OWNERS: Added.
- web-platform-tests/IndexedDB/README.md: Added.
- web-platform-tests/IndexedDB/abort-in-initial-upgradeneeded.html:
- web-platform-tests/IndexedDB/close-in-upgradeneeded.html:
- web-platform-tests/IndexedDB/cursor-overloads.htm:
- web-platform-tests/IndexedDB/idb_binary_key_conversion-expected.txt: Added.
- web-platform-tests/IndexedDB/idb_binary_key_conversion.htm: Added.
- web-platform-tests/IndexedDB/idb_webworkers.htm:
- web-platform-tests/IndexedDB/idbcursor-advance-continue-async.htm:
- web-platform-tests/IndexedDB/idbcursor-advance-invalid.htm:
- web-platform-tests/IndexedDB/idbcursor-advance.htm:
- web-platform-tests/IndexedDB/idbcursor-continue.htm:
- web-platform-tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order-expected.txt: Added.
- web-platform-tests/IndexedDB/idbcursor-continuePrimaryKey-exception-order.htm: Added.
- web-platform-tests/IndexedDB/idbcursor-direction-index-keyrange.htm:
- web-platform-tests/IndexedDB/idbcursor-direction-index.htm:
- web-platform-tests/IndexedDB/idbcursor-direction-objectstore-keyrange.htm:
- web-platform-tests/IndexedDB/idbcursor-direction-objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor-direction.htm:
- web-platform-tests/IndexedDB/idbcursor-key.htm:
- web-platform-tests/IndexedDB/idbcursor-primarykey.htm:
- web-platform-tests/IndexedDB/idbcursor-reused.htm:
- web-platform-tests/IndexedDB/idbcursor-source.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index2.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index3.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index5.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index6.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index7.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index8.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_index9.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_objectstore2.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_objectstore3.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_objectstore4.htm:
- web-platform-tests/IndexedDB/idbcursor_advance_objectstore5.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index2.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index3.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index4.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index5.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index6.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index7.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_index8.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_invalid.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore2.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore3.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore4.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore5.htm:
- web-platform-tests/IndexedDB/idbcursor_continue_objectstore6.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_index.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_index2.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_index3.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_index4.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_index5.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_objectstore2.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_objectstore3.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_objectstore4.htm:
- web-platform-tests/IndexedDB/idbcursor_delete_objectstore5.htm:
- web-platform-tests/IndexedDB/idbcursor_iterating.htm:
- web-platform-tests/IndexedDB/idbcursor_iterating_index.htm:
- web-platform-tests/IndexedDB/idbcursor_iterating_index2.htm:
- web-platform-tests/IndexedDB/idbcursor_iterating_objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor_iterating_objectstore2.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index2.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index3.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index4.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index5.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index6.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index7.htm:
- web-platform-tests/IndexedDB/idbcursor_update_index8-expected.txt: Added.
- web-platform-tests/IndexedDB/idbcursor_update_index8.htm: Added.
- web-platform-tests/IndexedDB/idbcursor_update_objectstore.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore2.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore3.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore4.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore5.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore6.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore7.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore8.htm:
- web-platform-tests/IndexedDB/idbcursor_update_objectstore9-expected.txt: Added.
- web-platform-tests/IndexedDB/idbcursor_update_objectstore9.htm: Added.
- web-platform-tests/IndexedDB/idbdatabase_close.htm:
- web-platform-tests/IndexedDB/idbdatabase_close2.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore-createIndex-emptyname.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore10-1000ends.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore10-emptyname.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore11.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore2.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore3.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore4.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore5.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore6.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore7.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore8-parameters.htm:
- web-platform-tests/IndexedDB/idbdatabase_createObjectStore9-invalidparameters.htm:
- web-platform-tests/IndexedDB/idbdatabase_deleteObjectStore.htm:
- web-platform-tests/IndexedDB/idbdatabase_deleteObjectStore2.htm:
- web-platform-tests/IndexedDB/idbdatabase_deleteObjectStore3.htm:
- web-platform-tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm:
- web-platform-tests/IndexedDB/idbdatabase_transaction.htm:
- web-platform-tests/IndexedDB/idbdatabase_transaction2.htm:
- web-platform-tests/IndexedDB/idbdatabase_transaction3.htm:
- web-platform-tests/IndexedDB/idbdatabase_transaction4.htm:
- web-platform-tests/IndexedDB/idbdatabase_transaction5.htm:
- web-platform-tests/IndexedDB/idbfactory_cmp.htm:
- web-platform-tests/IndexedDB/idbfactory_cmp2.htm:
- web-platform-tests/IndexedDB/idbfactory_cmp3-expected.txt: Added.
- web-platform-tests/IndexedDB/idbfactory_cmp3.htm: Added.
- web-platform-tests/IndexedDB/idbfactory_cmp4-expected.txt: Added.
- web-platform-tests/IndexedDB/idbfactory_cmp4.htm: Added.
- web-platform-tests/IndexedDB/idbfactory_deleteDatabase.htm:
- web-platform-tests/IndexedDB/idbfactory_deleteDatabase2.htm:
- web-platform-tests/IndexedDB/idbfactory_deleteDatabase3.htm:
- web-platform-tests/IndexedDB/idbfactory_deleteDatabase4.htm:
- web-platform-tests/IndexedDB/idbfactory_open.htm:
- web-platform-tests/IndexedDB/idbfactory_open10.htm:
- web-platform-tests/IndexedDB/idbfactory_open11.htm:
- web-platform-tests/IndexedDB/idbfactory_open12.htm:
- web-platform-tests/IndexedDB/idbfactory_open2.htm:
- web-platform-tests/IndexedDB/idbfactory_open3.htm:
- web-platform-tests/IndexedDB/idbfactory_open4.htm:
- web-platform-tests/IndexedDB/idbfactory_open5.htm:
- web-platform-tests/IndexedDB/idbfactory_open6.htm:
- web-platform-tests/IndexedDB/idbfactory_open7.htm:
- web-platform-tests/IndexedDB/idbfactory_open8.htm:
- web-platform-tests/IndexedDB/idbfactory_open9.htm:
- web-platform-tests/IndexedDB/idbindex-multientry-arraykeypath.htm:
- web-platform-tests/IndexedDB/idbindex-multientry-big.htm:
- web-platform-tests/IndexedDB/idbindex-multientry.htm:
- web-platform-tests/IndexedDB/idbindex-rename-abort-expected.txt: Added.
- web-platform-tests/IndexedDB/idbindex-rename-abort.html: Added.
- web-platform-tests/IndexedDB/idbindex-rename-errors-expected.txt: Added.
- web-platform-tests/IndexedDB/idbindex-rename-errors.html: Added.
- web-platform-tests/IndexedDB/idbindex-rename-expected.txt: Added.
- web-platform-tests/IndexedDB/idbindex-rename.html: Added.
- web-platform-tests/IndexedDB/idbindex_count.htm:
- web-platform-tests/IndexedDB/idbindex_count2.htm:
- web-platform-tests/IndexedDB/idbindex_count3.htm:
- web-platform-tests/IndexedDB/idbindex_count4.htm:
- web-platform-tests/IndexedDB/idbindex_get.htm:
- web-platform-tests/IndexedDB/idbindex_get2.htm:
- web-platform-tests/IndexedDB/idbindex_get3.htm:
- web-platform-tests/IndexedDB/idbindex_get4.htm:
- web-platform-tests/IndexedDB/idbindex_get5.htm:
- web-platform-tests/IndexedDB/idbindex_get6.htm:
- web-platform-tests/IndexedDB/idbindex_get7-expected.txt:
- web-platform-tests/IndexedDB/idbindex_get7.htm:
- web-platform-tests/IndexedDB/idbindex_get8-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_get7-expected.txt.
- web-platform-tests/IndexedDB/idbindex_get8.htm: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_get7.htm.
- web-platform-tests/IndexedDB/idbindex_getAll-expected.txt: Added.
- web-platform-tests/IndexedDB/idbindex_getAll.html: Added.
- web-platform-tests/IndexedDB/idbindex_getAllKeys-expected.txt: Added.
- web-platform-tests/IndexedDB/idbindex_getAllKeys.html: Added.
- web-platform-tests/IndexedDB/idbindex_getKey.htm:
- web-platform-tests/IndexedDB/idbindex_getKey2.htm:
- web-platform-tests/IndexedDB/idbindex_getKey3.htm:
- web-platform-tests/IndexedDB/idbindex_getKey4.htm:
- web-platform-tests/IndexedDB/idbindex_getKey5.htm:
- web-platform-tests/IndexedDB/idbindex_getKey6.htm:
- web-platform-tests/IndexedDB/idbindex_getKey7-expected.txt:
- web-platform-tests/IndexedDB/idbindex_getKey7.htm:
- web-platform-tests/IndexedDB/idbindex_getKey8-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_getKey7-expected.txt.
- web-platform-tests/IndexedDB/idbindex_getKey8.htm: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_getKey7.htm.
- web-platform-tests/IndexedDB/idbindex_indexNames.htm:
- web-platform-tests/IndexedDB/idbindex_openCursor.htm:
- web-platform-tests/IndexedDB/idbindex_openCursor2-expected.txt:
- web-platform-tests/IndexedDB/idbindex_openCursor2.htm:
- web-platform-tests/IndexedDB/idbindex_openCursor3-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openCursor2-expected.txt.
- web-platform-tests/IndexedDB/idbindex_openCursor3.htm: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openCursor2.htm.
- web-platform-tests/IndexedDB/idbindex_openKeyCursor.htm:
- web-platform-tests/IndexedDB/idbindex_openKeyCursor2.htm:
- web-platform-tests/IndexedDB/idbindex_openKeyCursor3-expected.txt:
- web-platform-tests/IndexedDB/idbindex_openKeyCursor3.htm:
- web-platform-tests/IndexedDB/idbindex_openKeyCursor4-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openKeyCursor3-expected.txt.
- web-platform-tests/IndexedDB/idbindex_openKeyCursor4.htm: Copied from LayoutTests/imported/w3c/web-platform-tests/IndexedDB/idbindex_openKeyCursor3.htm.
- web-platform-tests/IndexedDB/idbkeyrange-includes-expected.txt: Added.
- web-platform-tests/IndexedDB/idbkeyrange-includes.htm: Added.
- web-platform-tests/IndexedDB/idbkeyrange.htm:
- web-platform-tests/IndexedDB/idbkeyrange_incorrect.htm:
- web-platform-tests/IndexedDB/idbobjectstore-rename-abort-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore-rename-abort.html: Added.
- web-platform-tests/IndexedDB/idbobjectstore-rename-errors-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore-rename-errors.html: Added.
- web-platform-tests/IndexedDB/idbobjectstore-rename-store-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore-rename-store.html: Added.
- web-platform-tests/IndexedDB/idbobjectstore_add.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add10.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add11.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add12.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add13.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add14.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add15.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add16.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add5.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add6.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add7.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add8.htm:
- web-platform-tests/IndexedDB/idbobjectstore_add9.htm:
- web-platform-tests/IndexedDB/idbobjectstore_clear.htm:
- web-platform-tests/IndexedDB/idbobjectstore_clear2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_clear3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_clear4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_count.htm:
- web-platform-tests/IndexedDB/idbobjectstore_count2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_count3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_count4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex10.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex11.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex12.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex13.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex14-exception_order-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore_createIndex14-exception_order.htm: Added.
- web-platform-tests/IndexedDB/idbobjectstore_createIndex2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex3-usable-right-away.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex4-deleteIndex-event_order.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex5-emptykeypath.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex6-event_order.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex7-event_order.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.htm:
- web-platform-tests/IndexedDB/idbobjectstore_createIndex9-emptyname.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete5.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete6.htm:
- web-platform-tests/IndexedDB/idbobjectstore_delete7.htm:
- web-platform-tests/IndexedDB/idbobjectstore_deleteIndex.htm:
- web-platform-tests/IndexedDB/idbobjectstore_deleted.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get5.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get6.htm:
- web-platform-tests/IndexedDB/idbobjectstore_get7.htm:
- web-platform-tests/IndexedDB/idbobjectstore_getAll-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore_getAll.html: Added.
- web-platform-tests/IndexedDB/idbobjectstore_getAllKeys-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore_getAllKeys.html: Added.
- web-platform-tests/IndexedDB/idbobjectstore_index.htm:
- web-platform-tests/IndexedDB/idbobjectstore_openCursor.htm:
- web-platform-tests/IndexedDB/idbobjectstore_openCursor_invalid.htm:
- web-platform-tests/IndexedDB/idbobjectstore_openKeyCursor-expected.txt: Added.
- web-platform-tests/IndexedDB/idbobjectstore_openKeyCursor.htm: Added.
- web-platform-tests/IndexedDB/idbobjectstore_put.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put10.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put11.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put12.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put13.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put14.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put15.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put16.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put2.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put3.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put4.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put5.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put6.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put7.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put8.htm:
- web-platform-tests/IndexedDB/idbobjectstore_put9.htm:
- web-platform-tests/IndexedDB/idbtransaction-oncomplete.htm:
- web-platform-tests/IndexedDB/idbtransaction.htm:
- web-platform-tests/IndexedDB/idbtransaction_abort.htm:
- web-platform-tests/IndexedDB/idbtransaction_objectStoreNames-expected.txt: Added.
- web-platform-tests/IndexedDB/idbtransaction_objectStoreNames.html: Added.
- web-platform-tests/IndexedDB/idbversionchangeevent.htm:
- web-platform-tests/IndexedDB/index_sort_order.htm:
- web-platform-tests/IndexedDB/interfaces.html:
- web-platform-tests/IndexedDB/interfaces.idl:
- web-platform-tests/IndexedDB/interfaces.worker.js:
(request.onload):
- web-platform-tests/IndexedDB/key_invalid.htm:
- web-platform-tests/IndexedDB/key_valid.html:
- web-platform-tests/IndexedDB/keygenerator-constrainterror.htm:
- web-platform-tests/IndexedDB/keygenerator-overflow.htm:
- web-platform-tests/IndexedDB/keygenerator.htm:
- web-platform-tests/IndexedDB/keyorder.htm:
- web-platform-tests/IndexedDB/keypath.htm:
- web-platform-tests/IndexedDB/keypath_invalid.htm:
- web-platform-tests/IndexedDB/keypath_maxsize.htm:
- web-platform-tests/IndexedDB/list_ordering.htm:
- web-platform-tests/IndexedDB/objectstore_keyorder.htm:
- web-platform-tests/IndexedDB/request_bubble-and-capture.htm:
- web-platform-tests/IndexedDB/string-list-ordering.htm:
- web-platform-tests/IndexedDB/support-promises.js: Added.
(const.databaseName):
(const.requestWatcher):
(const.migrateDatabase):
(const.createDatabase):
(const.openDatabase):
(const.createBooksStore):
(const.createNotBooksStore):
(const.checkStoreIndexes):
(const.checkStoreGenerator):
(const.checkStoreContents):
(const.checkAuthorIndexContents):
(const.checkTitleIndexContents):
- web-platform-tests/IndexedDB/support.js:
(indexeddb_test):
(add_completion_callback): Deleted.
(fail): Deleted.
- web-platform-tests/IndexedDB/transaction-abort-generator-revert-expected.txt: Added.
- web-platform-tests/IndexedDB/transaction-abort-generator-revert.html: Added.
- web-platform-tests/IndexedDB/transaction-abort-index-metadata-revert-expected.txt: Added.
- web-platform-tests/IndexedDB/transaction-abort-index-metadata-revert.html: Added.
- web-platform-tests/IndexedDB/transaction-abort-multiple-metadata-revert-expected.txt: Added.
- web-platform-tests/IndexedDB/transaction-abort-multiple-metadata-revert.html: Added.
- web-platform-tests/IndexedDB/transaction-abort-object-store-metadata-revert-expected.txt: Added.
- web-platform-tests/IndexedDB/transaction-abort-object-store-metadata-revert.html: Added.
- web-platform-tests/IndexedDB/transaction-create_in_versionchange.htm:
- web-platform-tests/IndexedDB/transaction-lifetime-blocked.htm:
- web-platform-tests/IndexedDB/transaction-lifetime-empty-expected.txt: Added.
- web-platform-tests/IndexedDB/transaction-lifetime-empty.html: Added.
- web-platform-tests/IndexedDB/transaction-lifetime.htm:
- web-platform-tests/IndexedDB/transaction-requestqueue.htm:
- web-platform-tests/IndexedDB/transaction_bubble-and-capture.htm:
- web-platform-tests/IndexedDB/value.htm:
- web-platform-tests/IndexedDB/value_recursive.htm:
- web-platform-tests/IndexedDB/w3c-import.log: Added.
- web-platform-tests/IndexedDB/writer-starvation.htm:
- web-platform-tests/README.md:
- web-platform-tests/XMLHttpRequest/abort-after-send-expected.txt:
- web-platform-tests/XMLHttpRequest/abort-after-send.htm:
- web-platform-tests/XMLHttpRequest/abort-during-upload-expected.txt:
- web-platform-tests/XMLHttpRequest/abort-during-upload.htm:
- web-platform-tests/XMLHttpRequest/abort-event-order-expected.txt:
- web-platform-tests/XMLHttpRequest/abort-event-order.htm:
- web-platform-tests/XMLHttpRequest/formdata-foreach-expected.txt: Added.
- web-platform-tests/XMLHttpRequest/formdata-foreach.html: Added.
- web-platform-tests/XMLHttpRequest/interfaces-expected.txt:
- web-platform-tests/XMLHttpRequest/progress-events-response-data-gzip.htm:
- web-platform-tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-1.htm: Added.
- web-platform-tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-2.htm: Added.
- web-platform-tests/XMLHttpRequest/resources/send-after-setting-document-domain-window-helper.js: Added.
(assert_equals):
(assert_throws):
(run_test):
- web-platform-tests/XMLHttpRequest/resources/w3c-import.log:
- web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-event-order.js:
(getNextEvent):
- web-platform-tests/XMLHttpRequest/responsexml-basic-expected.txt:
- web-platform-tests/XMLHttpRequest/responsexml-basic.htm:
- web-platform-tests/XMLHttpRequest/responsexml-document-properties.htm:
- web-platform-tests/XMLHttpRequest/send-no-response-event-order-expected.txt:
- web-platform-tests/XMLHttpRequest/send-response-event-order-expected.txt:
- web-platform-tests/XMLHttpRequest/send-response-event-order.htm:
- web-platform-tests/XMLHttpRequest/send-sync-response-event-order-expected.txt:
- web-platform-tests/XMLHttpRequest/w3c-import.log:
- web-platform-tests/common/get-host-info.sub.js:
(get_port):
(get_host_info): Deleted.
- web-platform-tests/config.json: Added.
- web-platform-tests/custom-elements/CustomElementRegistry.html:
- web-platform-tests/custom-elements/HTMLElement-constructor.html:
- web-platform-tests/custom-elements/adopted-callback-expected.txt:
- web-platform-tests/custom-elements/adopted-callback.html:
- web-platform-tests/custom-elements/attribute-changed-callback-expected.txt:
- web-platform-tests/custom-elements/attribute-changed-callback.html:
- web-platform-tests/custom-elements/connected-callbacks-expected.txt:
- web-platform-tests/custom-elements/connected-callbacks.html:
- web-platform-tests/custom-elements/custom-element-registry/define.html:
- web-platform-tests/custom-elements/disconnected-callbacks-expected.txt:
- web-platform-tests/custom-elements/disconnected-callbacks.html:
- web-platform-tests/custom-elements/htmlconstructor/newtarget.html:
- web-platform-tests/custom-elements/reaction-timing.html:
- web-platform-tests/custom-elements/reactions/Attr.html:
- web-platform-tests/custom-elements/reactions/ChildNode.html:
- web-platform-tests/custom-elements/reactions/DOMTokenList.html:
- web-platform-tests/custom-elements/reactions/Document.html:
- web-platform-tests/custom-elements/reactions/Element.html:
- web-platform-tests/custom-elements/reactions/NamedNodeMap.html:
- web-platform-tests/custom-elements/reactions/Node.html:
- web-platform-tests/custom-elements/reactions/ParentNode.html:
- web-platform-tests/custom-elements/reactions/Range.html:
- web-platform-tests/custom-elements/reactions/resources/reactions.js:
(testNodeConnector):
(testNodeDisconnector):
(testCloner):
- web-platform-tests/custom-elements/resources/custom-elements-helpers.js:
(assert_attribute_log_entry):
(define_new_custom_element.CustomElement):
(define_new_custom_element.CustomElement.prototype.attributeChangedCallback):
(define_new_custom_element.CustomElement.prototype.connectedCallback):
(define_new_custom_element.CustomElement.prototype.disconnectedCallback):
(define_new_custom_element.CustomElement.prototype.adoptedCallback):
(define_new_custom_element.return.takeLog):
(define_new_custom_element):
(document_types.return.create):
(document_types.create):
(document_types.):
(document_types):
(test_with_window): Deleted.
- web-platform-tests/custom-elements/resources/document-types.js: Removed.
- web-platform-tests/custom-elements/resources/w3c-import.log:
- web-platform-tests/diff-manifest.py: Added.
(call):
(get_manifest):
(main):
- web-platform-tests/dom/collections/HTMLCollection-supported-property-indices-expected.txt:
- web-platform-tests/dom/collections/HTMLCollection-supported-property-indices.html:
- web-platform-tests/dom/collections/HTMLCollection-supported-property-names-expected.txt:
- web-platform-tests/dom/collections/HTMLCollection-supported-property-names.html:
- web-platform-tests/dom/events/Event-propagation.html:
- web-platform-tests/dom/interfaces-expected.txt:
- web-platform-tests/dom/lists/DOMTokenList-Iterable-expected.txt: Added.
- web-platform-tests/dom/lists/DOMTokenList-Iterable.html: Added.
- web-platform-tests/dom/lists/DOMTokenList-iteration.html:
- web-platform-tests/dom/lists/w3c-import.log:
- web-platform-tests/dom/nodes/Element-matches-expected.txt:
- web-platform-tests/dom/nodes/Node-childNodes.html:
- web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt:
- web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt:
- web-platform-tests/dom/nodes/selectors.js:
- web-platform-tests/fetch/api/basic/integrity-sharedworker-expected.txt: Added.
- web-platform-tests/fetch/api/basic/integrity-sharedworker.html: Added.
- web-platform-tests/fetch/api/headers/headers-idl-expected.txt:
- web-platform-tests/fetch/api/request/request-idl-expected.txt:
- web-platform-tests/fetch/api/response/response-idl-expected.txt:
- web-platform-tests/html/browsers/history/the-history-interface/non-automated/traverse_the_session_history_unload_prompt_1.html: Removed.
- web-platform-tests/html/browsers/history/the-history-interface/non-automated/w3c-import.log:
- web-platform-tests/html/browsers/history/the-location-interface/location-prototype-setting-expected.txt: Added.
- web-platform-tests/html/browsers/history/the-location-interface/location-prototype-setting.html: Added.
- web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt:
- web-platform-tests/html/browsers/history/the-location-interface/location_hash.html:
- web-platform-tests/html/browsers/history/the-location-interface/location_reload.html:
- web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log:
- web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects-on-new-window-expected.txt:
- web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html:
- web-platform-tests/html/browsers/origin/cross-origin-objects/win-documentdomain.sub.html:
- web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/named-objects-expected.txt:
- web-platform-tests/html/browsers/the-window-object/named-access-on-the-window-object/named-objects.html:
- web-platform-tests/html/dom/documents/dom-tree-accessors/document.forms-expected.txt:
- web-platform-tests/html/dom/documents/dom-tree-accessors/document.forms.html:
- web-platform-tests/html/semantics/embedded-content/the-canvas-element/historical-expected.txt:
- web-platform-tests/html/semantics/embedded-content/the-canvas-element/historical.html:
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html:
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-1.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-2.html: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper-3.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_helper.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3-expected.txt: Added.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping.html.
- web-platform-tests/html/semantics/embedded-content/the-iframe-element/w3c-import.log:
- web-platform-tests/html/semantics/embedded-content/the-img-element/invalid-src-expected.txt:
- web-platform-tests/html/semantics/embedded-content/the-img-element/invalid-src.html:
- web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt:
- web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity.html:
- web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt:
- web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity.html:
- web-platform-tests/html/semantics/forms/constraints/form-validation-validity-stepMismatch.html:
- web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt:
- web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid.html:
- web-platform-tests/html/semantics/forms/the-form-element/form-indexed-element-expected.txt:
- web-platform-tests/html/semantics/forms/the-form-element/form-indexed-element.html:
- web-platform-tests/html/semantics/forms/the-form-element/form-nameditem-expected.txt:
- web-platform-tests/html/semantics/forms/the-form-element/form-nameditem.html:
- web-platform-tests/html/semantics/forms/the-input-element/checkbox.html:
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1a-expected.html: Added.
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1a.html:
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1b-expected.html: Added.
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1b.html:
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1c-expected.html: Added.
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1c.html:
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1d-expected.html: Added.
- web-platform-tests/html/semantics/grouping-content/the-ol-element/reversed-1d.html: Added.
- web-platform-tests/html/semantics/grouping-content/the-ol-element/w3c-import.log:
- web-platform-tests/html/semantics/scripting-1/the-script-element/load-event-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/load-event.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/resources/cross-origin.py: Added.
(main):
- web-platform-tests/html/semantics/scripting-1/the-script-element/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/custom-elements/resources/w3c-import.log.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-crossorigin-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-crossorigin-network.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-crossorigin.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-1.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onerror-insertion-point-2.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point-expected.txt: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-1-helper.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/support/script-onerror-insertion-point-2-helper.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.html: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/support/script-onload-insertion-point-helper.js: Added.
- web-platform-tests/html/semantics/scripting-1/the-script-element/support/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/w3c-import.log.
- web-platform-tests/html/semantics/scripting-1/the-script-element/w3c-import.log:
- web-platform-tests/html/semantics/selectors/pseudo-classes/indeterminate-expected.txt:
- web-platform-tests/html/semantics/selectors/pseudo-classes/indeterminate.html:
- web-platform-tests/html/syntax/serializing-html-fragments/initial-linefeed-pre-expected.txt:
- web-platform-tests/html/syntax/serializing-html-fragments/initial-linefeed-pre.html:
- web-platform-tests/html/syntax/serializing-html-fragments/serializing-expected.txt:
- web-platform-tests/html/syntax/serializing-html-fragments/serializing.html:
- web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt:
- web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log:
- web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval-expected.txt: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout-expected.txt: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval-expected.txt: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout-expected.txt: Added.
- web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html: Added.
- web-platform-tests/media-source/interfaces.html:
- web-platform-tests/media-source/mediasource-avtracks-expected.txt:
- web-platform-tests/media-source/mediasource-remove-expected.txt:
- web-platform-tests/media-source/mediasource-remove.html:
- web-platform-tests/media-source/mediasource-sequencemode-append-buffer.html:
- web-platform-tests/media-source/mediasource-util.js:
(EventExpectationsManager): Deleted.
(EventExpectationsManager.prototype.expectEvent): Deleted.
- web-platform-tests/media-source/mp4/test.mp4:
- web-platform-tests/media-source/webm/test.webm:
- web-platform-tests/resource-timing/resources/gzip_xml.py: Added.
(main):
- web-platform-tests/resource-timing/resources/w3c-import.log:
- web-platform-tests/resource-timing/test_resource_timing-expected.txt:
- web-platform-tests/resource-timing/test_resource_timing.js:
(setup):
(poll_for_stylesheet_load.inner):
(poll_for_stylesheet_load):
(resource_load):
(switch.): Deleted.
(switch.case.string_appeared_here.xmlhttp.onload): Deleted.
(onload): Deleted.
- web-platform-tests/shadow-dom/Document-prototype-adoptNode.html:
- web-platform-tests/shadow-dom/Document-prototype-currentScript.html:
- web-platform-tests/shadow-dom/Document-prototype-importNode.html:
- web-platform-tests/shadow-dom/Element-interface-attachShadow.html:
- web-platform-tests/shadow-dom/Element-interface-shadowRoot-attribute.html:
- web-platform-tests/shadow-dom/Extensions-to-Event-Interface.html:
- web-platform-tests/shadow-dom/HTMLSlotElement-interface.html:
- web-platform-tests/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html:
- web-platform-tests/shadow-dom/Node-prototype-cloneNode.html:
- web-platform-tests/shadow-dom/OWNERS:
- web-platform-tests/shadow-dom/ShadowRoot-interface.html:
- web-platform-tests/shadow-dom/Slotable-interface.html:
- web-platform-tests/shadow-dom/event-composed-path-with-related-target-expected.txt:
- web-platform-tests/shadow-dom/event-composed-path-with-related-target.html:
- web-platform-tests/shadow-dom/event-composed-path.html:
- web-platform-tests/shadow-dom/event-composed.html:
- web-platform-tests/shadow-dom/event-inside-shadow-tree.html:
- web-platform-tests/shadow-dom/event-inside-slotted-node.html:
- web-platform-tests/shadow-dom/event-with-related-target.html:
- web-platform-tests/shadow-dom/leaktests/get-elements.html:
- web-platform-tests/shadow-dom/leaktests/html-collection.html:
- web-platform-tests/shadow-dom/leaktests/window-frames.html:
- web-platform-tests/shadow-dom/scroll-to-the-fragment-in-shadow-tree.html:
- web-platform-tests/shadow-dom/slotchange-event.html:
- web-platform-tests/shadow-dom/slotchange.html:
- web-platform-tests/shadow-dom/slots-fallback.html:
- web-platform-tests/shadow-dom/slots.html:
- web-platform-tests/touch-events/create-touch-touchlist.html:
- web-platform-tests/touch-events/historical.html:
- web-platform-tests/touch-events/touch-globaleventhandler-interface.html:
- web-platform-tests/touch-events/touch-retargeting.html: Added.
- web-platform-tests/touch-events/touch-touchevent-constructor.html:
- web-platform-tests/touch-events/w3c-import.log:
- web-platform-tests/url/interfaces-expected.txt:
- web-platform-tests/w3c-import.log:
LayoutTests:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-checkValidity-expected.txt:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-stepMismatch-expected.txt:
- platform/ios-simulator-wk2/imported/w3c/web-platform-tests/html/semantics/forms/constraints/form-validation-validity-valid-expected.txt:
- platform/mac/imported/w3c/web-platform-tests/media-source/interfaces-expected.txt:
- tests-options.json:
- 9:16 AM Changeset in webkit [206998] by
-
- 2 edits in trunk/Source/WebKit2
[GTK] 2.14.0 Compile Errors: GTK 3.22.1
https://bugs.webkit.org/show_bug.cgi?id=163190
Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2016-10-10
Reviewed by Alex Christensen.
- UIProcess/gtk/AcceleratedBackingStoreX11.cpp: Include gtk.h since we are using gtk_widget_queue_draw().
- 9:01 AM Changeset in webkit [206997] by
-
- 2 edits in trunk/Source/WebKit2
[EFL] ewk_context_preferred_languages has been failed since r206949
https://bugs.webkit.org/show_bug.cgi?id=163211
Patch by Gyuyoung Kim <gyuyoung.kim@navercorp.com> on 2016-10-10
Reviewed by Chris Dumez.
r206949 changed to return value of navigator.language from en-us to en-US
in order to match other browsers and w3c spec. So ewk_context_preferred_languages
needs to change the expected result as well.
- UIProcess/API/efl/tests/test_ewk2_context.cpp:
(TEST_F):
- 8:11 AM Changeset in webkit [206996] by
-
- 2 edits in trunk/Source/WebCore
REGRESSION(r206731): [SOUP] Network process crash in gotHeadersCallback
https://bugs.webkit.org/show_bug.cgi?id=163170
Reviewed by Michael Catanzaro.
Do not assume NetworkingContext is non-null and valid before using it.
- platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::gotHeadersCallback):
(WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
- 6:42 AM Changeset in webkit [206995] by
-
- 4 edits in trunk/Source/WebCore
Images and scripts should be said as clean based on CachedResource::isCORSSameOrigin
https://bugs.webkit.org/show_bug.cgi?id=162390
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Darin Adler.
No observable change of behavior.
Renaming CachedResource::isClean to isCORSSameOrigin to match html spec terminology.
Making use of it to check whether images taint canvas and whether script errors should be sanitized.
Some asserts are added to ensure that a resource fetched using one origin is not reused for another origin.
- dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::sanitizeScriptError):
- html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::initializeStyleSheet):
- html/canvas/CanvasRenderingContext.cpp:
(WebCore::CanvasRenderingContext::wouldTaintOrigin):
- loader/cache/CachedImage.cpp:
(WebCore::CachedImage::isOriginClean):
- loader/cache/CachedResource.cpp:
(WebCore::CachedResource::isCORSSameOrigin):
- loader/cache/CachedResource.h:
- 6:09 AM Changeset in webkit [206994] by
-
- 5 edits2 adds in trunk
[Fetch API] Memory cache should not bypass redirect mode
https://bugs.webkit.org/show_bug.cgi?id=162959
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Darin Adler.
Source/WebCore:
Test: http/tests/fetch/redirectmode-and-preload.html
Ensure reloading of resources if the redirect modes are different between request and cached resource, and
cached resource has redirections.
As a temporary workaround, we activate resource update for raw resources in
shouldUpdateCachedResourceWithCurrentRequest but disable it in canUpdateFromResource.
This allows handling reloading of resources with different redirection mode in canUpdateFromResource.
A future patch should allow loading cached raw resources from other cached raw resources.
- loader/cache/CachedResource.h:
(WebCore::CachedResource::hasRedirections):
- loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::shouldUpdateCachedResourceWithCurrentRequest):
(WebCore::canUpdateFromResource):
(WebCore::CachedResourceLoader::updateCachedResourceWithCurrentRequest):
LayoutTests:
- http/tests/fetch/redirectmode-and-preload-expected.txt: Added.
- http/tests/fetch/redirectmode-and-preload.html: Added.
- http/tests/fetch/resources/redirect-with-cache.php:
- 3:27 AM Changeset in webkit [206993] by
-
- 3 edits in trunk/Tools
W3C test downloader should be able to import specific files/sub-directories in a skipped directory
https://bugs.webkit.org/show_bug.cgi?id=161789
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Ryosuke Niwa.
Removed tests_directory option and corresponding test.
This option was allowing to import a sub-directory from a test repository.
We can readd it if necessary.
Adding support for finer-grained import rules.
Previously skipped directories were fully removed.
Now, directories may be skipped but sub directories of them may be imported.
This currently happens in web-platform-tests repo.
- Scripts/webkitpy/w3c/test_downloader.py:
(TestDownloader._add_test_suite_paths): Removing tests_directory option.
(TestDownloader.copy_tests): Refactoring file copy by generating the list of all directories for which direct files should be imported.
(TestDownloader.copy_tests.should_copy_dir):
(TestDownloader.copy_tests.should_copy_file):
- Scripts/webkitpy/w3c/test_importer_unittest.py:
(TestImporterTest.test_tests_directory): Deleted.
(TestImporterTest.test_skip_test_import): Added.
- 2:03 AM Changeset in webkit [206992] by
-
- 15 edits in trunk/Source/WebCore
Attribute getter binding generated code should use more references
https://bugs.webkit.org/show_bug.cgi?id=163179
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Darin Adler.
No change of behavior.
Using more references in attribute getter generated code since BindingCaller::attribute can do the
pointer-to-references checks once for all.
Needed to update GenerateCallWith and NativeToJSValue to handle the case where references (attribute getters) or
pointers (methods and attribute setters) are to be used.
Future refactoring should allign methods/attribute setters to attribute getters.
- bindings/js/JSDOMBinding.h:
(WebCore::BindingCaller::attribute):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
(GenerateCallWith):
(NativeToJSValue):
(JSValueToNative):
- bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
- bindings/scripts/test/JS/JSTestEventConstructor.cpp:
- bindings/scripts/test/JS/JSTestException.cpp:
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSattribute.cpp:
- 1:33 AM Changeset in webkit [206991] by
-
- 2 edits in trunk/Source/WebCore
Fix Mac Win build after https://trac.webkit.org/changeset/206966
https://bugs.webkit.org/show_bug.cgi?id=163199
Unreviewed.
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
- bindings/js/JSDOMBinding.h: Marking rejectPromiseWithGetterTypeError as WEBCORE_EXPORT.
- 1:19 AM Changeset in webkit [206990] by
-
- 6 edits2 adds in trunk
Enable optimized stylesheet updates in shadow trees
https://bugs.webkit.org/show_bug.cgi?id=163180
Reviewed by Darin Adler.
Source/WebCore:
When we get a new stylesheet (for example when load completes) we invalidate only
those elements in DOM that are affected by the new sheet. This patch makes the
optimization also work in shadow trees.
Test: fast/shadow-dom/scoped-style-invalidation.html
- css/StyleInvalidationAnalysis.cpp:
(WebCore::StyleInvalidationAnalysis::invalidateStyle):
- css/StyleInvalidationAnalysis.h:
- dom/Document.cpp:
(WebCore::Document::didRemoveAllPendingStylesheet):
- style/StyleScope.cpp:
(WebCore::Style::Scope::removePendingSheet):
(WebCore::Style::Scope::analyzeStyleSheetChange):
(WebCore::Style::Scope::updateActiveStyleSheets):
LayoutTests:
- fast/shadow-dom/scoped-style-invalidation-expected.txt: Added.
- fast/shadow-dom/scoped-style-invalidation.html: Added.
- 1:13 AM Changeset in webkit [206989] by
-
- 11 edits in trunk/Source/WebCore
Refactor binding generated casted-this checks for attribute setters
https://bugs.webkit.org/show_bug.cgi?id=163181
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-10
Reviewed by Darin Adler.
No change of behavior.
Covered by existing tests and binding expectations.
Adding support for attribute setter in BindingCaller.
Updating binding generator to make use of it.
Future refactoring should use more reference and rename castedThis to thisObject, like for getters.
- bindings/js/JSDOMBinding.h:
(WebCore::BindingCaller::setAttribute):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
- 12:45 AM Changeset in webkit [206988] by
-
- 4 edits in trunk/Source/WebKit2
NetworkSession: downloads started by startDownload() can fail before starting from the API point of view
https://bugs.webkit.org/show_bug.cgi?id=163107
Reviewed by Alex Christensen.
In the network process we use a PendingDownload in this case, but in the UI process we always have a single
download proxy. If an error happens before the pending download is converted inot a real download, the DidFail
messages is received in the download proxy before the DidStart one. This is problematic at least for the GTK+
API, because it's common to connect to the started signal and connect to all other signals from there, but in
this case the started signal is never emitted, and then the failed one is not handled. This is not a problem for
downloads started by convertTaskToDownload, because in that case those loads are not considered a download by
the UI process when those early errors happen, and then the web page handles them.
- NetworkProcess/Downloads/PendingDownload.cpp:
(WebKit::PendingDownload::PendingDownload): Send DidStart message right after the network load starts like the
non network session code does.
- NetworkProcess/NetworkLoad.cpp:
(WebKit::NetworkLoad::convertTaskToDownload): Send DidStart message now that the normal load has been converted
into a download.
- NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::findPendingDownloadLocation): Do not send DidStart message here.
- 12:28 AM Changeset in webkit [206987] by
-
- 4 edits in trunk/Source/WebKit2
Network Session: PendingDownload is always nullptr in DownloadManager::dataTaskBecameDownloadTask
https://bugs.webkit.org/show_bug.cgi?id=163006
Reviewed by Alex Christensen.
In DownloadManager::dataTaskBecameDownloadTask() we are supposed to have either a pending download, or a network
data task depending on whether the download was started by startDownload() or convertTaskToDownload. However, in
both cases we do have a data task and never a pending download. In the case of startDownload() the pending
download is removed from m_pendingDownloads in willDecidePendingDownloadDestination(). The task is always
added to m_downloadsWaitingForDestination in willDecidePendingDownloadDestination() and to
m_downloadsAfterDestinationDecided in continueDecidePendingDownloadDestination() in both cases.
- NetworkProcess/Downloads/DownloadManager.cpp:
(WebKit::DownloadManager::dataTaskBecameDownloadTask): Add an ASSERT to ensure we don't have a pending download
at this point and that the download is not already in the map. Remove the download from the
m_downloadsAfterDestinationDecided map, but don't check its result because it might not bein that map if
dataTaskBecameDownloadTask is called synchronously from the didReceiveResponse completion handler.
(WebKit::DownloadManager::willDecidePendingDownloadDestination): Do not take the pending download here, wait
until didReceiveResponse completion handler is called.
(WebKit::DownloadManager::continueDecidePendingDownloadDestination): Take the pending download here ensuring
it's alive while the didReceiveResponse completion handler is called. Also remove invalid early return when
either networkDataTask or completionHandler are nullptr because we are using both unconditionally, we should
return early if both are nullptr to avoid crashes. However, we are checking that the download is in the
m_downloadsWaitingForDestination and in that case we should always have both, so better add asserts there. If
the download is already in the map after the completion handler it means that dataTaskBecameDownloadTask() has
alrady been called, so we can just return in that case.
- NetworkProcess/Downloads/DownloadManager.h:
- NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]): Protect the NetworkDataTask that can
be deleted by dataTaskBecameDownloadTask().
- 12:13 AM Changeset in webkit [206986] by
-
- 8 edits in trunk/Source/WebKit2
Share more code between iOS and macOS ViewGestureController
https://bugs.webkit.org/show_bug.cgi?id=163158
Reviewed by Simon Fraser.
Share canSwipeInDirection() and the (unused on Mac) alternate back-forward list mechanism.
Make ViewGestureController operate in terms of WebPageProxy, not WKWebView,
because it shouldn't know anything about WKWebView.
Refactor scrollEventCanBecomeSwipe a bit to be less repetitive.
- UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView setAllowsBackForwardNavigationGestures:]):
- UIProcess/Cocoa/ViewGestureController.cpp:
(WebKit::ViewGestureController::ViewGestureController):
(WebKit::ViewGestureController::setAlternateBackForwardListSourcePage):
(WebKit::ViewGestureController::canSwipeInDirection):
(WebKit::ViewGestureController::gestureControllerForPage): Deleted.
- UIProcess/Cocoa/ViewGestureController.h:
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
- UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::createWeakPtr):
- UIProcess/ios/ViewGestureControllerIOS.mm:
(WebKit::ViewGestureController::beginSwipeGesture):
(WebKit::ViewGestureController::setAlternateBackForwardListSourceView): Deleted.
(WebKit::ViewGestureController::canSwipeInDirection): Deleted.
- UIProcess/mac/ViewGestureControllerMac.mm:
(WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker):
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanBecomeSwipe):
(WebKit::ViewGestureController::PendingSwipeTracker::tryToStartSwipe):
- 12:12 AM Changeset in webkit [206985] by
-
- 3 edits in trunk/Source/WebKit2
[GTK] UIProcess crashes when using Japanese IM
https://bugs.webkit.org/show_bug.cgi?id=163011
We have to reference the current GdkEventKey before we try process it
as later when the lambda body is reached the event could be already
freed.
Patch by Tomas Popela <tpopela@redhat.com> on 2016-10-10
Reviewed by Carlos Garcia Campos.
- UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseKeyPressEvent):
(webkitWebViewBaseKeyReleaseEvent):
- UIProcess/gtk/InputMethodFilter.h:
Use non-copyable Function so we can use WTFMove to pass the event to
lambda.
Oct 9, 2016:
- 11:54 PM Changeset in webkit [206984] by
-
- 9 edits in trunk/Source/WebCore
Move encrypted media from legacy to new DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163194
Reviewed by Youenn Fablet.
- Modules/encryptedmedia/CDM.cpp:
(WebCore::CDM::createSession): Take a reference instead of a pointer.
- Modules/encryptedmedia/CDM.h: Updated for above change.
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp:
(WebCore::WebKitMediaKeySession::create): Take a reference instead of a pointer.
(WebCore::WebKitMediaKeySession::MediaKeySession): Ditto.
(WebCore::WebKitMediaKeySession::~MediaKeySession): Removed unneeded code that
sets m_session to null.
(WebCore::WebKitMediaKeySession::keyRequestTimerFired): Use auto.
(WebCore::WebKitMediaKeySession::update): Use ExceptionOr.
(WebCore::WebKitMediaKeySession::addKeyTimerFired): Use m_keys directly instead
of calling the keys function.
(WebCore::WebKitMediaKeySession::sendError): Set m_error directly instead of
calling the setError function.
(WebCore::WebKitMediaKeySession::mediaKeysStorageDirectory): Use auto.
(WebCore::WebKitMediaKeySession::hasPendingActivity): Check m_session directly
instead of writing !isClosed.
(WebCore::WebKitMediaKeySession::setError): Deleted.
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.h: Use pragma once. Removed
unneeded includes. Changed create to take a reference instead of a pointer.
Made most members and base classes private instead of public. Also removed
a few now-unneeded functions. Made everything that was formerly protected
private instead, since the two are the same in a final class.
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: Removed unneeded comments.
Moved from MayThrowLegacyException to MayThrowException.
- Modules/encryptedmedia/legacy/WebKitMediaKeys.cpp:
(WebCore::WebKitMediaKeys::create): Use ExceptionOr.
(WebCore::WebKitMediaKeys::MediaKeys): Made argument be an rvalue reference.
Also initialize m_mediaElement in the class definition.
(WebCore::WebKitMediaKeys::~MediaKeys): Call detachKeys instead of setKeys(nullptr).
(WebCore::WebKitMediaKeys::createSession): Use ExceptionOr. Also pass reference
insteead of pointer to create. Also removed unneeded separate checks for null
strings in code that already calls isEmpty.
(WebCore::WebKitMediaKeys::isTypeSupported): Removed unneeded checks for null strings
in code that already calls isEmpty.
(WebCore::WebKitMediaKeys::cdmMediaPlayer): Tweaked a bit.
(WebCore::WebKitMediaKeys::cachedKeyForKeyId): Use auto.
- Modules/encryptedmedia/legacy/WebKitMediaKeys.h: Use pragma once. Removed unneeded includes.
Changed cdm() function to return a reference. Initialize m_mediaElement.
Use private instead of protected.
- Modules/encryptedmedia/legacy/WebKitMediaKeys.idl: Use ConstructorMayThrowException
and MayThrowException instead of the legacy versions.
- 11:21 PM Changeset in webkit [206983] by
-
- 20 edits14 moves1 add in trunk
ENABLE_LEGACY_ENCRYPTED_MEDIA interfaces should have a hard-coded WebKit prefix
https://bugs.webkit.org/show_bug.cgi?id=162982
Reviewed by Jer Noble.
Have the Web-exposed interfaces guarded by ENABLE_LEGACY_ENCRYPTED_MEDIA also use
the WebKit prefix in the implementations. This will prevent conflicts between
interfaces with same names in both the legacy API and the future EME API.
Most of the interfaces in this legacy API already used the WebKit prefix when
exposed via JS bindings. The only exception is MediaKeyNeededEvent, which gets
prefixed in this patch.
The interface implementations for this legacy API are also moved under the
Modules/encryptedmedia/legacy/ directory.
No new tests -- covered by existing tests (with the relevant changes reflected
in the updated baselines).
- CMakeLists.txt:
- DerivedSources.cpp:
- DerivedSources.make:
- Modules/encryptedmedia/CDM.cpp:
- Modules/encryptedmedia/CDMSessionClearKey.cpp:
(WebCore::CDMSessionClearKey::generateKeyRequest):
(WebCore::CDMSessionClearKey::update):
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp.
(WebCore::WebKitMediaKeyMessageEvent::WebKitMediaKeyMessageEvent):
(WebCore::WebKitMediaKeyMessageEvent::~WebKitMediaKeyMessageEvent):
(WebCore::WebKitMediaKeyMessageEvent::eventInterface):
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.h.
(WebCore::WebKitMediaKeyMessageEvent::create):
(WebCore::WebKitMediaKeyMessageEvent::createForBindings):
- Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.idl: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.idl.
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.cpp.
(WebCore::WebKitMediaKeyNeededEvent::WebKitMediaKeyNeededEvent):
(WebCore::WebKitMediaKeyNeededEvent::~WebKitMediaKeyNeededEvent):
(WebCore::WebKitMediaKeyNeededEvent::eventInterface):
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.h.
(WebCore::WebKitMediaKeyNeededEvent::create):
(WebCore::WebKitMediaKeyNeededEvent::createForBindings):
- Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.idl: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeyNeededEvent.idl.
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.cpp: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp.
(WebCore::WebKitMediaKeySession::create):
(WebCore::WebKitMediaKeySession::WebKitMediaKeySession):
(WebCore::WebKitMediaKeySession::~WebKitMediaKeySession):
(WebCore::WebKitMediaKeySession::setError):
(WebCore::WebKitMediaKeySession::close):
(WebCore::WebKitMediaKeySession::cachedKeyForKeyId):
(WebCore::WebKitMediaKeySession::sessionId):
(WebCore::WebKitMediaKeySession::generateKeyRequest):
(WebCore::WebKitMediaKeySession::keyRequestTimerFired):
(WebCore::WebKitMediaKeySession::update):
(WebCore::WebKitMediaKeySession::addKeyTimerFired):
(WebCore::WebKitMediaKeySession::sendMessage):
(WebCore::WebKitMediaKeySession::sendError):
(WebCore::WebKitMediaKeySession::mediaKeysStorageDirectory):
(WebCore::WebKitMediaKeySession::hasPendingActivity):
(WebCore::WebKitMediaKeySession::stop):
(WebCore::WebKitMediaKeySession::activeDOMObjectName):
(WebCore::WebKitMediaKeySession::canSuspendForDocumentSuspension):
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.h: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeySession.h.
- Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeySession.idl.
- Modules/encryptedmedia/legacy/WebKitMediaKeys.cpp: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp.
(WebCore::WebKitMediaKeys::create):
(WebCore::WebKitMediaKeys::WebKitMediaKeys):
(WebCore::WebKitMediaKeys::~WebKitMediaKeys):
(WebCore::WebKitMediaKeys::createSession):
(WebCore::WebKitMediaKeys::isTypeSupported):
(WebCore::WebKitMediaKeys::setMediaElement):
(WebCore::WebKitMediaKeys::cdmMediaPlayer):
(WebCore::WebKitMediaKeys::keyAdded):
(WebCore::WebKitMediaKeys::cachedKeyForKeyId):
- Modules/encryptedmedia/legacy/WebKitMediaKeys.h: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeys.h.
- Modules/encryptedmedia/legacy/WebKitMediaKeys.idl: Renamed from Source/WebCore/Modules/encryptedmedia/MediaKeys.idl.
- bindings/js/JSDictionary.cpp:
(WebCore::JSDictionary::convertValue):
- bindings/js/JSDictionary.h:
- dom/EventNames.in:
- dom/EventTargetFactory.in:
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerKeyNeeded):
(WebCore::HTMLMediaElement::setMediaKeys):
- html/HTMLMediaElement.h:
(WebCore::HTMLMediaElement::keys):
- html/HTMLMediaElement.idl:
- html/WebKitMediaKeyError.h: Renamed from Source/WebCore/html/MediaKeyError.h.
(WebCore::WebKitMediaKeyError::create):
(WebCore::WebKitMediaKeyError::WebKitMediaKeyError):
- html/WebKitMediaKeyError.idl: Renamed from Source/WebCore/html/MediaKeyError.idl.
- testing/MockCDM.cpp:
(WebCore::MockCDMSession::generateKeyRequest):
(WebCore::MockCDMSession::update):
- 11:19 PM Changeset in webkit [206982] by
-
- 2 edits in trunk/Source/WebCore
Remove stale ENABLE(ENCRYPTED_MEDIA) code in HTMLMediaElement
https://bugs.webkit.org/show_bug.cgi?id=163111
Reviewed by Alex Christensen.
Remove three method implementations in HTMLMediaElement which had their
declarations and the related WebIDL entries removed in the first ENCRYPTED_MEDIA
purge in r206440.
No new tests -- no changes in behavior.
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::webkitGenerateKeyRequest): Deleted.
(WebCore::HTMLMediaElement::webkitAddKey): Deleted.
(WebCore::HTMLMediaElement::webkitCancelKeyRequest): Deleted.
- 10:34 PM Changeset in webkit [206981] by
-
- 2 edits in trunk/LayoutTests
Unreviewed, EFL Gardening on Oct. 10th - 2
Mark missing test to Skip because the tests aren't supported by EFL yet.
Unskip passing tests and add *PASS* to some flaky tests because I guess
it is still flaky.
Patch by Gyuyoung Kim <gyuyoung.kim@navercorp.com> on 2016-10-09
- platform/efl/TestExpectations:
- 10:22 PM Changeset in webkit [206980] by
-
- 4 edits in trunk/Tools
Make validate-committer-lists show inactive reviewers
https://bugs.webkit.org/show_bug.cgi?id=163193
Reviewed by Sam Weinig.
In preparation for updating contributors.json with the WebKit policy of retiring
inactive reviewers, make validate-committer-lists show the list of reviewers who
have not reviewed in the past year.
This list is computed by grepping the output of 'git log --since=1.year" for
the reviewer line, and looking up reviewers via Contributor.mentioned_in_text(),
which looks for full names, aliases, irc nicks and email addresses.
Support for aliases is added to Contributor. Aliases are alternates
or misspellings of the reviewer's name. Some common aliases were added to
contributors.json by manual examination of "Reviewed by" lines.
- Scripts/validate-committer-lists:
(CommitterListFromGit.possibly_expired_committers):
(CommitterListFromGit):
(CommitterListFromGit.possibly_inactive_reviewers):
(CommitterListFromGit.print_possibly_expired_committers):
(CommitterListFromGit.print_possibly_inactive_reviewers):
- Scripts/webkitpy/common/config/committers.py:
(Contributor.init):
(Contributor.contains_string):
(Contributor.mentioned_in_text):
(Contributor.as_dict):
(Committer.init):
(Reviewer.init):
(CommitterList.load_json):
- Scripts/webkitpy/common/config/contributors.json:
- 8:11 PM Changeset in webkit [206979] by
-
- 24 edits10 adds in trunk
Support InputEvent.inputType for the new InputEvent spec
https://bugs.webkit.org/show_bug.cgi?id=163025
<rdar://problem/28658092>
Reviewed by Darin Adler.
Source/WebCore:
Adds support for the inputType attribute of InputEvent. To do this, we introduce a helper to
map EditActions to inputType names, and also split out ambiguous EditActions (such as
EditActionTyping) into more specific subtypes (such as EditActionTypingDeleteBackward,
EditActionTypingInsertParagraph, etc.), each of which corresponds to an inputType.
In places where we create CompositeEditCommands, we now pass in these specific EditActions
where appropriate, and when dispatchingbeforeinput
andinput
events, we ask the
CompositeEditCommand for its input type name, which it derives from its editingAction.
Tests: fast/events/before-input-prevent-biu.html
fast/events/before-input-prevent-cut.html
fast/events/before-input-prevent-paste.html
fast/events/before-input-prevent-typing.html
fast/events/before-input-prevent-undo.html
- dom/InputEvent.h:
- dom/Node.cpp:
(WebCore::Node::dispatchInputEvent):
- dom/Node.h:
- editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::apply):
(WebCore::CompositeEditCommand::inputEventTypeName):
Allows a CompositeEditCommand to specify the inputType its corresponding
beforeinput
andinput
events
should have.
- editing/CompositeEditCommand.h:
(WebCore::CompositeEditCommand::shouldStopCaretBlinking): Deleted.
- editing/EditAction.h:
- editing/EditCommand.cpp:
(WebCore::inputTypeNameForEditingAction):
- editing/EditCommand.h:
- editing/Editor.cpp:
(WebCore::Editor::willApplyEditing):
(WebCore::Editor::appliedEditing):
(WebCore::Editor::willUnapplyEditing):
(WebCore::Editor::unappliedEditing):
(WebCore::Editor::willReapplyEditing):
(WebCore::Editor::reappliedEditing):
(WebCore::Editor::computeAndSetTypingStyle):
- editing/InsertListCommand.cpp:
(WebCore::InsertListCommand::editingAction):
- editing/InsertListCommand.h:
(WebCore::InsertListCommand::preservesTypingStyle): Deleted.
(WebCore::InsertListCommand::editingAction): Deleted.
- editing/ReplaceRangeWithTextCommand.cpp:
(WebCore::ReplaceRangeWithTextCommand::ReplaceRangeWithTextCommand):
- editing/SpellingCorrectionCommand.cpp:
(WebCore::SpellingCorrectionCommand::SpellingCorrectionCommand):
- editing/TypingCommand.cpp:
(WebCore::editActionForTypingCommand):
(WebCore::TypingCommand::TypingCommand):
(WebCore::TypingCommand::inputEventTypeName):
The editingAction() of a TypingCommand is the first editing action the TypingCommand was initialized using.
Since subsequent typing commands update the last open typing command, we override inputEventTypeName here to
use the last updated editing action rather than the default (initial) editing action.
(WebCore::TypingCommand::willAddTypingToOpenCommand):
(WebCore::TypingCommand::insertTextRunWithoutNewlines):
(WebCore::TypingCommand::insertParagraphSeparator):
- editing/TypingCommand.h:
Source/WebKit/mac:
Accounts for some changes to the EditAction enum in nameForEditAction. See WebCore ChangeLog
entry for more details.
- WebCoreSupport/WebEditorClient.mm:
(undoNameForEditAction):
Source/WebKit/win:
- WebCoreSupport/WebEditorClient.cpp:
(undoNameForEditAction):
Source/WebKit2:
Accounts for some changes to the EditAction enum in nameForEditAction. Some former edit
actions, such as EditActionTyping, have been split out into its more specific subtypes,
so we preserve shipping behavior by treating all of the new subtypes the same way as the
original type.
- UIProcess/WebEditCommandProxy.cpp:
(WebKit::WebEditCommandProxy::nameForEditAction):
LayoutTests:
Adds new layout tests to check that various actions, such as cutting, pasting and undoing can
be prevented via the InputEvent fired in abeforechange
handler.
- fast/events/before-input-prevent-biu-expected.txt: Added.
- fast/events/before-input-prevent-biu.html: Added.
- fast/events/before-input-prevent-cut-expected.txt: Added.
- fast/events/before-input-prevent-cut.html: Added.
- fast/events/before-input-prevent-paste-expected.txt: Added.
- fast/events/before-input-prevent-paste.html: Added.
- fast/events/before-input-prevent-typing-expected.txt: Added.
- fast/events/before-input-prevent-typing.html: Added.
- fast/events/before-input-prevent-undo-expected.txt: Added.
- fast/events/before-input-prevent-undo.html: Added.
- platform/ios-simulator/TestExpectations:
- 7:19 PM Changeset in webkit [206978] by
-
- 2 edits in trunk/LayoutTests
[EFL] Gardening timout tests, failure tests on Oct. 10th.
Unreviewed EFL gardening.
Patch by Gyuyoung Kim <gyuyoung.kim@navercorp.com> on 2016-10-09
- platform/efl/TestExpectations:
- 7:14 PM Changeset in webkit [206977] by
-
- 8 edits in trunk/Source/WebCore
Move ApplePaySession from legacy to new DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163191
Reviewed by Sam Weinig.
- Modules/applepay/ApplePaySession.cpp:
(WebCore::ApplePaySession::create): Use ExceptionOr.
(WebCore::ApplePaySession::ApplePaySession): Moved initialization
of two of the data members to class definition.
(WebCore::ApplePaySession::supportsVersion): Use ExceptionOr.
(WebCore::ApplePaySession::canMakePayments): Ditto.
(WebCore::ApplePaySession::canMakePaymentsWithActiveCard): Ditto.
(WebCore::ApplePaySession::openPaymentSetup): Ditto.
(WebCore::ApplePaySession::begin): Ditto.
(WebCore::ApplePaySession::abort): Ditto.
(WebCore::ApplePaySession::completeMerchantValidation): Ditto.
(WebCore::ApplePaySession::completeShippingMethodSelection): Ditto.
(WebCore::ApplePaySession::completeShippingContactSelection): Ditto.
(WebCore::ApplePaySession::completePaymentMethodSelection): Ditto.
(WebCore::ApplePaySession::completePayment): Ditto.
(WebCore::ApplePaySession::validateMerchant): Use auto and get instead of
using a RefPtr type and * for event dispatching.
(WebCore::ApplePaySession::didAuthorizePayment): Ditto.
(WebCore::ApplePaySession::didSelectShippingMethod): Ditto.
(WebCore::ApplePaySession::didSelectShippingContact): Ditto.
(WebCore::ApplePaySession::didSelectPaymentMethod): Ditto.
(WebCore::ApplePaySession::didCancelPayment): Ditto.
(WebCore::ApplePaySession::paymentCoordinator): Moved dereferencing
inside the downcast.
- Modules/applepay/ApplePaySession.h: Updated for changes above.
- Modules/applepay/ApplePaySession.idl: Use MayThrowException.
- bindings/js/JSApplePaySessionCustom.cpp:
(WebCore::JSApplePaySession::completeShippingMethodSelection):
Use propagateException.
(WebCore::JSApplePaySession::completeShippingContactSelection): Ditto.
(WebCore::JSApplePaySession::completePaymentMethodSelection): Ditto.
- bindings/js/JSDOMBinding.h: Added implementation of toJSBoolean.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateConstructorDefinition): Generate the different arguments for
toJSNewlyCreated when ConstructorMayThrowException is specified that
activate the version of that function that handles exceptions.
- bindings/scripts/IDLAttributes.txt: Added ConstructorMayThrowException.
- 7:13 PM Changeset in webkit [206976] by
-
- 49 edits in trunk/Source/WebCore
Replace all uses of ExceptionCodeWithMessage with WebCore::Exception
https://bugs.webkit.org/show_bug.cgi?id=163178
Reviewed by Sam Weinig.
- Modules/indexeddb/IDBCursor.cpp:
(WebCore::IDBCursor::stringToDirection): Return an Optional instead of
using an ExceptionCode out argument, since this function just needs to
indicate failure, not actually throw an exception.
(WebCore::IDBCursor::update): Return ExceptionOr instead of using an
ExceptionCodeWithMessage out argument.
(WebCore::IDBCursor::advance): Ditto.
(WebCore::IDBCursor::continueFunction): Ditto.
(WebCore::IDBCursor::deleteFunction): Ditto.
- Modules/indexeddb/IDBCursor.h: Updated for above changes.
- Modules/indexeddb/IDBCursor.idl: Sorted extended attributes alphabetically.
Use MayThrowException instead of MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBDatabase.cpp:
(WebCore::IDBDatabase::createObjectStore): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBDatabase::transaction): Ditto.
(WebCore::IDBDatabase::deleteObjectStore): Ditto.
- Modules/indexeddb/IDBDatabase.h: Updated for above changes.
- Modules/indexeddb/IDBDatabase.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBFactory.cpp:
(WebCore::IDBFactory::open): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBFactory::openInternal): Ditto.
(WebCore::IDBFactory::deleteDatabase): Ditto.
(WebCore::IDBFactory::cmp): Ditto.
- Modules/indexeddb/IDBFactory.h: Updated for above changes.
- Modules/indexeddb/IDBFactory.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBIndex.cpp:
(WebCore::IDBIndex::openCursor): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBIndex::count): Ditto.
(WebCore::IDBIndex::doCount): Ditto.
(WebCore::IDBIndex::openKeyCursor): Ditto.
(WebCore::IDBIndex::get): Ditto.
(WebCore::IDBIndex::doGet): Ditto.
(WebCore::IDBIndex::getKey): Ditto.
(WebCore::IDBIndex::doGetKey): Ditto.
- Modules/indexeddb/IDBIndex.h: Updated for above changes.
- Modules/indexeddb/IDBIndex.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBKeyRange.cpp:
(WebCore::IDBKeyRange::only): Return ExceptionOr instead of
using an ExceptionCode out argument.
(WebCore::IDBKeyRange::lowerBound): Ditto.
(WebCore::IDBKeyRange::upperBound): Ditto.
(WebCore::IDBKeyRange::bound): Ditto.
- Modules/indexeddb/IDBKeyRange.h: Updated for above changes.
- Modules/indexeddb/IDBKeyRange.idl: Use MayThrowException instead of
MayThrowLegacyException.
- Modules/indexeddb/IDBObjectStore.cpp:
(WebCore::IDBObjectStore::openCursor): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBObjectStore::get): Ditto.
(WebCore::IDBObjectStore::add): Ditto.
(WebCore::IDBObjectStore::put): Ditto.
(WebCore::IDBObjectStore::putForCursorUpdate): Ditto.
(WebCore::IDBObjectStore::putOrAdd): Ditto.
(WebCore::IDBObjectStore::deleteFunction): Ditto.
(WebCore::IDBObjectStore::doDelete): Ditto.
(WebCore::IDBObjectStore::clear): Ditto.
(WebCore::IDBObjectStore::createIndex): Ditto.
(WebCore::IDBObjectStore::index): Ditto.
(WebCore::IDBObjectStore::deleteIndex): Ditto.
(WebCore::IDBObjectStore::count): Ditto.
(WebCore::IDBObjectStore::doCount): Ditto.
- Modules/indexeddb/IDBObjectStore.h: Updated for above changes.
- Modules/indexeddb/IDBObjectStore.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBRequest.cpp:
(WebCore::IDBRequest::errorCode): Deleted. Was dead code.
(WebCore::IDBRequest::error): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
- Modules/indexeddb/IDBRequest.h: Updated for above changes.
- Modules/indexeddb/IDBRequest.idl: Use GetterMayThrowException instead of
GetterMayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::stringToMode): Return an Optional instead of
using an ExceptionCode out argument, since this function just needs to
indicate failure, not actually throw an exception.
(WebCore::IDBTransaction::db): Tweaked code a bit.
(WebCore::IDBTransaction::error): Return a pointer instead of a RefPtr.
(WebCore::IDBTransaction::objectStore): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBTransaction::abortDueToFailedRequest): Call internalAbort.
(WebCore::IDBTransaction::abort): Return ExceptionOr instead of
using an ExceptionCodeWithMessage out argument.
(WebCore::IDBTransaction::internalAbort): Added a version that asserts
instead of throwing an exception for internal use.
(WebCore::IDBTransaction::stop): Call internalAbort.
- Modules/indexeddb/IDBTransaction.h: Updated for above changes.
- Modules/indexeddb/IDBTransaction.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- Modules/indexeddb/client/IDBConnectionProxy.cpp:
(WebCore::IDBClient::IDBConnectionProxy::openDatabase): Updated to return
a Ref instead of a RefPtr, since the function can never return null.
(WebCore::IDBClient::IDBConnectionProxy::deleteDatabase): Ditto.
- Modules/indexeddb/client/IDBConnectionProxy.h: Updated for above changes.
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
(WebCore::MediaEndpointPeerConnection::setLocalDescriptionTask): Updated
exception handling to use ExceptionOr instead of ExceptionCodeWithMessage.
(WebCore::MediaEndpointPeerConnection::setRemoteDescriptionTask): Ditto.
- Modules/mediastream/MediaEndpointSessionDescription.cpp:
(WebCore::MediaEndpointSessionDescription::create): Ditto.
- Modules/mediastream/MediaEndpointSessionDescription.h: Updated for above change.
- bindings/js/JSDOMBinding.cpp:
(WebCore::createDOMException): Added overload for Exception.
(WebCore::throwDOMException): Deleted overload for ExceptionCodeWithMessage.
Updated code to call the new createDOMException function.
(WebCore::setDOMExceptionSlow): Ditto.
(WebCore::setDOMException): Ditto.
- bindings/js/JSDOMBinding.h: Added overload of createDOMException that takes
an Exception. Deleted functions dealing with ExceptionCodeWithMessage. Fixed
interface of toJSNumber and toJSNullableNumber and implemented toJSNumber.
- bindings/js/JSDOMPromise.cpp:
(WebCore::DeferredPromise::reject): Added overload that takes an Exception.
- bindings/js/JSDOMPromise.h: Updated for above change.
- bindings/js/JSHistoryCustom.cpp:
(WebCore::JSHistory::pushState): Use propagateException to deal with
ExceptionOr instead of ExceptionCodeWithMessage.
(WebCore::JSHistory::replaceState): Ditto.
- bindings/js/JSIDBDatabaseCustom.cpp:
(WebCore::JSIDBDatabase::createObjectStore): Use toJS and
to deal with ExceptionOr rather than setDOMException to deal
with ExceptionCodeWithMessage.
- bindings/js/JSIDBRequestCustom.cpp:
(WebCore::JSIDBRequest::result): Use propagateException and
Exception rather than setDOMException and ExceptionCodeWithMessage.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation): Removed support for GetterMayThrowLegacyExceptionWithMessage,
SetterMayThrowLegacyExceptionWithMessage, and MayThrowLegacyExceptionWithMessage.
(GenerateReturnParameters): Ditto.
(GenerateImplementationFunctionCall): Ditto.
(GenerateConstructorDefinition): Ditto.
- bindings/scripts/IDLAttributes.txt: Removed GetterMayThrowLegacyExceptionWithMessage,
SetterMayThrowLegacyExceptionWithMessage, and MayThrowLegacyExceptionWithMessage.
- bindings/scripts/test/JS/JSTestObj.cpp: Regenerated.
- bindings/scripts/test/TestObj.idl: Removed tests cases for now-removed attributes.
- dom/CustomElementRegistry.idl: Use MayThrowException instead of
MayThrowLegacyExceptionWithMessage.
- dom/ExceptionCode.h: Removed ExceptionCodeWithMessage. Also updated to use pragma
once, removed include of WTFString.h and switched to using instead of typedef.
- history/HistoryItem.h: Return a pointer instead of a RefPtr from stateObject
to cut down a little on unnecessary reference count churn.
- inspector/InspectorIndexedDBAgent.cpp: Updated all the code that uses IDB
classes to use the new versions rather than the old ExceptionCodeWithMessage versions.
- page/DOMWindow.cpp:
(WebCore::DOMWindow::history): Pass a reference instead of a pointer.
- page/History.cpp:
(WebCore::History::History): Take a reference instead of a pointer.
(WebCore::History::length): Tweaked to use a local variable.
(WebCore::History::state): Return a pointer instead of a PassRefPtr.
(WebCore::History::stateInternal): Ditto. Also use early return consistently.
(WebCore::History::isSameAsCurrentState): Updated for above change.
(WebCore::History::stateObjectAdded): Return ExceptionOr rather than taking an
ExceptionCodeWithMessage out argument.
- page/History.h: Use pragma once. Removed some unneeded includes. Marked class final.
Updated for changes above.
- page/History.idl: Use MayThrowException instead of MayThrowLegacyException.
- 7:03 PM Changeset in webkit [206975] by
-
- 5 edits2 adds in trunk
REGRESSION(r165103): labels list doesn't get invalidated when other lists are invalidated at document level
https://bugs.webkit.org/show_bug.cgi?id=163145
Reviewed by Darin Adler.
Source/WebCore:
The bug was caused by Document::invalidateNodeListAndCollectionCaches removing all node lists regardless
of whether they have been invalidated or not.
Fixed the bug by removing only those node lists that got invalidated via LiveNodeList::invalidateCache.
Test: fast/dom/NodeList/form-labels-length.html
- dom/Document.cpp:
(WebCore::Document::Document):
(WebCore::Document::unregisterNodeListForInvalidation): Removed the conditional which allowed removal to
happen while m_listsInvalidatedAtDocument is empty inside invalidateNodeListAndCollectionCaches.
- dom/Document.h:
- dom/Node.cpp:
(WebCore::Document::invalidateNodeListAndCollectionCaches): Just remove the node lists being invalidated via
LiveNodeList's invalidateCache, which calls unregisterNodeListForInvalidation, instead of removing them all.
We make a copy of the list of node lists into a local vector because mutating HashMap while iterating over it
is not a safe operation.
LayoutTests:
Added a regression test.
- fast/dom/NodeList/form-labels-length-expected.txt: Added.
- fast/dom/NodeList/form-labels-length.html: Added.
- 6:16 PM Changeset in webkit [206974] by
-
- 13 edits in trunk/Source/WebCore
Update generated bindings code so that dictionary structures no longer need explicit constructors
https://bugs.webkit.org/show_bug.cgi?id=163188
Reviewed by Darin Adler.
Update generated bindings code so that dictionary structures no longer
need explicit constructors. We now call the default constructor and
then initialize the members one by one.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDictionaryImplementationContent):
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::convertDictionary<TestObj::Dictionary>):
(WebCore::convertDictionary<TestObj::DictionaryThatShouldNotTolerateNull>):
(WebCore::convertDictionary<TestObj::DictionaryThatShouldTolerateNull>):
(WebCore::convertDictionary<AlternateDictionaryName>):
(WebCore::convertDictionary<TestObj::ParentDictionary>):
(WebCore::convertDictionary<TestObj::ChildDictionary>):
- bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp:
(WebCore::convertDictionary<TestStandaloneDictionary>):
- dom/ClipboardEvent.h:
- dom/CustomEvent.h:
- dom/EventInit.h:
(WebCore::EventInit::EventInit): Deleted.
- dom/EventModifierInit.h:
(WebCore::EventModifierInit::EventModifierInit): Deleted.
- dom/KeyboardEvent.cpp:
(WebCore::KeyboardEvent::KeyboardEvent):
- dom/KeyboardEvent.h:
- dom/KeyboardEvent.idl:
- dom/UIEventInit.h:
(WebCore::UIEventInit::UIEventInit): Deleted.
- editing/Editor.cpp:
(WebCore::Editor::dispatchCPPEvent):
- 5:45 PM Changeset in webkit [206973] by
-
- 8 edits in trunk
Convert contributors.json to a flat list
https://bugs.webkit.org/show_bug.cgi?id=163183
Reviewed by Darin Adler.
Make contributors.json easier to maintain by eliminating the big groupings ("Committers", "Reviewers" etc)
and moving that data to a "status" property on each contributor.
Tools:
- Scripts/webkitpy/common/config/committers.py:
(Contributor.eq): Implement this to fix unit tests, now that load_json() is not @memoized.
(Contributor.as_dict): Include status in the dict.
(CommitterList.init): Clean up to make the testing code path more explicit.
(CommitterList.load_json):
(CommitterList.load_test_data):
(CommitterList.as_json):
(Contributor.unicode): Deleted.
- Scripts/webkitpy/common/config/contributors.json:
- Scripts/webkitpy/tool/bot/irc_command_unittest.py:
(IRCCommandTest.test_whois): The ordering here is now alphabetical.
Websites/bugs.webkit.org:
Fix script that does bugzilla autocomplete.
- committers-autocomplete.js:
(statusToType):
(parseCommittersPy):
(parseType): Deleted.
Websites/webkit.org:
Fix script that generates webkit.org/team.
- wp-content/themes/webkit/team.php:
- 5:38 PM Changeset in webkit [206972] by
-
- 7 edits1 add in trunk
[CMake] CMake does not support the dep files for implicit dependency
https://bugs.webkit.org/show_bug.cgi?id=161433
Patch by Fujii Hironori <Fujii Hironori> on 2016-10-09
Reviewed by Brent Fulgham.
Created a Perl script to generate all IDL bindings for CMake.
This script can regenerate outdated bindings by based on the
supplemental dependency and dep files created by
'--write-dependencies' switch of generate-bindings.pl.
add_custom_target is used to invoke the script instead of
add_custom_command because Ninja deletes all output files before
executing the command in case of add_custom_command.
USES_TERMINAL option of add_custom_target has two effects:
1) Not buffering output of the command
2) Invoking the command in the special Ninja pool which inhibits parallel build
One needs to use CMake 3.2 or later to enable this feature.
.:
- Source/cmake/WebKitMacros.cmake (GENERATE_BINDINGS): Included
ProcessorCount. Added a new argument 'target'. Use
add_custom_target instead of add_custom_command. Invoke the new
script.
Source/WebCore:
- CMakeLists.txt: Specified target names for
GENERATE_BINDINGS. Added dependency for the targets.
- bindings/scripts/generate-bindings-all.pl: Added.
Tools:
- DumpRenderTree/CMakeLists.txt: Specified a target name for
GENERATE_BINDINGS. Added dependency for the target.
- WebKitTestRunner/CMakeLists.txt: Ditto.
- 4:11 PM Changeset in webkit [206971] by
-
- 17 edits4 adds in trunk
Update KeyboardEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163176
Reviewed by Darin Adler.
Source/WebCore:
Update KeyboardEvent to stop using legacy [ConstructorTemplate=Event]
and use a proper constructor instead, like in the specification:
Also add support for passing modifierAltGraph / modifierCapsLock
in the inialization dictionary as we support those modifiers via
getModifierState().
No new tests, extended existing test.
- CMakeLists.txt:
- DerivedSources.cpp:
- DerivedSources.make:
- WebCore.xcodeproj/project.pbxproj:
- dom/EventModifierInit.h: Added.
(WebCore::EventModifierInit::EventModifierInit):
- dom/EventModifierInit.idl: Added.
- dom/KeyboardEvent.cpp:
(WebCore::KeyboardEvent::KeyboardEvent):
(WebCore::KeyboardEvent::getModifierState):
- dom/KeyboardEvent.h:
- dom/KeyboardEvent.idl:
- dom/MouseRelatedEvent.cpp:
(WebCore::MouseRelatedEvent::MouseRelatedEvent):
- dom/MouseRelatedEvent.h:
- dom/UIEvent.cpp:
(WebCore::UIEvent::UIEvent):
- dom/UIEvent.h:
(WebCore::UIEvent::create): Deleted.
- dom/UIEventInit.h: Added.
(WebCore::UIEventInit::UIEventInit):
- dom/UIEventInit.idl: Added.
- dom/UIEventWithKeyState.h:
(WebCore::UIEventWithKeyState::altGraphKey):
(WebCore::UIEventWithKeyState::capsLockKey):
(WebCore::UIEventWithKeyState::UIEventWithKeyState):
(WebCore::UIEventWithKeyState::ctrlKey): Deleted.
(WebCore::UIEventWithKeyState::shiftKey): Deleted.
(WebCore::UIEventWithKeyState::altKey): Deleted.
(WebCore::UIEventWithKeyState::metaKey): Deleted.
LayoutTests:
Rebaseline existing test now that the exception message is slightly
different in some cases. Also add test coverage for passing
modifierAltGraph / modifierCapsLock in initialization dictionary.
- fast/events/constructors/keyboard-event-constructor-expected.txt:
- fast/events/constructors/keyboard-event-constructor.html:
- 3:47 PM Changeset in webkit [206970] by
-
- 2 edits in trunk/Tools
Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
https://bugs.webkit.org/show_bug.cgi?id=163177
Follow-up fix.
For unknown reasons, overriding Commiter.dict() caused mysterious test failures.
Rename it to as_dict().
- Scripts/webkitpy/common/config/committers.py:
(Contributor.as_dict):
(CommitterList._contributor_list_to_dict):
(Contributor.dict): Deleted.
- 1:47 PM Changeset in webkit [206969] by
-
- 2 edits in trunk/LayoutTests
[GTK] Miscellaneous unreviewed test gardening
- platform/gtk/TestExpectations:
- 1:46 PM WebKitGTK/Gardening/Calendar edited by
- (diff)
- 12:27 PM WebKitGTK/Gardening/Calendar edited by
- (diff)
- 12:19 PM Changeset in webkit [206968] by
-
- 2 edits in trunk/LayoutTests
[GTK] Skip new custom elements tests, they're all failing
- platform/gtk/TestExpectations:
- 9:34 AM Changeset in webkit [206967] by
-
- 5 edits1 add in trunk/Tools
Add support for canonicalizing contributors.json, and have check-webkit-style check the format.
https://bugs.webkit.org/show_bug.cgi?id=163177
Reviewed by Ryosuke Niwa.
Make it possible to round-trip contributors.json through CommitterList, so we can
support writing out contributors.json in canonical format. This requires saving
the case-preserved email and expertise in Contributor. CommitterList also needs
to be able to generate the "exclusive" lists, since it currently uses lists
that are the union of, say, committers and reviewers.
If contributors.json is malformed (invalid JSON), catch the Exception, report it
and exit rather than allowing the exception to propagate. With an invalid file,
an exception would be thrown before the JSON style checker reached this file, so
the error was not correctly reported.
Add style/checker/committer.py for checking that committers.json has the canonical format.
Add support to validate-committer-lists to dump out the canonical json (-d) or update
the file in-place (-c).
- Scripts/validate-committer-lists:
(CommitterListFromGit._print_three_column_row):
(CommitterListFromGit.possibly_expired_committers):
(CommitterListFromGit):
(CommitterListFromGit.print_possibly_expired_committers):
(main):
- Scripts/webkitpy/common/config/committers.py:
(Contributor.init):
(Contributor.dict):
(Committer.init):
(Reviewer.init):
(CommitterList.load_json):
(CommitterList):
(CommitterList._contributor_list_to_dict):
(CommitterList.as_json):
(CommitterList.reformat_in_place):
(CommitterList._exclusive_contributors):
(CommitterList._exclusive_committers):
(Contributor.matches_glob): Deleted.
(CommitterList.contributors): Deleted.
- Scripts/webkitpy/common/config/contributors.json:
- Scripts/webkitpy/style/checker.py:
(CheckerDispatcher._create_checker):
- Scripts/webkitpy/style/checkers/contributors.py: Added.
(ContributorsChecker):
(ContributorsChecker.init):
(ContributorsChecker.check):
(ContributorsChecker._unidiff_output):
- 12:34 AM Changeset in webkit [206966] by
-
- 9 edits in trunk
Promise attribute getters should reject promises in case of casted-this errors
https://bugs.webkit.org/show_bug.cgi?id=163167
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-09
Reviewed by Darin Adler.
Source/WebCore:
Covered by updated test and binding test.
- bindings/js/JSDOMBinding.cpp:
(WebCore::throwGetterTypeError):
(WebCore::rejectPromiseWithGetterTypeError): Added to reject promises for attribute getters
- bindings/js/JSDOMBinding.h:
(WebCore::BindingCaller::attribute): Introducing promise rejection for type cast errors.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
- bindings/scripts/test/JS/JSTestObj.cpp: Rebased test. As can be seen, only custom promise attributes are supported.
(WebCore::jsTestObjTestReadOnlyPromiseAttribute):
(WebCore::jsTestObjTestReadOnlyPromiseAttributeGetter):
- bindings/scripts/test/TestObj.idl:
LayoutTests:
- fast/text/font-face-set-javascript-expected.txt:
- fast/text/font-face-set-javascript.html:
Oct 8, 2016:
- 9:17 PM Changeset in webkit [206965] by
-
- 8 edits1 add7 deletes in trunk
Source/WebCore:
[Mac] Write WebArchive to the pasteboard when copying image in WebKit
https://bugs.webkit.org/show_bug.cgi?id=163100
Reviewed by Darin Adler.
Write WebArchive to the pasteboard when copying image in WebKit. This
fixes pasting such images to a content editable field in WebKit because
Web archives take priority over RTFD when reading from the pasteboard
in WebKit.
Using RTFD when pasting the image in WebKit was causing issues because:
- The pasted image would not be displayed because our RTFD import code is buggy.
- The pasted image URL was a webkit-fake-url://
- Formatting associated to the image (e.g. inline style) would be lost
No new tests, unskipped existing test on WebKit2.
- editing/Editor.h:
- editing/mac/EditorMac.mm:
(WebCore::Editor::imageInWebArchiveFormat):
(WebCore::Editor::writeImageToPasteboard):
- platform/Pasteboard.h:
- platform/mac/PasteboardMac.mm:
(WebCore::writableTypesForImage):
(WebCore::Pasteboard::write):
(WebCore::Pasteboard::Pasteboard): Deleted.
(WebCore::Pasteboard::createForCopyAndPaste): Deleted.
LayoutTests:
[Mac] Write HTML to the pasteboard when copying image in WebKit
https://bugs.webkit.org/show_bug.cgi?id=163100
Reviewed by Darin Adler.
Convert editing/pasteboard/copy-standalone-image.html into a ref test
and unskip on WebKit2 now that it passes there as well. Before this
patch, the test would fail on WebKit2 (the pasted image would not be
displayed).
- editing/pasteboard/copy-standalone-image-expected.html: Added.
- editing/pasteboard/copy-standalone-image.html:
- platform/gtk/editing/pasteboard/copy-standalone-image-expected.png: Removed.
- platform/gtk/editing/pasteboard/copy-standalone-image-expected.txt: Removed.
- platform/ios-simulator-wk2/editing/pasteboard/copy-standalone-image-expected.png: Removed.
- platform/ios-simulator/editing/pasteboard/copy-standalone-image-expected.txt: Removed.
- platform/mac/editing/pasteboard/copy-standalone-image-expected.png: Removed.
- platform/mac/editing/pasteboard/copy-standalone-image-expected.txt: Removed.
- platform/win/editing/pasteboard/copy-standalone-image-expected.txt: Removed.
- platform/wk2/TestExpectations:
- 8:46 PM Changeset in webkit [206964] by
-
- 13 edits in trunk
Update CustomEvent to stop using legacy [ConstructorTemplate=Event]
https://bugs.webkit.org/show_bug.cgi?id=163174
Reviewed by Darin Adler.
Source/WebCore:
Update CustomEvent to stop using legacy [ConstructorTemplate=Event] and
use an actual constructor instead, like in the specification:
There is a very minor behavior change when explictly passing undefined
as detail value in CustomEventInit. We used to initialize detail to
undefined but we now initialize it to null instead, which is its default
value. The new behavior matches the one of Chrome and Firefox.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateDefaultValue):
(GenerateDictionaryImplementationContent):
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::convertDictionary<TestObj::Dictionary>):
- bindings/scripts/test/TestObj.idl:
- dom/CustomEvent.cpp:
(WebCore::CustomEvent::CustomEvent):
- dom/CustomEvent.h:
- dom/CustomEvent.idl:
- dom/Document.cpp:
(WebCore::Document::createEvent):
- dom/Event.cpp:
(WebCore::Event::Event):
- dom/Event.h:
LayoutTests:
Update existing layout test to reflect minor behavior change.
- fast/events/constructors/custom-event-constructor-expected.txt:
- fast/events/constructors/custom-event-constructor.html:
- 5:03 PM Changeset in webkit [206963] by
-
- 24 edits7 adds in trunk
Add support for ClipboardEvent
https://bugs.webkit.org/show_bug.cgi?id=163164
Reviewed by Darin Adler.
Source/WebCore:
Add support for ClipboardEvent:
Firefox and Chrome both already support this.
This gives us 5 more points on html5test.com.
Tests: editing/pasteboard/clipboard-event.html
fast/events/clipboard-event-constructor.html
- CMakeLists.txt:
- DerivedSources.cpp:
- DerivedSources.make:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSEventCustom.cpp:
(WebCore::toJSNewlyCreated): Deleted.
- bindings/scripts/CodeGeneratorJS.pm:
(WillConvertUndefinedToDefaultParameterValue):
We use [] as implicit default value for dictionary parameters. This change
is so we call convertDictionary<>() even if the parameter is undefined
because we want to pass a struct to the implementation initialized with
the default member values defined in the IDL.
- dom/ClipboardEvent.cpp:
(WebCore::ClipboardEvent::ClipboardEvent):
(WebCore::ClipboardEvent::eventInterface):
- dom/ClipboardEvent.h:
- dom/ClipboardEvent.idl: Added.
- dom/Event.cpp:
(WebCore::Event::Event):
- dom/Event.h:
- dom/Event.idl:
- dom/EventInit.h: Added.
- dom/EventInit.idl: Added.
- dom/EventNames.in:
- dom/MouseEvent.h:
(WebCore::MouseEvent::dataTransfer):
- editing/Editor.cpp:
(WebCore::Editor::dispatchCPPEvent):
LayoutTests:
Extended layout test coverage.
- editing/pasteboard/clipboard-event-expected.txt: Added.
- editing/pasteboard/clipboard-event.html: Added.
- fast/events/clipboard-event-constructor-expected.txt: Added.
- fast/events/clipboard-event-constructor.html: Added.
- fast/xmlhttprequest/xmlhttprequest-get-expected.txt:
- http/tests/workers/worker-importScriptsOnError-expected.txt:
- inspector/model/remote-object-get-properties-expected.txt:
- js/dom/global-constructors-attributes-expected.txt:
- platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt:
- platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
- platform/mac/js/dom/global-constructors-attributes-expected.txt:
- platform/win/js/dom/global-constructors-attributes-expected.txt:
- 4:17 PM Changeset in webkit [206962] by
-
- 2 edits in trunk/LayoutTests
Marking js/regress-141098.html as flaky on mac.
https://bugs.webkit.org/show_bug.cgi?id=163046
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 4:12 PM Changeset in webkit [206961] by
-
- 3 edits in trunk/Source/WebKit2
[GTK] Drop redundant wl_display_flush_clients() call
https://bugs.webkit.org/show_bug.cgi?id=161904
Patch by Emanuele Aina <Emanuele Aina> on 2016-10-08
Reviewed by Michael Catanzaro.
The Wayland GSource::prepare() function already calls
wl_display_flush_clients() at every mainloop iteration, so there's no
need to further call it on Surface::commit().
- UIProcess/gtk/WaylandCompositor.cpp:
(WebKit::WaylandCompositor::Surface::commit):
- UIProcess/gtk/WaylandCompositor.h:
- 4:01 PM Changeset in webkit [206960] by
-
- 54 edits in trunk
Next step on moving to modern way to return DOM exceptions
https://bugs.webkit.org/show_bug.cgi?id=163016
Reviewed by Ryosuke Niwa.
Source/WebCore:
- Modules/fetch/FetchRequest.idl:
Added MayThrowException to initializeWith since it throws an exception.
- bindings/js/JSCallbackData.cpp:
(WebCore::JSCallbackData::invokeCallback):
- bindings/js/JSCustomElementInterface.cpp:
(WebCore::JSCustomElementInterface::invokeCallback):
- bindings/js/JSCustomSQLStatementErrorCallback.cpp:
(WebCore::JSSQLStatementErrorCallback::handleEvent):
- bindings/js/JSCustomXPathNSResolver.cpp:
(WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
- bindings/js/JSDOMBinding.cpp:
(WebCore::reportException):
(WebCore::reportCurrentException):
- bindings/js/JSErrorHandler.cpp:
(WebCore::JSErrorHandler::handleEvent):
- bindings/js/JSEventListener.cpp:
(WebCore::JSEventListener::handleEvent):
- bindings/js/JSMutationCallback.cpp:
(WebCore::JSMutationCallback::call):
- bindings/js/JSNodeFilterCustom.cpp:
(WebCore::JSNodeFilter::acceptNode):
- bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::executeFunctionInContext):
- bindings/js/ScriptController.cpp:
(WebCore::ScriptController::evaluateInWorld):
- bindings/js/WorkerScriptController.cpp:
(WebCore::WorkerScriptController::evaluate):
- inspector/PageScriptDebugServer.cpp:
(WebCore::PageScriptDebugServer::reportException):
Use JSC::Exception explicitly to avoid ambiguity with WebCore::Exception,
or in some cases use auto instead.
- bindings/js/JSDOMBinding.cpp:
(WebCore::hasUnpairedSurrogate): Factored this inline function out of valueToUSVString
for clarity.
(WebCore::createDOMException): Removed unused TRY_TO_CREATE_EXCEPTION macro.
(WebCore::propagateExceptionSlowPath): Added.
(WebCore::propagateException): Added.
(WebCore::setDOMException): Removed overload that takes an exception code and message
string separately; no longer needed.
- bindings/js/JSDOMBinding.h: Include the ExceptionOr header
rather than forward declaring. Added more of the ExceptionOr handling
functions; some just declared and not yet defined. Updated for changes
to ExceptionOr interface. Removed the createDOMException function that takes
only an exception code; not needed outside JSDOMBinding.cpp.
- bindings/js/JSXMLHttpRequestCustom.cpp:
(WebCore::JSXMLHttpRequest::send): Rewrote this to use ExceptionOr instead
of ExceptionCode. Added some FIXMEs as well.
(WebCore::JSXMLHttpRequest::responseText): Ditto.
(WebCore::JSXMLHttpRequest::retrieveResponse): Ditto.
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation): Fixed if statements to follow WebKit coding style
rather than using extra braces. Added call to propagateException for SetterMayThrowException.
(GenerateSerializerFunction): Fixed if statements as above.
(GenerateParametersCheck): Ditto. Also added call to propagateException for functions with
void return type and MayThrowException.
(GenerateReturnParameters): Tweaked coding style a bit.
(addIterableProperties): Fixed if statements as above.
(NativeToJSValue): Added code to handle various cases of GetterMayThrowException
and MayThrowException.
(GenerateConstructorDefinition): Used encodedJSValue() instead of
JSValue::encode(JSValue()), a longer way to say the same thing.
- bindings/scripts/IDLAttributes.txt: Added GetterMayThrowException,
MayThrowException, and SetterMayThrowException.
- bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
- bindings/scripts/test/JS/JSTestEventConstructor.cpp:
- bindings/scripts/test/JS/JSTestException.cpp:
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
- bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
- bindings/scripts/test/JS/JSattribute.cpp:
Regenerated results.
- bindings/scripts/test/TestObj.idl: Added some test cases.
- dom/DOMImplementation.cpp:
(WebCore::DOMImplementation::createDocumentType): Tweaked formatting.
(WebCore::DOMImplementation::createDocument): Ditto.
- dom/DOMImplementation.idl: Added MayThrowException to two functions since
I am abandoning, for now, the ability to throw exceptions without any extended
attribute in the IDL file. This feature may return at some point if we figure
out a way to do it for functions without return values as well as functions with.
- dom/Document.cpp:
(WebCore::Document::exitPointerLock): Rewrote to streamline logic.
(WebCore::Document::pointerLockElement): Ditto.
(WebCore::Document::inputCursor): Added. No need for this to be inlined.
(WebCore::Document::setInputCursor): Changed to take Ref&&.
(WebCore::Document::getSelection): Added. Moved here from TreeScope.
- dom/Document.h: Updated for above changes.
- dom/Document.idl: Tweaked formatting.
- dom/Exception.h: Merged the two constructors into one with a default
argument value, which should be equally efficient. Added releaseMessage function.
Added assertion that this is only created for actual exceptions with non-zero
ExceptionCode. Unlike ExceptionCode, which has a value of 0 which means no
exception, we do not create an Exception if there is no exception.
- dom/ExceptionOr.h: Renamed takeReturnValue to releaseReturnValue. Replaced
exceptionCode and exceptionMessage with releaseException. Added ExceptionOr<void>
specialization.
- dom/TreeScope.cpp:
(WebCore::TreeScope::~TreeScope): Removed code dealing with
m_selection, which is now in Document.
(WebCore::TreeScope::getSelection): Deleted.
- dom/TreeScope.h: Removed DOMSelection.
- page/DOMSelection.cpp:
(WebCore::selectionShadowAncestor): Changed to take a reference rather than
a guaranteed-non-null pointer.
(WebCore::DOMSelection::DOMSelection): Changed to take a Frame& instead of
of a TreeScope*.
(WebCore::DOMSelection::clearTreeScope): Deleted.
(WebCore::DOMSelection::isCollapsed): Updated call to selectionShadowAncestor.
(WebCore::DOMSelection::type): Took out obsolete uneeeded comment. Got rid
of case where this returns a null string. Use ASCIILiteral.
(WebCore::DOMSelection::rangeCount): Streamlined code.
(WebCore::DOMSelection::collapse): Removed redundant check of m_frame for
null which is already handled by the isValidForPosition function.
Removed non-helpful FIXME.
(WebCore::DOMSelection::collapseToEnd): Changed to use ExceptionOr instead of
ExceptionCode.
(WebCore::DOMSelection::collapseToStart): Ditto.
(WebCore::DOMSelection::setBaseAndExtent): Removed redundant check of m_frame
for null which is already handled by the isValidForPosition function. Removed
non-helpful FIXME.
(WebCore::DOMSelection::setPosition): Ditto.
(WebCore::DOMSelection::extend): Changed to use ExceptionOr instead of
ExceptionCode.
(WebCore::DOMSelection::getRangeAt): Ditto.
(WebCore::DOMSelection::isValidForPosition): Changed to return false when
m_frame is null rather than asserting is is non-null and having every caller
check m_frame before calling this.
- page/DOMSelection.h: Use #pragma once. Fix indentation. Removed unneeded
comments. Use ExceptionOr rather than ExceptionCode.
- page/DOMSelection.idl: Move from MayThrowLegacyException to MayThrowException.
- page/DOMWindow.cpp:
(WebCore::DOMWindow::resetDOMWindowProperties): Sorted properties alphabetically
to make it more obvious if any are accidentally omitted or listed twice.
(WebCore::DOMWindow::getSelection): Changed ownership so that the window owns
the selection like all the other objects, rather than having it be owned by the
document instead.
- page/DOMWindow.h: Added m_selection, sorted all the other related properties
alphabetically so it's easy to compare the list here with elsewhere.
- replay/ReplayController.cpp:
(WebCore::ReplayController::frameNavigated): Updated to call setInputCursor
with a reference rather than a pointer.
- xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::responseText): Use ExceptionOr rather than ExceptionCode.
(WebCore::XMLHttpRequest::responseXML): Ditto.
(WebCore::XMLHttpRequest::setTimeout): Ditto.
(WebCore::XMLHttpRequest::setResponseType): Ditto.
(WebCore::XMLHttpRequest::setWithCredentials): Ditto.
(WebCore::XMLHttpRequest::open): Ditto.
(WebCore::XMLHttpRequest::prepareToSend): Changed to return an
Optional<ExceptionOr> to reflect the three different states: an exception,
a value to return without sending, or "continue with the send algorithm".
The old code did this with a boolean plus an exception code. This sounds
confusing but is easy to read at the call sites, so probably OK to keep.
(WebCore::XMLHttpRequest::send): Use ExceptionOr rather than ExceptionCode.
(WebCore::XMLHttpRequest::sendBytesData): Ditto.
(WebCore::XMLHttpRequest::createRequest): Ditto.
(WebCore::XMLHttpRequest::overrideMimeType): Ditto.
(WebCore::XMLHttpRequest::setRequestHeader): Ditto.
- xml/XMLHttpRequest.h: Updated for changes above.
- xml/XMLHttpRequest.idl: Sorted interface extended attributes alphabetically.
Changed from MayThrowLegacyException to MayThrowException.
Source/WebKit/mac:
- DOM/DOMDOMImplementation.mm:
(-[DOMImplementation createDocumentType:publicId:systemId:]): Updated for
name change from takeReturnValue to releaseReturnValue.
(-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
Source/WebKit2:
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
(webkit_dom_dom_implementation_create_document_type): Updated for name change
from takeReturnValue to releaseReturnValue.
(webkit_dom_dom_implementation_create_document): Ditto.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp:
(webkit_dom_dom_selection_collapse_to_end): Use ExceptionOr instead of ExceptionCode.
(webkit_dom_dom_selection_collapse_to_start): Ditto.
(webkit_dom_dom_selection_extend): Ditto.
(webkit_dom_dom_selection_get_range_at): Ditto.
Tools:
- Scripts/do-webcore-rename: Add proposed name change of setDOMException
to propagateException, since this function is primarily used to take an
exception already effectively "thrown" by setting an ExceptionCode out
argument and propagate it into the JavaScript engine's exception machinery.
- 1:42 PM Changeset in webkit [206959] by
-
- 8 edits in trunk/Source/WebKit2
Unreviewed, rolling out r206950.
https://bugs.webkit.org/show_bug.cgi?id=163169
broke an API test (Requested by thorton on #webkit).
Reverted changeset:
"Share more code between iOS and macOS ViewGestureController"
https://bugs.webkit.org/show_bug.cgi?id=163158
http://trac.webkit.org/changeset/206950
- 1:14 PM Changeset in webkit [206958] by
-
- 2 edits in trunk/LayoutTests
Marking http/tests/media/track-in-band-hls-metadata.html as a flaky timeout on mac.
https://bugs.webkit.org/show_bug.cgi?id=140022
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 12:50 PM Changeset in webkit [206957] by
-
- 2 edits in trunk/LayoutTests
Marking storage/indexeddb/key-generator.html as flaky on mac-wk2 debug.
https://bugs.webkit.org/show_bug.cgi?id=161653
Unreviewed test gardening.
- platform/mac-wk2/TestExpectations:
- 12:07 PM Changeset in webkit [206956] by
-
- 22 edits4 deletes in trunk/Source/WebCore
Autogenerate passing union types as part of a functions variadic arguments
https://bugs.webkit.org/show_bug.cgi?id=162919
Reviewed by Darin Adler.
- CMakeLists.txt:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSBindingsAllInOne.cpp:
Remove deleted files.
- bindings/generic/IDLTypes.h:
Switch to use std::reference_wrapper as it's implementation type. We may need more
granularity here in the future, but this will work for now.
- bindings/js/JSCharacterDataCustom.cpp: Removed.
- bindings/js/JSDocumentTypeCustom.cpp: Removed.
- bindings/js/JSNodeOrString.cpp: Removed.
- bindings/js/JSNodeOrString.h: Removed.
- bindings/js/JSDOMBinding.h:
(WebCore::VariadicHelperBase::convert): Deleted.
(WebCore::toArguments): Deleted.
Moved to JSDOMConvert.h and renamed to convertVariadicArguments and make
it work in terms of IDLTypes.
- bindings/js/JSDOMConvert.h:
(WebCore::Converter<IDLInterface<T>>::convert):
(WebCore::VariadicConverterBase::convert):
(WebCore::VariadicConverterBase<IDLInterface<T>>::convert):
(WebCore::convertVariadicArguments):
- bindings/js/JSDocumentCustom.cpp:
(WebCore::JSDocument::prepend): Deleted.
(WebCore::JSDocument::append): Deleted.
- bindings/js/JSDocumentFragmentCustom.cpp:
(WebCore::JSDocumentFragment::prepend): Deleted.
(WebCore::JSDocumentFragment::append): Deleted.
- bindings/js/JSElementCustom.cpp:
(WebCore::JSElement::before): Deleted.
(WebCore::JSElement::after): Deleted.
(WebCore::JSElement::replaceWith): Deleted.
(WebCore::JSElement::prepend): Deleted.
(WebCore::JSElement::append): Deleted.
Remove now generated functions.
- bindings/scripts/CodeGenerator.pm:
(assert):
Add assert to help debugging.
(ParseInterface):
Don't treat union types as interfaces.
(GetFlattenedMemberTypes):
(GetNumberOfNullableMemberTypes):
(GetIDLUnionMemberTypes):
Implement WebIDL algorithms for getting the flattened member list of union, and use it
to construct the c++ IDLType.
(GetBaseIDLType):
(GetIDLType):
Add helper to convert an parsed idlType to a c++ IDLType.
(IsWrapperType):
Don't treat union types as wrappers.
- bindings/scripts/CodeGeneratorJS.pm:
(AddToImplIncludesForIDLType):
Add helper for adding #includes based on a parsed idlType. It recursively handles union types.
(GenerateParametersCheck):
Use the new convertVariadicArguments function to handle all variadic arguments, including
union types.
- bindings/scripts/IDLParser.pm:
(parseDictionaryMember):
(parseAttributeRest):
(parseOptionalOrRequiredArgument):
(parseExceptionField):
Add an idlType to domSignature and populate it.
- bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod13):
(WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicUnionMethod):
- bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
(WebCore::constructJSTestOverloadedConstructors5):
- bindings/scripts/test/TestObj.idl:
Add and update tests.
- dom/ChildNode.idl:
- dom/ParentNode.idl:
Remove Custom extended attribute.
- dom/ContainerNode.cpp:
- dom/ContainerNode.h:
- dom/Node.cpp:
- dom/Node.h:
Switch to using std::reference_wrapper instead of Ref<> for passed in parameters.
- 11:32 AM Changeset in webkit [206955] by
-
- 2 edits in trunk/Source/JavaScriptCore
HasIndexedProperty clobberize rule is wrong for Array::ForceOSRExit
https://bugs.webkit.org/show_bug.cgi?id=159942
<rdar://problem/27328836>
Reviewed by Filip Pizlo.
When HasIndexedProperty has a ForceOSRExit array mode, it should
report to write to side state, like the ForceOSRExit node, and the
other nodes with ForceOSRExit array mode.
- dfg/DFGClobberize.h:
(JSC::DFG::clobberize):
- 7:49 AM Changeset in webkit [206954] by
-
- 10 edits in trunk
[Fetch API] Request constructor should provide exception messages
https://bugs.webkit.org/show_bug.cgi?id=162382
Source/WebCore:
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-08
Reviewed by Darin Adler.
No change of behavior, except that exceptions now have error messages.
Added support of exception messages to ExceptionOr.
Making use of ExceptionOr for Request constructor parameter checking.
- Modules/fetch/FetchRequest.cpp:
(WebCore::setReferrerPolicy):
(WebCore::setMode):
(WebCore::setCredentials):
(WebCore::setCache):
(WebCore::setRedirect):
(WebCore::setMethod):
(WebCore::setReferrer):
(WebCore::buildOptions):
(WebCore::FetchRequest::initializeOptions):
(WebCore::FetchRequest::initializeWith):
- Modules/fetch/FetchRequest.h:
- Modules/fetch/FetchRequest.idl:
- bindings/js/JSDOMBinding.cpp:
(WebCore::setDOMException):
- bindings/js/JSDOMBinding.h:
(WebCore::toJS):
(WebCore::toJSNewlyCreated):
- dom/Exception.h:
(WebCore::Exception::code):
(WebCore::Exception::message):
(WebCore::Exception::Exception):
- dom/ExceptionOr.h:
(WebCore::ExceptionOr<ReturnType>::exceptionMessage):
LayoutTests:
Patch by Youenn Fablet <youennf@gmail.com> on 2016-10-08
Reviewed by Darin Adler.
- fetch/fetch-url-serialization-expected.txt: Rebasing test expectation.
- 6:09 AM Changeset in webkit [206953] by
-
- 27 edits in trunk/Source/WebCore
Refactor binding generated casted-this checks
https://bugs.webkit.org/show_bug.cgi?id=162677
Patch by Youenn Fablet <youenn@apple.com> on 2016-10-08
Reviewed by Darin Adler.
No change of behavior.
Split the attribute getter function in two, one with the signature expected by JSCore and one used after casted-this checks.
The second function takes directly a JSXX object and returns a JSValue instead of an EncodedJSValue.
In the future, the second function should only take references.
Introducing BindingCaller as a way to templatize binding code used to cast thisValue with the desired JSXX value.
This allows implementing the first function using the second function as template parameter.
Introducing JSClass::castForAttribute as a way to encapsulate differences in the way to handle thisValue access.
- bindings/js/JSDOMBinding.h:
(WebCore::BindingCaller::attribute):
- bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader):
(GenerateImplementation):
- bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
- bindings/scripts/test/JS/JSTestActiveDOMObject.h:
- bindings/scripts/test/JS/JSTestEventConstructor.cpp:
- bindings/scripts/test/JS/JSTestEventConstructor.h:
- bindings/scripts/test/JS/JSTestException.cpp:
- bindings/scripts/test/JS/JSTestException.h:
- bindings/scripts/test/JS/JSTestGlobalObject.cpp:
- bindings/scripts/test/JS/JSTestInterface.cpp:
- bindings/scripts/test/JS/JSTestInterface.h:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp:
- bindings/scripts/test/JS/JSTestJSBuiltinConstructor.h:
- bindings/scripts/test/JS/JSTestNode.cpp:
- bindings/scripts/test/JS/JSTestNode.h:
- bindings/scripts/test/JS/JSTestNondeterministic.cpp:
- bindings/scripts/test/JS/JSTestNondeterministic.h:
- bindings/scripts/test/JS/JSTestObj.cpp:
- bindings/scripts/test/JS/JSTestObj.h:
- bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
- bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
- bindings/scripts/test/JS/JSTestTypedefs.cpp:
- bindings/scripts/test/JS/JSTestTypedefs.h:
- bindings/scripts/test/JS/JSattribute.cpp:
- bindings/scripts/test/JS/JSattribute.h:
- 4:54 AM Changeset in webkit [206952] by
-
- 2 edits in trunk/Source/WebCore
Missing include in MediaDescription
https://bugs.webkit.org/show_bug.cgi?id=162873
Reviewed by Xabier Rodriguez-Calvar.
Added missing header.
- platform/MediaDescription.h:
- 1:42 AM Changeset in webkit [206951] by
-
- 24 edits in trunk/Source/WebCore
Move StyleResolver ownership from Document/ShadowRoot to Style::Scope
https://bugs.webkit.org/show_bug.cgi?id=163148
Reviewed by Andreas Kling.
Reduce duplication between Document and ShadowRoot.
- css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue):
- css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::didMutateRules):
- css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::matchHostPseudoClassRules):
(WebCore::ElementRuleCollector::matchSlottedPseudoElementRules):
- css/MediaQueryMatcher.cpp:
(WebCore::MediaQueryMatcher::documentElementUserAgentStyle):
- css/StyleMedia.cpp:
(WebCore::StyleMedia::matchMedium):
- css/parser/SizesAttributeParser.cpp:
(WebCore::SizesAttributeParser::mediaConditionMatches):
- dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::childrenChanged):
(WebCore::Document::isPageBoxVisible):
(WebCore::Document::pageSizeAndMarginsInPixels):
(WebCore::Document::userAgentShadowTreeStyleResolver):
(WebCore::Document::fontsNeedUpdate):
(WebCore::Document::didClearStyleResolver):
(WebCore::Document::updateViewportUnitsOnResize):
(WebCore::Document::createStyleResolver): Deleted.
(WebCore::Document::clearStyleResolver): Deleted.
- dom/Document.h:
(WebCore::Document::styleResolverIfExists): Deleted.
(WebCore::Document::ensureStyleResolver): Deleted.
- dom/Element.cpp:
(WebCore::Element::styleResolver):
- dom/ShadowRoot.cpp:
(WebCore::ShadowRoot::styleResolver): Deleted.
(WebCore::ShadowRoot::styleResolverIfExists): Deleted.
(WebCore::ShadowRoot::resetStyleResolver): Deleted.
- dom/ShadowRoot.h:
- page/DOMWindow.cpp:
(WebCore::DOMWindow::getMatchedCSSRules):
- page/FrameView.cpp:
(WebCore::FrameView::layout):
- page/Page.cpp:
(WebCore::Page::updateStyleForAllPagesAfterGlobalChangeInEnvironment):
- page/PrintContext.cpp:
(WebCore::PrintContext::pageProperty):
- platform/MemoryPressureHandler.cpp:
(WebCore::MemoryPressureHandler::releaseCriticalMemory):
- style/AttributeChangeInvalidation.cpp:
(WebCore::Style::mayBeAffectedByHostStyle):
- style/ClassChangeInvalidation.cpp:
(WebCore::Style::mayBeAffectedByHostStyle):
- style/IdChangeInvalidation.cpp:
(WebCore::Style::mayBeAffectedByHostStyle):
- style/StyleScope.cpp:
(WebCore::Style::Scope::resolver):
(WebCore::Style::Scope::resolverIfExists):
(WebCore::Style::Scope::clearResolver):
(WebCore::Style::Scope::analyzeStyleSheetChange):
(WebCore::Style::Scope::updateActiveStyleSheets):
(WebCore::Style::Scope::updateStyleResolver):
(WebCore::Style::Scope::styleResolver): Deleted.
(WebCore::Style::Scope::styleResolverIfExists): Deleted.
- style/StyleScope.h:
- style/StyleSharingResolver.cpp:
(WebCore::Style::SharingResolver::resolve):
(WebCore::Style::SharingResolver::canShareStyleWithElement):
- style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::Scope::Scope):
(WebCore::Style::TreeResolver::resolve):
- 1:31 AM Changeset in webkit [206950] by
-
- 8 edits in trunk/Source/WebKit2
Share more code between iOS and macOS ViewGestureController
https://bugs.webkit.org/show_bug.cgi?id=163158
Reviewed by Simon Fraser.
Share canSwipeInDirection() and the (unused on Mac) alternate back-forward list mechanism.
Make ViewGestureController operate in terms of WebPageProxy, not WKWebView,
because it shouldn't know anything about WKWebView.
Refactor scrollEventCanBecomeSwipe a bit to be less repetitive.
- UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView setAllowsBackForwardNavigationGestures:]):
- UIProcess/Cocoa/ViewGestureController.cpp:
(WebKit::ViewGestureController::ViewGestureController):
(WebKit::ViewGestureController::setAlternateBackForwardListSourcePage):
(WebKit::ViewGestureController::canSwipeInDirection):
(WebKit::ViewGestureController::gestureControllerForPage): Deleted.
- UIProcess/Cocoa/ViewGestureController.h:
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
- UIProcess/WebPageProxy.h:
(WebKit::WebPageProxy::createWeakPtr):
- UIProcess/ios/ViewGestureControllerIOS.mm:
(WebKit::ViewGestureController::beginSwipeGesture):
(WebKit::ViewGestureController::setAlternateBackForwardListSourceView): Deleted.
(WebKit::ViewGestureController::canSwipeInDirection): Deleted.
- UIProcess/mac/ViewGestureControllerMac.mm:
(WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker):
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanBecomeSwipe):
(WebKit::ViewGestureController::PendingSwipeTracker::tryToStartSwipe):