Timeline
Mar 23, 2017:
- 10:31 PM Changeset in webkit [214336] by
-
- 3 edits in trunk/Source/JavaScriptCore
[JSC] Use WeakRandom for SamplingProfiler interval fluctuation
https://bugs.webkit.org/show_bug.cgi?id=170045
Reviewed by Mark Lam.
It is unnecessary to use cryptographicallyRandomNumber for SamplingProfiler
interval fluctuation. Use WeakRandom instead.
- runtime/SamplingProfiler.cpp:
(JSC::SamplingProfiler::SamplingProfiler):
(JSC::SamplingProfiler::timerLoop):
- runtime/SamplingProfiler.h:
- 10:14 PM Changeset in webkit [214335] by
-
- 2 edits in trunk/Source/WebCore
Update createDataChannel on RTCPeerConnection
https://bugs.webkit.org/show_bug.cgi?id=170044
Reviewed by Youenn Fablet.
- Modules/mediastream/RTCPeerConnection.idl: Change label to USVString.
- 9:53 PM Changeset in webkit [214334] by
-
- 2 edits in trunk/Source/JavaScriptCore
Array.prototype.splice behaves incorrectly when the VM is "having a bad time".
https://bugs.webkit.org/show_bug.cgi?id=170025
<rdar://problem/31228679>
Reviewed by Saam Barati.
- runtime/ArrayPrototype.cpp:
(JSC::copySplicedArrayElements):
(JSC::arrayProtoFuncSplice):
- 8:20 PM Changeset in webkit [214333] by
-
- 15 edits2 deletes in trunk
Revert r213712, caused iPad PLT regression
https://bugs.webkit.org/show_bug.cgi?id=170040
Unreviewed.
Source/WebCore:
A few subtests have big regressions.
- css/StyleResolver.cpp:
(WebCore::StyleResolver::pseudoStyleRulesForElement):
- dom/Document.cpp:
(WebCore::Document::resolveStyle):
(WebCore::Document::updateLayoutIgnorePendingStylesheets):
(WebCore::Document::shouldScheduleLayout):
(WebCore::Document::didRemoveAllPendingStylesheet):
- dom/Document.h:
(WebCore::Document::didLayoutWithPendingStylesheets):
(WebCore::Document::hasNodesWithPlaceholderStyle):
(WebCore::Document::setHasNodesWithPlaceholderStyle):
(WebCore::Document::hasNodesWithNonFinalStyle): Deleted.
(WebCore::Document::setHasNodesWithNonFinalStyle): Deleted.
- html/HTMLFrameSetElement.cpp:
(WebCore::HTMLFrameSetElement::rendererIsNeeded):
- page/FrameView.cpp:
(WebCore::FrameView::qualifiesAsVisuallyNonEmpty):
(WebCore::FrameView::fireLayoutRelatedMilestonesIfNeeded):
- rendering/RenderBlock.cpp:
(WebCore::RenderBlock::paintContents):
- rendering/RenderLayer.cpp:
(WebCore::shouldSuppressPaintingLayer):
- rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::changeRequiresRepaint):
- rendering/style/RenderStyle.h:
(WebCore::RenderStyle::isPlaceholderStyle):
(WebCore::RenderStyle::setIsPlaceholderStyle):
(WebCore::RenderStyle::isNotFinal): Deleted.
(WebCore::RenderStyle::setIsNotFinal): Deleted.
- rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):
- rendering/style/StyleRareNonInheritedData.h:
- style/StyleScope.cpp:
(WebCore::Style::Scope::analyzeStyleSheetChange):
(WebCore::Style::Scope::updateActiveStyleSheets):
- style/StyleTreeResolver.cpp:
(WebCore::Style::makePlaceholderStyle):
(WebCore::Style::TreeResolver::styleForElement):
(WebCore::Style::TreeResolver::resolveElement):
LayoutTests:
- http/tests/incremental/stylesheet-body-incremental-rendering-expected.html: Removed.
- http/tests/incremental/stylesheet-body-incremental-rendering.html: Removed.
- 7:28 PM Changeset in webkit [214332] by
-
- 2 edits in trunk/Websites/bugs.webkit.org
Fix Apache::SizeLimit unshared size limit in mod_perl.pl for bugs.webkit.org
<https://webkit.org/b/169926>
Reviewed by Brent Fulgham.
- mod_perl.pl: Update syntax for setting unshared size
limit, and bump it up another 100 Mb so children don't
respawn as quickly.
- 6:43 PM Changeset in webkit [214331] by
-
- 6 edits1 add in trunk
Dragging on a large image should not revert to a file icon if data interaction is enabled
https://bugs.webkit.org/show_bug.cgi?id=170018
<rdar://problem/31184508>
Reviewed by Tim Horton.
Source/WebCore:
If data interaction is enabled, don't fall back to showing a file icon when initiating a drag on an image element.
New API tests: DataInteractionTests.LargeImageToTargetDiv
DataInteractionTests.AttachmentElementItemProviders
- page/DragController.cpp:
(WebCore::DragController::doImageDrag):
(WebCore::DragController::shouldUseCachedImageForDragImage):
- page/DragController.h:
Tools:
Add new tests for data interaction. LargeImageToTargetDiv verifies the change made in this patch, while
AttachmentElementItemProviders was a test that was previously removed due to <rdar://problem/31038797>.
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WebKit2Cocoa/large-red-square.png: Added.
- TestWebKitAPI/Tests/ios/DataInteractionTests.mm:
(TestWebKitAPI::TEST):
- 6:40 PM Changeset in webkit [214330] by
-
- 9 edits3 adds in trunk/Source/WebCore
Rename RTCIceCandidateEvent to RTCPeerConnectionIceEvent
https://bugs.webkit.org/show_bug.cgi?id=169981
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-23
Reviewed by Eric Carlson.
- CMakeLists.txt:
- DerivedSources.make:
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
- Modules/mediastream/PeerConnectionBackend.cpp:
(WebCore::PeerConnectionBackend::fireICECandidateEvent):
(WebCore::PeerConnectionBackend::doneGatheringCandidates):
- Modules/mediastream/RTCPeerConnection.cpp:
- Modules/mediastream/RTCPeerConnectionIceEvent.cpp: Renamed from Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.cpp.
(WebCore::RTCPeerConnectionIceEvent::create):
(WebCore::RTCPeerConnectionIceEvent::RTCPeerConnectionIceEvent):
(WebCore::RTCPeerConnectionIceEvent::~RTCPeerConnectionIceEvent):
(WebCore::RTCPeerConnectionIceEvent::candidate):
(WebCore::RTCPeerConnectionIceEvent::eventInterface):
- Modules/mediastream/RTCPeerConnectionIceEvent.h: Renamed from Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.h.
- Modules/mediastream/RTCPeerConnectionIceEvent.idl: Renamed from Source/WebCore/Modules/mediastream/RTCIceCandidateEvent.idl.
- WebCore.xcodeproj/project.pbxproj:
- dom/EventNames.in:
- 6:36 PM Changeset in webkit [214329] by
-
- 7 edits1 delete in trunk/Source
window.crypto.getRandomValues() uses the insecure RC4 RNG
https://bugs.webkit.org/show_bug.cgi?id=169623
Reviewed by Alex Christensen.
Source/WebCore:
- PlatformMac.cmake:
- WebCore.xcodeproj/project.pbxproj:
- crypto/CryptoKey.cpp:
(WebCore::CryptoKey::randomData): Use this on Mac now.
- crypto/mac/CryptoKeyMac.cpp: Removed.
- page/Crypto.cpp:
(WebCore::Crypto::getRandomValues): Rollout r214188.
Source/WTF:
Remove the RC4 random generator in favor of using OS randomness for now. This is basically
a merge of https://codereview.chromium.org/1431233002 from Blink, original author "eroman".
- wtf/CryptographicallyRandomNumber.cpp:
(WTF::cryptographicallyRandomNumber):
(WTF::cryptographicallyRandomValues):
(): Deleted.
- 5:07 PM Changeset in webkit [214328] by
-
- 2 edits in trunk/Tools
Update WinCairoRequirements.zip
https://bugs.webkit.org/show_bug.cgi?id=169950
Patch by Fujii Hironori <Fujii Hironori> on 2017-03-23
Reviewed by Alex Christensen.
- Scripts/update-webkit-wincairo-libs: Replace $winCairoLibsURL.
- 4:51 PM Changeset in webkit [214327] by
-
- 3 edits2 adds in trunk
SVG animations are not paused when their <svg> element is removed from the document
https://bugs.webkit.org/show_bug.cgi?id=170030
<rdar://problem/31230252>
Reviewed by Dean Jackson.
Source/WebCore:
SVG animations were not paused when their <svg> element was removed from the document.
This patch fixes the issue.
Test: svg/animations/animations-paused-when-removed-from-document.html
- svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::insertedInto):
(WebCore::SVGSVGElement::removedFrom):
LayoutTests:
Add layout test coverage.
- svg/animations/animations-paused-when-removed-from-document-expected.txt: Added.
- svg/animations/animations-paused-when-removed-from-document.html: Added.
- 4:42 PM Changeset in webkit [214326] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Cache type is not styled correctly in Timelines tab
https://bugs.webkit.org/show_bug.cgi?id=170032
Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-03-23
Reviewed by Matt Baker.
- UserInterface/Views/NetworkGridContentView.css:
(.content-view:matches(.network, .network-grid) > .data-grid .cache-type):
(.content-view:matches(.network, .network-grid) > .data-grid:matches(:focus, .force-focus) tr.selected .cache-type):
(.content-view.network-grid > .data-grid .cache-type): Deleted.
(.content-view.network-grid > .data-grid:matches(:focus, .force-focus) tr.selected .cache-type): Deleted.
The different network grids have different class names. Handle both.
- 4:30 PM Changeset in webkit [214325] by
-
- 2 edits in tags/Safari-604.1.14/Source/WebCore
Merge r214310. rdar://problem/31225378
- 4:14 PM Changeset in webkit [214324] by
-
- 9 edits in trunk
font shorthand should accept variation values
https://bugs.webkit.org/show_bug.cgi?id=168998
Reviewed by Simon Fraser.
Source/WebCore:
The CSS Fonts 4 spec has stabilized as to which variation values are allowed in
the font shorthand property. Weights are allowed because a 0 weight is considered
as a parse error, so there is no conflict with a unitless font-size of 0.
font-style accepts angles, so there is no conflict there. However, font-stretch
accepts percentages, which are also accepted by font-size, which means the newly
extended grammar for font-stretch can't be accepted in the shorthand.
Tests: fast/text/font-style-parse.html
fast/text/font-weight-parse.html
- css/parser/CSSPropertyParser.cpp:
(WebCore::consumeFontWeight):
(WebCore::consumeFontStyle):
(WebCore::CSSPropertyParser::consumeFont):
(WebCore::consumeFontWeightCSS21): Deleted.
- css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeFontWeightNumber):
- css/parser/CSSPropertyParserHelpers.h:
LayoutTests:
- fast/text/font-style-parse-expected.txt:
- fast/text/font-style-parse.html:
- fast/text/font-weight-parse-expected.txt:
- fast/text/font-weight-parse.html:
- 3:53 PM Changeset in webkit [214323] by
-
- 3 edits1 add in trunk
[JSC][DFG] Make addShouldSpeculateAnyInt more conservative to avoid regression caused by Double <-> Int52 conversions
https://bugs.webkit.org/show_bug.cgi?id=169998
Reviewed by Saam Barati.
JSTests:
- microbenchmarks/int52-back-and-forth.js: Added.
(shouldBe):
(num):
Source/JavaScriptCore:
Double <-> Int52 and JSValue <-> Int52 conversions are not so cheap. Thus, Int52Rep is super carefully emitted.
We make addShouldSpeculateAnyInt more conservative to avoid regressions caused by the above conversions.
We select ArithAdd(Int52, Int52) only when this calculation is beneficial compared to added Int52Rep conversions.
This patch tighten the conditions of addShouldSpeculateAnyInt.
- Honor DoubleConstant.
When executing imaging-darkroom, we have a thing like that,
132:< 2:loc36> DoubleConstant(Double|UseAsOther, AnyIntAsDouble, Double: 4607182418800017408, 1.000000, bc#114)
1320:< 1:loc38> Int52Rep(Check:Int32:@82, Int52|PureInt, Int32, Exits, bc#114)
1321:< 1:loc39> Int52Constant(Int52|PureInt, Boolint32Nonboolint32Int52, Double: 4607182418800017408, 1.000000, bc#114)
133:<!3:loc39> ArithSub(Int52Rep:@1320<Int52>, Int52Rep:@1321<Int52>, Int52|MustGen, Int52, CheckOverflow, Exits, bc#114)
The LHS of ArithSub says predicting Boolint32, and the rhs says AnyIntAsDouble. Thus we select ArithSub(Int52, Int52) instead
of ArithSub(Double, Double). However, it soon causes OSR exits. In imaging-darkroom, LHS's Int32 prediction will be broken.
While speculating Int32 in the above situation is reasonable approach since the given LHS says predicting Int32, this causes
severe performance regression.
Previously, we always select ArithSub(Double, Double). So accidentally, we do not encounter this misprediction issue.
One thing can be found that we have DoubleConstant in the RHS. It means that we have
1.0
instead of1
in the code.
We can see the code likelhs - 1.0
instead oflhs - 1
in imaging-darkroom. It offers good information that lhs and
the resulting value would be double. Handling the above ArithSub in double seems more appropriate rather than handling
it in Int52.
So, in this patch, we honor DoubleConstant. If we find DoubleConstant on one operand, we give up selecting
Arith[Sub,Add](Int52, Int52). This change removes OSR exits occurr in imaging-darkroom right now.
- Two Int52Rep(Double) conversions are not desirable.
We allow AnyInt ArithAdd only when the one operand of the binary operation should be speculated AnyInt. It is a bit conservative
decision. This is because Double to Int52 conversion is not so cheap. Frequent back-and-forth conversions between Double and Int52
rather hurt the performance. If the one operand of the operation is already Int52, the cost for constructing ArithAdd becomes
cheap since only one Double to Int52 conversion could be required.
This recovers some regression in assorted tests while keeping kraken crypto improvements.
- Avoid frequent Int52 to JSValue conversions.
Int52 to JSValue conversion is not so cheap. Thus, we would like to avoid such situations. So, in this patch, we allow
Arith(Int52, Int52) with AnyIntAsDouble operand only when the node is used as number. By doing so, we avoid the case like,
converting Int52, performing ArithAdd, and soon converting back to JSValue.
The above 3 changes recover the regression measured in microbenchmarks/int52-back-and-forth.js and assorted benchmarks.
And still it keeps kraken crypto improvements.
baseline patched
imaging-darkroom 201.112+-3.192 189.532+-2.883 definitely 1.0611x faster
stanford-crypto-pbkdf2 103.953+-2.325 100.926+-2.396 might be 1.0300x faster
stanford-crypto-sha256-iterative 35.103+-1.071 ? 36.049+-1.143 ? might be 1.0270x slower
- dfg/DFGGraph.h:
(JSC::DFG::Graph::addShouldSpeculateAnyInt):
- 3:40 PM Changeset in webkit [214322] by
-
- 8 edits4 adds in trunk
SVG animations are not paused when inserted into a hidden page
https://bugs.webkit.org/show_bug.cgi?id=170026
<rdar://problem/31228704>
Reviewed by Andreas Kling.
Source/WebCore:
SVG animations were not paused when inserted into a hidden page. We would pause
animations in a page when the page becomes hidden. However, new animations
inserted in the page after this point would start, despite the page being
hidden.
Tests:
- svg/animations/animations-paused-when-inserted-in-hidden-document.html
- svg/animations/animations-paused-when-inserted-in-hidden-document2.html
- dom/Document.cpp:
(WebCore::Document::accessSVGExtensions):
- svg/SVGDocumentExtensions.cpp:
(WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
(WebCore::SVGDocumentExtensions::addTimeContainer):
(WebCore::reportMessage):
- svg/SVGDocumentExtensions.h:
- testing/Internals.cpp:
(WebCore::Internals::areSVGAnimationsPaused):
- testing/Internals.h:
- testing/Internals.idl:
LayoutTests:
Add layout test coverage.
- svg/animations/animations-paused-when-inserted-in-hidden-document-expected.txt: Added.
- svg/animations/animations-paused-when-inserted-in-hidden-document.html: Added.
- svg/animations/animations-paused-when-inserted-in-hidden-document2-expected.txt: Added.
- svg/animations/animations-paused-when-inserted-in-hidden-document2.html: Added.
- 3:39 PM Changeset in webkit [214321] by
-
- 5 edits5 copies in trunk
Rolled over to ChangeLog-2017-03-23
- 3:21 PM Changeset in webkit [214320] by
-
- 10 edits in trunk/Source
Let the UI process do memory kills and replace crashes with diagnostic logging.
<https://webkit.org/b/170016>
<rdar://problem/31091292>
Reviewed by Chris Dumez.
Source/WebCore:
Remove the memory kill code from WebCore that just crashes in favor of controlled
teardown from UI process side in WebKit2.
- page/DiagnosticLoggingKeys.cpp:
(WebCore::DiagnosticLoggingKeys::simulatedProcessCrashKey):
(WebCore::DiagnosticLoggingKeys::exceededActiveMemoryLimitKey):
(WebCore::DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey):
(WebCore::DiagnosticLoggingKeys::exceededBackgroundCPULimitKey):
- page/DiagnosticLoggingKeys.h:
- page/MemoryRelease.cpp:
(WebCore::didExceedMemoryLimitAndFailedToRecover): Deleted.
- page/MemoryRelease.h:
Source/WebKit2:
Have the WebProcess memory kill callback send a notification to the UI process
instead of outright crashing. The UI process then sends a diagnostic logging message
before carefully taking down the web process.
Also add drive-by diagnostic logging for background CPU limit kills.
- UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::simulateProcessCrash):
(WebKit::WebProcessProxy::didExceedActiveMemoryLimit):
(WebKit::WebProcessProxy::didExceedInactiveMemoryLimit):
(WebKit::WebProcessProxy::didExceedBackgroundCPULimit):
- UIProcess/WebProcessProxy.h:
- UIProcess/WebProcessProxy.messages.in:
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
- 2:54 PM Changeset in webkit [214319] by
-
- 5 edits in trunk/Source/JavaScriptCore
[JSC] MachineThreads does not consider situation that one thread has multiple VMs
https://bugs.webkit.org/show_bug.cgi?id=169819
Reviewed by Mark Lam.
The Linux port of PlatformThread suspend/resume mechanism relies on having a thread
specific singleton thread data, and was relying on MachineThreads::Thread to be this
thread specific singleton. But because MachineThreads::Thread is not a thread specific
singleton, we can get a deadlock in the GTK port's DatabaseProcess.
This patch fixes this issue by moving per thread data from MachineThreads::Thread to
MachineThreads::ThreadData, where there will only be one instance of
MachineThreads::ThreadData per thread. Each MachineThreads::Thread will now point to
the same MachineThreads::ThreadData for any given thread.
- heap/MachineStackMarker.cpp:
(pthreadSignalHandlerSuspendResume):
(JSC::threadData):
(JSC::MachineThreads::Thread::Thread):
(JSC::MachineThreads::Thread::createForCurrentThread):
(JSC::MachineThreads::Thread::operator==):
(JSC::MachineThreads::ThreadData::ThreadData):
(JSC::MachineThreads::ThreadData::~ThreadData):
(JSC::MachineThreads::ThreadData::suspend):
(JSC::MachineThreads::ThreadData::resume):
(JSC::MachineThreads::ThreadData::getRegisters):
(JSC::MachineThreads::ThreadData::Registers::stackPointer):
(JSC::MachineThreads::ThreadData::Registers::framePointer):
(JSC::MachineThreads::ThreadData::Registers::instructionPointer):
(JSC::MachineThreads::ThreadData::Registers::llintPC):
(JSC::MachineThreads::ThreadData::freeRegisters):
(JSC::MachineThreads::ThreadData::captureStack):
(JSC::MachineThreads::tryCopyOtherThreadStacks):
(JSC::MachineThreads::Thread::~Thread): Deleted.
(JSC::MachineThreads::Thread::suspend): Deleted.
(JSC::MachineThreads::Thread::resume): Deleted.
(JSC::MachineThreads::Thread::getRegisters): Deleted.
(JSC::MachineThreads::Thread::Registers::stackPointer): Deleted.
(JSC::MachineThreads::Thread::Registers::framePointer): Deleted.
(JSC::MachineThreads::Thread::Registers::instructionPointer): Deleted.
(JSC::MachineThreads::Thread::Registers::llintPC): Deleted.
(JSC::MachineThreads::Thread::freeRegisters): Deleted.
(JSC::MachineThreads::Thread::captureStack): Deleted.
- heap/MachineStackMarker.h:
(JSC::MachineThreads::Thread::operator!=):
(JSC::MachineThreads::Thread::suspend):
(JSC::MachineThreads::Thread::resume):
(JSC::MachineThreads::Thread::getRegisters):
(JSC::MachineThreads::Thread::freeRegisters):
(JSC::MachineThreads::Thread::captureStack):
(JSC::MachineThreads::Thread::platformThread):
(JSC::MachineThreads::Thread::stackBase):
(JSC::MachineThreads::Thread::stackEnd):
- runtime/SamplingProfiler.cpp:
(JSC::FrameWalker::isValidFramePointer):
- runtime/VMTraps.cpp:
(JSC::findActiveVMAndStackBounds):
- 2:45 PM Changeset in webkit [214318] by
-
- 2 edits in trunk/Tools
buildbot: Fix mixing of tabs and spaces after r214172
https://bugs.webkit.org/show_bug.cgi?id=169793
Unreviewed.
- BuildSlaveSupport/build.webkit.org-config/master.cfg:
(RunWebKitTests.evaluateCommand):
- 2:07 PM Changeset in webkit [214317] by
-
- 7 edits in trunk/Source/WebCore
Clean RTCPeerConnection.idl after bug 169978
https://bugs.webkit.org/show_bug.cgi?id=169989
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-23
Reviewed by Eric Carlson.
No change of behavior.
Moving addTransceiver to overloaded method to union type to match spec.
Refactoring RTCRtpSender to take a String&&.
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
(WebCore::MediaEndpointPeerConnection::setRemoteDescriptionTask):
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::addTransceiver):
(WebCore::RTCPeerConnection::completeAddTransceiver):
- Modules/mediastream/RTCPeerConnection.h:
- Modules/mediastream/RTCPeerConnection.idl: Cosmetic changes except for addTransceiver.
- Modules/mediastream/RTCRtpSender.cpp:
(WebCore::RTCRtpSender::create):
(WebCore::RTCRtpSender::RTCRtpSender):
- Modules/mediastream/RTCRtpSender.h:
- 1:57 PM Changeset in webkit [214316] by
-
- 1 edit4 adds in trunk/LayoutTests
Add a test to make sure SVG animations are paused in detached iframes
https://bugs.webkit.org/show_bug.cgi?id=170020
Reviewed by Antti Koivisto.
- svg/animations/animations-paused-disconnected-iframe-expected.txt: Added.
- svg/animations/animations-paused-disconnected-iframe.html: Added.
- svg/animations/resources/frame-with-svg-animation.html: Added.
- svg/animations/resources/grandchild-frame-with-svg-animation.html: Added.
- 1:56 PM Changeset in webkit [214315] by
-
- 3 edits in trunk/Websites/perf.webkit.org
Share more code between ManifestGenerator and /api/triggerables
https://bugs.webkit.org/show_bug.cgi?id=169993
Reviewed by Chris Dumez.
Shared the code to fetch the list of triggerables from the database between ManifestGenerator
and /api/triggerables.
- public/api/triggerables.php:
(main):
- public/include/manifest-generator.php:
(ManifestGenerator::fetch_triggerables): Extracted as a static function. Also include the ID
in the triggerable data.
- 1:54 PM Changeset in webkit [214314] by
-
- 5 edits in trunk/Websites/perf.webkit.org
create-test-group should allow a different set of repositories to be used in each configuration
https://bugs.webkit.org/show_bug.cgi?id=169992
Rubber-stamped by Antti Koivisto.
Added the support for new POST parameter, revisionSets, to /privileged-api/create-test-group.
This new parameter now specifies an array of repository id to revision dictionaries, and allows
different set of repositories' revisions to be specified in each dictionary.
We keep the old API for v2 UI and detect-changes.js compatibility for now.
- public/privileged-api/create-test-group.php:
(main):
(commit_sets_from_revision_sets): Added.
(ensure_commit_sets): Only fetch the top-level repository per r213788 and r213976.
- public/v3/models/test-group.js:
(TestGroup.createAndRefetchTestGroups): Use the newly added revisionSets parameter instead of
the now depreacted commitSets parameter.
- public/v3/pages/analysis-task-page.js:
(AnalysisTaskPage.prototype._createTestGroupAfterVerifyingCommitSetList): Simplified this code
by simply verifying the consistency of commit sets now that createAndRefetchTestGroups takes
an array of commit sets instead of a dictionary of repository name to a list of revisions.
- server-tests/privileged-api-create-test-group-tests.js: Added test cases for new parameter.
- 1:31 PM Changeset in webkit [214313] by
-
- 10 edits1 add in trunk
Clients of JSArray::tryCreateForInitializationPrivate() should do their own null checks.
https://bugs.webkit.org/show_bug.cgi?id=169783
Reviewed by Saam Barati.
JSTests:
- stress/regress-169783.js: Added.
Source/JavaScriptCore:
Fixed clients of tryCreateForInitializationPrivate() to do a null check and throw
an OutOfMemoryError if allocation fails, or RELEASE_ASSERT that the allocation
succeeds.
- dfg/DFGOperations.cpp:
- ftl/FTLOperations.cpp:
(JSC::FTL::operationMaterializeObjectInOSR):
- runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncSplice):
- runtime/CommonSlowPaths.cpp:
(JSC::SLOW_PATH_DECL):
- runtime/JSArray.cpp:
(JSC::JSArray::tryCreateForInitializationPrivate):
(JSC::JSArray::fastSlice):
- runtime/JSArray.h:
(JSC::constructArray):
(JSC::constructArrayNegativeIndexed):
- runtime/RegExpMatchesArray.cpp:
(JSC::createEmptyRegExpMatchesArray):
- runtime/RegExpMatchesArray.h:
(JSC::createRegExpMatchesArray):
- 1:20 PM Changeset in webkit [214312] by
-
- 2 edits in trunk/Source/WebCore
Add logging in case libwebrtc.dylib cannot be opened
https://bugs.webkit.org/show_bug.cgi?id=170017
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-23
Reviewed by Geoffrey Garen.
No change of behavior.
- platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
(WebCore::LibWebRTCProvider::webRTCAvailable):
- 12:56 PM Changeset in webkit [214311] by
-
- 3 edits in trunk/LayoutTests
REGRESSION (r214047): LayoutTest fast/events/pageshow-pagehide-on-back-cached-with-frames.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=169834
Reviewed by Alexey Proskuryakov.
Ensure that the subframes are loaded in a consistent order between test runs.
Currently the test fast/events/pageshow-pagehide-on-back-cached-with-frames.html assumes
that subframes will load in tree order. This assumption is incorrect. Therefore, we need
to explicitly manage the loading of the subframes to ensure this invariant.
- fast/events/pageshow-pagehide-on-back-cached-with-frames-expected.txt:
- fast/events/pageshow-pagehide-on-back-cached-with-frames.html:
- 12:53 PM Changeset in webkit [214310] by
-
- 2 edits in trunk/Source/WebCore
Unreviewed, a speculative build fix
<rdar://problem/31225378>
- crypto/CommonCryptoUtilities.h:
- 12:06 PM Changeset in webkit [214309] by
-
- 4 edits2 adds in trunk
WebSQL databases should not openable in private browsing.
<rdar://problem/30383335> and https://bugs.webkit.org/show_bug.cgi?id=170013
Reviewed by Alex Christensen.
Source/WebCore:
Test: storage/websql/private-browsing-open-disabled.html
- Modules/webdatabase/DatabaseManager.cpp:
(WebCore::DatabaseManager::openDatabaseBackend):
(WebCore::DatabaseManager::tryToOpenDatabaseBackend): Throw an exception if in private browsing.
- Modules/webdatabase/DatabaseManager.h:
LayoutTests:
- storage/websql/private-browsing-open-disabled-expected.txt: Added.
- storage/websql/private-browsing-open-disabled.html: Added.
- 11:47 AM Changeset in webkit [214308] by
-
- 3 edits in trunk/Source/WebInspectorUI
Web Inspector: Editing local storage keys/values starts with truncated strings
https://bugs.webkit.org/show_bug.cgi?id=169896
Reviewed by Brian Burg.
- UserInterface/Views/DataGrid.css:
(.data-grid td.editing > div):
- UserInterface/Views/DataGrid.js:
(WebInspector.DataGrid.prototype._editingCancelled):
div.cell-content is removed because the <td> itself is contenteditable (using -webkit-user-modify:read-write-plaintext-only),
not the inner div.cell-content. Re-create div.cell-content after commiting (by pressing Enter) or canceling (by pressing Esc)
since it may get removed while editing.
- 11:45 AM Changeset in webkit [214307] by
-
- 2 edits in trunk/LayoutTests
Remove pass expectation for fast/forms/range/range-remove-on-drag.html as it relies on touch events.
Unreviewed test gardening.
- platform/ios-simulator-wk2/TestExpectations:
- 11:22 AM Changeset in webkit [214306] by
-
- 2 edits in trunk/LayoutTests
[GTK] Mark compositing and css3/blending tests asserting on debug builds.
Unreviewed test gardening.
- platform/gtk/TestExpectations:
- 11:15 AM Changeset in webkit [214305] by
-
- 2 edits in trunk/Source/WebCore
NeverDestroyed<MediaQueryEvaluator> must explicitly construct with a String
https://bugs.webkit.org/show_bug.cgi?id=169987
<rdar://problem/31211087>
Reviewed by Alex Christensen.
CSSDefaultStyleSheets creates a static MediaQueryEvaluator, but thanks
to the template magic of NeverDestroyed, it was converting the char*
argument into a bool, and calling the wrong constructor.
Unfortunately this is difficult to test because it only affects
the default UA style sheets, and they currently don't have
and @media rules (which would always evaluate to true given
the bug). I don't want to put in a useless rule just to check
if the bug is fixed. When one is added for bug 168447, this change
will be exercised.
- css/CSSDefaultStyleSheets.cpp: Explicitly construct with a String
rather than a char*.
(WebCore::screenEval):
(WebCore::printEval):
- 9:13 AM Changeset in webkit [214304] by
-
- 7 edits in trunk/Source
Versioning.
- 9:03 AM Changeset in webkit [214303] by
-
- 1 copy in tags/Safari-604.1.14
Tag Safari-604.1.14.
- 8:54 AM Changeset in webkit [214302] by
-
- 7 edits in trunk/Source/WebCore
[MediaStream] Make mock video source work on iOS
https://bugs.webkit.org/show_bug.cgi?id=169923
Reviewed by Youenn Fablet.
Generate IOSurface-backed CVPixelBuffers. Allocate them from a
CVPixelBufferPool for efficiency.
No new tests, no functional change.
- platform/cocoa/CoreVideoSoftLink.cpp:
- platform/cocoa/CoreVideoSoftLink.h:
- platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::MediaPlayerPrivateMediaStreamAVFObjC::videoTransformationMatrix):
- platform/mediastream/mac/MockRealtimeVideoSourceMac.h:
- platform/mediastream/mac/MockRealtimeVideoSourceMac.mm:
(WebCore::MockRealtimeVideoSourceMac::pixelBufferFromCGImage):
(WebCore::MockRealtimeVideoSourceMac::applySize):
- platform/mock/MockRealtimeVideoSource.h:
- 4:37 AM WebKitGTK/2.16.x edited by
- (diff)
- 4:33 AM Changeset in webkit [214301] by
-
- 2 edits in trunk/Source/WebKit2
Test DataDetectors supported schemes in lowercase
https://bugs.webkit.org/show_bug.cgi?id=169994
<rdar://problem/30788920>
Reviewed by Wenson Hsieh.
- UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _actionForLongPress]):
(-[WKContentView _interactionShouldBeginFromPreviewItemController:forPosition:]):
Lower-case the scheme before looking in tapAndHoldSchemes, which is
guaranteed to be in lower-case. WebCore already does this in places
that it confers with tapAndHoldSchemes.
- 4:30 AM WebKitGTK/2.16.x edited by
- (diff)
- 2:25 AM Changeset in webkit [214300] by
-
- 3 edits in trunk/Source/JavaScriptCore
[jsc] Add MacroAssemblerMIPS::storeFence()
https://bugs.webkit.org/show_bug.cgi?id=169705
Patch by Guillaume Emont <guijemont@igalia.com> on 2017-03-23
Reviewed by Yusuke Suzuki.
There doesn't seem to be anything more fine grained than "sync" that
guarantees that all memory operations following it are going to happen
after all stores before it, so we just use sync.
- assembler/MIPSAssembler.h:
(JSC::MIPSAssembler::sync): Added a FIXME about SYNC_MB.
- assembler/MacroAssemblerMIPS.h:
(JSC::MacroAssemblerMIPS::storeFence): Added.
- 2:10 AM Changeset in webkit [214299] by
-
- 7 edits in trunk/Source/WTF
Fix uninitialized public members in WTF
https://bugs.webkit.org/show_bug.cgi?id=169676
Reviewed by Michael Catanzaro.
Found by Coverity scan.
- wtf/Bag.h:
- wtf/HashTable.h:
- wtf/HashTraits.h:
- wtf/Insertion.h:
- wtf/OrderMaker.h:
- wtf/ParallelJobsGeneric.h:
- 12:38 AM Changeset in webkit [214298] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Mark webrtc/connection-state.html as failing.
- platform/gtk/TestExpectations:
Mar 22, 2017:
- 11:21 PM Changeset in webkit [214297] by
-
- 8 edits1 copy3 adds in trunk
[Cocoa] Add an option to exclude overflow when snapshotting a WKWebProcessPlugInNodeHandle
https://bugs.webkit.org/show_bug.cgi?id=169991
<rdar://problem/30141083>
Reviewed by Tim Horton.
Source/WebKit2:
When snapshotting an element using -[WKWebProcessPlugInNodeHandle renderedImageWithOptions:],
the image is sized to encompass all descendants, even if the element is styled with
overflow:hidden. This patch adds a WKSnapshotOption to exclude overflow, resulting in an
image that's always sized to the node's bounding box.
- Shared/API/c/WKImage.h: Defined kWKSnapshotOptionsExcludeOverflow.
- WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
(-[WKWebProcessPlugInNodeHandle renderedImageWithOptions:]): Converted the
WKSnapshotOptions argument to a SnapshotOptions using toSnapshotOptions(), and called
InjectedBundleNodeHandle::renderedImage() with shouldExcludeOverflow set to true if the
WKSnapshotOptions included kWKSnapshotOptionsExcludeOverflow.
- WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
(WKBundleNodeHandleCopySnapshotWithOptions): Ditto.
- WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::renderedImage): If shouldExcludeOverflow is true, use
RenderObject::absoluteBoundingBoxRectIgnoringTransforms() as the paintingRect for
imageForRect().
- WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
Tools:
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptions.mm: Added.
(-[RenderedImageWithOptionsObject didRenderImageWithSize:]):
(TEST):
- TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsPlugIn.mm: Added.
(-[RenderedImageWithOptionsPlugIn webProcessPlugIn:didCreateBrowserContextController:]):
(-[RenderedImageWithOptionsPlugIn webProcessPlugInBrowserContextController:didFinishLoadForFrame:]):
- TestWebKitAPI/Tests/WebKit2Cocoa/RenderedImageWithOptionsProtocol.h: Added.
- TestWebKitAPI/Tests/WebKit2Cocoa/rendered-image-excluding-overflow.html: Added.
- 11:01 PM Changeset in webkit [214296] by
-
- 6 edits2 adds in trunk
[JSC][DFG] Propagate AnyIntAsDouble information carefully to utilize it in fixup
https://bugs.webkit.org/show_bug.cgi?id=169914
Reviewed by Saam Barati.
JSTests:
- stress/any-int-as-double-add.js: Added.
(shouldBe):
(test):
- stress/to-this-numbers.js: Added.
(shouldBe):
(Number.prototype.toThis):
Source/JavaScriptCore:
In DFG prediction propagation phase, we pollute the prediction of GetByVal for Array::Double
as SpecDoubleReal even if the heap prediction says the proper prediction is SpecAnyIntAsDouble.
Thus, the following nodes just see the result of GetByVal(Array::Double) as double value,
and select suboptimal edge filters in fixup phase. For example, if the result of GetByVal is
SpecAnyIntAsDouble, we can see the node like ArithAdd(SpecAnyIntAsDouble, Int52) and we should
have a chance to make it ArithAdd(Check:Int52, Int52) instead of ArithAdd(Double, Double).
This patch propagates SpecAnyIntAsDouble in GetByVal(Array::Double) properly. And ValueAdd,
ArithAdd and ArithSub select AnyInt edge filters for SpecAnyIntAsDouble values. It finally
produces a Int52 specialized DFG node. And subsequent nodes using the produced one also
become Int52 specialized.
One considerable problem is that the heap prediction misses the non any int doubles. In that case,
if Int52 edge filter is used, BadType exit will occur. It updates the prediction of the value profile
of GetByVal. So, in the next time, GetByVal(Array::Double) produces more conservative predictions
and avoids exit-and-recompile loop correctly.
This change is very sensitive to the correct AI and appropriate predictions. Thus, this patch finds
and fixes some related issues. One is incorrect prediction of ToThis and another is incorrect
AI logic for Int52Rep.
This change dramatically improves kraken benchmarks' crypto-pbkdf2 and crypto-sha256-iterative
by 42.0% and 30.7%, respectively.
baseline patched
Kraken:
ai-astar 158.851+-4.132 ? 159.433+-5.176 ?
audio-beat-detection 53.193+-1.621 ? 53.391+-2.072 ?
audio-dft 103.589+-2.277 ? 104.902+-1.924 ? might be 1.0127x slower
audio-fft 40.491+-1.102 39.854+-0.755 might be 1.0160x faster
audio-oscillator 68.504+-1.721 ? 68.957+-1.725 ?
imaging-darkroom 118.367+-2.171 ? 119.581+-2.310 ? might be 1.0103x slower
imaging-desaturate 71.443+-1.461 ? 72.398+-1.918 ? might be 1.0134x slower
imaging-gaussian-blur 110.648+-4.035 109.184+-3.373 might be 1.0134x faster
json-parse-financial 60.363+-1.628 ? 61.936+-1.585 ? might be 1.0261x slower
json-stringify-tinderbox 37.903+-0.869 ? 39.559+-1.607 ? might be 1.0437x slower
stanford-crypto-aes 56.313+-1.512 ? 56.675+-1.715 ?
stanford-crypto-ccm 51.564+-1.900 ? 53.456+-2.548 ? might be 1.0367x slower
stanford-crypto-pbkdf2 129.546+-2.738 91.214+-2.027 definitely 1.4202x faster
stanford-crypto-sha256-iterative 43.515+-0.730 33.292+-0.653 definitely 1.3071x faster
<arithmetic> 78.878+-0.528 75.988+-0.621 definitely 1.0380x faster
- dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
- dfg/DFGGraph.h:
(JSC::DFG::Graph::addShouldSpeculateAnyInt):
- dfg/DFGPredictionPropagationPhase.cpp:
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileArithNegate):
- 9:51 PM Changeset in webkit [214295] by
-
- 2 edits in trunk/Source/WebKit2
WKScrollView should not require data interaction gestures to fail before panning
https://bugs.webkit.org/show_bug.cgi?id=169986
Reviewed by Tim Horton.
This workaround is no longer needed.
- UIProcess/ios/WKScrollView.mm:
- 9:14 PM Changeset in webkit [214294] by
-
- 13 edits in trunk/Source
Let MemoryPressureHandler track whether the process is active or inactive.
<https://webkit.org/b/169990>
Reviewed by Antti Koivisto.
Source/WebCore:
Have PerformanceMonitor inform MemoryPressureHandler about relevant
changes to the page activity states.
Also change the "1 hour after last page load" policy to "1 hour after
last being visible in an active window."
- page/MainFrame.cpp:
(WebCore::MainFrame::didCompleteLoad):
- page/MainFrame.h:
- page/MemoryRelease.cpp:
(WebCore::processIsEligibleForMemoryKill): Deleted.
- page/MemoryRelease.h:
- page/Page.h:
(WebCore::Page::performanceMonitor):
- page/PerformanceMonitor.cpp:
(WebCore::PerformanceMonitor::PerformanceMonitor):
(WebCore::PerformanceMonitor::activityStateChanged):
(WebCore::PerformanceMonitor::processMayBecomeInactiveTimerFired):
(WebCore::PerformanceMonitor::updateProcessStateForMemoryPressure):
- page/PerformanceMonitor.h:
Source/WebKit2:
- WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
Source/WTF:
An active process is a process that meets any of these criteria:
- Has had a visible Page in an active window in the last hour
- Is playing audio
This replaces the old mechanism where MemoryPressureHandler would invoke
a callback to know whether the process was eligible for a memory kill.
Instead we now plumb the relevant information down from WebCore and kill
based on this activity state.
- wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::measurementTimerFired):
(WTF::MemoryPressureHandler::setProcessState):
- wtf/MemoryPressureHandler.h:
(WTF::MemoryPressureHandler::setMemoryKillCallback):
(WTF::MemoryPressureHandler::processState):
(WTF::MemoryPressureHandler::setProcessIsEligibleForMemoryKillCallback): Deleted.
- 7:44 PM Changeset in webkit [214293] by
-
- 14 edits4 adds in trunk
Support RTCPeerConnectionState
https://bugs.webkit.org/show_bug.cgi?id=169978
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
Reviewed by Jon Lee.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt:
Source/WebCore:
Test: webrtc/connection-state.html
Implementing https://www.w3.org/TR/webrtc/#rtcpeerconnectionstate-enum.
Its state and event is based on changes made to ice gathering state and ice connection state.
- CMakeLists.txt: Adding RTCPeerConnectionState idl.
- DerivedSources.make: Ditto.
- Modules/mediastream/RTCPeerConnection.cpp: Splitting close in doClose/doStop so that we can send closed event
in case close is called, but not if stopped.
(WebCore::RTCPeerConnection::doClose):
(WebCore::RTCPeerConnection::close):
(WebCore::RTCPeerConnection::stop):
(WebCore::RTCPeerConnection::doStop):
(WebCore::RTCPeerConnection::updateIceGatheringState):
(WebCore::RTCPeerConnection::updateIceConnectionState):
(WebCore::RTCPeerConnection::updateConnectionState):
- Modules/mediastream/RTCPeerConnection.h:
- Modules/mediastream/RTCPeerConnection.idl: Fixing IDL and minor cosmetic changes
- Modules/mediastream/RTCPeerConnection.js:
(setLocalDescription): Cosmetic change.
(setRemoteDescription):
- Modules/mediastream/RTCPeerConnectionState.idl: Added.
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::OnIceGatheringChange): Adding 'gathering' state
- WebCore.xcodeproj/project.pbxproj:
- dom/EventNames.h:
- platform/mediastream/RTCPeerConnectionState.h: Added.
LayoutTests:
- webrtc/connection-state-expected.txt: Added.
- webrtc/connection-state.html: Added.
- webrtc/rtcpeerconnection-error-messages-expected.txt:
- 7:37 PM Changeset in webkit [214292] by
-
- 2 edits52 adds in trunk/LayoutTests
[GTK] Enable CSS filters related tests.
https://bugs.webkit.org/show_bug.cgi?id=99026
Unreviewed test gardening.
- platform/gtk/TestExpectations:
- platform/gtk/css3/filters/composited-during-transition-layertree-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-blur-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-blur-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-blur-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-blur-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-combined-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-combined-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-combined-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-combined-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-contrast-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-contrast-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-contrast-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-contrast-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-grayscale-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-grayscale-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-grayscale-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-grayscale-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-hue-rotate-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-hue-rotate-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-hue-rotate-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-hue-rotate-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-invert-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-invert-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-invert-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-invert-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-opacity-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-opacity-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-opacity-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-opacity-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-composite-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-composite-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-composite-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-composite-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-ordering-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-ordering-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-ordering-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-reference-ordering-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-saturate-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-saturate-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-saturate-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-saturate-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-sepia-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-sepia-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/effect-sepia-hw-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/effect-sepia-hw-expected.txt: Added. Rebaselined.
- platform/gtk/css3/filters/regions-expanding-expected.png: Added. Rebaselined.
- platform/gtk/css3/filters/regions-expanding-expected.txt: Added. Rebaselined.
- 7:21 PM Changeset in webkit [214291] by
-
- 5 edits2 adds in trunk
ASSERT_WITH_SECURITY_IMPLICATION hit when removing an <input type="range"> while dragging on iOS
https://bugs.webkit.org/show_bug.cgi?id=165535
<rdar://problem/29559749>
Reviewed by Ryosuke Niwa.
Source/WebCore:
Utimately we should prevent SliderThumbElement::unregisterForTouchEvents() being called while
updating render tree. A quick fix for this is to move dispatchFormControlChangeEvent for input
from stopDragging up to the callers which really needs to dispatch this event, i.e., finishing
dragging the slider. It is clear that not every caller of stopDragging wants to
dispatchFormControlChangeEvent.
Test: fast/forms/range/range-remove-on-drag.html
- html/shadow/SliderThumbElement.cpp:
(WebCore::SliderThumbElement::stopDragging):
(WebCore::SliderThumbElement::defaultEventHandler):
(WebCore::SliderThumbElement::handleTouchEndAndCancel):
LayoutTests:
This test case is only enabled in iOS simulator WK2.
- TestExpectations:
- fast/forms/range/range-remove-on-drag-expected.txt: Added.
- fast/forms/range/range-remove-on-drag.html: Added.
- platform/ios-simulator-wk2/TestExpectations:
- 6:16 PM Changeset in webkit [214290] by
-
- 6 edits2 adds in trunk
Dynamically applied :empty pseudo class with display:none does not get unapplied
https://bugs.webkit.org/show_bug.cgi?id=169907
Reviewed by Ryosuke Niwa.
Source/WebCore:
We improperly reset the styleAffectedByEmpty bit when removing the renderer when :empty starts
applying. We then fail to invalidate the style when the element becomes non-empty again.
Fix by resetting the style relation bits only when computing the style.
Test: fast/css/empty-display-none-invalidation.html
- dom/Element.cpp:
(WebCore::Element::resetStyleRelations):
Expose this separately.
(WebCore::Element::clearStyleDerivedDataBeforeDetachingRenderer):
Don't reset style relation bits when removing renderers.
- dom/Element.h:
- dom/ElementRareData.h:
(WebCore::ElementRareData::resetComputedStyle):
(WebCore::ElementRareData::resetStyleRelations):
Reset all these bits in one function.
(WebCore::ElementRareData::resetDynamicRestyleObservations): Deleted.
- style/StyleTreeResolver.cpp:
(WebCore::Style::resetStyleForNonRenderedDescendants):
(WebCore::Style::TreeResolver::resolveComposedTree):
Call the explicit style relation reset function when recomputing style.
LayoutTests:
- fast/css/empty-display-none-invalidation-expected.html: Added.
- fast/css/empty-display-none-invalidation.html: Added.
- 6:14 PM Changeset in webkit [214289] by
-
- 13 edits1 add in trunk
Add support for Error.stackTraceLimit.
https://bugs.webkit.org/show_bug.cgi?id=169904
Reviewed by Saam Barati.
JSTests:
- stress/error-stack-trace-limit.js: Added.
Source/JavaScriptCore:
Since there's no standard for this yet, we'll implement Error.stackTraceLimit
based on how Chrome does it. This includes some idiosyncrasies like:
- If we set Error.stackTraceLimit = 0, then new Error().stack yields an empty stack trace (Chrome has a title with no stack frame entries).
- If we set Error.stackTraceLimit = {] (i.e. to a non-number value), then new Error().stack is undefined.
Chrome and IE defaults their Error.stackTraceLimit to 10. We'll default ours to
100 because 10 may be a bit too skimpy and it is not that costly to allow up to
100 frames instead of 10.
The default value for Error.stackTraceLimit is specified by
Options::defaultErrorStackTraceLimit().
Also, the Exception object now limits the number of stack trace frames it captures
to the limit specified by Options::exceptionStackTraceLimit().
Note: the Exception object captures a stack trace that is not necessarily the
same as the one in an Error object being thrown:
- The Error object captures the stack trace at the point of object creation.
- The Exception object captures the stack trace at the point that the exception is thrown. This stack trace is captured even when throwing a value that is not an Error object e.g. a primitive value. The Exception object stack trace is only used by WebInspector to identify where a value is thrown from. Hence, it does not necessary make sense the Exception object stack trace limited by Error.stackTraceLimit. Instead, we have it use own Options::exceptionStackTraceLimit().
- interpreter/Interpreter.cpp:
(JSC::Interpreter::unwind):
- jsc.cpp:
(dumpException):
- runtime/CommonIdentifiers.h:
- runtime/Error.cpp:
(JSC::addErrorInfoAndGetBytecodeOffset):
- runtime/ErrorConstructor.cpp:
(JSC::ErrorConstructor::finishCreation):
(JSC::ErrorConstructor::put):
(JSC::ErrorConstructor::deleteProperty):
- runtime/ErrorConstructor.h:
(JSC::ErrorConstructor::stackTraceLimit):
- runtime/Exception.cpp:
(JSC::Exception::finishCreation):
- runtime/Options.h:
LayoutTests:
Rebased test.
- js/Object-getOwnPropertyNames-expected.txt:
- js/script-tests/Object-getOwnPropertyNames.js:
- 5:57 PM Changeset in webkit [214288] by
-
- 16 edits1 add in trunk/Source/ThirdParty/libwebrtc
Fix warnings in libwebrtc
https://bugs.webkit.org/show_bug.cgi?id=169973
Reviewed by Geoffrey Garen.
- Configurations/boringssl.xcconfig:
- Configurations/libsrtp.xcconfig:
- Configurations/libwebrtc.xcconfig:
- Configurations/libwebrtcpcrtc.xcconfig:
- Configurations/libyuv.xcconfig:
- Configurations/opus.xcconfig:
- Configurations/usrsctp.xcconfig:
Build with more warnings.
opus still needs some incompatible pointer warnings disabled because it converts
const opus_int16 * to const opus_val16 * and opus_int32 * to opus_val32 *
and that's ok because its a codec and that's what codecs do.
- Source/webrtc/base/logging.cc:
- Source/webrtc/base/logging.h:
- Source/webrtc/base/neverdestroyed.h: Added.
(webrtc::NeverDestroyed::NeverDestroyed):
(webrtc::NeverDestroyed::operator T&):
(webrtc::NeverDestroyed::get):
(webrtc::NeverDestroyed::operator&):
(webrtc::NeverDestroyed::asPtr):
Added webrtc::NeverDestroyed which may or may not be based on WTF::NeverDestroyed.
This allows us to avoid exit time destructors, which would slow down program termination for no reason.
- Source/webrtc/base/virtualsocketserver.cc:
- Source/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory_internal.cc:
Adopt NeverDestroyed in function scope so we don't have global constructors or destructors.
- Source/webrtc/modules/audio_processing/beamformer/array_util.h:
(webrtc::DegreesToRadians):
(webrtc::RadiansToDegrees):
Add constexpr so we can calculate values at compile time instead of launch time.
- Source/webrtc/modules/rtp_rtcp/source/rtp_utility.cc:
- Source/webrtc/system_wrappers/source/clock.cc:
- libwebrtc.xcodeproj/project.pbxproj:
Don't compile ssl_test.cc. We don't need it.
- 5:27 PM Changeset in webkit [214287] by
-
- 2 edits2 moves in trunk/Websites/perf.webkit.org
/api/uploaded-file should return createdAt as a POSIX timestamp
https://bugs.webkit.org/show_bug.cgi?id=169980
Rubber-stamped by Antti Koivisto.
Call Database::to_js_time on createdAt to return it as a POSIX timestamp.
- public/include/uploaded-file-helpers.php:
(format_uploaded_file): Fixed the bug.
- server-tests/api-manifest-tests.js: Renamed from api-manifest.js.
- server-tests/api-uploaded-file-tests.js: Renamed from api-uploaded-file.js. Added a test case.
- 5:16 PM Changeset in webkit [214286] by
-
- 2 edits in trunk/LayoutTests
[GTK] Update layout test expectations file.
Unreviewed test gardening.
- platform/gtk/TestExpectations: Update the list of expected failures.
- 4:43 PM Changeset in webkit [214285] by
-
- 7 edits in trunk/Websites/perf.webkit.org
UploadedFile should support a callback for upload progress
https://bugs.webkit.org/show_bug.cgi?id=169977
Reviewed by Andreas Kling.
Added a new option dictionary to CommonRemoteAPI.sendHttpRequest with uploadProgressCallback
Moved request headers and responseHandler callback in NodeRemoteAPI to this dictionary,
and updated the tests which relied on this code.
- public/shared/common-remote.js:
(CommonRemoteAPI.prototype.postJSON):
(CommonRemoteAPI.prototype.postJSONWithStatus):
(CommonRemoteAPI.prototype.postFormData):
(CommonRemoteAPI.prototype.postFormDataWithStatus):
- public/v3/privileged-api.js:
(PrivilegedAPI.prototype.sendRequest):
- public/v3/remote.js:
(BrowserRemoteAPI.prototype.sendHttpRequest):
(BrowserRemoteAPI.prototype.sendHttpRequestWithFormData):
(BrowserRemoteAPI):
- server-tests/api-uploaded-file.js:
- tools/js/remote.js:
(NodeRemoteAPI.prototype.sendHttpRequest):
(NodeRemoteAPI.prototype.sendHttpRequestWithFormData):
(NodeRemoteAPI):
- 4:21 PM Changeset in webkit [214284] by
-
- 14 edits in trunk/Source
Add support for showing the platform data interaction caret
https://bugs.webkit.org/show_bug.cgi?id=169898
<rdar://problem/31146295>
Reviewed by Beth Dakin.
Source/WebKit/mac:
Plumb the dataInteractionCaretRect through WebView SPI to WebKit1 clients.
- WebView/WebView.mm:
(-[WebView _dataInteractionCaretRect]):
- WebView/WebViewPrivate.h:
Source/WebKit2:
Add support for showing the caret rect when data interacting over an editable target. To do this, we add
boilerplate plumbing to inform the WKContentView whenever the WebPageProxy's current caret rect changes.
- Platform/spi/ios/UIKitSPI.h:
Define IPI to retrieve the default insertion caret color.
- UIProcess/PageClient.h:
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didPerformDragControllerAction):
(WebKit::WebPageProxy::dragEnded):
(WebKit::WebPageProxy::didEndDragging):
(WebKit::WebPageProxy::resetCurrentDragInformation):
(WebKit::WebPageProxy::setDragCaretRect):
- UIProcess/WebPageProxy.h:
- UIProcess/WebPageProxy.messages.in:
- UIProcess/ios/PageClientImplIOS.h:
- UIProcess/ios/PageClientImplIOS.mm:
(WebKit::PageClientImpl::didChangeDataInteractionCaretRect):
- UIProcess/ios/WKContentViewInteraction.h:
- UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView cleanupInteraction]):
(-[WKContentView insertionPointColor]):
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::dragEnded):
- 4:18 PM Changeset in webkit [214283] by
-
- 8 edits in trunk/Source/WebCore
[GTK] Honor GTK+ font settings
https://bugs.webkit.org/show_bug.cgi?id=82889
Reviewed by Carlos Garcia Campos.
After much discussion with Behdad and Martin (who is still not completely convinced I think
:) I want to merge cairo font options into the Fontconfig pattern used for rendering using
cairo_ft_font_options_substitute(). This is how the API was designed to be used anyway.
Fontconfig will still have final say over whether to actually respect the desktop settings
or not, so it can still choose to ignore the desktop's settings, but I don't think it makes
sense to have desktop-wide font settings and not tell Fontconfig about them, especially when
the whole point of WebKitGTK+ is desktop integration. This should also reduce complaints
that we're not following desktop settings and that we're drawing fonts differently than
Firefox.
- PlatformGTK.cmake:
- platform/graphics/cairo/CairoUtilities.cpp:
(WebCore::getDefaultCairoFontOptions):
- platform/graphics/cairo/CairoUtilities.h:
- platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::createFontConfigPatternForCharacters):
(WebCore::strongAliasesForFamily):
(WebCore::FontCache::createFontPlatformData):
- platform/graphics/freetype/FontPlatformDataFreeType.cpp:
(WebCore::getDefaultFontconfigOptions):
(WebCore::getDefaultCairoFontOptions): Deleted.
- platform/graphics/gtk/GdkCairoUtilities.cpp:
(getDefaultCairoFontOptions):
- 3:51 PM Changeset in webkit [214282] by
-
- 14 edits in trunk
[Modern Media Controls] Controls size lags behind media size
https://bugs.webkit.org/show_bug.cgi?id=169962
<rdar://problem/30340293>
Patch by Antoine Quint <Antoine Quint> on 2017-03-22
Reviewed by Dean Jackson.
Source/WebCore:
We used to dispatch the "resize" event to the shadow root on a timer and commit changes to the DOM
when handling it inside of a requestAnimationFrame() callback. We now dispatch the "resize" event
as a post-layout task and commit to the DOM right away which ensures immediate size changes of the
controls.
- Modules/modern-media-controls/controls/ios-inline-media-controls.js:
(IOSInlineMediaControls.prototype.layout):
- Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js:
(MacOSFullscreenMediaControls.prototype.layout):
- Modules/modern-media-controls/controls/macos-inline-media-controls.js:
(MacOSInlineMediaControls.prototype.layout):
Making some layout() safer by returning early in case they're called during the object construction
phase, due to the LayoutNode "width" setter now calling that method.
- Modules/modern-media-controls/controls/media-controls.js:
(MediaControls.prototype.get width):
(MediaControls.prototype.set width):
Calling layout() in the "width" setter to ensure that the inline controls layout is invalidated as
soon as the controls width changes instead of waiting on the next rAF to update the layout.
- Modules/modern-media-controls/controls/scheduler.js:
(const.scheduler.new.prototype.flushScheduledLayoutCallbacks):
Add a new method to immediately call queued layouts.
- Modules/modern-media-controls/media/media-controller.js:
(MediaController.prototype.handleEvent):
Flush all queued layouts when handling a "resize" event.
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::layoutSizeChanged):
Queue the "resize" event as a post-layout task.
(WebCore::HTMLMediaElement::contextDestroyed):
- html/HTMLMediaElement.h:
Remove the queue we no longer use.
LayoutTests:
Updating an existing test to use a "resize" event handler to check that a size change
on the element is reflected on the shadow root. This would have failed prior to this
patch. Also rebaselining a test which now reports correct values.
- media/modern-media-controls/media-controller/media-controller-resize-expected.txt:
- media/modern-media-controls/media-controller/media-controller-resize.html:
- media/modern-media-controls/media-controller/media-controller-scale-factor-audio-expected.txt:
- media/modern-media-controls/media-controller/media-controller-scale-factor-audio.html:
- 3:51 PM Changeset in webkit [214281] by
-
- 2 edits in trunk/LayoutTests
Activate remaining webrtc tests
https://bugs.webkit.org/show_bug.cgi?id=169957
Unreviewed.
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
- platform/mac-wk2/TestExpectations:
- 3:50 PM Changeset in webkit [214280] by
-
- 10 edits in trunk/Websites/perf.webkit.org
ComponentBase should enqueue itself to render when it becomes connected
https://bugs.webkit.org/show_bug.cgi?id=169905
Reviewed by Antti Koivisto.
When a component becomes connected to a document, enqueue itself to render automatically.
Also added the support for boolean attribute to ComponentBase.createElement.
- ReadMe.md: Added an instruction to raise the upload limit per r214065.
- browser-tests/component-base-tests.js: Added tests for the new behavior and createElement. Also moved
the tests related to enqueueToRenderOnResize out of defineElement tests.
- browser-tests/index.html:
(BrowsingContext.prototype.constructor): Override requestAnimationFrame so that the callback would be
involved immediately durign testing.
- public/v3/components/base.js:
(ComponentBase): Enqueue itself to render during construction if custom elements is not available.
(ComponentBase.defineElement):
(ComponentBase.defineElement.elementClass.prototype.connectedCallback): Enqueue itself to render when
the component's element became connected.
(ComponentBase.createElement): Use Array.isArray instead of instanceof to make it work with arrays made
in other realms (global objects) during testing. Added the support for boolean attributes. Setting an
attribute value to true would set the attribute, and setting it to false would not set the attribute.
(ComponentBase.useNativeCustomElements): Added. True iff window.customElements is defined.
- public/v3/components/chart-pane-base.js:
(ChartPaneBase.prototype.render): No longer need to call enqueueToRender on the commit log viewer.
- public/v3/components/commit-log-viewer.js:
(CommitLogViewer.prototype.render): No longer need to call enqueueToRender on the spinner icon.
- public/v3/models/time-series.js:
(TimeSeries): Made this a proper class declaration now that we don't include data.js after r213300.
- public/v3/pages/chart-pane.js:
(ChartPane.prototype._renderActionToolbar): No longer need to call enqueueToRender on the close icon.
- public/v3/pages/summary-page.js:
(SummaryPage.prototype._renderCell): No longer need to call enqueueToRender on the spinner icon.
- 3:25 PM Changeset in webkit [214279] by
-
- 2 edits in trunk/Source/WebCore
Try to fix the Mac CMake build after r214266.
- PlatformMac.cmake:
- 3:22 PM Changeset in webkit [214278] by
-
- 2 edits in trunk/Tools
Only run volume-related autoplay policy tests on Mac.
https://bugs.webkit.org/show_bug.cgi?id=169969
Reviewed by Alex Christensen.
iOS does not support volume changes to media elements so these tests are timing out.
- TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
(TEST):
- 2:14 PM Changeset in webkit [214277] by
-
- 13 edits6 adds in trunk
WebKit should disallow beforeunload alerts from web pages users have never interacted with
https://bugs.webkit.org/show_bug.cgi?id=169936
<rdar://problem/23798897>
Reviewed by Brent Fulgham.
LayoutTests/imported/w3c:
- web-platform-tests/html/browsers/browsing-the-web/unloading-documents/beforeunload-canceling-expected.txt:
- web-platform-tests/html/webappapis/scripting/events/compile-event-handler-settings-objects-expected.txt:
Rebaseline now that the CONFIRM MESSAGE lines are now longer shown. This is because there is no user interaction
with the page.
Source/WebCore:
WebKit should disallow beforeunload alerts from web pages users have never interacted with.
This reduces the risk of annoyance to the user and is allowed by the specification:
which says:
"""
The user agent is encouraged to avoid asking the user for confirmation if it judges that doing
so would be annoying, deceptive, or pointless. A simple heuristic might be that if the user
has not interacted with the document, the user agent would not ask for confirmation before
unloading it.
"""
Firefox already implements this, Chrome does not.
Tests: fast/events/beforeunload-alert-no-user-interaction.html
fast/events/beforeunload-alert-user-interaction.html
fast/events/beforeunload-alert-user-interaction2.html
- loader/FrameLoader.cpp:
(WebCore::shouldAskForNavigationConfirmation):
(WebCore::FrameLoader::dispatchBeforeUnloadEvent):
LayoutTests:
- fast/events/before-unload-return-string-conversion-expected.txt:
- fast/events/before-unload-returnValue-expected.txt:
Rebaseline now that the CONFIRM MESSAGE is no longer shown. This is because there is
no user interaction with the page.
- fast/events/beforeunload-alert-no-user-interaction-expected.txt: Added.
- fast/events/beforeunload-alert-no-user-interaction.html: Added.
- fast/events/beforeunload-alert-user-interaction-expected.txt: Added.
- fast/events/beforeunload-alert-user-interaction.html: Added.
- fast/events/beforeunload-alert-user-interaction2-expected.txt: Added.
- fast/events/beforeunload-alert-user-interaction2.html: Added.
Add layout test coverage.
- fast/loader/form-submission-after-beforeunload-cancel.html:
- fast/loader/show-only-one-beforeunload-dialog.html:
- http/tests/misc/iframe-beforeunload-dialog-matching-ancestor-securityorigin.html:
- http/tests/misc/iframe-beforeunload-dialog-not-matching-ancestor-securityorigin.html:
Simulate user interaction with the page so that the CONFIRM MESSAGE log lines are still
shown.
- 1:46 PM Changeset in webkit [214276] by
-
- 2 edits in trunk/Source/WebCore
ASan violation in IconLoader::stopLoading
https://bugs.webkit.org/show_bug.cgi?id=169960
<rdar://problem/30577691>
Reviewed by David Kilzer.
DocumentLoader::finishLoadingIcon handles the life cycle of the IconLoader. Once this method is called,
we should return immediately rather than attempt to make further modifications to the IconLoader.
No new tests due to lack of test features (see https://bugs.webkit.org/show_bug.cgi?id=164895). Easily
tested in MiniBrowser under ASan visiting websites with icons.
- loader/icon/IconLoader.cpp:
(WebCore::IconLoader::notifyFinished):
- 1:33 PM Changeset in webkit [214275] by
-
- 8 copies1 add in releases/Apple/Safari Technology Preview 26
Added a tag for Safari Technology Preview release 26.
- 1:30 PM Changeset in webkit [214274] by
-
- 5 edits in trunk
AX: WebKit is returning the wrong rangeForLine
https://bugs.webkit.org/show_bug.cgi?id=169940
Reviewed by Chris Fleizach.
Source/WebCore:
The AXRangeForLine is being calculated using VisiblePostition, so
when we try to use the index we should validate it using VisiblePosition.
Changes are covered in the modified test.
- accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::traverseToOffsetInRange):
(WebCore::AXObjectCache::characterOffsetForIndex):
LayoutTests:
- accessibility/mac/range-for-contenteditable-newline-expected.txt:
- accessibility/mac/range-for-contenteditable-newline.html:
- 1:30 PM Changeset in webkit [214273] by
-
- 2 edits in trunk/Source/WebKit/mac
[iOS] downloadableBinaryFontsEnabled is set to false in -initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:
https://bugs.webkit.org/show_bug.cgi?id=169967
<rdar://problem/30406898>
Reviewed by Anders Carlsson.
- WebView/WebView.mm:
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Removed call to
Settings::downloadableBinaryFontsEnabled. The default is true.
- 1:07 PM Changeset in webkit [214272] by
-
- 3 edits1 add in trunk
[JSC] Use jsNontrivialString for Number toString operations
https://bugs.webkit.org/show_bug.cgi?id=169965
Reviewed by Mark Lam.
JSTests:
- stress/to-string-int32.js: Added.
(shouldBe):
(toString10):
(expected):
Source/JavaScriptCore:
After single character check, produced string is always longer than 1.
Thus, we can use jsNontrivialString.
- runtime/NumberPrototype.cpp:
(JSC::int32ToStringInternal):
- 12:50 PM Changeset in webkit [214271] by
-
- 7 edits in branches/safari-603-branch/Source
Merge r214125. rdar://problem/30921831
- 12:43 PM Changeset in webkit [214270] by
-
- 10 edits in trunk
Resource Load Statistics: Fix partitioning bug for client-side cookie access
https://bugs.webkit.org/show_bug.cgi?id=169906
<rdar://problem/31164456>
Reviewed by Alex Christensen.
Source/WebCore:
The existing test case was expanded to cover this change.
- platform/network/NetworkStorageSession.h:
Moved the two cookieStoragePartition() functions into the class.
Also declared them const.
- platform/network/cf/NetworkStorageSessionCFNet.cpp:
(WebCore::NetworkStorageSession::cookieStoragePartition):
Now checks whether it should partition or not.
(WebCore::getPartitioningDomain):
Inline convenience function.
(WebCore::NetworkStorageSession::shouldPartitionCookies):
Renamed since it now receives a top privately controlled domain
instead of a host.
(WebCore::cookieStoragePartition): Deleted.
This moved into NetworkStorageSession.
(WebCore::hostIsInDomain): Deleted.
No longer needed since we generate the top privately controlled
domain for both the resource and the partition.
(WebCore::NetworkStorageSession::shouldPartitionCookiesForHost): Deleted.
Renamed WebCore::NetworkStorageSession::shouldPartitionCookies().
- platform/network/mac/CookieJarMac.mm:
(WebCore::cookiesInPartitionForURL):
Now calls WebCore::NetworkStorageSession::cookieStoragePartition().
(WebCore::setCookiesFromDOM):
Now calls WebCore::NetworkStorageSession::cookieStoragePartition().
- platform/network/mac/ResourceHandleMac.mm:
(WebCore::ResourceHandle::createNSURLConnection):
Now calls WebCore::NetworkStorageSession::cookieStoragePartition().
Source/WebKit2:
- NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTaskCocoa::NetworkDataTaskCocoa):
This function no longer asks the NetworkStorageSession
whether it should partition or not. That decision is
now made as part of
WebCore::NetworkStorageSession::cookieStoragePartition().
The empty partition signals no partitioning.
LayoutTests:
- http/tests/loading/resourceLoadStatistics/partitioned-cookies-with-and-without-user-interaction-expected.txt:
- http/tests/loading/resourceLoadStatistics/resources/get-cookies.php:
Now also outputs document.cookie client-side.
- 12:32 PM Changeset in webkit [214269] by
-
- 5 edits2 adds in trunk
Media files served without an extension will not load in <video> tag.
https://bugs.webkit.org/show_bug.cgi?id=169895
Reviewed by Eric Carlson.
Source/WebCore:
Test: http/tests/media/video-served-as-text-with-type.html
Media files served without an extension will commonly have no MIME type (or incorrect MIME type) information
delivered in the HTTP header. In situations like these, if media referenced by a <source> tag with a type=
attribute containing MIME type (and optionally, codec) information, that type should be used preferentially.
- platform/graphics/MediaPlayer.h:
(WebCore::MediaPlayer::contentMIMEType):
(WebCore::MediaPlayer::contentTypeCodecs):
(WebCore::MediaPlayer::contentMIMETypeWasInferredFromExtension):
- platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL):
LayoutTests:
- http/tests/media/video-served-as-text-with-type-expected.txt: Added.
- http/tests/media/video-served-as-text-with-type.html: Added.
- platform/mac/TestExpectations:
- 12:23 PM Changeset in webkit [214268] by
-
- 2 edits2 moves in trunk/Source/WebCore
[QuickLook] Move QuickLook.{h,mm} to platform/ios/
https://bugs.webkit.org/show_bug.cgi?id=169963
Reviewed by Andreas Kling.
- WebCore.xcodeproj/project.pbxproj:
- platform/ios/QuickLook.h: Renamed from Source/WebCore/loader/ios/QuickLook.h.
- platform/ios/QuickLook.mm: Renamed from Source/WebCore/loader/ios/QuickLook.mm.
- 11:20 AM Changeset in webkit [214267] by
-
- 2 edits in trunk/LayoutTests
Remove duplicate TestExpectations entry.
Unreviewed test gardening.
- 11:11 AM Changeset in webkit [214266] by
-
- 20 edits1 copy5 moves1 add in trunk/Source
[QuickLook] Rename QuickLookHandle to PreviewLoader
https://bugs.webkit.org/show_bug.cgi?id=169961
Reviewed by Andreas Kling.
Source/WebCore:
- WebCore.xcodeproj/project.pbxproj:
- loader/EmptyClients.cpp:
- loader/FrameLoaderClient.h:
- loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::isQuickLookResource):
- loader/ResourceLoader.h:
- loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::shouldCreatePreviewLoaderForResponse):
(WebCore::SubresourceLoader::didReceiveResponse):
(WebCore::SubresourceLoader::didReceiveData):
(WebCore::SubresourceLoader::didReceiveBuffer):
(WebCore::SubresourceLoader::didFinishLoading):
(WebCore::SubresourceLoader::didFail):
(WebCore::SubresourceLoader::shouldCreateQuickLookHandleForResponse): Deleted.
- loader/SubresourceLoader.h:
- loader/ios/PreviewLoader.h: Copied from Source/WebCore/loader/ios/QuickLook.h.
- loader/ios/PreviewLoader.mm: Added.
(testingClient):
(emptyClient):
(-[WebPreviewLoader initWithResourceLoader:resourceResponse:]):
(-[WebPreviewLoader appendDataArray:]):
(-[WebPreviewLoader finishedAppending]):
(-[WebPreviewLoader failed]):
(-[WebPreviewLoader _sendDidReceiveResponseIfNecessary]):
(-[WebPreviewLoader connection:didReceiveData:lengthReceived:]):
(-[WebPreviewLoader connectionDidFinishLoading:]):
(isQuickLookPasswordError):
(-[WebPreviewLoader connection:didFailWithError:]):
(WebCore::PreviewLoader::PreviewLoader):
(WebCore::PreviewLoader::~PreviewLoader):
(WebCore::PreviewLoader::shouldCreateForMIMEType):
(WebCore::PreviewLoader::create):
(WebCore::PreviewLoader::didReceiveData):
(WebCore::PreviewLoader::didReceiveBuffer):
(WebCore::PreviewLoader::didFinishLoading):
(WebCore::PreviewLoader::didFail):
(WebCore::PreviewLoader::setClientForTesting):
- loader/ios/QuickLook.h:
(): Deleted.
- loader/ios/QuickLook.mm:
(WebCore::QLPreviewGetSupportedMIMETypesSet):
(WebCore::removeQLPreviewConverterForURL):
(WebCore::registerQLPreviewConverterIfNeeded):
(WebCore::QLPreviewProtocol):
(WebCore::isQuickLookPreviewURL):
(qlPreviewConverterDictionaryMutex): Deleted.
(QLPreviewConverterDictionary): Deleted.
(QLContentDictionary): Deleted.
(addQLPreviewConverterWithFileForURL): Deleted.
(createQLPreviewProtocol): Deleted.
(testingClient): Deleted.
(emptyClient): Deleted.
(-[WebPreviewLoader initWithResourceLoader:resourceResponse:quickLookHandle:]): Deleted.
(-[WebPreviewLoader appendDataArray:]): Deleted.
(-[WebPreviewLoader finishedAppending]): Deleted.
(-[WebPreviewLoader failed]): Deleted.
(-[WebPreviewLoader _sendDidReceiveResponseIfNecessary]): Deleted.
(-[WebPreviewLoader connection:didReceiveData:lengthReceived:]): Deleted.
(-[WebPreviewLoader connectionDidFinishLoading:]): Deleted.
(isQuickLookPasswordError): Deleted.
(-[WebPreviewLoader connection:didFailWithError:]): Deleted.
(WebCore::QuickLookHandle::QuickLookHandle): Deleted.
(WebCore::QuickLookHandle::~QuickLookHandle): Deleted.
(WebCore::QuickLookHandle::shouldCreateForMIMEType): Deleted.
(WebCore::QuickLookHandle::create): Deleted.
(WebCore::QuickLookHandle::didReceiveData): Deleted.
(WebCore::QuickLookHandle::didReceiveBuffer): Deleted.
(WebCore::QuickLookHandle::didFinishLoading): Deleted.
(WebCore::QuickLookHandle::didFail): Deleted.
(WebCore::QuickLookHandle::setClientForTesting): Deleted.
- platform/network/ResourceHandle.h:
- platform/network/ios/PreviewLoaderClient.h: Renamed from Source/WebCore/platform/network/ios/QuickLookHandleClient.h.
(WebCore::PreviewLoaderClient::~PreviewLoaderClient):
- testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):
(WebCore::Internals::setQuickLookPassword):
- testing/MockPreviewLoaderClient.cpp: Renamed from Source/WebCore/testing/MockQuickLookHandleClient.cpp.
(WebCore::MockPreviewLoaderClient::singleton):
(WebCore::MockPreviewLoaderClient::didRequestPassword):
- testing/MockPreviewLoaderClient.h: Renamed from Source/WebCore/testing/MockQuickLookHandleClient.h.
Source/WebKit/mac:
- WebCoreSupport/WebFrameLoaderClient.h:
- WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::createPreviewLoaderClient):
(WebFrameLoaderClient::createQuickLookHandleClient): Deleted.
Source/WebKit2:
- WebKit2.xcodeproj/project.pbxproj:
- WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
- WebProcess/WebCoreSupport/ios/WebFrameLoaderClientIOS.mm:
(WebKit::WebFrameLoaderClient::createPreviewLoaderClient):
(WebKit::WebFrameLoaderClient::createQuickLookHandleClient): Deleted.
- WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.cpp: Renamed from Source/WebKit2/WebProcess/WebCoreSupport/ios/WebQuickLookHandleClient.cpp.
(WebKit::WebPreviewLoaderClient::WebPreviewLoaderClient):
(WebKit::WebPreviewLoaderClient::~WebPreviewLoaderClient):
(WebKit::WebPreviewLoaderClient::didReceiveDataArray):
(WebKit::WebPreviewLoaderClient::didFinishLoading):
(WebKit::WebPreviewLoaderClient::didFail):
(WebKit::WebPreviewLoaderClient::didRequestPassword):
(WebKit::WebPreviewLoaderClient::didReceivePassword):
- WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.h: Renamed from Source/WebKit2/WebProcess/WebCoreSupport/ios/WebQuickLookHandleClient.h.
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::didReceivePasswordForQuickLookDocument):
- 11:07 AM Changeset in webkit [214265] by
-
- 8 edits in trunk
[Readable Streams API] Implement ReadableStreamBYOBRequest respond() (readable stream state)
https://bugs.webkit.org/show_bug.cgi?id=169759
Patch by Romain Bellessort <romain.bellessort@crf.canon.fr> on 2017-03-22
Reviewed by Youenn Fablet.
LayoutTests/imported/w3c:
Updated test expectations.
- web-platform-tests/streams/readable-byte-streams/general-expected.txt:
- web-platform-tests/streams/readable-byte-streams/general.dedicatedworker-expected.txt:
Source/WebCore:
Implemented readable state part of respond() function. Parts of code cannot
currently be reached as they require ReadableStreamBYOBReader to be implemented.
Added new tests and updated expectations.
- Modules/streams/ReadableByteStreamInternals.js:
(readableByteStreamControllerEnqueue): Name shortened.
(readableByteStreamControllerRespondInternal): Updated with readable state case.
(cloneArrayBuffer): Added.
(readableByteStreamControllerRespondInReadableState): Added.
(readableByteStreamControllerRespondInClosedState): Updated.
(readableByteStreamControllerProcessPullDescriptors): Added.
(readableByteStreamControllerFillDescriptorFromQueue): Added.
(readableByteStreamControllerShiftPendingDescriptor): Name shortened.
(readableByteStreamControllerCommitDescriptor): Name shortened.
(readableByteStreamControllerConvertDescriptor): Name shortened.
LayoutTests:
Added new tests to check code that can currently be reached.
- streams/readable-stream-byob-request-expected.txt: Updated.
- streams/readable-stream-byob-request.js: Updated.
- 11:04 AM Changeset in webkit [214264] by
-
- 2 edits in trunk/Source/WebKit2
[WK2] Add SPI to notify clients when data interaction is beginning or ending
https://bugs.webkit.org/show_bug.cgi?id=169952
<rdar://problem/31187804>
Reviewed by Beth Dakin.
Adds two new UI delegate SPI hooks.
- UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
- 11:02 AM Changeset in webkit [214263] by
-
- 2 edits2 adds2 deletes in trunk/LayoutTests
Move LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html to web-platform-tests
https://bugs.webkit.org/show_bug.cgi?id=169958
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
Reviewed by Jon Lee.
LayoutTests/imported/w3c:
- web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt: Added.
- web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html: Added.
LayoutTests:
- webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt: Removed.
- webrtc/rtcconfiguration-icecandidatepoolsize.html: Removed.
- 11:00 AM Changeset in webkit [214262] by
-
- 2 edits in trunk/Source/WebCore
RTCPeerConnection is crashing if no backend is created
https://bugs.webkit.org/show_bug.cgi?id=169938
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
Reviewed by Geoffrey Garen.
RTCPeerConnection should not be visible if it is not able to create a backend.
In case when this happens anyway, it should be able to be stopped and destroyed without crashing.
To do so, we need to set its state to closed.
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::RTCPeerConnection):
(WebCore::RTCPeerConnection::close): Cosmetic change, just in case stop becomes reentrant at some point.
- 10:56 AM Changeset in webkit [214261] by
-
- 13 edits in trunk/Source/JavaScriptCore
WebAssembly: name ExecState consistently
https://bugs.webkit.org/show_bug.cgi?id=169954
Reviewed by Saam Barati.
No functional change.
- wasm/js/JSWebAssemblyCompileError.cpp:
(JSC::JSWebAssemblyCompileError::create):
(JSC::createJSWebAssemblyCompileError):
- wasm/js/JSWebAssemblyCompileError.h:
(JSC::JSWebAssemblyCompileError::create):
- wasm/js/JSWebAssemblyLinkError.cpp:
(JSC::JSWebAssemblyLinkError::create):
(JSC::createJSWebAssemblyLinkError):
- wasm/js/JSWebAssemblyLinkError.h:
(JSC::JSWebAssemblyLinkError::create):
- wasm/js/JSWebAssemblyRuntimeError.cpp:
(JSC::JSWebAssemblyRuntimeError::create):
- wasm/js/JSWebAssemblyRuntimeError.h:
(JSC::JSWebAssemblyRuntimeError::create):
- wasm/js/WebAssemblyInstanceConstructor.cpp:
(JSC::callJSWebAssemblyInstance):
- wasm/js/WebAssemblyMemoryConstructor.cpp:
(JSC::callJSWebAssemblyMemory):
- wasm/js/WebAssemblyModuleConstructor.cpp:
(JSC::callJSWebAssemblyModule):
(JSC::WebAssemblyModuleConstructor::createModule):
- wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::link):
(JSC::dataSegmentFail):
(JSC::WebAssemblyModuleRecord::evaluate):
- wasm/js/WebAssemblyPrototype.cpp:
(JSC::webAssemblyFunctionValidate):
(JSC::webAssemblyFunctionCompile):
- wasm/js/WebAssemblyTableConstructor.cpp:
(JSC::callJSWebAssemblyTable):
- 10:54 AM Changeset in webkit [214260] by
-
- 2 edits in trunk/JSTests
WebAssembly: test module namespace object for WebAssembly.Instance
https://bugs.webkit.org/show_bug.cgi?id=169951
Reviewed by Saam Barati.
- wasm/js-api/test_basic_api.js:
(const.c.in.constructorProperties.switch):
- 10:52 AM Changeset in webkit [214259] by
-
- 6 edits in trunk
WebAssembly: constructors without new don't throw
https://bugs.webkit.org/show_bug.cgi?id=165995
Reviewed by Saam Barati.
JSTests:
- wasm/js-api/test_basic_api.js:
(const.c.in.constructorProperties.switch):
Source/JavaScriptCore:
- wasm/js/WebAssemblyCompileErrorConstructor.cpp:
(JSC::constructJSWebAssemblyCompileError):
(JSC::callJSWebAssemblyCompileError):
- wasm/js/WebAssemblyLinkErrorConstructor.cpp:
(JSC::constructJSWebAssemblyLinkError):
(JSC::callJSWebAssemblyLinkError):
- wasm/js/WebAssemblyRuntimeErrorConstructor.cpp:
(JSC::constructJSWebAssemblyRuntimeError):
(JSC::callJSWebAssemblyRuntimeError):
- 10:51 AM Changeset in webkit [214258] by
-
- 5 edits in trunk
[Modern Media Controls] Rendering glitches for fullscreen controls while dragging
https://bugs.webkit.org/show_bug.cgi?id=169949
<rdar://problem/30687803>
Reviewed by Eric Carlson.
Source/WebCore:
Clipping the controls bar has some unwelcome side effects and isn't necessary, so
we simply remove it. An existing test was amended to check that there is no clipping
applied to the controls bar.
- Modules/modern-media-controls/controls/macos-fullscreen-media-controls.css:
(.media-controls.mac.fullscreen > .controls-bar):
LayoutTests:
Add an assertion that checks that the controls bar is not clipped.
- media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-controls-bar-styles-expected.txt:
- media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-controls-bar-styles.html:
- 10:48 AM Changeset in webkit [214257] by
-
- 2 edits in trunk/Source/WebCore
Add back the null check in TextureCacheCV::textureFromImage()
https://bugs.webkit.org/show_bug.cgi?id=169931
<rdar://problem/27139820>
Reviewed by Alex Christensen.
No new tests. Just adding back a check that was previously there.
- platform/graphics/cv/TextureCacheCV.mm:
(WebCore::TextureCacheCV::textureFromImage):
- 10:41 AM Changeset in webkit [214256] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Clicking DOM breakpoint marker should enable/disable breakpoints
https://bugs.webkit.org/show_bug.cgi?id=169856
<rdar://problem/31133090>
Reviewed by Joseph Pecoraro.
Clicking DOM breakpoint marker should enable/disable breakpoints,
matching the behavior of the marker's context menu:
- If one or more breakpoints are disabled, click enables all
- If all breakpoints are enabled, click disables all
- UserInterface/Views/DOMTreeElement.js:
(WebInspector.DOMTreeElement.prototype._updateBreakpointStatus):
(WebInspector.DOMTreeElement.prototype._statusImageClicked):
- 10:19 AM Changeset in webkit [214255] by
-
- 12 edits in trunk/Source/WebCore
Use AtomicString in RuleSet and RuleFeature
https://bugs.webkit.org/show_bug.cgi?id=119310
<rdar://problem/28214658>
Reviewed by Andreas Kling.
..instead of the plain AtomicStringImpl*. This introduces some ref churn but not too much.
- css/DocumentRuleSets.cpp:
(WebCore::DocumentRuleSets::ancestorClassRules):
(WebCore::DocumentRuleSets::ancestorAttributeRulesForHTML):
- css/DocumentRuleSets.h:
- css/ElementRuleCollector.cpp:
(WebCore::ElementRuleCollector::collectMatchingRules):
(WebCore::ElementRuleCollector::collectMatchingShadowPseudoElementRules):
- css/RuleFeature.cpp:
(WebCore::RuleFeatureSet::recursivelyCollectFeaturesFromSelector):
(WebCore::makeAttributeSelectorKey):
(WebCore::RuleFeatureSet::collectFeatures):
- css/RuleFeature.h:
- css/RuleSet.cpp:
(WebCore::RuleSet::addToRuleSet):
(WebCore::rulesCountForName):
(WebCore::RuleSet::addRule):
- css/RuleSet.h:
(WebCore::RuleSet::idRules):
(WebCore::RuleSet::classRules):
(WebCore::RuleSet::shadowPseudoElementRules):
(WebCore::RuleSet::tagRules):
- css/StyleResolver.h:
(WebCore::StyleResolver::hasSelectorForAttribute):
(WebCore::StyleResolver::hasSelectorForClass):
(WebCore::StyleResolver::hasSelectorForId):
- style/AttributeChangeInvalidation.cpp:
(WebCore::Style::mayBeAffectedByAttributeChange):
(WebCore::Style::AttributeChangeInvalidation::invalidateStyle):
- style/IdChangeInvalidation.cpp:
(WebCore::Style::mayBeAffectedByHostRules):
(WebCore::Style::mayBeAffectedBySlottedRules):
(WebCore::Style::IdChangeInvalidation::invalidateStyle):
- style/StyleSharingResolver.cpp:
(WebCore::Style::SharingResolver::resolve):
(WebCore::Style::SharingResolver::canShareStyleWithElement):
(WebCore::Style::SharingResolver::classNamesAffectedByRules):
- 10:18 AM Changeset in webkit [214254] by
-
- 6 edits in trunk
Safari sends empty "Access-Control-Request-Headers" in preflight request
https://bugs.webkit.org/show_bug.cgi?id=169851
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/fetch/api/cors/cors-preflight-expected.txt:
- web-platform-tests/fetch/api/cors/cors-preflight.js:
Source/WebCore:
Covered by updated test.
- loader/CrossOriginAccessControl.cpp:
(WebCore::createAccessControlPreflightRequest): Not adding "Access-Control-Request-Headers" to
request header if value is empty.
- 10:15 AM Changeset in webkit [214253] by
-
- 3 edits in trunk/Source/JavaScriptCore
[DFG] Don't use ArraySlice intrinsic on MIPS
https://bugs.webkit.org/show_bug.cgi?id=169721
Patch by Guillaume Emont <guijemont@igalia.com> on 2017-03-22
Reviewed by Yusuke Suzuki.
Like on x86, we don't have enough registers available for this.
- assembler/CPU.h:
(JSC::isMIPS): Added.
- dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
Don't use the ArraySlice intrinsic on MIPS.
- 10:14 AM Changeset in webkit [214252] by
-
- 6 edits in trunk
XMLHttpRequest: getAllResponseHeaders() should lowercase header names before sorting
https://bugs.webkit.org/show_bug.cgi?id=169286
Patch by Youenn Fablet <youenn@apple.com> on 2017-03-22
Reviewed by Chris Dumez.
LayoutTests/imported/w3c:
- web-platform-tests/XMLHttpRequest/getallresponseheaders-cl-expected.txt:
- web-platform-tests/XMLHttpRequest/getallresponseheaders-expected.txt:
Source/WebCore:
Covered by rebased tests.
https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method now mandates to lowercase the header names and
sort them before appending them. This ensures that differences in the way headers are processed by browsers are
not visible to web pages. This also moves towards lowercased/case-insensitive header processing which should be
the norm.
- xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::getAllResponseHeaders): Lower-casing, then sorting, then serializing headers.
- xml/XMLHttpRequest.h: Storing getAllResponseHeaders result if case needed again.
- 9:15 AM Changeset in webkit [214251] by
-
- 8 edits1 copy17 adds in trunk
Implement the "noopener" feature for window.open()
https://bugs.webkit.org/show_bug.cgi?id=163960
<rdar://problem/28941679>
Reviewed by Sam Weinig.
LayoutTests/imported/w3c:
Import test coverage from WPT upstream.
- resources/import-expectations.json:
- web-platform-tests/common/PrefixedLocalStorage.js: Added.
(PrefixedLocalStorage):
(PrefixedLocalStorage.prototype.clear):
(PrefixedLocalStorage.prototype.url):
(PrefixedLocalStorage.prototype.prefixedKey):
(PrefixedLocalStorage.prototype.setItem):
(PrefixedLocalStorage.prototype.onSet):
(PrefixedLocalStorageTest):
(PrefixedLocalStorageTest.prototype.cleanup):
(PrefixedLocalStorageResource):
- web-platform-tests/common/w3c-import.log:
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-closed-expected.txt: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-closed.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-expected.txt: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-multiple-expected.txt: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-multiple.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noopener-expected.txt: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noopener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noreferrer-expected.txt: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noreferrer.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/close-opener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/message-window-opener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/multiple-opener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/no-opener.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/open-closer.html: Added.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/resources/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/w3c-import.log.
- web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/w3c-import.log:
Source/WebCore:
Implement the "noopener" feature for window.open(). If 'noopener' is passed to window.open()
then the new Window's opener property will be null.
Tests: imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-closed.html
imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-multiple.html
imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noopener.html
imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener-noreferrer.html
imported/w3c/web-platform-tests/html/browsers/windows/auxiliary-browsing-contexts/opener.html
- page/DOMWindow.cpp:
(WebCore::DOMWindow::createWindow):
- page/WindowFeatures.cpp:
(WebCore::parseWindowFeatures):
(WebCore::setWindowFeature):
- page/WindowFeatures.h:
- 7:36 AM Changeset in webkit [214250] by
-
- 2 edits in trunk/Tools
[Linux] determineArchitecture is not cross-compile aware
https://bugs.webkit.org/show_bug.cgi?id=169886
Reviewed by Michael Catanzaro.
Try to detect the target architecture name from the GCC triplet
when cross-building.
The aarch64 architecture is renamed to arm64 (this is coherent with
the rest of the perl tooling that consults the architecture determined
in determineArchitecture(), the check for this arch is always done
with the arm64 name).
- Scripts/webkitdirs.pm: Remove the isARM() function: its dead code
and not cross-build aware.
(determineArchitecture): When crossbuilding, try to detect the target
architecture name from the GCC triplet.
Remove also the fallback option to run the arch command, because this
command doesn't print the expected on Mac/BSD, and on Linux is the
same than uname -m. See https://bugs.webkit.org/show_bug.cgi?id=152958#c6
(isCrossCompilation): Some cross-compilers (buildroot one for example)
don't define the --host option. Add another option to detect that
we are cross-building by building a dummy program and checking if
we can run it.
- 4:59 AM Changeset in webkit [214249] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Rebaseline fast/text/hyphenate-limit-lines.html.
- platform/gtk/fast/text/hyphenate-limit-lines-expected.txt:
- 4:55 AM Changeset in webkit [214248] by
-
- 1 edit1 delete in trunk/LayoutTests
Unreviewed GTK+ gardening. Remove platform expectation after r214246.
- platform/gtk/http/tests/loading/server-redirect-for-provisional-load-caching-expected.txt: Removed.
- 4:50 AM Changeset in webkit [214247] by
-
- 15 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Rebaseline several tests after r214244.
- platform/gtk/accessibility/file-upload-button-stringvalue-expected.txt:
- platform/gtk/fast/forms/box-shadow-override-expected.png:
- platform/gtk/fast/forms/box-shadow-override-expected.txt:
- platform/gtk/fast/forms/file/file-input-direction-expected.png:
- platform/gtk/fast/forms/file/file-input-direction-expected.txt:
- platform/gtk/fast/forms/file/file-input-disabled-expected.png:
- platform/gtk/fast/forms/file/file-input-disabled-expected.txt:
- platform/gtk/fast/forms/form-element-geometry-expected.png:
- platform/gtk/fast/forms/form-element-geometry-expected.txt:
- platform/gtk/fast/forms/input-appearance-height-expected.png:
- platform/gtk/fast/forms/input-appearance-height-expected.txt:
- platform/gtk/fast/forms/input-value-expected.txt:
- platform/gtk/media/video-controls-captions-trackmenu-localized-expected.txt:
- platform/gtk/media/video-controls-captions-trackmenu-sorted-expected.txt:
- 3:09 AM Changeset in webkit [214246] by
-
- 5 edits2 adds in trunk
[Soup] "Only from websites I visit" cookie policy is broken
https://bugs.webkit.org/show_bug.cgi?id=168912
Reviewed by Carlos Garcia Campos.
Source/WebCore:
Do not reset the first party for cookies on redirects. That's properly done for the main
resource in DocumentLoader::willSendRequest and, in the case of subresources, is absolutely
wrong (which is what we were doing since r143931).
The most notable effect was that subresources loaded via redirects were effectively
bypassing the "no third party" policy for cookies.
Test: http/tests/security/cookies/third-party-cookie-blocking-redirect.html
- platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::doRedirect):
Source/WebKit2:
Do not reset the first party for cookies on redirects. That's properly done for the main
resource in DocumentLoader::willSendRequest and, in the case of subresources, is absolutely
wrong (which is what we were doing since r143931).
The most notable effect was that subresources loaded via redirects were effectively
bypassing the "no third party" policy for cookies.
- NetworkProcess/soup/NetworkDataTaskSoup.cpp:
(WebKit::NetworkDataTaskSoup::continueHTTPRedirection):
LayoutTests:
- http/tests/security/cookies/third-party-cookie-blocking-redirect-expected.txt: Added.
- http/tests/security/cookies/third-party-cookie-blocking-redirect.html: Added.
- 3:07 AM Changeset in webkit [214245] by
-
- 2 edits in trunk/LayoutTests
All http/ tests with PHP fail in Debian unstable with php7
https://bugs.webkit.org/show_bug.cgi?id=169913
Reviewed by Michael Catanzaro.
The problem is that the configuration file was still checking for php5 instead of php7.
- http/conf/debian-httpd-2.4-php7.conf:
- 2:55 AM Changeset in webkit [214244] by
-
- 12 edits in trunk/Source/WebCore
Make it possible to use WEB_UI_STRING macros to mark translatable strings in glib based ports
https://bugs.webkit.org/show_bug.cgi?id=169672
Reviewed by Michael Catanzaro.
Source/WebCore:
WEB_UI_STRING macros are currently used by Cocoa based ports and Windows port. For other ports it simply returns
the given string, but it's not translated. In the GTK+ port we have all translatable strings from
LocalizedStrings.cpp copied in LocalizedStringsGtk.cpp to use the glib macros to mark them as translatable. In
most of the cases the strings are exactly in the same, in some others (the context menu ones) the string only
differs in the mnemonics used by GTK, and only in a few cases the strings are different. We could remove most of
that duplication if strings used by WEB_UI_STRING were marked as translatable in glib based ports too.
This patch makes that possible with the following changes:
- Add WEB_UI_STRING_WITH_MNEMONIC() to handle the cases where the strings only differ in the mnemonics. It receives the string with mnemonics that is ignored in all ports except GTK+.
- All platform specific strings have been moved to the platform files, to ensure scanners don't include strings from other ports.
- For the same reason a new macro WEB_UI_CFSTRING has been also added, just to make sure that CF strings are only used by CF based ports. The implementation is the same as WEB_UI_STRING, it only changes the name to not confuse the scanners.
- And again for the same reason, for non-CF and non-Glib cases WEB_UI_STRING is not used, since in those cases strings are not really translated and String::fromUTF8() is actually used. So, now we use String::fromUTF8() directly instead of WEB_UI_STRING to not confuse the scanners.
- CMakeLists.txt: Add LocalizedStrings.cpp to the compilation.
- PlatformGTK.cmake: Move LocalizedStringsGtk.cpp to the list of sources not depending on GTK+, since it no
longer uses GTK+.
- extract-localizable-strings.pl: Update it to handle the new macros.
- platform/LocalizedStrings.cpp:
(WebCore::formatLocalizedString):
(WebCore::contextMenuItemTagOpenLinkInNewWindow):
(WebCore::contextMenuItemTagDownloadLinkToDisk):
(WebCore::contextMenuItemTagOpenImageInNewWindow):
(WebCore::contextMenuItemTagCopyImageToClipboard):
(WebCore::contextMenuItemTagOpenFrameInNewWindow):
(WebCore::contextMenuItemTagCopy):
(WebCore::contextMenuItemTagGoBack):
(WebCore::contextMenuItemTagGoForward):
(WebCore::contextMenuItemTagStop):
(WebCore::contextMenuItemTagReload):
(WebCore::contextMenuItemTagCut):
(WebCore::contextMenuItemTagPaste):
(WebCore::contextMenuItemTagIgnoreSpelling):
(WebCore::contextMenuItemTagLearnSpelling):
(WebCore::contextMenuItemTagLookUpInDictionary):
(WebCore::contextMenuItemTagOpenLink):
(WebCore::contextMenuItemTagIgnoreGrammar):
(WebCore::contextMenuItemTagSpellingMenu):
(WebCore::contextMenuItemTagShowSpellingPanel):
(WebCore::contextMenuItemTagCheckSpelling):
(WebCore::contextMenuItemTagCheckSpellingWhileTyping):
(WebCore::contextMenuItemTagCheckGrammarWithSpelling):
(WebCore::contextMenuItemTagFontMenu):
(WebCore::contextMenuItemTagBold):
(WebCore::contextMenuItemTagItalic):
(WebCore::contextMenuItemTagUnderline):
(WebCore::contextMenuItemTagOutline):
(WebCore::contextMenuItemTagOpenVideoInNewWindow):
(WebCore::contextMenuItemTagOpenAudioInNewWindow):
(WebCore::contextMenuItemTagDownloadVideoToDisk):
(WebCore::contextMenuItemTagDownloadAudioToDisk):
(WebCore::contextMenuItemTagExitVideoFullscreen):
(WebCore::contextMenuItemTagMediaPlay):
(WebCore::contextMenuItemTagMediaPause):
(WebCore::contextMenuItemTagMediaMute):
(WebCore::contextMenuItemTagInspectElement):
(WebCore::AXAutoFillContactsLabel):
(WebCore::imageTitle):
(WebCore::validationMessageRangeUnderflowText):
(WebCore::validationMessageRangeOverflowText):
(WebCore::textTrackCountryAndLanguageMenuItemText):
(WebCore::textTrackLanguageMenuItemText):
(WebCore::closedCaptionTrackMenuItemText):
(WebCore::sdhTrackMenuItemText):
(WebCore::easyReaderTrackMenuItemText):
(WebCore::forcedTrackMenuItemText):
(WebCore::audioDescriptionTrackSuffixText):
(WebCore::webCryptoMasterKeyKeychainLabel):
- platform/LocalizedStrings.h:
- platform/cocoa/LocalizedStringsCocoa.mm:
(WebCore::copyImageUnknownFileLabel):
(WebCore::contextMenuItemTagSearchInSpotlight):
(WebCore::contextMenuItemTagSearchWeb):
(WebCore::contextMenuItemTagShowFonts):
(WebCore::contextMenuItemTagStyles):
(WebCore::contextMenuItemTagShowColors):
(WebCore::contextMenuItemTagSpeechMenu):
(WebCore::contextMenuItemTagStartSpeaking):
(WebCore::contextMenuItemTagStopSpeaking):
(WebCore::contextMenuItemTagCorrectSpellingAutomatically):
(WebCore::contextMenuItemTagSubstitutionsMenu):
(WebCore::contextMenuItemTagShowSubstitutions):
(WebCore::contextMenuItemTagSmartCopyPaste):
(WebCore::contextMenuItemTagSmartQuotes):
(WebCore::contextMenuItemTagSmartDashes):
(WebCore::contextMenuItemTagSmartLinks):
(WebCore::contextMenuItemTagTextReplacement):
(WebCore::contextMenuItemTagTransformationsMenu):
(WebCore::contextMenuItemTagMakeUpperCase):
(WebCore::contextMenuItemTagMakeLowerCase):
(WebCore::contextMenuItemTagCapitalize):
(WebCore::contextMenuItemTagChangeBack):
(WebCore::contextMenuItemTagEnterVideoEnhancedFullscreen):
(WebCore::contextMenuItemTagExitVideoEnhancedFullscreen):
(WebCore::AXARIAContentGroupText):
(WebCore::AXHorizontalRuleDescriptionText):
(WebCore::AXMarkText):
(WebCore::AXMeterGaugeRegionOptimumText):
(WebCore::AXMeterGaugeRegionSuboptimalText):
(WebCore::AXMeterGaugeRegionLessGoodText):
(WebCore::builtInPDFPluginName):
(WebCore::pdfDocumentTypeDescription):
(WebCore::postScriptDocumentTypeDescription):
(WebCore::keygenMenuItem2048):
(WebCore::keygenKeychainItemName):
(WebCore::htmlSelectMultipleItems):
(WebCore::fileButtonChooseMediaFileLabel):
(WebCore::fileButtonChooseMultipleMediaFilesLabel):
(WebCore::fileButtonNoMediaFileSelectedLabel):
(WebCore::fileButtonNoMediaFilesSelectedLabel):
(WebCore::insertListTypeNone):
(WebCore::insertListTypeBulleted):
(WebCore::insertListTypeBulletedAccessibilityTitle):
(WebCore::insertListTypeNumbered):
(WebCore::insertListTypeNumberedAccessibilityTitle):
(WebCore::exitFullScreenButtonAccessibilityTitle):
- platform/gtk/LocalizedStringsGtk.cpp:
(WebCore::contextMenuItemTagDelete):
(WebCore::contextMenuItemTagSelectAll):
- platform/win/LocalizedStringsWin.cpp:
(WebCore::contextMenuItemTagSearchWeb):
(WebCore::uploadFileText):
(WebCore::allFilesText):
Source/WebCore/platform/gtk/po:
- CMakeLists.txt: Add keyword parameters for WEB_UI_STRING macros.
- POTFILES.in: Add LocalizedStrings.cpp to the list.
- 1:41 AM Changeset in webkit [214243] by
-
- 3 edits3 adds in trunk
[GTK] Several WPT tests are failing since they were added in the last update in r213882
https://bugs.webkit.org/show_bug.cgi?id=169915
Reviewed by Michael Catanzaro.
Tools:
Add libsoup patch to not fail loads when there's no empty line after the headers in responses with no body.
- gtk/jhbuild.modules:
- gtk/patches/libsoup-soup-message-io-Do-not-fail-when-there-s-no-empty-li.patch: Added.
LayoutTests:
They fail because libsoup fails to load the requests because the response doesn't include the empty line after the
headers while other browsers allow that. Even with libsoup patched we still need platform specific expectations
for imported/w3c/web-platform-tests/XMLHttpRequest/getallresponseheaders.htm, because libsoup caches all header
names, so the first time foo-test header is cached and then always used no matter what case is used. The results
are still valid in any case.
- platform/gtk/imported/w3c/web-platform-tests/XMLHttpRequest/getallresponseheaders-expected.txt: Added.
- 12:15 AM Changeset in webkit [214242] by
-
- 5 edits in trunk
[iOS] Migrate off of CTFontCreateForCSS
https://bugs.webkit.org/show_bug.cgi?id=168894
Reviewed by Antti Koivisto.
Source/WebCore:
Use the new font selection algorithm introduced in r213163 on iOS.
Test: fast/text/font-weights.html
- platform/graphics/cocoa/FontCacheCoreText.cpp:
- platform/graphics/cocoa/FontCocoa.mm: On iOS only, CTFontCreateForCSS()
will return a 0-sized font if the passed size parameter is 0. However, all
other CT APIs will create a 12-px-sized font if the passed size parameter is
- Most of our code knows and understands this (because this is how it works
on the Mac). However, this one place needs to be updated to understand this.
LayoutTests:
- platform/ios-simulator/fast/text/font-weights-expected.txt:
Mar 21, 2017:
- 8:49 PM Changeset in webkit [214241] by
-
- 2 edits in trunk/Source/WebCore
Make non-decoded image flashing less intrusive
https://bugs.webkit.org/show_bug.cgi?id=169942
Reviewed by Said Abou-Hallawa.
When compositing borders are enabled, we paint yellow for images that paint but don't yet have a decoded
frame. Give this yellow 50% alpha to make it less intrusive
Also log to the images log channel when we destroy decoded data.
- platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::destroyDecodedData):
(WebCore::BitmapImage::draw):
- 6:55 PM Changeset in webkit [214240] by
-
- 2 edits in trunk/Source/JavaScriptCore
The DFG Integer Check Combining phase should force an OSR exit for CheckInBounds on a negative constant min bound.
https://bugs.webkit.org/show_bug.cgi?id=169933
<rdar://problem/31105125>
Reviewed by Filip Pizlo and Geoffrey Garen.
Also fixed the bit-rotted RangeKey::dump() function.
- dfg/DFGIntegerCheckCombiningPhase.cpp:
(JSC::DFG::IntegerCheckCombiningPhase::handleBlock):
- 6:44 PM Changeset in webkit [214239] by
-
- 5 edits1 add in trunk
Loosen audio playback restrictions when the volume is 0.
https://bugs.webkit.org/show_bug.cgi?id=169897
Reviewed by Eric Carlson.
Source/WebCore:
Added API tests.
- html/MediaElementSession.cpp:
(WebCore::MediaElementSession::playbackPermitted):
Tools:
- TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
- TestWebKitAPI/Tests/WebKit2/autoplay-zero-volume-check.html: Added.
- TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
(TEST):
- 6:03 PM WikiProcessors edited by
- (diff)
- 6:03 PM WikiPageNames edited by
- (diff)
- 6:03 PM WikiNewPage created by
- 6:03 PM WikiMacros edited by
- (diff)
- 6:03 PM WikiHtml edited by
- (diff)
- 6:03 PM WikiFormatting edited by
- (diff)
- 6:03 PM WikiDeletePage edited by
- (diff)
- 6:03 PM TracWorkflow edited by
- (diff)
- 6:03 PM TracWiki edited by
- (diff)
- 6:03 PM TracUpgrade edited by
- (diff)
- 6:03 PM TracUnicode edited by
- (diff)
- 6:03 PM TracTimeline edited by
- (diff)
- 6:03 PM TracTicketsCustomFields edited by
- (diff)
- 6:03 PM WikiRestructuredTextLinks edited by
- (diff)
- 6:03 PM TracTickets edited by
- (diff)
- 6:03 PM TracSyntaxColoring edited by
- (diff)
- 6:03 PM TracSupport edited by
- (diff)
- 6:03 PM TracStandalone edited by
- (diff)
- 6:03 PM TracSearch edited by
- (diff)
- 6:03 PM TracRss edited by
- (diff)
- 6:03 PM TracRoadmap edited by
- (diff)
- 6:03 PM TracRevisionLog edited by
- (diff)
- 6:03 PM TracRepositoryAdmin edited by
- (diff)
- 6:03 PM TracReports edited by
- (diff)
- 6:03 PM TracQuery edited by
- (diff)
- 6:03 PM TracPlugins edited by
- (diff)
- 6:03 PM TracPermissions edited by
- (diff)
- 6:03 PM TracNotification edited by
- (diff)
- 6:03 PM TracNavigation edited by
- (diff)
- 6:03 PM TracModWSGI edited by
- (diff)
- 6:03 PM TracModPython edited by
- (diff)
- 6:03 PM TracLogging edited by
- (diff)
- 6:03 PM TracLinks edited by
- (diff)
- 6:03 PM TracInterfaceCustomization edited by
- (diff)
- 6:03 PM WikiRestructuredText edited by
- (diff)
- 6:03 PM TracInstall edited by
- (diff)
- 6:03 PM TracIni edited by
- (diff)
- 6:03 PM TracImport edited by
- (diff)
- 6:03 PM TracGuide edited by
- (diff)
- 6:03 PM TracFineGrainedPermissions edited by
- (diff)
- 6:03 PM TracFastCgi edited by
- (diff)
- 6:03 PM TracEnvironment edited by
- (diff)
- 6:03 PM TracChangeset edited by
- (diff)
- 6:03 PM TracChangeLog created by
- 6:03 PM TracCgi edited by
- (diff)
- 6:03 PM TracBrowser edited by
- (diff)
- 6:03 PM TracBatchModify created by
- 6:03 PM TracBackup edited by
- (diff)
- 6:03 PM TracAdmin edited by
- (diff)
- 6:03 PM TracAccessibility edited by
- (diff)
- 6:03 PM TicketQuery created by
- 6:03 PM PageTemplates edited by
- (diff)
- 6:03 PM InterWiki edited by
- (diff)
- 6:03 PM InterTrac edited by
- (diff)
- 6:03 PM CamelCase edited by
- (diff)
- 5:45 PM Changeset in webkit [214238] by
-
- 3 edits in trunk/Tools
EWS fails to parse_bug_id_from_attachment_page after bugzilla upgrade
https://bugs.webkit.org/show_bug.cgi?id=169937
<rdar://problem/31181859>
Reviewed by Alexey Proskuryakov.
- Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
(Bugzilla._parse_bug_id_from_attachment_page): Since rel tag is no longer present, parsing the bug id from bug_title.
- Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py: Fixed unit test.
- 5:08 PM Changeset in webkit [214237] by
-
- 5 edits in trunk
Disable all virtual tables.
<rdar://problem/31081972> and https://bugs.webkit.org/show_bug.cgi?id=169928
Source/WebCore:
Reviewed by Jer Noble.
No new tests (Covered by changes to existing test).
- Modules/webdatabase/DatabaseAuthorizer.cpp:
(WebCore::DatabaseAuthorizer::createVTable):
(WebCore::DatabaseAuthorizer::dropVTable):
LayoutTests:
Reviewed by Jer Noble.
- storage/websql/test-authorizer-expected.txt:
- storage/websql/test-authorizer.js:
(createStatementsCallback):
- 5:06 PM Changeset in webkit [214236] by
-
- 6 edits in branches/safari-603-branch/Source/WebCore
Merge r214014. rdar://problem/30921815
- 4:40 PM Changeset in webkit [214235] by
-
- 9 edits in trunk/Source
Remove bogus availability annotations from DOM SPI headers.
rdar://problem/31015675
Rubber-stamped by Dan Bernstein.
Source/WebCore:
- platform/cocoa/WebKitAvailability.h:
Remove NSi_9876_5 #define.
Source/WebKit/mac:
- DOM/DOMHTMLMediaElement.h:
- DOM/DOMHTMLVideoElement.h:
- DOM/DOMMediaError.h:
- DOM/DOMTextEvent.h:
- DOM/DOMTimeRanges.h:
- DOM/DOMTokenList.h:
- 4:02 PM Changeset in webkit [214234] by
-
- 5 edits in branches/safari-603-branch/Source
Versioning.
- 3:33 PM Changeset in webkit [214233] by
-
- 2 edits in trunk/Tools
ews should indicate in logs when it fails to parse_bug_id_from_attachment_page
https://bugs.webkit.org/show_bug.cgi?id=169927
Reviewed by Alexey Proskuryakov.
- Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
(Bugzilla._parse_bug_id_from_attachment_page): Added log statement.
- 2:39 PM Changeset in webkit [214232] by
-
- 3 edits2 adds in trunk
2017-03-21 Zalan Bujtas <Alan Bujtas>
Tear down descendant renderers when <slot>'s display value is set to no "contents".
https://bugs.webkit.org/show_bug.cgi?id=169921
<rdar://problem/30336417>
Reviewed by Antti Koivisto.
Since "display: contents" does not generate a renderer, when an element's display value is
changed to something other than "contents", we not only create a renderer but also reparent its descendant
subtree (e.g from slot's parent to the newly constructed slot renderer). During this reparenting, we
need to tear down the descendant subtree tree and build it up again to reflect the new rendering context.
Test: fast/shadow-dom/slot-with-continuation-descendants.html
- style/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::updateElementRenderer):
- 2:25 PM Changeset in webkit [214231] by
-
- 9 edits in trunk/Source
Teach TextIndicator to estimate the background color of the given Range
https://bugs.webkit.org/show_bug.cgi?id=169869
<rdar://problem/31127272>
Reviewed by Anders Carlsson and Simon Fraser.
Source/WebCore:
Introduces a simple heuristic to compute a background color that is appropriate to use as a border surrounding
the snapshot of the given Range. This work is only carried out if TextIndicatorOptionComputeEstimatedBackgroundColor
is specified. The details of how this background color is estimated (as well as when to fall back) can be improved
in several ways (one idea is to sample colors along the edge of the snapshot). For the time being, this patch
naively walks up the render tree in search of enclosing parent renderers that have background colors. If any
renderers have a style that is deemed too complex to capture in a single background color, then fall back to the
base document background color; otherwise, the estimated background color is the result of blending these
background colors together.
- page/TextIndicator.cpp:
(WebCore::styleContainsComplexBackground):
Bail out of the background color codepath if the renderer has backdrop filters, has a background image, or uses
a non-normal blend mode.
(WebCore::fallbackBackgroundColorForTextSelection):
(WebCore::estimatedBackgroundColorForRange):
(WebCore::initializeIndicator):
- page/TextIndicator.h:
Source/WebKit/mac:
Plumb the estimated background color for WebKit1 clients through a new property in WebUITextIndicatorData.
- WebView/WebView.mm:
(-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
(-[WebUITextIndicatorData dealloc]):
- WebView/WebViewPrivate.h:
Source/WebKit2:
Send the estimated background color over XPC, and adopt TextIndicatorOptionComputeEstimatedBackgroundColor when
snapshotting after performing an edit data interaction.
- Shared/WebCoreArgumentCoders.cpp:
(IPC::ArgumentCoder<TextIndicatorData>::encode):
(IPC::ArgumentCoder<TextIndicatorData>::decode):
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::didConcludeEditDataInteraction):
- 2:08 PM Changeset in webkit [214230] by
-
- 4 edits in trunk/Source/WebKit2
[WK2] Call processDidCrash() right away when terminating a process that exceeded background CPU limit
https://bugs.webkit.org/show_bug.cgi?id=169573
<rdar://problem/30960968>
Reviewed by Andreas Kling.
Call processDidCrash() right away when terminating a process that exceeded background CPU limit
and let the client decide when to reload the content.
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::reattachToWebProcess):
(WebKit::WebPageProxy::dispatchActivityStateChange):
(WebKit::WebPageProxy::terminateProcess):
- UIProcess/WebPageProxy.h:
- UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::didExceedBackgroundCPULimit):
- 1:52 PM Changeset in webkit [214229] by
-
- 3 edits in trunk/LayoutTests
[GTK][Wayland] Enable WebGL, 3D and compositing layout tests
https://bugs.webkit.org/show_bug.cgi?id=71849
Unreviewed test gardening.
- platform/gtk-wayland/TestExpectations: Add the diff of native Wayland compared to Xvfb.
- platform/gtk/TestExpectations: This two tests seem flaky.
- 12:49 PM Changeset in webkit [214228] by
-
- 2 edits in tags/Safari-604.1.13/Source/WebKit2
Merge r214179. rdar://problem/31030944
- 12:45 PM Changeset in webkit [214227] by
-
- 3 edits in trunk/Source/WebCore
Crash in WebCore: WebCore::CARingBuffer::getCurrentFrameBounds + 28
https://bugs.webkit.org/show_bug.cgi?id=169887
<rdar://problem/23648082>
Reviewed by Eric Carlson.
Because AudioSourceProviderAVFObjC::prepareCallback() can concievably be called after the AudioSourceProviderAVFObjC
it refers to has been destroyed, add an extra layer of indirection between the tap and the provider, and invalidate
that level of indirection before the AudioSourceProviderAVFObjC is destroyed.
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.h:
- platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm:
(WebCore::AudioSourceProviderAVFObjC::initCallback):
(WebCore::AudioSourceProviderAVFObjC::finalizeCallback):
(WebCore::AudioSourceProviderAVFObjC::prepareCallback):
(WebCore::AudioSourceProviderAVFObjC::unprepareCallback):
(WebCore::AudioSourceProviderAVFObjC::processCallback):
- 11:18 AM Changeset in webkit [214226] by
-
- 2 edits in trunk/Source/WebCore
Remove logging left in by mistake.
- rendering/RenderNamedFlowThread.cpp:
(WebCore::RenderNamedFlowThread::willBeDestroyed):
- 9:54 AM Changeset in webkit [214225] by
-
- 2 edits1 delete in trunk/Websites/bugs.webkit.org
Commit local changes for Bugzilla 5.0.3
- images/favicon.ico: Update favicon from Dec 11, 2015.
- data/params.json: Deleted.
- 9:27 AM Changeset in webkit [214224] by
-
- 597 edits3 moves189 adds35 deletes in trunk/Websites/bugs.webkit.org
Upgrade to Bugzilla 5.0.3.
- 8:52 AM Changeset in webkit [214223] by
-
- 3 edits199 adds in trunk/LayoutTests
[GTK] Enable WebGL, 3D and compositing layout tests
https://bugs.webkit.org/show_bug.cgi?id=71849
Unreviewed test gardeninng.
- http/tests/webgl/1.0.2/origin-clean-conformance-expected.txt: Rebaseline after r208049.
- platform/gtk/TestExpectations: Mark new expected failures.
- platform/gtk/compositing/animation/state-at-end-event-transform-layer-expected.png: Added. Rebaselined.
- platform/gtk/compositing/animation/state-at-end-event-transform-layer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/backface-visibility-in-3dtransformed-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/child-layer-no-backing-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/inline-block-no-backing-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/no-backing-for-clip-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/no-backing-for-clip-overhang-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/no-backing-for-clip-overlap-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/backing/replaced-child-no-backing-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/color-matching/image-color-matching-expected.png: Added. Rebaselined.
- platform/gtk/compositing/color-matching/image-color-matching-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/color-matching/pdf-image-match-expected.png: Added. Rebaselined.
- platform/gtk/compositing/color-matching/pdf-image-match-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/compositing-visible-descendant-expected.png: Added. Rebaselined.
- platform/gtk/compositing/compositing-visible-descendant-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/direct-image-compositing-expected.png: Added. Rebaselined.
- platform/gtk/compositing/direct-image-compositing-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/generated-content-expected.png: Added. Rebaselined.
- platform/gtk/compositing/generated-content-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/abs-position-inside-opacity-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/abs-position-inside-opacity-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/clipping-foreground-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/clipping-foreground-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/composited-html-size-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/composited-html-size-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/composited-in-columns-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/composited-in-columns-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/fixed-in-composited-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/fixed-in-composited-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/fixed-position-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/fixed-position-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/horizontal-scroll-composited-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/horizontal-scroll-composited-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/layer-due-to-layer-children-deep-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/layer-due-to-layer-children-deep-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/layer-due-to-layer-children-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/layer-due-to-layer-children-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/outline-change-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/outline-change-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/partial-layout-update-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/partial-layout-update-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/root-layer-update-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/root-layer-update-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/transfrom-origin-on-zero-size-layer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/vertical-scroll-composited-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/vertical-scroll-composited-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/video-fixed-scrolling-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/video-fixed-scrolling-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/geometry/video-opacity-overlay-expected.png: Added. Rebaselined.
- platform/gtk/compositing/geometry/video-opacity-overlay-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/iframes/composited-iframe-alignment-expected.png: Added. Rebaselined.
- platform/gtk/compositing/iframes/composited-iframe-alignment-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/iframes/iframe-copy-on-scroll-expected.png: Added. Rebaselined.
- platform/gtk/compositing/iframes/iframe-copy-on-scroll-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/iframes/iframe-in-composited-layer-expected.png: Added. Rebaselined.
- platform/gtk/compositing/iframes/iframe-in-composited-layer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/iframes/invisible-nested-iframe-show-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/iframes/resizer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/images/direct-image-background-color-expected.png: Added. Rebaselined.
- platform/gtk/compositing/images/direct-image-background-color-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/fixed-position-scroll-expected.png: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/fixed-position-scroll-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/overlap-animation-container-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/overlap-animation-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/will-change-layer-creation-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layer-creation/will-change-on-normal-flow-content-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/layers-inside-overflow-scroll-expected.png: Added. Rebaselined.
- platform/gtk/compositing/layers-inside-overflow-scroll-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/masks/direct-image-mask-expected.png: Added. Rebaselined.
- platform/gtk/compositing/masks/direct-image-mask-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/masks/masked-ancestor-expected.png: Added. Rebaselined.
- platform/gtk/compositing/masks/masked-ancestor-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/masks/multiple-masks-expected.png: Added. Rebaselined.
- platform/gtk/compositing/masks/multiple-masks-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/masks/simple-composited-mask-expected.png: Added. Rebaselined.
- platform/gtk/compositing/masks/simple-composited-mask-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/media-controls-bar-appearance-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/composited-scrolling-creates-a-stacking-container-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/composited-scrolling-paint-phases-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/fixed-position-ancestor-clip-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/fixed-position-ancestor-clip-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/nested-scrolling-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/nested-scrolling-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-compositing-descendant-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-compositing-descendant-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-positioning-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-positioning-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-scroll-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/overflow-scroll-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/parent-overflow-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/parent-overflow-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/remove-overflow-crash2-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/remove-overflow-crash2-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/scroll-ancestor-update-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/scroll-ancestor-update-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/scrollbar-painting-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/scrollbar-painting-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/overflow/theme-affects-visual-overflow-expected.png: Added. Rebaselined.
- platform/gtk/compositing/overflow/theme-affects-visual-overflow-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/reflections/reflection-in-composited-expected.png: Added. Rebaselined.
- platform/gtk/compositing/reflections/reflection-in-composited-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/become-overlay-composited-layer-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/become-overlay-composited-layer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/composited-document-element-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/composited-document-element-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/content-into-overflow-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/content-into-overflow-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/layer-repaint-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/layer-repaint-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/layer-repaint-rects-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/layer-repaint-rects-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/newly-composited-on-scroll-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/newly-composited-on-scroll-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/opacity-between-absolute-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/opacity-between-absolute-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/opacity-between-absolute2-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/opacity-between-absolute2-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/repaint/overflow-into-content-expected.png: Added. Rebaselined.
- platform/gtk/compositing/repaint/overflow-into-content-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/rtl/rtl-iframe-absolute-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/rtl/rtl-iframe-relative-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/rtl/rtl-overflow-scrolling-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/rtl/rtl-scrolling-with-transformed-descendants-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/self-painting-layers-expected.png: Added. Rebaselined.
- platform/gtk/compositing/self-painting-layers-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/shadows/shadow-drawing-expected.png: Added. Rebaselined.
- platform/gtk/compositing/shadows/shadow-drawing-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/sibling-positioning-expected.png: Added. Rebaselined.
- platform/gtk/compositing/sibling-positioning-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/text-on-large-layer-expected.png: Added. Rebaselined.
- platform/gtk/compositing/text-on-large-layer-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/tiling/huge-layer-add-remove-child-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/tiling/visiblerect-accumulated-offset-expected.png: Added. Rebaselined.
- platform/gtk/compositing/tiling/visiblerect-accumulated-offset-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/visibility/layer-visible-content-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/webgl/webgl-background-color-expected.png: Added. Rebaselined.
- platform/gtk/compositing/webgl/webgl-background-color-expected.txt: Added. Rebaselined.
- platform/gtk/compositing/webgl/webgl-nonpremultiplied-blend-expected.png: Added. Rebaselined.
- platform/gtk/compositing/webgl/webgl-nonpremultiplied-blend-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-default-value-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-default-value-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-different-image-formats-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-different-image-formats-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-gif-color-2-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-gif-color-2-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-gif-color-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-gif-color-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-image-color-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-image-color-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-image-image-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-image-image-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-single-layer-no-blending-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/background-blend-mode-single-layer-no-blending-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-background-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-background-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-isolation-flags-remove-non-stacking-context-blending-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-isolation-flags-remove-non-stacking-context-blending-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-isolation-flags-remove-stacking-context-blending-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/blend-mode-isolation-flags-remove-stacking-context-blending-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-blend-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-blend-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-filter-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-filter-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-mask-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-mask-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-opacity-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-opacity-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-shadow-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-layer-shadow-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-multiply-alpha-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-multiply-alpha-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-normal-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-normal-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-plus-darker-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-plus-darker-expected.txt: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-plus-lighter-expected.png: Added. Rebaselined.
- platform/gtk/css3/blending/svg-blend-plus-lighter-expected.txt: Added. Rebaselined.
- platform/gtk/fast/canvas/webgl/css-webkit-canvas-expected.png: Added. Rebaselined.
- platform/gtk/fast/canvas/webgl/css-webkit-canvas-expected.txt: Added. Rebaselined.
- platform/gtk/fast/canvas/webgl/css-webkit-canvas-repaint-expected.png: Added. Rebaselined.
- platform/gtk/fast/canvas/webgl/css-webkit-canvas-repaint-expected.txt: Added. Rebaselined.
- 7:34 AM Changeset in webkit [214222] by
-
- 2 edits in trunk/Websites/planet.webkit.org
[Planet WebKit] Use HTTPS instead of HTTP for Igalia blog
Unreviewed patch just updating the Igalia WebKit blog configuration.
- config.ini:
- 7:12 AM Changeset in webkit [214221] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Remove expectations for imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type.htm.
It no longer works with current version of wptserve and it's already skipped globally.
- platform/gtk/TestExpectations:
- 4:42 AM Changeset in webkit [214220] by
-
- 2 edits in trunk/Source/JavaScriptCore
[ARM] Add missing MacroAssembler functions after r214187
https://bugs.webkit.org/show_bug.cgi?id=169912
Reviewed by Yusuke Suzuki.
- assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::loadFloat):
(JSC::MacroAssemblerARM::storeFloat):
- 4:31 AM Changeset in webkit [214219] by
-
- 25 edits3 adds in trunk
[JSC] Optimize Number.prototype.toString on Int32 / Int52 / Double
https://bugs.webkit.org/show_bug.cgi?id=167454
Reviewed by Saam Barati.
JSTests:
- stress/number-to-string-abstract-operation.js: Added.
(shouldBe):
(int32ToString):
(shouldBe.int32ToString.new.Number.int52ToString):
(shouldBe.int32ToString.new.Number):
(shouldBe.doubleToString):
- stress/number-to-string-radix.js: Added.
(shouldBe):
(int32ToString):
(shouldBe.int32ToString.new.Number.int52ToString):
(shouldBe.int32ToString.new.Number):
(shouldBe.doubleToString):
- stress/number-to-string.js: Added.
(shouldBe):
(int32ToString):
(shouldBe.int32ToString.new.Number.int52ToString):
(shouldBe.int32ToString.new.Number):
(shouldBe.doubleToString):
Source/JavaScriptCore:
This patch improves Number.toString(radix) performance
by introducing NumberToStringWithRadix DFG node. It directly
calls the operation and it always returns String.
baseline patched
stanford-crypto-sha256-iterative 45.130+-0.928 44.032+-1.184 might be 1.0250x faster
- 4:16 AM Changeset in webkit [214218] by
-
- 5 edits in trunk/Source/JavaScriptCore
[JSC] Add JSPromiseDeferred::reject(ExecState*, Exception*) interface
https://bugs.webkit.org/show_bug.cgi?id=169908
Reviewed by Sam Weinig.
To avoid calling reject(ExecState*, JSValue) with Exception* accidentally,
we add a new interface reject(ExecState*, Exception*).
Such an interface is already added in DOMPromise in WebCore.
- runtime/JSInternalPromiseDeferred.cpp:
(JSC::JSInternalPromiseDeferred::reject):
- runtime/JSInternalPromiseDeferred.h:
- runtime/JSPromiseDeferred.cpp:
(JSC::JSPromiseDeferred::reject):
- runtime/JSPromiseDeferred.h:
- 2:43 AM Changeset in webkit [214217] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Remove duplicated entry.
- platform/gtk/TestExpectations:
- 2:12 AM Changeset in webkit [214216] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Mark more tests that are failing.
- platform/gtk/TestExpectations:
- 2:11 AM Changeset in webkit [214215] by
-
- 9 edits8 adds in trunk
[GTK] Add function webkit_dom_element_get_bounding_client_rect
https://bugs.webkit.org/show_bug.cgi?id=163892
Patch by Aidan Holm <aidanholm+webkit@gmail.com> on 2017-03-21
Reviewed by Carlos Garcia Campos.
Wrap WebCore::ClientRect as WebKitDOMClientRect.
Wrap WebCore::ClientRectList as WebKitDOMClientRectList.
Implement webkit_dom_element_get_bounding_client_rect().
Implement webkit_dom_element_get_client_rects().
- PlatformGTK.cmake:
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp: Added.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp: Added.
(WebKit::kit):
(WebKit::core):
(WebKit::wrapClientRect):
(webkit_dom_client_rect_finalize):
(webkit_dom_client_rect_get_property):
(webkit_dom_client_rect_constructed):
(webkit_dom_client_rect_class_init):
(webkit_dom_client_rect_init):
(webkit_dom_client_rect_get_top):
(webkit_dom_client_rect_get_right):
(webkit_dom_client_rect_get_bottom):
(webkit_dom_client_rect_get_left):
(webkit_dom_client_rect_get_width):
(webkit_dom_client_rect_get_height):
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h: Added.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectPrivate.h: Added.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h: Added.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectListPrivate.h: Added.
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp:
(webkit_dom_element_get_property):
(webkit_dom_element_class_init):
(webkit_dom_element_get_scroll_height):
(webkit_dom_element_get_bounding_client_rect):
(webkit_dom_element_get_client_rects):
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h:
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp:
(WebKit::wrap):
- WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h:
- WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
- WebProcess/InjectedBundle/API/gtk/DOM/webkitdom.h:
- WebProcess/InjectedBundle/API/gtk/DOM/webkitdomautocleanups.h:
- WebProcess/InjectedBundle/API/gtk/DOM/webkitdomdefines.h:
- 1:59 AM Changeset in webkit [214214] by
-
- 2 edits in trunk/LayoutTests
Unreviewed GTK+ gardening. Mark several tests as failing and skip others.
- platform/gtk/TestExpectations:
- 1:34 AM Changeset in webkit [214213] by
-
- 3 edits in trunk/Source/JavaScriptCore
[jsc] MacroAssemblerMIPS: implement the branchPtr(RelationalCondition, BaseIndex, RegisterID) overload.
https://bugs.webkit.org/show_bug.cgi?id=169717
Patch by Zan Dobersek <zdobersek@igalia.com> on 2017-03-21
Reviewed by Yusuke Suzuki.
- assembler/MacroAssembler.h: Expose branchPtr() on MIPS as well.
- assembler/MacroAssemblerMIPS.h:
(JSC::MacroAssemblerMIPS::branchPtr): Added.
- 12:50 AM Changeset in webkit [214212] by
-
- 34 edits7 copies1 move5 deletes in trunk/Source/WebCore
Clean up RTCSdpType, RTC enums and headers
https://bugs.webkit.org/show_bug.cgi?id=169741
Reviewed by Youenn Fablet.
Convert to RTCSdpType.
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
- Modules/mediastream/MediaEndpointPeerConnection.h:
- Modules/mediastream/MediaEndpointSessionDescription.cpp:
- Modules/mediastream/MediaEndpointSessionDescription.h:
- Modules/mediastream/PeerConnectionBackend.cpp:
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
Convert SDP argument to lvalue.
- Modules/mediastream/RTCSessionDescription.cpp:
- Modules/mediastream/RTCSessionDescription.h:
- Modules/mediastream/RTCSessionDescription.idl:
Keep RTC enum IDLs above platform. Move the C++ enum headers into platform.
- Modules/mediastream/RTCEnums.h: Removed.
- Modules/mediastream/RTCIceConnectionState.h: Removed.
- Modules/mediastream/RTCIceGatheringState.h: Removed.
- Modules/mediastream/RTCIceTransportState.h: Removed.
- Modules/mediastream/RTCSignalingState.h: Removed.
- platform/mediastream/PeerConnectionStates.h: Remove from .xcodeproj. Move enums to separate headers.
- platform/mediastream/RTCBundlePolicy.h:
- platform/mediastream/RTCIceConnectionState.h:
- platform/mediastream/RTCIceGatheringState.h:
- platform/mediastream/RTCIceTransportPolicy.h:
- platform/mediastream/RTCIceTransportState.h:
- platform/mediastream/RTCRtpTransceiverDirection.h: Renamed from Source/WebCore/Modules/mediastream/RTCRtpTransceiverDirection.h.
- platform/mediastream/RTCSdpType.h:
- platform/mediastream/RTCSignalingState.h:
Move RtpTransceiverDirection out to a separate IDL.
- Modules/mediastream/RTCPeerConnection.idl:
- Modules/mediastream/RTCRtpTransceiver.cpp:
- Modules/mediastream/RTCRtpTransceiver.h:
- WebCore.xcodeproj/project.pbxproj:
Replace RTCEnums include with specific headers per enum.
- Modules/mediastream/PeerConnectionBackend.h:
- Modules/mediastream/RTCConfiguration.h:
- Modules/mediastream/RTCIceTransport.h:
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::completeAddTransceiver): Remove unneeded static_cast.
- Modules/mediastream/RTCPeerConnection.h:
- Modules/mediastream/RTCRtpTransceiver.h:
- platform/mediastream/MediaEndpoint.h:
- platform/mediastream/MediaEndpointConfiguration.h:
- platform/mock/MockMediaEndpoint.h:
Clean up license.
- Modules/mediastream/libwebrtc/LibWebRTCDataChannelHandler.h:
- Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h:
- Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h:
Modernize header to use #pragma once.
- platform/mediastream/RTCDTMFSenderHandler.h:
- platform/mediastream/RTCDTMFSenderHandlerClient.h:
- platform/mediastream/RTCIceCandidateDescriptor.h:
- platform/mediastream/RTCPeerConnectionHandlerClient.h:
- platform/mediastream/RTCSessionDescriptionDescriptor.h:
- platform/mediastream/RTCSessionDescriptionRequest.h:
- platform/mediastream/RTCVoidRequest.h:
- platform/mock/RTCNotifiersMock.h:
Mar 20, 2017:
- 11:07 PM Changeset in webkit [214211] by
-
- 2 edits in trunk/LayoutTests/imported/w3c
Update progression in wpt test for WebRTC.
- web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt:
- 8:27 PM Changeset in webkit [214210] by
-
- 5 edits in trunk/Source/WebInspectorUI
Web Inspector: RTL: minor layout issues in Breakpoint Editor popover
https://bugs.webkit.org/show_bug.cgi?id=169765
Reviewed by Brian Burg.
- UserInterface/Controllers/BreakpointPopoverController.js:
(WebInspector.BreakpointPopoverController.prototype._createPopoverContent):
Fix typo.
- UserInterface/Views/BreakpointActionView.css:
(body[dir=ltr] .breakpoint-action-button-container):
(body[dir=rtl] .breakpoint-action-button-container):
(:matches(.breakpoint-action-append-button, .breakpoint-action-remove-button)):
(body[dir=ltr] :matches(.breakpoint-action-append-button, .breakpoint-action-remove-button)):
(body[dir=rtl] :matches(.breakpoint-action-append-button, .breakpoint-action-remove-button)):
(.breakpoint-action-block-body > .description):
(body[dir=ltr] .breakpoint-action-block-body > .description):
(body[dir=rtl] .breakpoint-action-block-body > .description):
(.breakpoint-action-block-body > input):
(.breakpoint-action-button-container): Deleted.
(.breakpoint-action-append-button, .breakpoint-action-remove-button): Deleted.
- UserInterface/Views/BreakpointActionView.js:
(WebInspector.BreakpointActionView.prototype._updateBody):
Manually applydir="ltr"
to the description element to force proper rendering.
- UserInterface/Views/BreakpointPopoverController.css:
(.popover .edit-breakpoint-popover-content):
(.popover .edit-breakpoint-popover-content > table > tr > th):
(#edit-breakpoint-popover-ignore):
(body[dir=ltr] :matches(#edit-breakpoint-popover-ignore, #edit-breakpoint-popover-auto-continue)):
(body[dir=rtl] :matches(#edit-breakpoint-popover-ignore, #edit-breakpoint-popover-auto-continue)):
(#edit-breakpoint-popoover-auto-continue): Deleted.
- 8:16 PM Changeset in webkit [214209] by
-
- 8 edits2 adds in trunk
Add iceCandidatePoolSize to RTCConfiguration
https://bugs.webkit.org/show_bug.cgi?id=169866
Reviewed by Youenn Fablet.
Source/WebCore:
Test: webrtc/rtcconfiguration-icecandidatepoolsize.html
- Modules/mediastream/RTCConfiguration.h:
- Modules/mediastream/RTCConfiguration.idl: Add iceCandidatePoolSize.
- Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::RTCPeerConnection::setConfiguration):
- Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp:
(WebCore::configurationFromMediaEndpointConfiguration): Set the size in libwebrtc.
- platform/mediastream/MediaEndpointConfiguration.cpp:
(WebCore::MediaEndpointConfiguration::MediaEndpointConfiguration):
- platform/mediastream/MediaEndpointConfiguration.h:
LayoutTests:
- webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt: Added.
- webrtc/rtcconfiguration-icecandidatepoolsize.html: Added.
- 7:55 PM Changeset in webkit [214208] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Icon next to "An error occurred..." message changes size when Inspector window is resized
https://bugs.webkit.org/show_bug.cgi?id=169901
Reviewed by Brian Burg.
- UserInterface/Views/Main.css:
(.message-text-view.error::before):
- 7:51 PM Changeset in webkit [214207] by
-
- 2 edits in trunk/Source/WebCore
Follow-up on comments for bug 169664
https://bugs.webkit.org/show_bug.cgi?id=169709
Reviewed by Youenn Fablet.
- Modules/mediastream/MediaEndpointPeerConnection.cpp:
(WebCore::deriveAggregatedIceConnectionState): Update deriveAggregatedIceConnectionState.
(WebCore::MediaEndpointPeerConnection::iceTransportStateChanged): Set a capacity and used
uncheckedAppend.
- 7:15 PM Changeset in webkit [214206] by
-
- 2 edits in trunk/Websites/perf.webkit.org
Delete another function that was supposed to be removed in the previous commit.
- public/v3/models/build-request.js:
(BuildRequest.cachedRequestsForTriggerableID): Deleted.
- 7:13 PM Changeset in webkit [214205] by
-
- 3 edits in trunk/Websites/perf.webkit.org
Modernize BuildRequestQueuePage
https://bugs.webkit.org/show_bug.cgi?id=169903
Reviewed by Antti Koivisto.
Modernized the code for /v3/#/analysis/queue.
- public/v3/models/build-request.js:
(BuildRequest.fetchTriggerables): Deleted since the manifest JSON now contains all the triggerables.
- public/v3/pages/build-request-queue-page.js:
(BuildRequestQueuePage): Deleted this._triggerables. Added this._buildRequestsByTriggerable.
(BuildRequestQueuePage.prototype.open): Modernized the code.
(BuildRequestQueuePage.prototype.render): Ditto.
(BuildRequestQueuePage.prototype._constructBuildRequestTable): Ditto.
- 7:04 PM Changeset in webkit [214204] by
-
- 6 edits in trunk
Add a system trace point for memory warning handling
https://bugs.webkit.org/show_bug.cgi?id=169893
Reviewed by Zalan Bujtas.
Source/WebCore:
Add a TraceScope for low memory handling, which logs 'critical' and 'synchronous'.
- page/MemoryRelease.cpp:
(WebCore::releaseMemory):
Source/WTF:
Make it possible to pass data to the Begin trace point.
- wtf/SystemTracing.h:
(WTF::TraceScope::TraceScope):
Tools:
Describe the new trace points.
- Tracing/SystemTracePoints.plist:
- 7:04 PM Changeset in webkit [214203] by
-
- 8 edits in trunk/Source/WebCore
Optimize packing of Document and superclass data members
https://bugs.webkit.org/show_bug.cgi?id=169880
Reviewed by Antti Koivisto.
Move data members around to optimize packing in SecurityContext, SuspendableTimer and Document.
This saves as few hundred bytes on Document.
Padding detected via Tools/Scripts/dump-class-layout
- dom/Document.cpp:
(WebCore::Document::Document):
- dom/Document.h:
- dom/ScriptExecutionContext.h:
- dom/SecurityContext.cpp:
(WebCore::SecurityContext::SecurityContext):
- dom/SecurityContext.h:
- page/SuspendableTimer.cpp:
(WebCore::SuspendableTimer::SuspendableTimer):
- page/SuspendableTimer.h:
- 6:19 PM Changeset in webkit [214202] by
-
- 12 edits1 move1 add in trunk/Websites/perf.webkit.org
Charts page show an inconsistent list of revisions for Git and Subversion
https://bugs.webkit.org/show_bug.cgi?id=169888
Reviewed by Andreas Kling.
With Git, CommitLogViewer was showing the list of revisions including the starting hash,
which was the last data point's revision instead of all revisions after the last data point.
Fixed the bug by always specifying the revision at the last data point in both Subversion
and Git and then making /api/commits/<repository>/?from=X&to=Y exclude the first revision.
For clarity, "from" and "to" query parameters have been renamed to "precedingRevision" and
"lastRevision" respectively.
We also no longer adds 1 to the starting revision of Subversion-like starting revisions. e.g.
when the last data point was at r1234, new data point is at r1250, the label is now "r1234-r1250"
instead of "r1235-r1250".
- browser-tests/chart-revision-range-tests.js: Fixed the tests since revisionList no longer
specifies from/to revisions.
- browser-tests/commit-log-viewer-tests.js: Added. Added tests for CommitLogViewer.
- browser-tests/index.html: Include the new test. Also use a local copy of mocha.js/css.
- public/api/commits.php:
(main): Renamed "from" and "to" query parameters.
- public/include/commit-log-fetcher.php:
(CommitLogFetcher::fetch_between): Added a check that commit time should either be specified
in both rows or not specified in either. Also reject when before_first_revision is identical
or after last_revision instead of re-ordering them since it no longer makes sense to do so with
new query parameter names.
- public/v3/components/base.js:
(ComponentBase._addContentToElement): Use Array.isArray instead of instanceof. It's resilient
againt realm (global object) differences.
- public/v3/components/chart-pane-base.js:
(ChartPaneBase.prototype._updateCommitLogViewer): No longer calls enqueueToRender on this since
CommitLogViewer does that on its own now.
(ChartPaneBase.prototype.render): Juse use this._openRepository instead of relying on CommitLogViewer
to remember which repository is current. This was the only use of currentRepository.
- public/v3/components/commit-log-viewer.js:
(CommitLogViewer):
(CommitLogViewer.prototype.currentRepository): Deleted.
(CommitLogViewer.prototype.view):
(CommitLogViewer.prototype._fetchCommitLogs): Modernized and extracted from view to make it lazy.
Call fetchForSingleRevision when precedingRevision is not specified or it's identical to lastRevision
since the generic JSON API no longer supports being called with the identical revisions.
(CommitLogViewer.prototype.render): Modernized & simplified the code.
(CommitLogViewer.prototype._renderCommitList): Extracted from render to make it lazy.
(CommitLogViewer.htmlTemplate): Add ID on caption & tbody so that they're more easily addressable.
(CommitLogViewer.cssTemplate):
- public/v3/models/commit-log.js:
(CommitLog.prototype.diff): No longer includes from/to revisions in the result. Also avoid adding
1 to a Subversion-like starting revision for creating the label. See above. But we still do this
for forming URLs due to the way tools like Trac work with Subversion revisions.
(CommitLog.fetchBetweenRevisions): Rewritten using DataModel.prototype.cachedFetch with FIXME for
what this function is supposed to be doing.
(CommitLog._cachedCommitLogs): Deleted.
(CommitLog.fetchForSingleRevision): Added.
(CommitLog._constructFromRawData): Added.
- public/v3/models/data-model.js:
(DataModelObject.cachedFetch): Don't parse query values as an integer. Just URL-escape them.
- public/v3/remote.js:
(BrowserRemoteAPI.prototype.sendHttpRequest): Fixed a typo.
- server-tests/api-commits-tests.js: Renamed from api-commits.js. Updated the existing tests to
use new query parameters and added more test cases.
- unit-tests/commit-log-tests.js: Updated the test cases now that CommitLog.prototype.diff no longer
includes from/to values. They're computed in ChartRevisionRange instead.
- 6:13 PM Changeset in webkit [214201] by
-
- 8 edits in trunk
WebPageProxy DecidePolicyForNavigationAction and DecidePolicyForResponseSync should be Delayed reply messages
https://bugs.webkit.org/show_bug.cgi?id=167183
<rdar://problem/30203539>
Reviewed by Andy Estes.
Source/WebKit2:
Before this patch, the WKNavigationDelegate's decidePolicyForNavigationAction must synchronously call the decisionHandler.
If it stores the decisionHandler and calls it after decidePolicyForNavigationAction returns, we can get incorrect behavior.
This can be seen when the _WKWebsitePolicies given to the decisionHandler had no effect.
Now, we will have the WebProcess waiting on the UIProcess to respond to the Delayed reply before continuing.
This will not be a regression because currently everybody is either calling the decisionHandler immediately or getting incorrect behavior,
and the behavior will be the same if the decisionHandler is called immediately. It is possible that we could make the WebProcess
not wait on the response, but we would need to make WebCore's loading truly asynchronous first
(getting rid of ResourceHandleClient's synchronous methods).
Covered by making an API test asynchronously call the decisionHandler.
- UIProcess/API/C/WKPage.cpp:
(WKPageSetPageNavigationClient):
- UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::receivedPolicyDecision):
(WebKit::WebPageProxy::decidePolicyForNavigationAction):
(WebKit::WebPageProxy::decidePolicyForResponseSync):
- UIProcess/WebPageProxy.h:
- UIProcess/WebPageProxy.messages.in:
- WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
(WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
Tools:
- TestWebKitAPI/Tests/WebKit2Cocoa/WebsitePolicies.mm:
(-[WebsitePoliciesDelegate _webView:decidePolicyForNavigationAction:decisionHandler:]):
- 6:10 PM Changeset in webkit [214200] by
-
- 1 copy in tags/Safari-603.2.1
Tag Safari-603.2.1.
- 6:01 PM Changeset in webkit [214199] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Clicking on Clear Network Items icon throws an exception if timing popover is visible
https://bugs.webkit.org/show_bug.cgi?id=169852
<rdar://problem/31132652>
Reviewed by Joseph Pecoraro.
- UserInterface/Views/ResourceTimelineDataGridNode.js:
(WebInspector.ResourceTimelineDataGridNode.prototype._mouseoverRecordBar):
(WebInspector.ResourceTimelineDataGridNode):
- 5:46 PM Changeset in webkit [214198] by
-
- 2 edits in trunk/Source/WebInspectorUI
REGRESSION (r187873): Web Inspector: When resizing, prevent DataGrid columns from collapsing entirely
https://bugs.webkit.org/show_bug.cgi?id=169899
Reviewed by Joseph Pecoraro.
- UserInterface/Views/DataGrid.js:
(WebInspector.DataGrid.prototype.resizerDragging):
leftMinimum and rightMaximum variables were always NaN because this.ColumnResizePadding is undefined.
- 5:19 PM Changeset in webkit [214197] by
-
- 2 edits in trunk/Source/WebKit2
Fix GTK build after r214190
https://bugs.webkit.org/show_bug.cgi?id=169885
- UIProcess/InspectorServer/WebSocketServerConnection.cpp:
(WebKit::WebSocketServerConnection::sendWebSocketMessage):
(WebKit::WebSocketServerConnection::sendHTTPResponseHeader):
(WebKit::WebSocketServerConnection::sendRawData):
Finish renaming send to sendData.
- 5:14 PM Changeset in webkit [214196] by
-
- 3 edits in trunk/Source/WebInspectorUI
Web Inspector: Pseudo-class markers overlap DOM breakpoints and disclosure triangle
https://bugs.webkit.org/show_bug.cgi?id=169850
<rdar://problem/31132335>
Reviewed by Joseph Pecoraro.
DOMTreeContentView should always have at least 7px of gutter space to
accomodate pseudo-class markers. When DOM breakpoints are visible the
gutter size is increased so breakpoints and markers do not overlap.
- UserInterface/Views/DOMTreeContentView.css:
(.content-view.dom-tree .tree-outline.dom):
(.content-view.dom-tree.show-gutter .tree-outline.dom):
(body[dir=ltr] .content-view.dom-tree .tree-outline.dom):
(body[dir=rtl] .content-view.dom-tree .tree-outline.dom):
(body[dir=ltr] .content-view.dom-tree.show-gutter .tree-outline.dom): Deleted.
(body[dir=rtl] .content-view.dom-tree.show-gutter .tree-outline.dom): Deleted.
- UserInterface/Views/DOMTreeOutline.css:
(.content-view.dom-tree.show-gutter .tree-outline.dom):
Change pseudo-class marker indent when showing DOM breakpoint gutter.
(body[dir=ltr] .tree-outline.dom li.pseudo-class-enabled > .selection-area::before):
Drive-by fix: copy paste error.
- 4:47 PM Changeset in webkit [214195] by
-
- 4 edits2 adds in trunk
Suspend media playback in background tabs
https://bugs.webkit.org/show_bug.cgi?id=169883
<rdar://problem/28056151>
Reviewed by Eric Carlson.
Source/WebCore:
Suspend media playback in background tabs to save battery
except in cases where we cannot (e.g. PiP, AirPlay).
Test: media/media-playback-page-visibility.html
- html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::visibilityStateChanged):
When page visibility state changes, begin / end media session
interruption with reason PlatformMediaSession::EnteringBackground.
This reason was already used on iOS when the application enters
or exist background. HTMLMediaElement::shouldOverrideBackgroundPlaybackRestriction()
takes care of preventing interruption in case of AirPlay or PiP.
LayoutTests:
Add layout test coverage.
- media/media-playback-page-visibility-expected.txt: Added.
- media/media-playback-page-visibility.html: Added.
- 4:07 PM Changeset in webkit [214194] by
-
- 5 edits in trunk
Prevent new navigations from onbeforeunload handler
https://bugs.webkit.org/show_bug.cgi?id=169891
<rdar://problem/31155736>
Reviewed by Ryosuke Niwa.
Source/WebCore:
Ensure that all navigations initiated from an onbeforeunload handler are disallowed
regardless of how they were scheduled. Such navigations go against the expectation
of a user.
- loader/FrameLoader.cpp:
(WebCore::FrameLoader::isNavigationAllowed): Added.
(WebCore::FrameLoader::loadURL): Modified code to call FrameLoader::isNavigationAllowed().
(WebCore::FrameLoader::loadWithDocumentLoader): Ditto.
(WebCore::FrameLoader::stopAllLoaders): Ditto.
- loader/FrameLoader.h:
LayoutTests:
Update test to ensure that we disallow navigation initiated via a DOM click event from
an onbeforeunload handler.
- fast/events/before-unload-forbidden-navigation.html:
- 3:36 PM Changeset in webkit [214193] by
-
- 5 edits1 move in trunk/Websites/perf.webkit.org
Fix os-build-fetcher.js and subprocess.js to make them work
https://bugs.webkit.org/show_bug.cgi?id=169844
Reviewed by Antti Koivisto.
The script added in r213976 has a bug that it can execute commands to fetch subcommits in parallel.
Some commands to poll the lsit of system components is not desirable to be ran in parallel.
- server-tests/resources/mock-subprocess.js:
(MockSubprocess): Use const declaration.
(MockSubprocess.resetAndWaitForInvocation): Added.
(MockSubprocess.waitForInvocation): Renamed from waitingForInvocation. A function name must be a verb.
See https://webkit.org/code-style-guidelines/#names-verb
(MockSubprocess.reset): Set invocations.length to 0 so that tests can store a reference to the array
regardless of whether reset is called or when it's called.
- server-tests/tools-os-build-fetcher-tests.js: Updated tests per the code change. Most of codes now
expect each command to be ran seprately. e.g. if there were two commands to run, instead of expecting
them to be both ran, and resolving invocation promises, we'd wait for one command to run, resolve,
its subcommand to run, and then move onto the second top-level command. Also use a local reference
to MockSubprocess.invocations instead of using the fully qualified name.
- tools/js/os-build-fetcher.js:
(mapInSerialPromiseChain): Added. Calling a closure that returns a promise on each item in an array
in serial (not asynchronous) is a very common pattern in this class.
(OSBuildFetcher.fetchAndReportAllInOrder): Added.
(OSBuildFetcher.prototype.fetchAndReportNewBuilds): Log what the number of builds being submitted.
(OSBuildFetcher.prototype._fetchAvailableBuilds): Fixed the main bug. Using Promise.all would result
in each top-level command to be execued in parallel. Since each subcommand is executed as soon as
its parent command is executed, this results in commands to be executed in parallel.
Added a whole bunch of logging so that we can at least detect a bug like this in the future.
(OSBuildFetcher.prototype._commitsForAvailableBuilds): Cleanup the coding style.
(OSBuildFetcher.prototype._addSubCommitsForBuild): Use mapInSerialPromiseChain. Tightened the assertion
about the content returned by a subcommand.
- tools/js/subprocess.js: Fixed the bug that we were importing require('child_process').ChildProcess.
execFile is defined on require('child_process') itself.
(Subprocess.prototype.execute): Fixed a typo. this._childProcess doesn't exist.
(Subprocess):
- tools/sync-os-versions.js: Renamed from tools/pull-os-versions.js.
(syncLoop): Cleaned up the coding style a little. Also added logging about how long we're about to sleep.
- 2:33 PM Changeset in webkit [214192] by
-
- 4 edits in trunk/Tools
webkitpy: Work around simctl launch returning dead processes
https://bugs.webkit.org/show_bug.cgi?id=169878
Reviewed by Daniel Bates.
simctl launch will sometimes give the PID of a process which has just been terminated.
To work around this, we will always check if the returned PID is of a process which is
still running.
- Scripts/webkitpy/port/simulator_process.py:
(SimulatorProcess.Popen.init): Accept device argument.
(SimulatorProcess.Popen.poll): Call device.poll().
(SimulatorProcess._start): Pass device into Popen object.
- Scripts/webkitpy/xcode/device.py:
(Device.poll): Added.
- Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDevice.install_app): Change attempts to timeout.
(SimulatedDevice.launch_app): Check that the process being returned is active, use a
timeout instead of attempts.
(SimulatedDevice):
(SimulatedDevice.poll): Added.
- 1:09 PM Changeset in webkit [214191] by
-
- 2 edits in branches/safari-603.1.30.0-branch/LayoutTests
Merge r209999.
- 1:05 PM Changeset in webkit [214190] by
-
- 7 edits in trunk/Source/WebCore
Prepare SocketStreamHandle for being created from WK2
https://bugs.webkit.org/show_bug.cgi?id=169885
Reviewed by Andy Estes.
No change in behavior.
- Modules/websockets/WebSocketChannel.cpp:
(WebCore::WebSocketChannel::didOpenSocketStream):
(WebCore::WebSocketChannel::sendFrame):
Rename send to sendData to prevent name collisions with IPC::MessageSender::send.
- platform/network/SocketStreamHandle.cpp:
(WebCore::SocketStreamHandle::sendData):
(WebCore::SocketStreamHandle::send): Deleted.
- platform/network/SocketStreamHandle.h:
- platform/network/cf/SocketStreamHandleImpl.h:
- platform/network/curl/SocketStreamHandleImpl.h:
- platform/network/soup/SocketStreamHandleImpl.h:
Make platformSend and platformClose public so I can call them from IPC proxies.
- 12:50 PM Changeset in webkit [214189] by
-
- 4 edits3 adds in trunk
[QuickLook] Subresources should be in the same origin as the main document
https://bugs.webkit.org/show_bug.cgi?id=169868
<rdar://problem/29898214>
Reviewed by Daniel Bates.
Source/WebCore:
Prior to this change, QuickLook documents were placed in a unique origin, which meant all
subresources were loaded as cross-origin requests. This prevented XMLHttpRequests to the
QuickLook custom protocol, since cross-origin XHRs must be made to a protocol that
understands CORS.
Instead of a unique origin, we now create an origin for QuickLook documents from the preview
response URL (an x-apple-ql-id: URL), which will allow QuickLook to make same-origin XHRs by
using a URL with the same scheme and host as the preview response URL.
Test: http/tests/quicklook/same-origin-xmlhttprequest-allowed.html
- dom/Document.cpp:
(WebCore::Document::applyQuickLookSandbox):
LayoutTests:
- http/tests/quicklook/resources/same-origin-xmlhttprequest-allowed.rtf: Added.
- http/tests/quicklook/resources/tap-run-test-hyperlink.js:
(runTest):
- http/tests/quicklook/same-origin-xmlhttprequest-allowed-expected.txt: Added.
- http/tests/quicklook/same-origin-xmlhttprequest-allowed.html: Added.
- 12:46 PM Changeset in webkit [214188] by
-
- 2 edits in trunk/Source/WebCore
window.crypto.getRandomValues() uses the insecure RC4 RNG
https://bugs.webkit.org/show_bug.cgi?id=169623
<rdar://problem/31044229>
Reviewed by Brent Fulgham.
This patch replaces the RC4 RNG with one based on AES-CTR.
No change of behavior.
- page/Crypto.cpp:
(WebCore::Crypto::getRandomValues):
- 11:58 AM Changeset in webkit [214187] by
-
- 9 edits in trunk/Source/JavaScriptCore
Graph coloring should use coalescable moves when spilling
https://bugs.webkit.org/show_bug.cgi?id=169820
Reviewed by Michael Saboff.
This makes our graph coloring register allocator use a new family of move instructions when
spilling both operands of the move. It's a three-operand move:
Move (src), (dst), %scratch
Previously, if both operands got spilled, we would emit a new instruction to load or store that
spill slot. But this made it hard for allocateStack to see that the two spill locations are
coalescable. This new kind of instruction makes it obvious that it's a coalescable move.
This change implements the coalescing of spill slots inside allocateStack.
This is an outrageous speed-up on the tsf_ir_speed benchmark from http://filpizlo.com/tsf/. This
is an interesting benchmark because it has a super ugly interpreter loop with ~20 live variables
carried around the loop back edge. This change makes that interpreter run 5x faster.
This isn't a speed-up on any other benchmarks. It also doesn't regress anything. Compile time is
neither progressed or regressed, since the coalescing is super cheap, and this does not add any
significant new machinery to the register allocator (it's just a small change to spill codegen).
Overall on our wasm benchmarks, this is a 16% throughput progression.
- assembler/MacroAssembler.h:
(JSC::MacroAssembler::move):
(JSC::MacroAssembler::move32):
(JSC::MacroAssembler::moveFloat):
(JSC::MacroAssembler::moveDouble):
- b3/air/AirAllocateRegistersByGraphColoring.cpp:
(JSC::B3::Air::allocateRegistersByGraphColoring):
- b3/air/AirAllocateStack.cpp:
(JSC::B3::Air::allocateStack):
- b3/air/AirInst.cpp:
(JSC::B3::Air::Inst::hasEarlyDef):
(JSC::B3::Air::Inst::hasLateUseOrDef):
(JSC::B3::Air::Inst::needsPadding):
- b3/air/AirInst.h:
- b3/air/AirOpcode.opcodes:
- b3/air/AirPadInterference.cpp:
(JSC::B3::Air::padInterference):
- runtime/Options.h:
- 11:51 AM Changeset in webkit [214186] by
-
- 3 edits in branches/safari-603-branch/LayoutTests
Merge r214096.
- 11:51 AM Changeset in webkit [214185] by
-
- 2 edits in branches/safari-603-branch/LayoutTests
Merge r214095.
- 11:51 AM Changeset in webkit [214184] by
-
- 1 edit3 adds in branches/safari-603-branch/LayoutTests
Merge r214094.
- 11:51 AM Changeset in webkit [214183] by
-
- 7 edits2 deletes in branches/safari-603-branch/LayoutTests
Merge r214081.
- 11:43 AM Changeset in webkit [214182] by
-
- 3 edits in branches/safari-603-branch/LayoutTests
Merge r213953. rdar://problem/31049771
- 11:43 AM Changeset in webkit [214181] by
-
- 2 edits in branches/safari-603-branch/Source/WebCore
Merge r213949. rdar://problem/31049771
- 11:40 AM Changeset in webkit [214180] by
-
- 9 edits2 adds in branches/safari-603-branch
Merge r213253. rdar://problem/30773140
- 11:30 AM Changeset in webkit [214179] by
-
- 2 edits in trunk/Source/WebKit2
Fix a paste-o in WebPaymentCoordinatorProxy::platformCompletePaymentSession
https://bugs.webkit.org/show_bug.cgi?id=169881
rdar://problem/31030944
Reviewed by Dan Bernstein.
Don't always pass PKPaymentAuthorizationStatusFailure to the completion handler.
- UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentSession):
- 10:55 AM Changeset in webkit [214178] by
-
- 17 edits in trunk
[MediaStream] Respect constraints passed to getUserMedia
https://bugs.webkit.org/show_bug.cgi?id=169870
<rdar://problem/31138936>
Reviewed by Youenn Fablet and Jer Noble.
Source/WebCore:
Remember the fitness score calculated when evaluating constraints passed to getUserMedia, so
the best device is chosen when more than one device supports the constraints. Register two
mock video and two mock audio devices with different capabilities so these changes can
be tested.
No new tests, existing tests updated.
- platform/mediastream/RealtimeMediaSource.cpp:
(WebCore::RealtimeMediaSource::selectSettings): Store fitness score in m_fitnessScore.
- platform/mediastream/RealtimeMediaSource.h:
- platform/mediastream/mac/MockRealtimeAudioSourceMac.h:
- platform/mediastream/mac/MockRealtimeAudioSourceMac.mm:
(WebCore::MockRealtimeAudioSource::create): Don't assume sampleRate is 44.1K
(WebCore::MockRealtimeAudioSourceMac::emitSampleBuffers): Use sampleRate() instead of m_sampleRate.
(WebCore::MockRealtimeAudioSourceMac::reconfigure): Ditto.
(WebCore::MockRealtimeAudioSourceMac::render): Ditto.
(WebCore::MockRealtimeAudioSourceMac::applySampleRate): Ditto.
- platform/mock/MockRealtimeAudioSource.cpp:
(WebCore::MockRealtimeAudioSource::updateSettings): Don't assume sampleRate is 44.1K
(WebCore::MockRealtimeAudioSource::initializeCapabilities): Support a range of sample rates.
(WebCore::MockRealtimeAudioSource::startProducingData): Initialize sampleRate if it hasn't
already been set.
- platform/mock/MockRealtimeMediaSource.cpp:
(WebCore::MockRealtimeMediaSource::audioDevices): Return an array of devices.
(WebCore::MockRealtimeMediaSource::videoDevices): Ditto.
(WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource):
(WebCore::MockRealtimeMediaSource::mockAudioSourcePersistentID): Deleted.
(WebCore::MockRealtimeMediaSource::mockVideoSourcePersistentID): Deleted.
(WebCore::MockRealtimeMediaSource::mockAudioSourceName): Deleted.
(WebCore::MockRealtimeMediaSource::mockVideoSourceName): Deleted.
(WebCore::MockRealtimeMediaSource::audioDeviceInfo): Deleted.
(WebCore::MockRealtimeMediaSource::videoDeviceInfo): Deleted.
- platform/mock/MockRealtimeMediaSource.h:
- platform/mock/MockRealtimeMediaSourceCenter.cpp:
(WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints):
(WebCore::MockRealtimeMediaSourceCenter::createMediaStream):
(WebCore::MockRealtimeMediaSourceCenter::getMediaStreamDevices):
- platform/mock/MockRealtimeVideoSource.cpp:
(WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource):
LayoutTests:
- fast/mediastream/MediaDevices-enumerateDevices-expected.txt:
- fast/mediastream/MediaDevices-getUserMedia-expected.txt:
- fast/mediastream/MediaDevices-getUserMedia.html:
- fast/mediastream/MediaStream-video-element-expected.txt:
- fast/mediastream/MediaStreamTrack-getCapabilities-expected.txt:
- 10:51 AM Changeset in webkit [214177] by
-
- 5 edits in trunk/Source/WebKit
[Xcode] Incremental builds of WebKitLegacy are slow because of the Postprocess Headers phase
https://bugs.webkit.org/show_bug.cgi?id=169861
Reviewed by Sam Weinig.
Source/WebKit:
- WebKit.xcodeproj/project.pbxproj: Specified that the Postprocess Headers script build phase has the Headers and PrivateHeaders directories as its inputs and a timestamp file as its output.
Source/WebKit/mac:
- MigrateHeaders.make: Touch the PrivateHeaders directory when migrating a header into it.
- postprocess-headers.sh: Preserve the timestamp on the headers directories. Write out the timestamp file used by the Xcode project to determine whether to run the script.
- 10:49 AM Changeset in webkit [214176] by
-
- 7 edits in trunk/Source
Versioning.
- 10:47 AM Changeset in webkit [214175] by
-
- 1 copy in tags/Safari-604.1.13
Tag Safari-604.1.13.
- 10:32 AM Changeset in webkit [214174] by
-
- 7 edits in trunk/Source
TextIndicator should support a mode where selection rects are used to size the snapshot
https://bugs.webkit.org/show_bug.cgi?id=169845
<rdar://problem/31127818>
Reviewed by Beth Dakin.
Source/WebCore:
Adds TextIndicator support in iOS for using the would-be selection rects of a given range to determine
snapshotting bounds. See below changes for more details.
- dom/Range.cpp:
(WebCore::Range::collectSelectionRectsWithoutUnionInteriorLines):
(WebCore::Range::collectSelectionRects):
Mark these helper methods as const.
- dom/Range.h:
- page/TextIndicator.cpp:
(WebCore::getSelectionRectsForRange):
(WebCore::initializeIndicator):
If TextIndicatorOptionUseSelectionRectForSizing is enabled, then compute selection rects and set the text rects
to be the resulting selection rects. These are in document coordinates.
- page/TextIndicator.h:
Source/WebKit2:
Adopt the new TextIndicatorOptionUseSelectionRectForSizing flag when generating an edit data interaction snapshot.
- WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::didConcludeEditDataInteraction):
- 10:28 AM Changeset in webkit [214173] by
-
- 42 edits in trunk/Source/WebCore
Move code out of renderer destructors into willBeDestroyed()
https://bugs.webkit.org/show_bug.cgi?id=169650
Reviewed by Antti Koivisto.
This is done for four reasons. First, code in willBeDestroyed() is able to call
virtual functions on derived classes. Second, this code will run before we've destroyed
the renderer's rareData, so can safely access it. Third, RenderWidget is special, and can have
its lifetime extended via manual ref-counting, and we want all cleanup to complete
before it goes into this weird zombie state. Fourth, in a shiny future where we have
ref-counted RenderObjects, we want cleanup code to be run explicitly and not tied
to object lifetime, and this is a step in that direction.
For all classes that derive from RenderObject, move code from the destructor into
willBeDestroyed(). New willBeDestroyed() implementations must call the base class.
RenderBlock and RenderBlockFlow are special; RenderBlockFlow::willBeDestroyed()
skips over RenderBlock::willBeDestroyed(), but they both need to run some code, which
I moved into RenderBlock::blockWillBeDestroyed().
- rendering/RenderBlock.cpp:
(WebCore::RenderBlock::~RenderBlock):
(WebCore::RenderBlock::willBeDestroyed):
(WebCore::RenderBlock::blockWillBeDestroyed):
- rendering/RenderBlock.h:
- rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::~RenderBlockFlow):
(WebCore::RenderBlockFlow::willBeDestroyed):
- rendering/RenderBox.cpp:
(WebCore::RenderBox::~RenderBox):
(WebCore::RenderBox::willBeDestroyed):
- rendering/RenderBox.h:
- rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::~RenderBoxModelObject):
- rendering/RenderCounter.cpp:
(WebCore::RenderCounter::~RenderCounter):
(WebCore::RenderCounter::willBeDestroyed):
- rendering/RenderCounter.h:
- rendering/RenderElement.cpp:
(WebCore::RenderElement::~RenderElement):
(WebCore::RenderElement::willBeDestroyed):
- rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::~RenderEmbeddedObject):
(WebCore::RenderEmbeddedObject::willBeDestroyed):
- rendering/RenderEmbeddedObject.h:
- rendering/RenderImage.cpp:
(WebCore::RenderImage::~RenderImage):
(WebCore::RenderImage::willBeDestroyed):
- rendering/RenderImage.h:
- rendering/RenderLayerModelObject.cpp:
(WebCore::RenderLayerModelObject::~RenderLayerModelObject):
(WebCore::RenderLayerModelObject::willBeDestroyed):
- rendering/RenderLayerModelObject.h:
- rendering/RenderLineBreak.cpp:
(WebCore::RenderLineBreak::~RenderLineBreak):
(WebCore::RenderLineBreak::willBeDestroyed):
- rendering/RenderLineBreak.h:
- rendering/RenderListBox.cpp:
(WebCore::RenderListBox::~RenderListBox):
(WebCore::RenderListBox::willBeDestroyed):
- rendering/RenderListBox.h:
- rendering/RenderListItem.cpp:
(WebCore::RenderListItem::~RenderListItem):
(WebCore::RenderListItem::willBeDestroyed):
- rendering/RenderListItem.h:
- rendering/RenderListMarker.cpp:
(WebCore::RenderListMarker::~RenderListMarker):
(WebCore::RenderListMarker::willBeDestroyed):
- rendering/RenderListMarker.h:
- rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::~RenderMenuList):
(WebCore::RenderMenuList::willBeDestroyed):
- rendering/RenderMenuList.h:
- rendering/RenderNamedFlowThread.cpp:
(WebCore::RenderNamedFlowThread::~RenderNamedFlowThread):
(WebCore::RenderNamedFlowThread::willBeDestroyed):
- rendering/RenderNamedFlowThread.h:
- rendering/RenderObject.cpp:
(WebCore::RenderObject::willBeDestroyed):
- rendering/RenderQuote.cpp:
(WebCore::RenderQuote::~RenderQuote):
(WebCore::RenderQuote::willBeDestroyed):
- rendering/RenderQuote.h:
- rendering/RenderSearchField.cpp:
(WebCore::RenderSearchField::~RenderSearchField):
(WebCore::RenderSearchField::willBeDestroyed):
- rendering/RenderSearchField.h:
- rendering/RenderSnapshottedPlugIn.cpp:
(WebCore::RenderSnapshottedPlugIn::~RenderSnapshottedPlugIn):
(WebCore::RenderSnapshottedPlugIn::willBeDestroyed):
- rendering/RenderSnapshottedPlugIn.h:
- rendering/RenderText.cpp:
(WebCore::RenderText::~RenderText):
(WebCore::RenderText::willBeDestroyed):
- rendering/RenderTextControlMultiLine.cpp:
(WebCore::RenderTextControlMultiLine::~RenderTextControlMultiLine):
(WebCore::RenderTextControlMultiLine::willBeDestroyed):
- rendering/RenderTextControlMultiLine.h:
- rendering/RenderVideo.cpp:
(WebCore::RenderVideo::~RenderVideo):
(WebCore::RenderVideo::willBeDestroyed):
- rendering/RenderVideo.h:
- rendering/RenderWidget.h:
- rendering/svg/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::~RenderSVGImage):
(WebCore::RenderSVGImage::willBeDestroyed):
- rendering/svg/RenderSVGImage.h:
- rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::~RenderSVGResourceContainer):
(WebCore::RenderSVGResourceContainer::willBeDestroyed):
- 10:11 AM Changeset in webkit [214172] by
-
- 2 edits in trunk/Tools
buildbot: run-webkit-tests should display test failures and run exceptions differently
https://bugs.webkit.org/show_bug.cgi?id=169793
<rdar://problem/30987863>
Reviewed by Alexey Proskuryakov.
- BuildSlaveSupport/build.webkit.org-config/master.cfg:
(RunWebKitTests.evaluateCommand): Return EXCEPTION when run-webkit-tests returns with a code of 254.
- 9:46 AM Changeset in webkit [214171] by
-
- 2 edits in trunk/LayoutTests
Mark imported/w3c/web-platform-tests/XMLHttpRequest/timeout-multiple-fetches.html as flaky.
https://bugs.webkit.org/show_bug.cgi?id=169637
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 8:40 AM Changeset in webkit [214170] by
-
- 12 edits in trunk/Source/WebCore
Mark differences in media stream implementation
https://bugs.webkit.org/show_bug.cgi?id=169873
Reviewed by Eric Carlson.
Rearrange IDL and add comments based on 05 February 2017 Editor's Draft of Media
Capture and Streams spec.
- Modules/mediastream/DOMURLMediaStream.idl:
- Modules/mediastream/MediaDeviceInfo.idl:
- Modules/mediastream/MediaDevices.idl:
- Modules/mediastream/MediaStream.idl:
- Modules/mediastream/MediaStreamEvent.idl:
- Modules/mediastream/MediaStreamTrack.idl:
- Modules/mediastream/MediaStreamTrackEvent.idl:
- Modules/mediastream/MediaTrackConstraints.idl:
- Modules/mediastream/MediaTrackSupportedConstraints.idl:
- Modules/mediastream/NavigatorMediaDevices.idl:
- Modules/mediastream/NavigatorUserMedia.idl:
- 5:02 AM Changeset in webkit [214169] by
-
- 8 edits in trunk/Source/WebCore
Use CopyFontDescriptorWithStrokeForStyle to get correct stroke width for captions.
https://bugs.webkit.org/show_bug.cgi?id=169674
Reviewed by Eric Carlson.
Use the MediaAccessibility function MACopyFontDescriptorWithStrokeForStyle to get
correct video captions stroke width from a given font size.
- html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlTextTrackContainerElement::updateTextStrokeStyle):
(WebCore::MediaControlTextTrackContainerElement::updateTimerFired):
- html/shadow/MediaControlElements.h:
- page/CaptionUserPreferences.h:
(WebCore::CaptionUserPreferences::captionStrokeWidth):
- page/CaptionUserPreferencesMediaAF.cpp:
(WebCore::CaptionUserPreferencesMediaAF::captionStrokeWidth):
(WebCore::CaptionUserPreferencesMediaAF::captionsTextEdgeCSS):
(WebCore::CaptionUserPreferencesMediaAF::strokeWidth): Deleted.
- page/CaptionUserPreferencesMediaAF.h:
- platform/cf/MediaAccessibilitySoftLink.cpp:
- platform/cf/MediaAccessibilitySoftLink.h:
- 3:01 AM Changeset in webkit [214168] by
-
- 1 copy in releases/WebKitGTK/webkit-2.16.0
WebKitGTK+ 2.16.0
- 3:01 AM Changeset in webkit [214167] by
-
- 4 edits in releases/WebKitGTK/webkit-2.16
Unreviewed. Update OptionsGTK.cmake and NEWS for 2.16.0 release.
.:
- Source/cmake/OptionsGTK.cmake: Bump version numbers.
Source/WebKit2:
- gtk/NEWS: Add release notes for 2.16.0.
- 2:19 AM WebKitGTK/2.16.x edited by
- (diff)
- 2:18 AM Changeset in webkit [214166] by
-
- 2 edits in releases/WebKitGTK/webkit-2.16/Source/WebCore/platform/gtk/po
Update Ukrainian translation
https://bugs.webkit.org/show_bug.cgi?id=169812
Patch by Yuri Chornoivan <yurchor@ukr.net> on 2017-03-18
Rubber-stamped by Michael Catanzaro.
- uk.po:
- 2:18 AM Changeset in webkit [214165] by
-
- 2 edits in releases/WebKitGTK/webkit-2.16/Source/WebCore/platform/gtk/po
Merge r213855 - Updated Swedish translation
https://bugs.webkit.org/show_bug.cgi?id=169549
Patch by Josef Andersson <l10nl18nsweja@gmail.com> on 2017-03-13
Rubber-stamped by Michael Catanzaro.
- sv.po:
- 2:18 AM Changeset in webkit [214164] by
-
- 2 edits in releases/WebKitGTK/webkit-2.16/Source/WebKit2
Merge r214163 - Unreviewed. Add missing types to WebKitAutocleanups.
- UIProcess/API/gtk/WebKitAutocleanups.h:
- 2:15 AM Changeset in webkit [214163] by
-
- 2 edits in trunk/Source/WebKit2
Unreviewed. Add missing types to WebKitAutocleanups.
- UIProcess/API/gtk/WebKitAutocleanups.h:
- 1:47 AM Changeset in webkit [214162] by
-
- 3 edits in trunk/Source/WebCore
[Cairo] Ensure depth and stencil renderbuffers are created on GLESv2
https://bugs.webkit.org/show_bug.cgi?id=166643
Patch by Emanuele Aina <Emanuele Aina> on 2017-03-20
Reviewed by Darin Adler.
If the gfx device doesn't support GL_OES_packed_depth_stencil, the
separate depth and stencil buffers are not generated.
Copy what GraphicsContext3DEfl used to do and apply it in
GraphicsContext3DCairo.
The Intel gfx driver seem to tolerate unbound renderbuffers, but
enabling debugging in Mesa yields an error:
$ MESA_DEBUG=1 \
MESA_EXTENSION_OVERRIDE=-GL_OES_packed_depth_stencil
./bin/MiniBrowser http://webglsamples.org/aquarium/aquarium.html
Mesa: User error: GL_INVALID_OPERATION in glRenderbufferStorage(no renderbuffer bound)
- platform/graphics/GraphicsContext3D.h:
- platform/graphics/cairo/GraphicsContext3DCairo.cpp:
(WebCore::GraphicsContext3D::GraphicsContext3D):
Ensure separate depth and stencil renderbuffers are created.
(WebCore::GraphicsContext3D::~GraphicsContext3D):
Ensure separate depth and stencil renderbuffers are released.
Mar 19, 2017:
- 6:32 PM Changeset in webkit [214161] by
-
- 2 edits in branches/safari-603-branch/Source/JavaScriptCore
Merge r214079. rdar://problem/31116372
- 6:32 PM Changeset in webkit [214160] by
-
- 8 edits in branches/safari-603-branch/Source/JavaScriptCore
Merge r214071. rdar://problem/31077016
- 6:32 PM Changeset in webkit [214159] by
-
- 3 edits2 adds in branches/safari-603-branch
Merge r214059. rdar://problem/31099341
- 6:32 PM Changeset in webkit [214158] by
-
- 5 edits2 adds in branches/safari-603-branch
Merge r214023. rdar://problem/31091039
- 6:32 PM Changeset in webkit [214157] by
-
- 3 edits2 adds in branches/safari-603-branch
Merge r213967. rdar://problem/30921827
- 6:32 PM Changeset in webkit [214156] by
-
- 7 edits3 adds in branches/safari-603-branch
Merge r213897. rdar://problem/30921833
- 6:32 PM Changeset in webkit [214155] by
-
- 8 edits in branches/safari-603-branch/Source/WebCore
Merge r213833. rdar://problem/31092879
- 6:32 PM Changeset in webkit [214154] by
-
- 3 edits1 add in branches/safari-603-branch
Merge r213742. rdar://problem/30921818
- 6:32 PM Changeset in webkit [214153] by
-
- 2 edits in branches/safari-603-branch/Source/JavaScriptCore
Merge r213648. rdar://problem/30921824
- 6:32 PM Changeset in webkit [214152] by
-
- 3 edits2 adds in branches/safari-603-branch
Merge r213501. rdar://problem/30921830
- 6:31 PM Changeset in webkit [214151] by
-
- 5 edits in branches/safari-603-branch
Merge r213385. rdar://problem/30921816
- 6:31 PM Changeset in webkit [214150] by
-
- 5 edits2 adds in branches/safari-603-branch
Merge r213311. rdar://problem/30812769
- 6:31 PM Changeset in webkit [214149] by
-
- 2 edits in branches/safari-603-branch/Source/WebKit2
Merge r212726. rdar://problem/30921822
- 5:26 PM Changeset in webkit [214148] by
-
- 2 edits in trunk/Source/WebKit/mac
WebHTMLView is useless as WebResourceHandler
https://bugs.webkit.org/show_bug.cgi?id=169857
Reviewed by Dan Bernstein.
- WebView/WebHTMLView.mm:
(-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
WebHTMLView doesnt implement any of WebResourceHandler methods.
- 2:51 PM Changeset in webkit [214147] by
-
- 20 edits8 adds in trunk
Implement self.origin
https://bugs.webkit.org/show_bug.cgi?id=168023
Reviewed by Sam Weinig.
LayoutTests/imported/w3c:
- resources/import-expectations.json:
- web-platform-tests/html/dom/interfaces-expected.txt:
- web-platform-tests/html/dom/self-origin.any-expected.txt:
- web-platform-tests/html/dom/self-origin.sub-expected.txt:
Rebaseline several WPT tests now that more checks are passing.
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/Worker_Self_Origin-expected.txt: Added.
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/Worker_Self_Origin.html: Added.
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/support/WorkerSelfOriginSharedWorker.js: Added.
(onconnect):
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/support/WorkerSelfOriginWorker.js: Added.
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/support/w3c-import.log: Added.
- web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/w3c-import.log: Added.
Import test coverage for self.origin in workers.
Source/WebCore:
Implement self.origin:
Firefox and Chrome already support this.
Test: imported/w3c/web-platform-tests/html/webappapis/the-windoworworkerglobalscope-mixin/Worker_Self_Origin.html
- page/DOMWindow.cpp:
(WebCore::DOMWindow::origin):
- page/DOMWindow.h:
- page/WindowOrWorkerGlobalScope.idl:
- workers/WorkerGlobalScope.cpp:
(WebCore::WorkerGlobalScope::origin):
- workers/WorkerGlobalScope.h:
LayoutTests:
- http/tests/websocket/tests/hybi/handshake-fail-by-maxlength-expected.txt:
- http/tests/websocket/tests/hybi/handshake-fail-by-maxlength.html:
- http/tests/websocket/tests/hybi/handshake-fail-by-no-cr-expected.txt:
- http/tests/websocket/tests/hybi/handshake-fail-by-no-cr.html:
- http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status-expected.txt:
- http/tests/websocket/tests/hybi/handshake-fail-by-null-char-in-status.html:
- http/tests/websocket/tests/hybi/handshake-fail-by-prepended-null-expected.txt:
- http/tests/websocket/tests/hybi/handshake-fail-by-prepended-null.html:
Rename origin to wsOrigin in tests to avoid conflict with window.origin.
- 2:11 PM Changeset in webkit [214146] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: REGRESSION (r212910): Active call frame status icon has incorrect left margin
https://bugs.webkit.org/show_bug.cgi?id=169862
Reviewed by Brian Burg.
- UserInterface/Views/CallFrameTreeElement.css:
(.tree-outline .item.call-frame .status):
(body[dir=ltr] .tree-outline .item.call-frame .status):
(body[dir=rtl] .tree-outline .item.call-frame .status):
- 10:45 AM Changeset in webkit [214145] by
-
- 9 edits5 adds in trunk
const location = "foo"
throws in a worker
https://bugs.webkit.org/show_bug.cgi?id=169839
Reviewed by Mark Lam.
JSTests:
- ChakraCore/test/es6/letconst_global_shadow_builtins_nonconfigurable.baseline-jsc:
Update expected jsc result now that we throw a SyntaxError when trying to shadow undefined
with a let variable. We used not to throw because the value is undefined but this was not
as per EcmaScript. Both Firefox and Chrome throw in this case.
- stress/global-lexical-redeclare-variable.js:
(catch):
Update test that defines a non-configurable 'zoo' property on the global object and then
expected shadowing it with a 'let zoo' variable to work because its value was undefined.
This was not as per EcmaScript spec and both Firefox and Chrome throw in this case.
Source/JavaScriptCore:
Our HasRestrictedGlobalProperty check in JSC was slightly wrong, causing us
to sometimes throw a Syntax exception when we shouldn't when declaring a
const/let variable and sometimes not throw an exception when we should have.
This aligns our behavior with ES6, Firefox and Chrome.
- runtime/ProgramExecutable.cpp:
(JSC::hasRestrictedGlobalProperty):
(JSC::ProgramExecutable::initializeGlobalProperties):
Rewrite hasRestrictedGlobalProperty logic as per the EcmaScript spec:
In particular, they were 2 issues:
- We should throw a SyntaxError if hasProperty() returned true but getOwnProperty() would fail to return a descriptor. This would happen for properties that are not OWN properties, but defined somewhere in the prototype chain. The spec does not say to use hasProperty(), only getOwnProperty() and says we should return false if getOwnProperty() does not return a descriptor. This is what we do now.
- We would fail to throw when declaring a let/const variable that shadows an own property whose value is undefined. This is because the previous code was explicitly checking for this case. I believe this was a misinterpretation of ES6 which says: """ Let desc be O.GetOwnProperty(P). If desc is undefined, return false. """ We should check that desc is undefined, not desc.value. This is now fixed.
LayoutTests:
- fast/dom/window-const-variable-shadowing-expected.txt: Added.
- fast/dom/window-const-variable-shadowing.html: Added.
- fast/workers/const-location-variable-expected.txt: Added.
- fast/workers/const-location-variable.html: Added.
- fast/workers/resources/worker-const-location.js: Added.
Add layout test coverage for behavior changes. Those tests pass in Firefox and Chrome.
- js/dom/const-expected.txt:
- js/dom/const.html:
Update test which wrongly expected a let variable not to be able to shadow a
window named property. This test was failing in Chrome and Firefox. The reason
this does not throw is because window named properties are not on the window
object, they are on the WindowProperties object in the Window prototype chain.
- 8:54 AM Changeset in webkit [214144] by
-
- 5 edits in trunk/Source/WebKit2
[Cocoa] Web Automation: non-sticky virtual keys like 'left arrow' don't work properly
https://bugs.webkit.org/show_bug.cgi?id=169733
<rdar://problem/30162608>
Reviewed by Joseph Pecoraro.
There were several issues that caused certain virtual keys to not work correctly.
When a virtual key like 'left arrow' was dispatched as a keydown event, it was
ultimately being translated into an insertText: command instead of moveLeft:.
- The automation browser window was not properly made key window and active, so AppKit never tried to match the NSEvent as a key equivalent. That code path must be taken in this case, as it translates arrow keys into command selectors.
- AppKit relies on its own private use area (PUA) unicode characters to encode control keys that do not affect key modifier state, like the arrow keys. Since these PUA characters were not being used as the 'characters' of the NSEvents we synthesize, the events are treated as unknown and AppKit falls back to inserting the codepoint as uninterpreted text.
- The Mac implementation of platformSimulateKeyStroke did not allow non-sticky virtual keys to use the 'InsertByKey' interaction which sends keydown+keyup. This is a programming mistake that causes such inputs to assert in debug builds and bail out to do nothing in non-debug builds.
- A few simulated virtual keys that are matched to key equivalents did not properly set 'charactersIgnoringModifiers' on NSEvents, which may use the wrong editing command.
- UIProcess/Automation/WebAutomationSession.cpp:
(WebKit::WebAutomationSession::performKeyboardInteractions):
Fix this guard so that we actually call into key event synthesis code for iOS.
- UIProcess/Automation/WebAutomationSession.h: Add declarations.
- UIProcess/Automation/cocoa/WebAutomationSessionCocoa.mm:
(WebKit::WebAutomationSession::charCodeForVirtualKey): Moved from iOS implementation.
(WebKit::WebAutomationSession::charCodeIgnoringModifiersForVirtualKey): Added.
There are only a few special cases for now. We will probably need to hardcode
the decomposition for other ASCII characters so the expected DOM events are fired
when entering a shifted character (i.e., 'A' should be 'Shift'+'a', not 'A').
- UIProcess/Automation/ios/WebAutomationSessionIOS.mm:
(WebKit::WebAutomationSession::platformSimulateKeyStroke):
Use charCodeIgnoringModifiersForVirtualKey().
- UIProcess/Automation/mac/WebAutomationSessionMac.mm:
(WebKit::WebAutomationSession::sendSynthesizedEventsToPage): use -becomeKeyWindow.
(WebKit::keyHasStickyModifier): Added.
(WebKit::keyCodeForVirtualKey): Added.
(WebKit::eventModifierFlagsForVirtualKey):Added.
(WebKit::WebAutomationSession::platformSimulateKeyStroke):
Separately compute key stickiness, keyCode, event modifier, and charCode for
the simulated keystroke. The code to compute charCode is now shared between
iOS and macOS since the PUA characters are the same for both AppKit and UIKit.
- 8:41 AM Changeset in webkit [214143] by
-
- 3 edits1 add in trunk
import(arg) crashes when ToString(arg) throws
https://bugs.webkit.org/show_bug.cgi?id=169778
Reviewed by Saam Barati.
JSTests:
- stress/import-reject-with-exception.js: Added.
(shouldBe):
(let.x.get toString):
Source/JavaScriptCore:
JSPromiseDeferred should not be rejected with Exception*.
- runtime/JSGlobalObjectFunctions.cpp:
(JSC::globalFuncImportModule):