Timeline
Aug 12, 2017:
- 11:47 PM Changeset in webkit [220630] by
-
- 3 edits in trunk/Source/JavaScriptCore
[ARM64] Use x29 and x30 instead of fp and lr to make GCC happy
https://bugs.webkit.org/show_bug.cgi?id=175512
<rdar://problem/33863584>
Reviewed by Mark Lam.
- CMakeLists.txt: Added MacroAssemblerARM64.cpp.
- assembler/MacroAssemblerARM64.cpp: Use x29 and x30 instead of fp and lr to make GCC happy.
- 11:22 PM Changeset in webkit [220629] by
-
- 2 edits in trunk/Source/JavaScriptCore
ARM_TRADITIONAL: static assertion failed: ProbeContext_size_matches_ctiMasmProbeTrampoline
https://bugs.webkit.org/show_bug.cgi?id=175513
Reviewed by Mark Lam.
- assembler/MacroAssemblerARM.cpp: Added d16-d31 FP registers too.
- 6:59 PM Changeset in webkit [220628] by
-
- 6 edits in trunk/Source/JavaScriptCore
FTL's compileGetTypedArrayByteOffset needs to do caging
https://bugs.webkit.org/show_bug.cgi?id=175366
Reviewed by Saam Barati.
While implementing boxing in the DFG, I noticed that there was some missing boxing in the FTL. This
fixes the case in GetTypedArrayByteOffset, and files FIXMEs for more such cases.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetTypedArrayByteOffset):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetTypedArrayByteOffset):
(JSC::FTL::DFG::LowerDFGToB3::cagedMayBeNull):
- runtime/ArrayBuffer.h:
- runtime/ArrayBufferView.h:
- runtime/JSArrayBufferView.h:
- 3:14 PM Changeset in webkit [220627] by
-
- 43 edits3 adds in trunk
Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
https://bugs.webkit.org/show_bug.cgi?id=175474
.:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
- Source/cmake/OptionsMac.cmake:
- Source/cmake/OptionsWin.cmake:
- Source/cmake/WebKitFeatures.cmake:
- Source/cmake/tools/vsprops/FeatureDefines.props:
- Source/cmake/tools/vsprops/FeatureDefinesCairo.props:
Source/JavaScriptCore:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
- Configurations/FeatureDefines.xcconfig:
- runtime/CommonIdentifiers.h:
Source/WebCore:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
Replaced the build flag by a runtime flag and added a stub implementation for DataTransferItemList
and DataTransferItem to make it compile. DataTransferItemList is created lazily by DataTransfer.items,
and its lifetime is tied to DataTransfer by forwarding ref and deref.
See https://html.spec.whatwg.org/multipage/dnd.html#the-datatransferitemlist-interface
Tests: editing/pasteboard/datatransfer-idl.html
- CMakeLists.txt:
- Configurations/FeatureDefines.xcconfig:
- WebCore.xcodeproj/project.pbxproj:
- dom/DataTransfer.cpp:
(WebCore::DataTransfer::items): Added. Create DataTransferItemList lazily
- dom/DataTransfer.h:
- dom/DataTransfer.idl:
- dom/DataTransferItem.cpp:
(WebCore::DataTransferItem::DataTransferItem): Added a stub implementation.
(WebCore::DataTransferItem::~DataTransferItem): Ditto.
(WebCore::DataTransferItem::getAsString const): Ditto.
(WebCore::DataTransferItem::getAsFile const): Ditto.
- dom/DataTransferItem.h:
(WebCore::DataTransferItemList): Devirtualized functions.
(WebCore::DataTransferItemList::kind const):
(WebCore::DataTransferItemList::type const):
- dom/DataTransferItem.idl:
- dom/DataTransferItemList.cpp: Added.
(WebCore::DataTransferItemList::length const): Added a stub implementation.
(WebCore::DataTransferItemList::item): Ditto.
(WebCore::DataTransferItemList::add): Ditto.
(WebCore::DataTransferItemList::remove): Ditto.
(WebCore::DataTransferItemList::clear): Ditto.
- dom/DataTransferItemList.h:
(WebCore::DataTransferItemList::DataTransferItemList):
(WebCore::DataTransferItemList::~DataTransferItemList): Deleted.
(WebCore::DataTransferItemList::ref): Forwards to DataTransfer's ref.
(WebCore::DataTransferItemList::deref): Ditto.
- dom/DataTransferItemList.idl: Updated to match the latest specification.
- page/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::setDataTransferItemsEnabled): Added.
(WebCore::RuntimeEnabledFeatures::dataTransferItemsEnabled const): Added.
Source/WebCore/PAL:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
- Configurations/FeatureDefines.xcconfig:
Source/WebKit:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
Replaced the build flag by a runtime flag and disabled the feature by default.
- Configurations/FeatureDefines.xcconfig:
- Shared/WebPreferencesDefinitions.h:
- UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetDataTransferItemsEnabled): Added to be used by WebKitTestRunner.
(WKPreferencesGetDataTransferItemsEnabled): Ditto.
- UIProcess/API/C/WKPreferencesRefPrivate.h:
- WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
Source/WebKitLegacy/mac:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
Replaced the build flag by a runtime flag and disabled the feature by default.
- Configurations/FeatureDefines.xcconfig:
- WebView/WebPreferenceKeysPrivate.h:
- WebView/WebPreferences.mm:
(+[WebPreferences initialize]): Disables dataTransfer.items by default.
(-[WebPreferences dataTransferItemsEnabled]): Added.
(-[WebPreferences setDataTransferItemsEnabled:]): Added.
- WebView/WebPreferencesPrivate.h:
- WebView/WebView.mm:
(-[WebView _preferencesChanged:]):
Source/WTF:
Reviewed by Wenson Hsieh.
- wtf/FeatureDefines.h:
Tools:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
Enable dataTransfer.items by default in DumpRenderTree and WebKitTestRunner for testing purposes.
- DumpRenderTree/mac/DumpRenderTree.mm:
(resetWebPreferencesToConsistentValues):
- WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):
LayoutTests:
<rdar://problem/33844628>
Reviewed by Wenson Hsieh.
Added a W3C-style IDL test.
- editing/pasteboard/datatransfer-idl.html: Added.
- 2:58 PM Changeset in webkit [220626] by
-
- 34 edits in trunk
Address flakiness related to download tests
https://bugs.webkit.org/show_bug.cgi?id=175338
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
Rebaseline several WPT tests now that download callbacks are no longer logged.
- web-platform-tests/html/semantics/embedded-content/the-area-element/area-download-click-expected.txt:
- web-platform-tests/html/semantics/text-level-semantics/the-a-element/a-download-click-expected.txt:
Tools:
- Update WKTR so that the flag set by testRunner.waitUntilDownloadFinished() is actually queried when a download completes. Previously, this would be identical to a call to testRunner.waitUntilDone() because any download completion would call testRunner.notifyDone().
- Disable logging of download callbacks by default and add a testRunner.setShouldLogDownloadCallbacks(true) API to allow tests to enable such logging.
- WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
- WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::didReceiveMessageToPage):
- WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setShouldLogDownloadCallbacks):
- WebKitTestRunner/InjectedBundle/TestRunner.h:
- WebKitTestRunner/TestController.cpp:
(WTR::TestController::downloadDidStart):
(WTR::TestController::decideDestinationWithSuggestedFilename):
(WTR::TestController::downloadDidFinish):
(WTR::TestController::downloadDidFail):
(WTR::TestController::downloadDidCancel):
- WebKitTestRunner/TestController.h:
(WTR::TestController::setShouldLogDownloadCallbacks):
- WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
LayoutTests:
Unmark several download tests as flaky.
- fast/dom/HTMLAnchorElement/anchor-download-synthetic-click.html:
- fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html:
- fast/dom/HTMLAnchorElement/anchor-download.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-doublequote.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-slashes.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-unicode.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download-no-extension.html:
- fast/dom/HTMLAnchorElement/anchor-file-blob-download.html:
- fast/dom/HTMLAnchorElement/anchor-nodownload-set.html:
- http/tests/download/anchor-download-attribute-content-disposition.html:
- http/tests/download/anchor-download-no-extension.html:
- http/tests/download/anchor-download-no-value.html:
- http/tests/download/area-download-expected.txt:
- http/tests/download/area-download.html:
- http/tests/security/anchor-download-allow-blob-expected.txt:
- http/tests/security/anchor-download-allow-blob.html:
- http/tests/security/anchor-download-allow-data-expected.txt:
- http/tests/security/anchor-download-allow-data.html:
- http/tests/security/anchor-download-allow-sameorigin.html:
Update download tests to explicitly enable download callbacks logging.
- 11:44 AM Changeset in webkit [220625] by
-
- 14 edits in trunk
Caging shouldn't have to use a patchpoint for adding
https://bugs.webkit.org/show_bug.cgi?id=175483
Reviewed by Mark Lam.
Source/JavaScriptCore:
Caging involves doing a Add(ptr, largeConstant). All of B3's heuristics for how to deal with
constants and associative operations dictate that you always want to sink constants. For example,
Add(Add(a, constant), b) always becomes Add(Add(a, b), constant). This is profitable because in
typical code, it reveals downstream optimizations. But it's terrible in the case of caging, because
we want the large constant (which is shared by all caging operations) to be hoisted. Reassociating to
sink constants obscures the constant in this case. Currently, moveConstants is not smart enough to
reassociate, so instead of sinking largeConstant, it tries (and often fails) to sink some other
constants instead. Without some hacks, this is a 5% Kraken regression and a 1.6% Octane regression.
It's not clear that moveConstants could ever be smart enough to rematerialize that constant and then
hoist it - that would require quite a bit of algebraic reasoning. But the only case we know of where
our current constant reassociation heuristics are wrong is caging. So, we can get away with some
hacks for just stopping B3's reassociation only in this specific case.
Previously, we achieved this by concealing the Add(ptr, largeConstant) inside a patchpoint. That's
OK, but patchpoints are expensive. They require a SharedTask instance. They require callbacks from
the backend, including during register allocation. And they cannot be CSE'd. We do want B3 to know
that if we cage the same pointer in two places, both places will compute the same value.
This patch improves the situation by introducing the Opaque opcode. This is handled by LowerToAir as
if it was Identity, but all prior phases treat it as an unknown pure unary idempotent operation. I.e.
they know that Opaque(x) == Opaque(x) and that Opaque(Opaque(x)) == Opaque(x). But they don't know
that Opaque(x) == x until LowerToAir. So, you can use Opaque exactly when you know that B3 will mess
up your code but Air won't. (Currently we know of no cases where Air messes things up on a large
enough scale to warrant new opcodes.)
This change is perf-neutral, but may start to help as I add more uses of caged() in the FTL. It also
makes the code a bit less ugly.
- b3/B3LowerToAir.cpp:
(JSC::B3::Air::LowerToAir::shouldCopyPropagate):
(JSC::B3::Air::LowerToAir::lower):
- b3/B3Opcode.cpp:
(WTF::printInternal):
- b3/B3Opcode.h:
- b3/B3ReduceStrength.cpp:
- b3/B3Validate.cpp:
- b3/B3Value.cpp:
(JSC::B3::Value::effects const):
(JSC::B3::Value::key const):
(JSC::B3::Value::isFree const):
(JSC::B3::Value::typeFor):
- b3/B3Value.h:
- b3/B3ValueKey.cpp:
(JSC::B3::ValueKey::materialize const):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::caged):
- ftl/FTLOutput.cpp:
(JSC::FTL::Output::opaque):
- ftl/FTLOutput.h:
Websites/webkit.org:
Write documentation for the new Opaque opcode.
- docs/b3/intermediate-representation.html:
- 11:40 AM Changeset in webkit [220624] by
-
- 5 edits in trunk/Source/JavaScriptCore
ScopedArguments overflow storage needs to be in the JSValue gigacage
https://bugs.webkit.org/show_bug.cgi?id=174923
Reviewed by Saam Barati.
ScopedArguments overflow storage sits at the end of the ScopedArguments object, so we put that
object into the JSValue gigacage.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetByValOnScopedArguments):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
- jit/JITPropertyAccess.cpp:
(JSC::JIT::emitScopedArgumentsGetByVal):
- runtime/ScopedArguments.h:
(JSC::ScopedArguments::subspaceFor):
(JSC::ScopedArguments::overflowStorage const):
Aug 11, 2017:
- 10:18 PM Changeset in webkit [220623] by
-
- 4 edits22 moves1 add in trunk/Source/WebCore
Move files inside WebCore/workers to WebCore/workers/service.
https://bugs.webkit.org/show_bug.cgi?id=175495
Rubberstamped by Tim Horton.
- CMakeLists.txt:
- DerivedSources.make:
- WebCore.xcodeproj/project.pbxproj:
- workers/service/ServiceWorker.cpp: Renamed from Source/WebCore/workers/ServiceWorker.cpp.
- workers/service/ServiceWorker.h: Renamed from Source/WebCore/workers/ServiceWorker.h.
- workers/service/ServiceWorker.idl: Renamed from Source/WebCore/workers/ServiceWorker.idl.
- workers/service/ServiceWorkerContainer.cpp: Renamed from Source/WebCore/workers/ServiceWorkerContainer.cpp.
- workers/service/ServiceWorkerContainer.h: Renamed from Source/WebCore/workers/ServiceWorkerContainer.h.
- workers/service/ServiceWorkerContainer.idl: Renamed from Source/WebCore/workers/ServiceWorkerContainer.idl.
- workers/service/ServiceWorkerGlobalScope.cpp: Renamed from Source/WebCore/workers/ServiceWorkerGlobalScope.cpp.
- workers/service/ServiceWorkerGlobalScope.h: Renamed from Source/WebCore/workers/ServiceWorkerGlobalScope.h.
- workers/service/ServiceWorkerGlobalScope.idl: Renamed from Source/WebCore/workers/ServiceWorkerGlobalScope.idl.
- workers/service/ServiceWorkerJob.cpp: Renamed from Source/WebCore/workers/ServiceWorkerJob.cpp.
- workers/service/ServiceWorkerJob.h: Renamed from Source/WebCore/workers/ServiceWorkerJob.h.
- workers/service/ServiceWorkerJobClient.h: Renamed from Source/WebCore/workers/ServiceWorkerJobClient.h.
- workers/service/ServiceWorkerProvider.cpp: Renamed from Source/WebCore/workers/ServiceWorkerProvider.cpp.
- workers/service/ServiceWorkerProvider.h: Renamed from Source/WebCore/workers/ServiceWorkerProvider.h.
- workers/service/ServiceWorkerRegistration.cpp: Renamed from Source/WebCore/workers/ServiceWorkerRegistration.cpp.
- workers/service/ServiceWorkerRegistration.h: Renamed from Source/WebCore/workers/ServiceWorkerRegistration.h.
- workers/service/ServiceWorkerRegistration.idl: Renamed from Source/WebCore/workers/ServiceWorkerRegistration.idl.
- workers/service/ServiceWorkerRegistrationOptions.h: Renamed from Source/WebCore/workers/ServiceWorkerRegistrationOptions.h.
- workers/service/ServiceWorkerRegistrationParameters.cpp: Renamed from Source/WebCore/workers/ServiceWorkerRegistrationParameters.cpp.
- workers/service/ServiceWorkerRegistrationParameters.h: Renamed from Source/WebCore/workers/ServiceWorkerRegistrationParameters.h.
- workers/service/ServiceWorkerUpdateViaCache.h: Renamed from Source/WebCore/workers/ServiceWorkerUpdateViaCache.h.
- workers/service/ServiceWorkerUpdateViaCache.idl: Renamed from Source/WebCore/workers/ServiceWorkerUpdateViaCache.idl.
- 7:51 PM Changeset in webkit [220622] by
-
- 37 edits4 adds in trunk
Implement quota limitation for keepalive Fetch requests
https://bugs.webkit.org/show_bug.cgi?id=175482
Reviewed by Sam Weinig and Youenn Fablet.
LayoutTests/imported/w3c:
- web-platform-tests/fetch/api/basic/scheme-about.any-expected.txt:
- web-platform-tests/fetch/api/basic/scheme-about.any.worker-expected.txt:
- web-platform-tests/fetch/api/cors/cors-multiple-origins-expected.txt:
- web-platform-tests/fetch/api/cors/cors-multiple-origins-worker-expected.txt:
- web-platform-tests/fetch/api/cors/cors-preflight-star.any-expected.txt:
- web-platform-tests/fetch/api/cors/cors-preflight-star.any.worker-expected.txt:
- web-platform-tests/fetch/http-cache/cc-request-expected.txt:
Rebaseline tests now that we provide a more helpful error message when rejecting
the fetch() promise.
- web-platform-tests/fetch/api/request/request-keepalive-quota-expected.txt:
Rebaseline test for keepalive Fetch requests quota which is now passing.
Source/WebCore:
Implement quota limitation for keepalive Fetch requests as per:
This partly works for Beacon as well, meaning that no Beacon with a body
over 64Kb can be sent. However, we don't keep track about wether or not
beacon loads are inflight or not.
Also update CachedResourceLoader::requestResource() so that the caller
can get a ResourceError when it returns null. This is useful for both
Fetch and Beacon to return better error messages.
Test: http/wpt/beacon/beacon-quota.html
- CMakeLists.txt:
- Modules/beacon/NavigatorBeacon.cpp:
(WebCore::NavigatorBeacon::sendBeacon):
- Modules/fetch/FetchBodyOwner.cpp:
(WebCore::FetchBodyOwner::BlobLoader::didReceiveResponse):
(WebCore::FetchBodyOwner::BlobLoader::didFail):
- Modules/fetch/FetchBodyOwner.h:
- Modules/fetch/FetchLoader.cpp:
(WebCore::FetchLoader::start):
(WebCore::FetchLoader::didFail):
- Modules/fetch/FetchLoaderClient.h:
- Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::BodyLoader::didFail):
- Modules/fetch/FetchResponse.h:
- WebCore.xcodeproj/project.pbxproj:
- loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::loadRequest):
- loader/cache/CachedResource.cpp:
(WebCore::CachedResource::load):
- loader/cache/CachedResource.h:
(WebCore::CachedResource::isMainOrMediaOrIconOrRawResource const):
- loader/cache/CachedResourceLoader.cpp:
(WebCore::createResource):
(WebCore::CachedResourceLoader::requestImage):
(WebCore::CachedResourceLoader::requestFont):
(WebCore::CachedResourceLoader::requestTextTrack):
(WebCore::CachedResourceLoader::requestCSSStyleSheet):
(WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
(WebCore::CachedResourceLoader::requestScript):
(WebCore::CachedResourceLoader::requestXSLStyleSheet):
(WebCore::CachedResourceLoader::requestSVGDocument):
(WebCore::CachedResourceLoader::requestLinkResource):
(WebCore::CachedResourceLoader::requestMedia):
(WebCore::CachedResourceLoader::requestIcon):
(WebCore::CachedResourceLoader::requestRawResource):
(WebCore::CachedResourceLoader::requestBeaconResource):
(WebCore::CachedResourceLoader::requestMainResource):
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::preload):
- loader/cache/CachedResourceLoader.h:
- loader/cache/KeepaliveRequestTracker.cpp: Added.
(WebCore::KeepaliveRequestTracker::~KeepaliveRequestTracker):
(WebCore::KeepaliveRequestTracker::canLoadRequest):
(WebCore::KeepaliveRequestTracker::registerRequest):
(WebCore::KeepaliveRequestTracker::responseReceived):
(WebCore::KeepaliveRequestTracker::notifyFinished):
(WebCore::KeepaliveRequestTracker::unregisterRequest):
- loader/cache/KeepaliveRequestTracker.h: Added.
- platform/network/FormData.cpp:
(WebCore::FormDataElement::lengthInBytes const):
(WebCore::FormData::lengthInBytes const):
- platform/network/FormData.h:
LayoutTests:
- fast/xmlhttprequest/xmlhttprequest-nonexistent-file-expected.txt:
- http/tests/contentextensions/async-xhr-onerror-expected.txt:
- http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-iframe-expected.txt:
- http/tests/security/contentSecurityPolicy/block-all-mixed-content/insecure-xhr-asynchronous-in-main-frame-expected.txt:
- http/tests/security/mixedContent/insecure-xhr-in-main-frame-expected.txt:
Rebaseline a few tests now that we provide a more helpful error message when an XHR is failing synchronously.
- http/wpt/beacon/beacon-quota-expected.txt: Added.
- http/wpt/beacon/beacon-quota.html: Added.
Add layout test coverage for keepalive Fetch requests quota in the context of sendBeacon().
The second part of the test is still failing because WebCore does not currently know when
ping loads (e.g. beacon loads) complete. This will be addressed via Bug 175443.
- 6:13 PM Changeset in webkit [220621] by
-
- 13 edits1 move in trunk/Source
[WTF] Move ValueToString into WTF
https://bugs.webkit.org/show_bug.cgi?id=175469
Reviewed by Sam Weinig.
Source/WebCore:
No new tests. No change in behavior.
- WebCore.xcodeproj/project.pbxproj:
- html/HTMLMediaElement.h:
(WTF::ValueToString<WebCore::TextTrackCue::string):
(WebCore::ValueToString<TextTrackCue::string): Deleted.
(WebCore::ValueToString<MediaTime>::string): Deleted.
- platform/LayoutUnit.h:
(WTF::ValueToString<WebCore::LayoutUnit>::string):
(WebCore::ValueToString<LayoutUnit>::string): Deleted.
- platform/PODInterval.h:
- platform/PODIntervalTree.h:
- platform/PODRedBlackTree.h:
- platform/graphics/FloatPolygon.h:
(WTF::ValueToString<WebCore::FloatPolygonEdge::string):
(WebCore::ValueToString<FloatPolygonEdge::string): Deleted.
- rendering/FloatingObjects.h:
(WTF::ValueToString<WebCore::FloatingObject::string):
(WebCore::ValueToString<FloatingObject::string): Deleted.
- rendering/RenderFlowThread.h:
(WTF::ValueToString<WebCore::RenderRegion::string):
(WebCore::ValueToString<RenderRegion::string): Deleted.
Source/WTF:
- WTF.xcodeproj/project.pbxproj:
- wtf/CMakeLists.txt:
- wtf/text/ValueToString.h: Renamed from Source/WebCore/platform/ValueToString.h.
- 5:32 PM Changeset in webkit [220620] by
-
- 7 edits in trunk/Source/WebCore
[Bindings] Simplify DOMPromiseProxy now that WTF::Function can return references
https://bugs.webkit.org/show_bug.cgi?id=175394
Patch by Sam Weinig <sam@webkit.org> on 2017-08-11
Reviewed by Chris Dumez.
- bindings/IDLTypes.h:
(WebCore::IDLWrapper::convertToParameterType): Deleted.
Remove no longer used convertToParameterType.
- bindings/js/DOMPromiseProxy.h:
- Replace Variant<Value, Exception> with ExceptionOr<Value> / ExceptionOr<void>.
- Update ResolveCallback to have a return type of IDLType::ParameterType, rather than IDLType::ImplementationType, now that WTF::Function supports references as the return type. This is needed, since the IDLType::ParameterType for an interface T is T&.
- css/FontFace.cpp:
- css/FontFace.h:
- css/FontFaceSet.cpp:
- css/FontFaceSet.h:
Update resolve callbacks to return a reference rather than a RefPtr, matching
the new signature requirement.
- 5:07 PM Changeset in webkit [220619] by
-
- 17 edits11 copies1 move2 deletes in trunk/Source/WebCore
[WebIDL] Replace JSCryptoKeyCustom and JSCryptoAlgorithmBuilder with generated code
https://bugs.webkit.org/show_bug.cgi?id=175457
Patch by Sam Weinig <sam@webkit.org> on 2017-08-11
Reviewed by Chris Dumez.
- CMakeLists.txt:
- DerivedSources.make:
- WebCore.xcodeproj/project.pbxproj:
- bindings/js/JSCryptoAlgorithmBuilder.cpp: Removed.
- bindings/js/JSCryptoAlgorithmBuilder.h: Removed.
- bindings/js/JSCryptoKeyCustom.cpp: Removed.
Remove JSCryptoAlgorithmBuilder and JSCryptoKeyCustom, add KeyAlgorithm
IDLs and headers.
- crypto/CryptoKey.cpp:
- crypto/CryptoKey.h:
- crypto/CryptoKey.idl:
Replace custom algorithm attribute with a union of the supported key algorithms.
- crypto/keys/CryptoAesKeyAlgorithm.h: Added.
- crypto/keys/CryptoAesKeyAlgorithm.idl: Added.
- crypto/keys/CryptoEcKeyAlgorithm.h: Added.
- crypto/keys/CryptoEcKeyAlgorithm.idl: Added.
- crypto/keys/CryptoHmacKeyAlgorithm.h: Added.
- crypto/keys/CryptoHmacKeyAlgorithm.idl: Added.
- crypto/keys/CryptoKeyAlgorithm.h: Added.
- crypto/keys/CryptoKeyAlgorithm.idl: Added.
- crypto/keys/CryptoRsaHashedKeyAlgorithm.h: Added.
- crypto/keys/CryptoRsaHashedKeyAlgorithm.idl: Added.
- crypto/keys/CryptoRsaKeyAlgorithm.h: Added.
- crypto/keys/CryptoRsaKeyAlgorithm.idl: Added.
Add IDLs and headers fo the supported key algorithms.
- crypto/keys/CryptoKeyAES.h:
- crypto/keys/CryptoKeyEC.h:
- crypto/keys/CryptoKeyHMAC.h:
- crypto/keys/CryptoKeyRSA.h:
- crypto/keys/CryptoKeyRaw.h:
Give each of the existing KeyAlgorithm subclasses a dictionary() function
that returns the populated corresponding spec'd dictionary.
- 4:18 PM Changeset in webkit [220618] by
-
- 4 edits in trunk/Source/JavaScriptCore
JSLexicalEnvironment needs to be in the JSValue gigacage
https://bugs.webkit.org/show_bug.cgi?id=174922
Reviewed by Michael Saboff.
We can sorta random access the JSLexicalEnvironment. So, we put it in the JSValue gigacage and make
the only random accesses use pointer caging.
We don't need to do anything to normal lexical environment accesses.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetByValOnScopedArguments):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
- runtime/JSEnvironmentRecord.h:
(JSC::JSEnvironmentRecord::subspaceFor):
(JSC::JSEnvironmentRecord::variables):
- 4:12 PM Changeset in webkit [220617] by
-
- 2 edits in trunk/LayoutTests
Update TestExpectations for failing media/video-controls tests.
https://bugs.webkit.org/show_bug.cgi?id=173978
Unreviewed test gardening.
- platform/mac/TestExpectations:
- 3:43 PM Changeset in webkit [220616] by
-
- 10 edits in trunk/Source/WebCore
Some RenderSVGResource cleanup
https://bugs.webkit.org/show_bug.cgi?id=175494
Reviewed by Zalan Bujtas.
Use more initializers. Remove spurious use of bitfields that didn't save any space at all.
0 -> nullptr.
No behavior change.
- rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
- rendering/svg/RenderSVGResourceContainer.h:
- rendering/svg/RenderSVGResourceGradient.cpp:
(WebCore::RenderSVGResourceGradient::RenderSVGResourceGradient):
(WebCore::RenderSVGResourceGradient::applyResource):
- rendering/svg/RenderSVGResourceGradient.h:
- rendering/svg/RenderSVGResourcePattern.cpp:
(WebCore::RenderSVGResourcePattern::RenderSVGResourcePattern):
- rendering/svg/RenderSVGResourcePattern.h:
- rendering/svg/RenderSVGShape.cpp:
(WebCore::RenderSVGShape::fillShape):
(WebCore::RenderSVGShape::strokeShape):
- rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::~SVGRenderingContext):
(WebCore::SVGRenderingContext::prepareToRenderSVGContent):
- rendering/svg/SVGRenderingContext.h:
(WebCore::SVGRenderingContext::SVGRenderingContext):
- 3:35 PM Changeset in webkit [220615] by
-
- 5 edits in trunk/Source
Fix the build with modern Clang's -Wexpansion-to-defined
https://bugs.webkit.org/show_bug.cgi?id=175467
<rdar://problem/33667497>
Reviewed by Simon Fraser.
Source/WebCore:
- crypto/mac/SerializedCryptoKeyWrapMac.mm:
Source/WTF:
- wtf/FeatureDefines.h:
- wtf/Platform.h:
Avoid object-like macros that expand to include defined(), because this
behaves inconsistently between different compilers (though in ways
that don't matter for these particular defines, which aren't used on MSVC),
and Clang has added a warning for it.
Move ENABLE_WEBASSEMBLY to Platform.h since it depends on things that
are defined there and can't be evaluated at time-of-use because of the
aforementioned new rules. Previously, there was a cycle between
ENABLE_WEBASSEMBLY and ENABLE_B3_JIT -- break that so that it just
goes FTL_JIT->B3_JIT->WASM instead.
- 3:33 PM Changeset in webkit [220614] by
-
- 2 edits in trunk/Source/WebInspectorUI
Web Inspector: Clicking on suggestion hint should apply it, not dismiss
https://bugs.webkit.org/show_bug.cgi?id=175409
Reviewed by Matt Baker.
Make clicking on the suggestion hint apply the completion, and place the text caret after it.
- UserInterface/Controllers/CodeMirrorCompletionController.js:
(WI.CodeMirrorCompletionController.prototype._createCompletionHintMarker):
- 3:21 PM Changeset in webkit [220613] by
-
- 7 edits in branches/safari-604.1.38.0-branch/Source
Versioning.
- 3:20 PM Changeset in webkit [220612] by
-
- 7 edits in branches/safari-604.1.38.1-branch/Source
Versioning.
- 2:27 PM Changeset in webkit [220611] by
-
- 1 copy in tags/Safari-604.1.38.1.5
Tag Safari-604.1.38.1.5.
- 2:25 PM Changeset in webkit [220610] by
-
- 1 copy in tags/Safari-604.1.38.0.5
Tag Safari-604.1.38.0.5.
- 2:08 PM Changeset in webkit [220609] by
-
- 15 edits in trunk/Source/WebInspectorUI
Web Inspector: Styles: Update the filter icon to match Xcode
https://bugs.webkit.org/show_bug.cgi?id=175458
<rdar://problem/33838660>
Reviewed by Matt Baker.
- UserInterface/Images/FilterFieldGlyph.svg:
Half-pixel transform is necessary for a cleaner rasterisation.
- UserInterface/Views/FilterBar.css:
(.filter-bar > input[type="search"]::-webkit-search-decoration):
(.sidebar > .panel.dom-node-details .details-section.dom-node-event-listeners > .header > .filter):
::-webkit-search-decoration is a flexbox item. Removevertical-align: bottom,
since it didn't do anything for it.
- UserInterface/Views/DOMNodeDetailsSidebarPanel.css:
- UserInterface/Views/FilterBar.js:
(WI.FilterBar):
- UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
(WI.CSSStyleDetailsSidebarPanel.prototype.initialLayout):
- UserInterface/Views/DebuggerSidebarPanel.js:
- UserInterface/Views/LogContentView.js:
(WI.LogContentView):
- UserInterface/Views/NetworkSidebarPanel.js:
(WI.NetworkSidebarPanel):
- UserInterface/Views/RecordingNavigationSidebarPanel.js:
(WI.RecordingNavigationSidebarPanel):
- UserInterface/Views/ResourceSidebarPanel.js:
(WI.ResourceSidebarPanel):
- UserInterface/Views/SearchSidebarPanel.js:
(WI.SearchSidebarPanel):
- UserInterface/Views/StorageSidebarPanel.js:
(WI.StorageSidebarPanel):
- UserInterface/Views/TimelineRecordingContentView.js:
(WI.TimelineRecordingContentView):
- Localizations/en.lproj/localizedStrings.js:
Replace placeholder text for all filter fields with "Filter".
- 1:37 PM Changeset in webkit [220608] by
-
- 2 edits in trunk/Source/WebCore
Crash under ServiceWorkerJob::failedWithException.
https://bugs.webkit.org/show_bug.cgi?id=175488
Reviewed by Tim Horton.
Covered by existing tests.
- workers/ServiceWorkerJob.cpp:
(WebCore::ServiceWorkerJob::failedWithException): jobDidFinish might cause the Job to be deleted, so make it last.
- 1:36 PM Changeset in webkit [220607] by
-
- 5 edits in branches/safari-604.1.38.0-branch/LayoutTests
Unreviewed test gardening. rdar://problem/33831603
- fast/events/ios/no-touch-events-when-stopping-momentum-scroll-in-mainframe-expected.txt:
- platform/ios-11/TestExpectations:
- platform/ios-simulator-wk2/TestExpectations:
- platform/ios-wk2/fast/dom/elementFromPoint-relative-to-viewport-expected.txt:
- 1:08 PM Changeset in webkit [220606] by
-
- 7 edits in trunk/Source/JavaScriptCore
DirectArguments should be in the JSValue gigacage
https://bugs.webkit.org/show_bug.cgi?id=174920
Reviewed by Michael Saboff.
This puts DirectArguments in a new subspace for cells that want to be in the JSValue gigacage. All
indexed accesses to DirectArguments now do caging. get_from_arguments/put_to_arguments are exempted
because they always operate on a DirectArguments that is pointed to directly from the stack, they are
required to use fixed offsets, and you can only store JSValues.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetByValOnDirectArguments):
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
- jit/JITPropertyAccess.cpp:
(JSC::JIT::emitDirectArgumentsGetByVal):
- runtime/DirectArguments.h:
(JSC::DirectArguments::subspaceFor):
(JSC::DirectArguments::storage):
- runtime/VM.cpp:
(JSC::VM::VM):
- runtime/VM.h:
- 1:04 PM Changeset in webkit [220605] by
-
- 2 edits in trunk/Tools
Create mock ITP data in testing to prevent grandfathering
https://bugs.webkit.org/show_bug.cgi?id=174720
Unreviewed follow-up fix for r220604.
- WebKitTestRunner/cocoa/TestControllerCocoa.mm:
(WTR::TestController::cocoaPlatformInitialize): Release resourceLogPlist.
- 10:30 AM Changeset in webkit [220604] by
-
- 5 edits in trunk/Tools
Create mock ITP data in testing to prevent grandfathering
https://bugs.webkit.org/show_bug.cgi?id=174720
<rdar://problem/33457779>
Reviewed by Brent Fulgham.
We don't need to be triggering grandfathering when each test runner starts. On Mac,
this may launch plugins which can cause layout tests to fail later if the test
runner does not shut-down before the plugins unload.
- WebKitTestRunner/TestController.h: Add declaration of cocoaPlatformInitialize.
- WebKitTestRunner/cocoa/TestControllerCocoa.mm:
(WTR::TestController::cocoaPlatformInitialize): Write the minimum data required to
prevent grandfathering from being triggered.
- WebKitTestRunner/ios/TestControllerIOS.mm:
(WTR::TestController::platformInitialize): Call cocoaPlatformInitialize.
- WebKitTestRunner/mac/TestControllerMac.mm:
(WTR::TestController::platformInitialize): Ditto.
- 10:26 AM Changeset in webkit [220603] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, add a FIXME.
- ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::caged):
- 10:26 AM Changeset in webkit [220602] by
-
- 2 edits in branches/safari-604.1.38.0-branch/LayoutTests
Unreviwed test gardening. <rdar://problem/33831603>
- platform/ios-11/TestExpectations:
- 9:56 AM Changeset in webkit [220601] by
-
- 10 edits in trunk
WTF::Function does not allow for reference / non-default constructible return types
https://bugs.webkit.org/show_bug.cgi?id=175244
Source/JavaScriptCore:
Reviewed by Chris Dumez.
- runtime/ArrayBuffer.cpp:
(JSC::ArrayBufferContents::transferTo):
Call reset(), rather than clear() to avoid the call to destroy() in clear(). The
destroy call needed to be a no-op anyway, since the data is being moved.
Source/WebCore:
Reviewed by Chris Dumez.
- bindings/js/JSCustomElementInterface.h:
(WebCore::JSCustomElementInterface::invokeCallback):
Update the default value for the addArguments parameter to be an empty lambda, rather than
default initialization, which leads to a null WTF::Function. This allows us to remove support
for calling null WTF::Function. No change in behavior.
Source/WebKit:
Reviewed by Chris Dumez.
- UIProcess/WebResourceLoadStatisticsStore.h:
Update the default value for the updateCookiePartitioningForDomainsHandler parameter to be an
empty lambda, rather than default initialization, which leads to a null WTF::Function. This allows
us to remove support for calling null WTF::Function. No change in behavior.
Source/WTF:
Reviewed by Chris Dumez.
When Function, then NoncopyableFunction, was templatized to allow non-void return values
in r201493, it maintained the behavior of being callable even if the Function was null.
To accomplish this, when null, the default construction of the return parameter was used.
This means Function can't be used with return types that are not default constructible,
such as reference types and Ref.
This behavior of returning something when null is surprising, as this is not how normal
functions behave, and not very useful. Instead, we now assert that the function is not
null when being called.
- wtf/Function.h:
(WTF::Function operator(...)):
Instead of allowing a null callable wrapper by returning the default construction of
the return type, assert that the wrapper is there when calling a Function.
Tools:
<rdar://problem/33801582>
Reviewed by Chris Dumez.
- TestWebKitAPI/Tests/WTF/Function.cpp:
(TestWebKitAPI::TEST):
- 9:54 AM Changeset in webkit [220600] by
-
- 2 edits in trunk/Source/JavaScriptCore
Gardening: fix CLoop build.
https://bugs.webkit.org/show_bug.cgi?id=175446
<rdar://problem/33836545>
Not reviewed.
- assembler/MacroAssemblerPrinter.cpp:
- 9:53 AM Changeset in webkit [220599] by
-
- 6 edits3 adds in branches/safari-604.1.38.1-branch
Cherry-pick r220551. rdar://problem/33843387
- 9:53 AM Changeset in webkit [220598] by
-
- 3 edits3 deletes in branches/safari-604.1.38.1-branch
Revert r220587. rdar://problem/33843387
- 9:53 AM Changeset in webkit [220597] by
-
- 7 edits in branches/safari-604.1.38.1-branch
Revert r220588. rdar://problem/33843387
- 9:47 AM Changeset in webkit [220596] by
-
- 5 edits in trunk/Source/JavaScriptCore
DFG should do caging
https://bugs.webkit.org/show_bug.cgi?id=174918
Reviewed by Saam Barati.
Adds the appropriate cage() calls to the DFG, including a cageTypedArrayStorage() helper that does
the conditional caging with a watchpoint.
This might be a 1% SunSpider slow-down, but it's not clear.
- dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::cageTypedArrayStorage):
(JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
(JSC::DFG::SpeculativeJIT::compileGetTypedArrayByteOffset):
(JSC::DFG::SpeculativeJIT::compileCreateRest):
(JSC::DFG::SpeculativeJIT::compileSpread):
(JSC::DFG::SpeculativeJIT::compileNewArrayWithSpread):
(JSC::DFG::SpeculativeJIT::compileArraySlice):
(JSC::DFG::SpeculativeJIT::compileGetButterfly):
- dfg/DFGSpeculativeJIT.h:
- dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
- 9:39 AM Changeset in webkit [220595] by
-
- 17 edits in trunk
[CMake] Fix broken use of REQUIRED with find modules
https://bugs.webkit.org/show_bug.cgi?id=175427
Reviewed by Michael Catanzaro.
Module name passed to find_package_handle_standard_args() must exactly
match file name of CMake find module including letter case, e.g. "WebP"
must be used in FindWebP.cmake file. Otherwise find_package() arguments
(REQUIRED, QUIET, version) are not processed correctly.
To continue using old XXX_FOUND variables without case changes porting
to new find_package_handle_standard_args syntax which has FOUND_VAR
parameter. Unfortunately, variable name GTK_UNIX_PRINT_FOUND is not
allowed by find_package_handle_standard_args when package name is
GTKUnixPrint, so it's replaced to GTKUnixPrint_FOUND (default).
- Source/cmake/FindGTKUnixPrint.cmake:
- Source/cmake/FindGeoClue2.cmake:
- Source/cmake/FindHyphen.cmake:
- Source/cmake/FindLibEpoxy.cmake:
- Source/cmake/FindLibGBM.cmake:
- Source/cmake/FindLibsecret.cmake:
- Source/cmake/FindLibtasn1.cmake:
- Source/cmake/FindLibxkbcommon.cmake:
- Source/cmake/FindOpenGL.cmake:
- Source/cmake/FindOpenGLES2.cmake:
- Source/cmake/FindOpenWebRTC.cmake:
- Source/cmake/FindWPEBackend-mesa.cmake:
- Source/cmake/FindWPEBackend.cmake:
- Source/cmake/FindWayland.cmake:
- Source/cmake/FindWebP.cmake:
- Source/cmake/OptionsGTK.cmake:
- 9:22 AM Changeset in webkit [220594] by
-
- 7 edits in trunk/Source/WebCore
Remove RenderQuote collection from RenderView
https://bugs.webkit.org/show_bug.cgi?id=175479
Reviewed by Andreas Kling.
We can do it well enough without maintaining this pointer structure.
Global updating doesn't work well with future direction for first-letter and similar anyway.
We need to update quote immediately when updating its style.
- rendering/RenderQuote.cpp:
(WebCore::RenderQuote::insertedIntoTree):
(WebCore::RenderQuote::willBeRemovedFromTree):
Just tell the view that there are renderers to update.
(WebCore::RenderQuote::styleDidChange):
(WebCore::RenderQuote::isOpen const):
(WebCore::RenderQuote::updateRenderer):
(WebCore::RenderQuote::updateRenderers): Deleted.
Update single renderer only. RenderTreeUpdater provides the previous renderer to compute the depth.
- rendering/RenderQuote.h:
- rendering/RenderView.cpp:
(WebCore::RenderView::registerQuote): Deleted.
(WebCore::RenderView::unregisterQuote): Deleted.
(WebCore::RenderView::updateSpecialRenderers): Deleted.
Remove the quote list.
- rendering/RenderView.h:
- style/RenderTreeUpdater.cpp:
(WebCore::RenderTreeUpdater::commit):
Ensure that all quotes are updated.
(WebCore::RenderTreeUpdater::updateBeforeOrAfterPseudoElement):
(WebCore::RenderTreeUpdater::updateQuotesUpTo):
Traverse render tree to find quotes to update starting from the previous updated quote.
- style/RenderTreeUpdater.h:
- 8:48 AM Changeset in webkit [220593] by
-
- 2 edits46 adds in branches/safari-604.1.38.1-branch/LayoutTests
Cherry-pick r220555.
- 8:44 AM Changeset in webkit [220592] by
-
- 2 edits in trunk/Source/JavaScriptCore
Unreviewed, build fix for x86 GTK port
https://bugs.webkit.org/show_bug.cgi?id=175446
Use pushfl/popfl instead of pushfd/popfd.
- assembler/MacroAssemblerX86Common.cpp:
- 8:44 AM Changeset in webkit [220591] by
-
- 2 edits in trunk/Source/WebCore
[CMake] Many warning about missing “override” keywords in ANGLE with Clang
https://bugs.webkit.org/show_bug.cgi?id=175475
Reviewed by Michael Catanzaro.
- CMakeLists.txt: Add "-Wno-inconsistent-missing-override" to the
compiler flags using for building the ANGLE sources.
- 8:43 AM Changeset in webkit [220590] by
-
- 2 edits in branches/safari-604.1.38.0-branch/Source/WebKit
Cherry-pick r220571. rdar://problem/33829964
- 8:41 AM Changeset in webkit [220589] by
-
- 2 edits in branches/safari-604.1.38.1-branch/Source/WebKit
Cherry-pick r220571. rdar://problem/33829962
- 8:17 AM Changeset in webkit [220588] by
-
- 7 edits in branches/safari-604.1.38.1-branch
Cherry-pick r220551. rdar://problem/33594320
- 8:16 AM Changeset in webkit [220587] by
-
- 3 edits3 adds in branches/safari-604.1.38.1-branch
Cherry-pick r220463. rdar://problem/33594320
- 6:46 AM Changeset in webkit [220586] by
-
- 2 edits in trunk/Source/WebCore
[GTK][WPE] Overriden virtual function not marked “override” in ImageBufferDataCairo.h
https://bugs.webkit.org/show_bug.cgi?id=175476
Reviewed by Carlos Garcia Campos.
- platform/graphics/cairo/ImageBufferDataCairo.h: Add missing "override" qualifier.
- 6:25 AM Changeset in webkit [220585] by
-
- 2 edits in trunk/Source/WebKit
[WPE] Build failure with Clang 4.0.1: no matching conversion for functional-style cast from 'pointer' (aka 'unsigned short *') to 'WTF::String'
https://bugs.webkit.org/show_bug.cgi?id=175477
Reviewed by Žan Doberšek.
- Shared/wpe/WebEventFactory.cpp:
(WebKit::singleCharacterStringForKeyEvent): Cast to UChar* to make
compiler choose the correct WTF::String constructor.
- 5:28 AM Changeset in webkit [220584] by
-
- 2 edits in trunk/Source/WebDriver
Fix build warning in WebDriverService.h
https://bugs.webkit.org/show_bug.cgi?id=166682
Unreviewed build fix.
- WebDriverService.h: Fixes the warning: class 'Capabilities' was previously declared as a struct [-Wmismatched-tags]
- 3:06 AM Changeset in webkit [220583] by
-
- 7 edits in trunk
[Soup] Cannot access HTTPS sites using a HTTP proxy that requires authentication
https://bugs.webkit.org/show_bug.cgi?id=175378
Reviewed by Sergio Villar Senin.
Source/WebCore:
Bring back part of the code removed in r206732, to keep a reference to the SoupMessage in the
AuthenticationChallenge since it can be different to the resource message.
- platform/network/soup/AuthenticationChallenge.h:
(WebCore::AuthenticationChallenge::AuthenticationChallenge): Deleted.
(WebCore::AuthenticationChallenge::authenticationClient const): Deleted.
(WebCore::AuthenticationChallenge::soupAuth const): Deleted.
(WebCore::AuthenticationChallenge::setProposedCredential): Deleted.
- platform/network/soup/AuthenticationChallengeSoup.cpp:
(WebCore::AuthenticationChallenge::AuthenticationChallenge):
(WebCore::AuthenticationChallenge::platformCompare):
Source/WebKit:
In case of HTTPS resource with a proxy, libsoup uses a tunnel internally, that uses its own SoupMessage during
the proxy authentication. We were ignoring authentication requests for other messages.
- NetworkProcess/soup/NetworkDataTaskSoup.cpp:
(WebKit::NetworkDataTaskSoup::authenticateCallback): Only return early if the message does't match and it's not
HTTPS resource over a proxy.
(WebKit::NetworkDataTaskSoup::authenticate): Use the soup message from the authentication challenge.
(WebKit::NetworkDataTaskSoup::continueAuthenticate): Ditto.
Tools:
Add two test cases to check proxy authentication.
- TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp:
(Tunnel::Tunnel):
(Tunnel::~Tunnel):
(Tunnel::connect):
(Tunnel::connected):
(serverCallback):
(ProxyAuthenticationTest::ProxyAuthenticationTest):
(ProxyAuthenticationTest::~ProxyAuthenticationTest):
(ProxyAuthenticationTest::proxyServerPortAsString):
(testWebViewAuthenticationProxy):
(testWebViewAuthenticationProxyHTTPS):
(beforeAll):
- 1:15 AM Changeset in webkit [220582] by
-
- 3 edits6 moves3 adds5 deletes in trunk/Tools
[GStreamer][GTK][WPE] Unify GStreamer JHBuild moduleset for both GTK+ and WPE
https://bugs.webkit.org/show_bug.cgi?id=175428
Both ports share the GStreamer code as multimedia backend and till
not so long they were using different versions. Now they do use
the same versions and it does not make any sense anymore (and
neither had sense before) to have differences in the modulesets.
In this patch I created a GStreamer moduleset and referenced it
from both GTK+'s and WPE's. GStreamer patches were also moved there.
Reviewed by Žan Doberšek.
- gstreamer/jhbuild.modules: Added.
- gstreamer/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch.
- gstreamer/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch.
- gstreamer/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch.
- gstreamer/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Renamed from Tools/gtk/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch.
- gstreamer/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Renamed from Tools/gtk/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch.
- gstreamer/patches/openh264-configure.patch: Renamed from Tools/gtk/patches/openh264-configure.patch.
- gtk/jhbuild.modules:
- wpe/jhbuild.modules:
- wpe/patches/gst-plugins-good-0003-rtpbin-receive-bundle-support.patch: Removed.
- wpe/patches/gst-plugins-good-0005-souphttpsrc-cookie-jar-and-context-query-support.patch: Removed.
- wpe/patches/gst-plugins-good-0006-qtdemux-add-context-for-a-preferred-protection.patch: Removed.
- wpe/patches/gst-plugins-good-0008-qtdemux-also-push-buffers-without-encryption-info-in.patch: Removed.
- wpe/patches/gstreamer-0001-protection-added-function-to-filter-system-ids.patch: Removed.