haikuwebkit/Source/WebCore/testing/WebFakeXRDevice.idl

70 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
/*
* Copyright (C) 2020 Igalia S.L. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
[
Move RuntimeEnabledFeatures to Settings (Part 1) https://bugs.webkit.org/show_bug.cgi?id=224440 Reviewed by Alex Christensen. Move a few RuntimeEnabledFeatures to Settings to consolidate settings in one object and removes the need for additional boilerplate. This is now possible as Settings are now accessible in workers. Moves PeerConnectionEnabled, WebGLUsingMetal, WebGL2Enabled, WebGPUEnabled and MaskWebGLStringsEnabled. Source/WebCore: * Modules/mediastream/RTCAnswerOptions.idl: * Modules/mediastream/RTCCertificate.idl: * Modules/mediastream/RTCConfiguration.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDTMFToneChangeEvent.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCDataChannelEvent.idl: * Modules/mediastream/RTCIceCandidate.idl: * Modules/mediastream/RTCIceCandidateInit.idl: * Modules/mediastream/RTCIceConnectionState.idl: * Modules/mediastream/RTCIceGatheringState.idl: * Modules/mediastream/RTCIceServer.idl: * Modules/mediastream/RTCIceTransport.idl: * Modules/mediastream/RTCIceTransportState.idl: * Modules/mediastream/RTCOfferAnswerOptions.idl: * Modules/mediastream/RTCOfferOptions.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCPeerConnectionIceErrorEvent.idl: * Modules/mediastream/RTCPeerConnectionIceEvent.idl: * Modules/mediastream/RTCPeerConnectionState.idl: * Modules/mediastream/RTCPriorityType.idl: * Modules/mediastream/RTCRtcpParameters.idl: * Modules/mediastream/RTCRtpCapabilities.idl: * Modules/mediastream/RTCRtpCodecCapability.idl: * Modules/mediastream/RTCRtpCodecParameters.idl: * Modules/mediastream/RTCRtpCodingParameters.idl: * Modules/mediastream/RTCRtpContributingSource.idl: * Modules/mediastream/RTCRtpDecodingParameters.idl: * Modules/mediastream/RTCRtpEncodingParameters.idl: * Modules/mediastream/RTCRtpFecParameters.idl: * Modules/mediastream/RTCRtpHeaderExtensionParameters.idl: * Modules/mediastream/RTCRtpParameters.idl: * Modules/mediastream/RTCRtpReceiver.idl: * Modules/mediastream/RTCRtpRtxParameters.idl: * Modules/mediastream/RTCRtpSendParameters.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpSynchronizationSource.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/mediastream/RTCRtpTransceiverDirection.idl: * Modules/mediastream/RTCSdpType.idl: * Modules/mediastream/RTCSessionDescription.idl: * Modules/mediastream/RTCSignalingState.idl: * Modules/mediastream/RTCStatsReport.idl: * Modules/mediastream/RTCTrackEvent.idl: * Modules/webgpu/GPUBindGroupLayoutBinding.idl: * Modules/webgpu/GPUBindGroupLayoutDescriptor.idl: * Modules/webgpu/GPUBlendDescriptor.idl: * Modules/webgpu/GPUBufferDescriptor.idl: * Modules/webgpu/GPUBufferUsage.idl: * Modules/webgpu/GPUCanvasContext.idl: * Modules/webgpu/GPUColor.idl: * Modules/webgpu/GPUColorStateDescriptor.idl: * Modules/webgpu/GPUColorWrite.idl: * Modules/webgpu/GPUCompareFunction.idl: * Modules/webgpu/GPUDepthStencilStateDescriptor.idl: * Modules/webgpu/GPUErrorFilter.idl: * Modules/webgpu/GPUExtent3D.idl: * Modules/webgpu/GPULoadOp.idl: * Modules/webgpu/GPUOrigin3D.idl: * Modules/webgpu/GPUOutOfMemoryError.idl: * Modules/webgpu/GPURequestAdapterOptions.idl: * Modules/webgpu/GPUSamplerDescriptor.idl: * Modules/webgpu/GPUShaderStage.idl: * Modules/webgpu/GPUStoreOp.idl: * Modules/webgpu/GPUTextureDescriptor.idl: * Modules/webgpu/GPUTextureFormat.idl: * Modules/webgpu/GPUTextureUsage.idl: * Modules/webgpu/GPUUncapturedErrorEvent.idl: * Modules/webgpu/GPUValidationError.idl: * Modules/webgpu/GPUVertexAttributeDescriptor.idl: * Modules/webgpu/GPUVertexBufferDescriptor.idl: * Modules/webgpu/GPUVertexInputDescriptor.idl: * Modules/webgpu/Navigator+GPU.idl: * Modules/webgpu/NavigatorGPU.cpp: * Modules/webgpu/WebGPU.idl: * Modules/webgpu/WebGPUAdapter.idl: * Modules/webgpu/WebGPUBindGroup.idl: * Modules/webgpu/WebGPUBindGroupBinding.idl: * Modules/webgpu/WebGPUBindGroupDescriptor.idl: * Modules/webgpu/WebGPUBindGroupLayout.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUBufferBinding.idl: * Modules/webgpu/WebGPUCommandBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUComputePipeline.idl: * Modules/webgpu/WebGPUComputePipelineDescriptor.idl: * Modules/webgpu/WebGPUDevice.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUDeviceEventHandler.idl: * Modules/webgpu/WebGPUPipelineDescriptorBase.idl: * Modules/webgpu/WebGPUPipelineLayout.idl: * Modules/webgpu/WebGPUPipelineLayoutDescriptor.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUProgrammableStageDescriptor.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassDescriptor.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPURenderPipeline.idl: * Modules/webgpu/WebGPURenderPipelineDescriptor.idl: * Modules/webgpu/WebGPUSampler.idl: * Modules/webgpu/WebGPUShaderModule.idl: * Modules/webgpu/WebGPUShaderModuleDescriptor.idl: * Modules/webgpu/WebGPUSwapChain.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/webgpu/WebGPUTextureView.idl: * Modules/webgpu/WorkerNavigator+GPU.idl: * Modules/webgpu/WorkerNavigatorGPU.cpp: * Modules/webxr/Navigator+WebXR.idl: * Modules/webxr/WebXRBoundedReferenceSpace.idl: * Modules/webxr/WebXRFrame.idl: * Modules/webxr/WebXRInputSource.idl: * Modules/webxr/WebXRInputSourceArray.idl: * Modules/webxr/WebXRLayer.idl: * Modules/webxr/WebXRPose.idl: * Modules/webxr/WebXRReferenceSpace.idl: * Modules/webxr/WebXRRenderState.idl: * Modules/webxr/WebXRRigidTransform.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSpace.idl: * Modules/webxr/WebXRSystem.cpp: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/WebXRView.idl: * Modules/webxr/WebXRViewerPose.idl: * Modules/webxr/WebXRViewport.idl: * Modules/webxr/WebXRWebGLLayer.idl: * Modules/webxr/XREnvironmentBlendMode.idl: * Modules/webxr/XREye.idl: * Modules/webxr/XRHandedness.idl: * Modules/webxr/XRInputSourceEvent.idl: * Modules/webxr/XRInputSourcesChangeEvent.idl: * Modules/webxr/XRInteractionMode.idl: * Modules/webxr/XRReferenceSpaceEvent.idl: * Modules/webxr/XRReferenceSpaceType.idl: * Modules/webxr/XRRenderStateInit.idl: * Modules/webxr/XRSessionEvent.idl: * Modules/webxr/XRSessionInit.idl: * Modules/webxr/XRSessionMode.idl: * Modules/webxr/XRTargetRayMode.idl: * Modules/webxr/XRVisibilityState.idl: * Modules/webxr/XRWebGLLayerInit.idl: * html/HTMLCanvasElement.cpp: * html/canvas/WebGL2RenderingContext.cpp: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLRenderingContextBase.cpp: * html/canvas/WebGLTransformFeedback.idl: * html/canvas/WebGLVertexArrayObject.idl: * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::peerConnectionEnabled const): Deleted. (WebCore::RuntimeEnabledFeatures::setPeerConnectionEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::setWebGLUsingMetal): Deleted. (WebCore::RuntimeEnabledFeatures::webGLUsingMetal const): Deleted. (WebCore::RuntimeEnabledFeatures::setWebGL2Enabled): Deleted. (WebCore::RuntimeEnabledFeatures::webGL2Enabled const): Deleted. (WebCore::RuntimeEnabledFeatures::setWebGPUEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::webGPUEnabled const): Deleted. (WebCore::RuntimeEnabledFeatures::setMaskWebGLStringsEnabled): Deleted. (WebCore::RuntimeEnabledFeatures::maskWebGLStringsEnabled const): Deleted. * testing/FakeXRBoundsPoint.idl: * testing/FakeXRButtonStateInit.idl: * testing/FakeXRInputSourceInit.idl: * testing/FakeXRRigidTransformInit.idl: * testing/FakeXRViewInit.idl: * testing/InternalSettings.cpp: (WebCore::InternalSettings::Backup::Backup): (WebCore::InternalSettings::Backup::restoreTo): (WebCore::InternalSettings::setWebGL2Enabled): Deleted. (WebCore::InternalSettings::setWebGPUEnabled): Deleted. * testing/InternalSettings.h: * testing/InternalSettings.idl: * testing/Internals.cpp: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: Source/WebKit: * WebProcess/Inspector/RemoteWebInspectorUI.cpp: (WebKit::RemoteWebInspectorUI::RemoteWebInspectorUI): * WebProcess/Inspector/WebInspectorUI.cpp: (WebKit::WebInspectorUI::enableFrontendFeatures): (WebKit::WebInspectorUI::WebInspectorUI): * WebProcess/Inspector/WebInspectorUI.h: Source/WTF: * Scripts/Preferences/WebPreferences.yaml: * Scripts/Preferences/WebPreferencesExperimental.yaml: Canonical link: https://commits.webkit.org/236686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276204 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-17 20:07:30 +00:00
EnabledBySetting=WebXR,
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
Conditional=WEBXR,
InterfaceName=FakeXRDevice,
ImplementationLacksVTable,
[WebIDL] Realign our IDL extended attribute names with those specified in WebIDL https://bugs.webkit.org/show_bug.cgi?id=216194 Reviewed by Darin Adler. Source/WebCore: Over time, the WebIDL and HTML specifications have added / renamed extended attributes and we have not stayed up to date. This updates the names everywhere and URLs in IDLAttributes.json. [AllowShared] -> new, marked as unsupported [HTMLConstructor] - > new, marked as unsupported [LegacyLenientSetter] -> renamed from [LenientSetter], still unsupported [LegacyLenientThis] -> renamed from [LenientThis] [LegacyNamespace] -> new, marked as unsupported [LegacyNoInterfaceObject] -> renamed from [NoInterfaceObject] [LegacyNullToEmptyString] -> renamed from [TreatNullAs=EmptyString] [LegacyOverrideBuiltIns] -> renamed from OverrideBuiltins [LegacyTreatNonObjectAsNull] -> renamed from [TreatNonObjectAsNull], still unsupported [LegacyUnforgeable] -> renamed from [Unforgeable] [Serializable] -> new, marked as unsupported [Transferable] -> new, marked as unsupported * Modules/applepay/ApplePayCancelEvent.idl: * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: * Modules/applepay/ApplePayValidateMerchantEvent.idl: * Modules/fetch/FetchBody.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediasource/VideoPlaybackQuality.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/speech/SpeechSynthesisVoice.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitDynamicsCompressorNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * accessibility/AccessibilityRole.idl: * accessibility/AriaAttributes.idl: * animation/Animatable.idl: * bindings/IDLTypes.h: * bindings/js/DOMWrapperWorld.h: (WebCore::DOMWrapperWorld::disableLegacyOverrideBuiltInsBehavior): (WebCore::DOMWrapperWorld::shouldDisableLegacyOverrideBuiltInsBehavior const): (WebCore::DOMWrapperWorld::disableOverrideBuiltinsBehavior): Deleted. (WebCore::DOMWrapperWorld::shouldDisableOverrideBuiltinsBehavior const): Deleted. * bindings/js/JSDOMAbstractOperations.h: (WebCore::isVisibleNamedProperty): (WebCore::accessVisibleNamedProperty): * bindings/js/JSDOMConvertNullable.h: * bindings/js/JSDOMConvertStrings.h: (WebCore::Converter<IDLTreatNullAsEmptyAdaptor<T>>::convert): Deleted. (WebCore::JSConverter<IDLTreatNullAsEmptyAdaptor<T>>::convert): Deleted. * bindings/scripts/CodeGeneratorJS.pm: (GenerateGetOwnPropertySlot): (GenerateGetOwnPropertySlotByIndex): (GeneratePut): (GeneratePutByIndex): (GenerateIsLegacyUnforgeablePropertyName): (GenerateDefineOwnProperty): (GenerateDeletePropertyCommon): (AttributeShouldBeOnInstance): (OperationShouldBeOnInstance): (IsAcceleratedDOMAttribute): (GetJSCAttributesForAttribute): (GenerateHeader): (GenerateImplementation): (GenerateAttributeGetterTrampolineDefinition): (GenerateAttributeSetterTrampolineDefinition): (IsAnnotatedType): (GetAnnotatedIDLType): (GenerateConstructorHelperMethods): (NeedsConstructorProperty): (IsLegacyUnforgeable): (ComputeFunctionSpecial): (GenerateIsUnforgeablePropertyName): Deleted. (IsUnforgeable): Deleted. * bindings/scripts/IDLAttributes.json: * bindings/scripts/preprocess-idls.pl: * bindings/scripts/test/BindingTestGlobalConstructors.idl: * bindings/scripts/test/JS/JSTestEventTarget.cpp: * bindings/scripts/test/JS/JSTestGlobalObject.cpp: * bindings/scripts/test/JS/JSTestLegacyOverrideBuiltIns.cpp: Added. * bindings/scripts/test/JS/JSTestLegacyOverrideBuiltIns.h: Added. * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedAndIndexedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedDeleterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedGetterCallWith.cpp: * bindings/scripts/test/JS/JSTestNamedGetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedGetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterNoIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterThrowingException.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIdentifier.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithIndexedGetterAndSetter.cpp: * bindings/scripts/test/JS/JSTestNamedSetterWithLegacyUnforgeableProperties.cpp: Added. * bindings/scripts/test/JS/JSTestNamedSetterWithLegacyUnforgeableProperties.h: Added. * bindings/scripts/test/JS/JSTestNamedSetterWithLegacyUnforgeablePropertiesAndLegacyOverrideBuiltIns.cpp: Added. * bindings/scripts/test/JS/JSTestNamedSetterWithLegacyUnforgeablePropertiesAndLegacyOverrideBuiltIns.h: Added. * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.cpp: Removed. * bindings/scripts/test/JS/JSTestNamedSetterWithOverrideBuiltins.h: Removed. * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.cpp: Removed. * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgableProperties.h: Removed. * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.cpp: Removed. * bindings/scripts/test/JS/JSTestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.h: Removed. * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp: Removed. * bindings/scripts/test/JS/JSTestOverrideBuiltins.h: Removed. * bindings/scripts/test/SupplementalDependencies.dep: * bindings/scripts/test/TestIncludes.idl: * bindings/scripts/test/TestLegacyOverrideBuiltIns.idl: Added. * bindings/scripts/test/TestNamedSetterWithLegacyOverrideBuiltIns.idl: Added. * bindings/scripts/test/TestNamedSetterWithLegacyUnforgeableProperties.idl: Added. * bindings/scripts/test/TestNamedSetterWithLegacyUnforgeablePropertiesAndLegacyOverrideBuiltIns.idl: Added. * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: Removed. * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: Removed. * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: Removed. * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestOverrideBuiltins.idl: Removed. * css/CSSStyleDeclaration.idl: * css/CSSUnknownRule.idl: * css/ElementCSSInlineStyle.idl: * css/MediaList.idl: * css/StyleMedia.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/DOMImplementation.idl: * dom/DOMStringMap.idl: * dom/DeviceOrientationOrMotionEvent.idl: * dom/Document.idl: * dom/DocumentAndElementEventHandlers.idl: * dom/DocumentOrShadowRoot.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/GlobalEventHandlers.idl: * dom/NavigatorMaxTouchPoints.idl: * dom/NonDocumentTypeChildNode.idl: * dom/NonElementParentNode.idl: * dom/ParentNode.idl: * dom/ShadowRoot.idl: * dom/Slotable.idl: * html/HTMLBodyElement.idl: * html/HTMLDocument.idl: * html/HTMLElement.idl: * html/HTMLFontElement.idl: * html/HTMLFormElement.idl: * html/HTMLFrameElement.idl: * html/HTMLHyperlinkElementUtils.idl: * html/HTMLIFrameElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLTableCellElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTextAreaElement.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasCompositing.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasFillStrokeStyles.idl: * html/canvas/CanvasFilters.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasImageSmoothing.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasShadowStyles.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTextDrawingStyles.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/EXTBlendMinMax.idl: * html/canvas/EXTColorBufferFloat.idl: * html/canvas/EXTColorBufferHalfFloat.idl: * html/canvas/EXTFragDepth.idl: * html/canvas/EXTShaderTextureLOD.idl: * html/canvas/EXTTextureFilterAnisotropic.idl: * html/canvas/EXTsRGB.idl: * html/canvas/OESElementIndexUint.idl: * html/canvas/OESStandardDerivatives.idl: * html/canvas/OESTextureFloat.idl: * html/canvas/OESTextureFloatLinear.idl: * html/canvas/OESTextureHalfFloat.idl: * html/canvas/OESTextureHalfFloatLinear.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/WebGLColorBufferFloat.idl: * html/canvas/WebGLCompressedTextureASTC.idl: * html/canvas/WebGLCompressedTextureATC.idl: * html/canvas/WebGLCompressedTextureETC.idl: * html/canvas/WebGLCompressedTextureETC1.idl: * html/canvas/WebGLCompressedTexturePVRTC.idl: * html/canvas/WebGLCompressedTextureS3TC.idl: * html/canvas/WebGLCompressedTextureS3TCsRGB.idl: * html/canvas/WebGLDebugRendererInfo.idl: * html/canvas/WebGLDebugShaders.idl: * html/canvas/WebGLDepthTexture.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/canvas/WebGLVertexArrayObjectOES.idl: * html/track/TextTrackCueGeneric.idl: * html/track/VTTRegionList.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * page/DOMWindow.idl: * page/GlobalCrypto.idl: * page/GlobalPerformance.idl: * page/Location.idl: * page/NavigatorID.idl: * page/NavigatorLanguage.idl: * page/NavigatorOnLine.idl: * page/NavigatorPlugins.idl: * page/NavigatorServiceWorker.idl: * page/NavigatorShare.idl: * page/RemoteDOMWindow.idl: * page/WindowEventHandlers.idl: * page/WindowOrWorkerGlobalScope.idl: * svg/SVGFilterPrimitiveStandardAttributes.idl: * svg/SVGFitToViewBox.idl: * svg/SVGTests.idl: * svg/SVGURIReference.idl: * svg/SVGZoomAndPan.idl: * testing/GCObservation.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/InternalsMapLike.idl: * testing/InternalsSetLike.idl: * testing/MallocStatistics.idl: * testing/MemoryInfo.idl: * testing/MockCDMFactory.idl: * testing/MockContentFilterSettings.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * workers/AbstractWorker.idl: * xml/XPathNSResolver.idl: Source/WebKit: * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp: (WebKit::InjectedBundleScriptWorld::disableOverrideBuiltinsBehavior): Update for new name WebCore::DOMWrapperWorld. Canonical link: https://commits.webkit.org/229031@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-05 17:14:23 +00:00
LegacyNoInterfaceObject,
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
] interface WebFakeXRDevice {
// Sets the values to be used for subsequent
// requestAnimationFrame() callbacks.
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined setViews(sequence<FakeXRViewInit> views);
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// behaves as if device was disconnected
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
Promise<undefined> disconnect();
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Sets the origin of the viewer
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined setViewerOrigin(FakeXRRigidTransformInit origin, optional boolean emulatedPosition = false);
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// If an origin is not specified, then the device is assumed to not be tracking, emulatedPosition should
// be assumed for cases where the UA must always provide a pose.
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined clearViewerOrigin();
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Simulates devices focusing and blurring sessions.
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined simulateVisibilityChange(XRVisibilityState visibilityState);
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined setBoundsGeometry(sequence<FakeXRBoundsPoint> boundsCoordinates);
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Sets the native origin of the physical floor
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined setFloorOrigin(FakeXRRigidTransformInit floorOrigin);
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Indicates that the device can no longer identify the location of the physical floor.
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined clearFloorOrigin();
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Used to simulate a major change in tracking and that a reset pose event should be fired
// https://immersive-web.github.io/webxr/#event-types
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
undefined simulateResetPose();
[WebXR] Test IDLs and stubs https://bugs.webkit.org/show_bug.cgi?id=209859 Reviewed by Dean Jackson and Youenn Fablet. Source/WebCore: WebXR testing is hard as it might involve interaction with actual devices. That's why the WebXR testing API (https://immersive-web.github.io/webxr-test-api/) was proposed. In fact, all the current WebXR tests from web-platform-tests are using that testing API. This new testing API supplements navigator.xr and is accessed through navigator.xr.test. In order not to expose the API to the web we're adding the XRTest interface to Internals instead. The mapping from internals.xrTest to navigator.xr.test happens in the WPT code. We're adding the required IDLs and very basic (mostly empty) implementations for testing methods. We're adding testing infrastructure, adding tests make no sense for this change. * CMakeLists.txt: Added new files. * DerivedSources.make: Ditto. * Modules/webxr/NavigatorWebXR.h: Export API to be used in testing code. * Modules/webxr/WebXRSystem.h: Export ::from and ::xr methods. * WebCore.xcodeproj/project.pbxproj: Ditto. * bindings/js/WebCoreBuiltinNames.h: Added some new macros. * testing/FakeXRBoundsPoint.h: Added. * testing/FakeXRBoundsPoint.idl: Added. * testing/FakeXRButtonStateInit.h: Added. * testing/FakeXRButtonStateInit.idl: Added. * testing/FakeXRInputSourceInit.h: Added. * testing/FakeXRInputSourceInit.idl: Added. * testing/FakeXRRigidTransformInit.h: Added. * testing/FakeXRRigidTransformInit.idl: Added. * testing/FakeXRViewInit.h: Added. * testing/FakeXRViewInit.idl: Added. * testing/Internals.cpp: (WebCore::Internals::xrTest): Added WebXRTest to Internals. * testing/Internals.h: Added xrTest() accessor. * testing/Internals.idl: Added xrTest attribute. * testing/WebFakeXRDevice.cpp: Added. (WebCore::WebFakeXRDevice::setViews): (WebCore::WebFakeXRDevice::disconnect): (WebCore::WebFakeXRDevice::setViewerOrigin): (WebCore::WebFakeXRDevice::clearViewerOrigin): (WebCore::WebFakeXRDevice::simulateVisibilityChange): (WebCore::WebFakeXRDevice::setBoundsGeometry): (WebCore::WebFakeXRDevice::setFloorOrigin): (WebCore::WebFakeXRDevice::clearFloorOrigin): (WebCore::WebFakeXRDevice::simulateResetPose): (WebCore::WebFakeXRDevice::simulateInputSourceConnection): * testing/WebFakeXRDevice.h: Added. * testing/WebFakeXRDevice.idl: Added. * testing/WebFakeXRInputController.cpp: Added. (WebCore::WebFakeXRInputController::setHandedness): (WebCore::WebFakeXRInputController::setTargetRayMode): (WebCore::WebFakeXRInputController::setProfiles): (WebCore::WebFakeXRInputController::setGripOrigin): (WebCore::WebFakeXRInputController::clearGripOrigin): (WebCore::WebFakeXRInputController::setPointerOrigin): (WebCore::WebFakeXRInputController::disconnect): (WebCore::WebFakeXRInputController::reconnect): (WebCore::WebFakeXRInputController::startSelection): (WebCore::WebFakeXRInputController::endSelection): (WebCore::WebFakeXRInputController::simulateSelect): (WebCore::WebFakeXRInputController::setSupportedButtons): (WebCore::WebFakeXRInputController::updateButtonState): * testing/WebFakeXRInputController.h: Added. * testing/WebFakeXRInputController.idl: Added. * testing/WebXRTest.cpp: Added. (WebCore::WebXRTest::simulateDeviceConnection const): (WebCore::WebXRTest::simulateUserActivation): (WebCore::WebXRTest::disconnectAllDevices): * testing/WebXRTest.h: Added. (WebCore::WebXRTest::create): * testing/WebXRTest.idl: Added. * testing/XRSimulateUserActivationFunction.h: Added. * testing/XRSimulateUserActivationFunction.idl: Ditto. LayoutTests: * platform/wpe/TestExpectations: Added bug number to the passing webxr test. Canonical link: https://commits.webkit.org/223740@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-22 10:19:30 +00:00
// Used to connect and send input events
WebFakeXRInputController simulateInputSourceConnection(FakeXRInputSourceInit inputSource);
Send the end XRSessionEvent after the platform-specific steps for session shutdown have completed https://bugs.webkit.org/show_bug.cgi?id=220835 Patch by Ada Chan <ada.chan@apple.com> on 2021-01-27 Reviewed by Chris Dumez. Source/WebCore: Tests: http/wpt/webxr/xrSession_end_device_reports_shutdown.https.html http/wpt/webxr/xrSession_ended_by_system.https.html http/wpt/webxr/xrSession_reject_multiple_end.https.html - Add the TrackingAndRenderingClient protocol that the Device can hold a weak reference to during a tracking and rendering session. WebXRSession implements that protocol to handle cleanup after shutdown has completed. - For platforms to report asynchronous completion of the session shutdown, they can implement PlatformXR::Device::supportsSessionShutdownNotification() to return true. This way WebXRSession will wait for the shutdown completion (via the TrackingAndRenderingClient::sessionDidEnd() callback) before sending the end XRSessionEvent and resolving the XRSession::end() promise. - Update WebXRSession::end() to throw an InvalidStateError if called more than once. This also matches Chromium's current behavior. * Modules/webxr/WebXRSession.cpp: (WebCore::WebXRSession::WebXRSession): (WebCore::WebXRSession::shutdown): (WebCore::WebXRSession::didCompleteShutdown): (WebCore::WebXRSession::end): (WebCore::WebXRSession::sessionDidEnd): * Modules/webxr/WebXRSession.h: * Modules/webxr/WebXRSession.idl: * platform/xr/PlatformXR.h: (PlatformXR::Device::setTrackingAndRenderingClient): (PlatformXR::Device::supportsSessionShutdownNotification const): * testing/WebFakeXRDevice.cpp: (WebCore::SimulatedXRDevice::simulateShutdownCompleted): (WebCore::SimulatedXRDevice::shutDownTrackingAndRendering): (WebCore::WebFakeXRDevice::setSupportsShutdownNotification): (WebCore::WebFakeXRDevice::simulateShutdown): * testing/WebFakeXRDevice.h: * testing/WebFakeXRDevice.idl: LayoutTests: * platform/mac/TestExpectations: * platform/wpe/TestExpectations: * http/wpt/webxr/xrSession_end_device_reports_shutdown.https.html: Added. * http/wpt/webxr/xrSession_end_device_reports_shutdown.https-expected.html: Added. * http/wpt/webxr/xrSession_ended_by_system.https.html: Added. * http/wpt/webxr/xrSession_ended_by_system.https-expected.html: Added. * http/wpt/webxr/xrSession_reject_multiple_end.https.html: Added. * http/wpt/webxr/xrSession_reject_multiple_end.https-expected.html: Added. Canonical link: https://commits.webkit.org/233421@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-27 22:14:17 +00:00
// Set up the device so it'll notify session when the system has completed all steps for session shutdown
undefined setSupportsShutdownNotification();
// Simulate session shutdown triggered by system
undefined simulateShutdown();
[WebIDL] 'void' type is changing to 'undefined' https://bugs.webkit.org/show_bug.cgi?id=215514 <rdar://problem/67566201> Reviewed by Darin Adler. Update IDLs and IDL parsing / code generation for the switch from 'void' to 'undefined'. Source/WebCore: Also updates the parser to better match current WebIDL grammar, removing the special 'ReturnType' construction and just using 'Type' instead. * Modules/applepay/ApplePaySession.idl: * Modules/async-clipboard/Clipboard.idl: * Modules/cache/DOMCache.idl: * Modules/credentialmanagement/CredentialsContainer.idl: * Modules/encryptedmedia/MediaKeySession.h: * Modules/encryptedmedia/MediaKeySession.idl: * Modules/encryptedmedia/legacy/WebKitMediaKeySession.idl: * Modules/entriesapi/ErrorCallback.idl: * Modules/entriesapi/FileCallback.idl: * Modules/entriesapi/FileSystemDirectoryEntry.idl: * Modules/entriesapi/FileSystemDirectoryReader.idl: * Modules/entriesapi/FileSystemEntriesCallback.idl: * Modules/entriesapi/FileSystemEntry.idl: * Modules/entriesapi/FileSystemEntryCallback.idl: * Modules/entriesapi/FileSystemFileEntry.idl: * Modules/fetch/FetchHeaders.idl: * Modules/geolocation/Geolocation.idl: * Modules/geolocation/PositionCallback.idl: * Modules/geolocation/PositionErrorCallback.idl: * Modules/indexeddb/IDBCursor.idl: * Modules/indexeddb/IDBDatabase.idl: * Modules/indexeddb/IDBObjectStore.idl: * Modules/indexeddb/IDBTransaction.idl: * Modules/mediacontrols/MediaControlsHost.idl: * Modules/mediarecorder/MediaRecorder.idl: * Modules/mediasession/MediaSession.idl: * Modules/mediasource/MediaSource.idl: * Modules/mediasource/SourceBuffer.idl: * Modules/mediastream/CanvasCaptureMediaStreamTrack.idl: * Modules/mediastream/MediaStream.idl: * Modules/mediastream/MediaStreamTrack.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/mediastream/RTCDTMFSender.idl: * Modules/mediastream/RTCDataChannel.idl: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/RTCRtpSender.idl: * Modules/mediastream/RTCRtpTransceiver.idl: * Modules/notifications/Notification.idl: * Modules/notifications/NotificationPermissionCallback.idl: * Modules/paymentrequest/MerchantValidationEvent.idl: * Modules/paymentrequest/PaymentRequest.idl: * Modules/paymentrequest/PaymentRequestUpdateEvent.idl: * Modules/paymentrequest/PaymentResponse.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/plugins/QuickTimePluginReplacement.idl: * Modules/quota/StorageErrorCallback.idl: * Modules/quota/StorageInfo.idl: * Modules/quota/StorageQuota.idl: * Modules/quota/StorageQuotaCallback.idl: * Modules/quota/StorageUsageCallback.idl: * Modules/remoteplayback/RemotePlayback.idl: * Modules/speech/SpeechSynthesis.idl: * Modules/streams/ReadableByteStreamController.idl: * Modules/streams/ReadableStreamBYOBReader.idl: * Modules/streams/ReadableStreamBYOBRequest.idl: * Modules/streams/ReadableStreamDefaultController.idl: * Modules/streams/ReadableStreamDefaultReader.idl: * Modules/streams/ReadableStreamSink.idl: * Modules/streams/ReadableStreamSource.idl: * Modules/streams/TransformStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultController.idl: * Modules/streams/WritableStreamDefaultWriter.idl: * Modules/webaudio/AnalyserNode.idl: * Modules/webaudio/AudioBuffer.idl: * Modules/webaudio/AudioBufferCallback.idl: * Modules/webaudio/AudioBufferSourceNode.idl: * Modules/webaudio/AudioContext.idl: * Modules/webaudio/AudioListener.idl: * Modules/webaudio/AudioNode.idl: * Modules/webaudio/AudioScheduledSourceNode.idl: * Modules/webaudio/BiquadFilterNode.idl: * Modules/webaudio/IIRFilterNode.idl: * Modules/webaudio/OfflineAudioContext.idl: * Modules/webaudio/OscillatorNode.idl: * Modules/webaudio/PannerNode.idl: * Modules/webaudio/WebKitAudioBufferSourceNode.idl: * Modules/webaudio/WebKitAudioContext.idl: * Modules/webaudio/WebKitAudioListener.idl: * Modules/webaudio/WebKitAudioPannerNode.idl: * Modules/webaudio/WebKitOscillatorNode.idl: * Modules/webdatabase/Database.idl: * Modules/webdatabase/DatabaseCallback.idl: * Modules/webdatabase/SQLStatementCallback.idl: * Modules/webdatabase/SQLTransaction.idl: * Modules/webdatabase/SQLTransactionCallback.idl: * Modules/webdatabase/SQLTransactionErrorCallback.idl: * Modules/webgpu/WebGPUBuffer.idl: * Modules/webgpu/WebGPUCommandEncoder.idl: * Modules/webgpu/WebGPUComputePassEncoder.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUProgrammablePassEncoder.idl: * Modules/webgpu/WebGPUQueue.idl: * Modules/webgpu/WebGPURenderPassEncoder.idl: * Modules/webgpu/WebGPUTexture.idl: * Modules/websockets/WebSocket.idl: * Modules/webxr/WebXRSession.idl: * Modules/webxr/WebXRSystem.idl: * Modules/webxr/XRFrameRequestCallback.idl: * Scripts/SettingsTemplates/InternalSettingsGenerated.idl.erb: * animation/AnimationEffect.idl: * animation/KeyframeEffect.idl: * animation/WebAnimation.idl: * bindings/IDLTypes.h: * bindings/js/DOMPromiseProxy.h: * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: (NeedsExplicitPropagateExceptionCall): (GenerateCallbackImplementationContent): (GenerateImplementationFunctionCall): (GetBaseIDLType): * bindings/scripts/IDLParser.pm: (parseCallbackRest): (parseAttributeOrOperationForStringifierOrStatic): (parseOperation): (parseSpecialOperation): (parseMapLikeProperties): (parseSetLikeProperties): (parseSingleType): (parseUnionMemberType): (parseDistinguishableType): (parseConstType): (parsePrimitiveType): (parseNonAnyType): Deleted. (parseReturnType): Deleted. * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp: (WebCore::JSTestCallbackFunctionWithThisObject::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp: (WebCore::JSTestCallbackFunctionWithTypedefs::handleEvent): * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: * bindings/scripts/test/JS/JSTestCallbackInterface.cpp: (WebCore::JSTestCallbackInterface::callbackWithNoParam): (WebCore::JSTestCallbackInterface::callbackWithArrayParam): (WebCore::JSTestCallbackInterface::callbackWithSerializedScriptValueParam): (WebCore::JSTestCallbackInterface::callbackWithStringList): (WebCore::JSTestCallbackInterface::callbackWithBoolean): (WebCore::JSTestCallbackInterface::callbackRequiresThisToPass): * bindings/scripts/test/JS/JSTestCallbackInterface.h: * bindings/scripts/test/JS/JSTestIterable.cpp: * bindings/scripts/test/JS/JSTestNode.cpp: * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::construct): (WebCore::JSTestObjPrototype::finishCreation): (WebCore::jsTestObjTestReadOnlyVoidPromiseAttributeGetter): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethod): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgsBody): (WebCore::jsTestObjPrototypeFunctionUndefinedMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalPromiseBody): (WebCore::jsTestObjPrototypeFunctionTestReturnsOwnPromiseAndPromiseProxyFunctionBody): (WebCore::jsTestObjPrototypeFunctionVoidMethodBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethod): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgsBody): Deleted. (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): Deleted. * bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp: (WebCore::JSTestVoidCallbackFunction::handleEvent): * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: * bindings/scripts/test/TestCEReactions.idl: * bindings/scripts/test/TestCallTracer.idl: * bindings/scripts/test/TestCallbackFunctionWithThisObject.idl: * bindings/scripts/test/TestCallbackFunctionWithTypedefs.idl: * bindings/scripts/test/TestCallbackInterface.idl: * bindings/scripts/test/TestDomainSecurity.idl: * bindings/scripts/test/TestEnabledBySetting.idl: * bindings/scripts/test/TestGlobalObject.idl: * bindings/scripts/test/TestImplements.idl: * bindings/scripts/test/TestIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestIndexedSetterThrowingException.idl: * bindings/scripts/test/TestIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestJSBuiltinConstructor.idl: * bindings/scripts/test/TestNamedAndIndexedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedAndIndexedSetterThrowingException.idl: * bindings/scripts/test/TestNamedAndIndexedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterNoIdentifier.idl: * bindings/scripts/test/TestNamedDeleterThrowingException.idl: * bindings/scripts/test/TestNamedDeleterWithIdentifier.idl: * bindings/scripts/test/TestNamedDeleterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterNoIdentifier.idl: * bindings/scripts/test/TestNamedSetterThrowingException.idl: * bindings/scripts/test/TestNamedSetterWithIdentifier.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetter.idl: * bindings/scripts/test/TestNamedSetterWithIndexedGetterAndSetter.idl: * bindings/scripts/test/TestNamedSetterWithOverrideBuiltins.idl: * bindings/scripts/test/TestNamedSetterWithUnforgableProperties.idl: * bindings/scripts/test/TestNamedSetterWithUnforgablePropertiesAndOverrideBuiltins.idl: * bindings/scripts/test/TestNode.idl: * bindings/scripts/test/TestObj.idl: * bindings/scripts/test/TestOperationBase.idl: * bindings/scripts/test/TestSerializedScriptValueInterface.idl: * bindings/scripts/test/TestSupplemental.idl: * bindings/scripts/test/TestTypedefs.idl: * bindings/scripts/test/TestVoidCallbackFunction.idl: * css/CSSKeyframesRule.idl: * css/CSSMediaRule.idl: * css/CSSPaintCallback.idl: * css/CSSStyleDeclaration.idl: * css/CSSStyleSheet.idl: * css/CSSSupportsRule.idl: * css/DOMCSSRegisterCustomProperty.idl: * css/DeprecatedCSSOMPrimitiveValue.idl: * css/FontFaceSet.idl: * css/MediaList.idl: * css/MediaQueryList.idl: * css/WebKitCSSMatrix.idl: * dom/AbortAlgorithm.idl: * dom/AbortController.idl: * dom/AbortSignal.idl: * dom/CharacterData.idl: * dom/ChildNode.idl: * dom/CompositionEvent.idl: * dom/CustomElementRegistry.idl: * dom/CustomEvent.idl: * dom/DOMStringMap.idl: * dom/DataTransfer.idl: * dom/DataTransferItem.idl: * dom/DataTransferItemList.idl: * dom/DeviceMotionEvent.idl: * dom/DeviceOrientationEvent.idl: * dom/Document.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/Element.idl: * dom/Event.idl: * dom/EventListener.idl: * dom/EventTarget.idl: * dom/HashChangeEvent.idl: * dom/IdleRequestCallback.idl: * dom/KeyboardEvent.idl: * dom/MessageEvent.idl: * dom/MessagePort.idl: * dom/MouseEvent.idl: * dom/MutationCallback.idl: * dom/MutationEvent.idl: * dom/MutationObserver.idl: * dom/Node.idl: * dom/NodeIterator.idl: * dom/ParentNode.idl: * dom/Range.idl: * dom/RequestAnimationFrameCallback.idl: * dom/StringCallback.idl: * dom/TextEvent.idl: * dom/TouchEvent.idl: * dom/UIEvent.idl: * dom/WheelEvent.idl: * fileapi/BlobCallback.idl: * fileapi/FileReader.idl: * html/DOMFormData.idl: * html/DOMTokenList.idl: * html/DOMURL.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDialogElement.idl: * html/HTMLElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFormElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLKeygenElement.idl: * html/HTMLMarqueeElement.idl: * html/HTMLMediaElement.idl: * html/HTMLObjectElement.idl: * html/HTMLOptionsCollection.idl: * html/HTMLOrForeignElement.idl: * html/HTMLOutputElement.idl: * html/HTMLSelectElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLVideoElement.idl: * html/ImageBitmap.idl: * html/MediaController.idl: * html/URLSearchParams.idl: * html/VoidCallback.idl: * html/canvas/ANGLEInstancedArrays.idl: * html/canvas/CanvasDrawImage.idl: * html/canvas/CanvasDrawPath.idl: * html/canvas/CanvasGradient.idl: * html/canvas/CanvasImageData.idl: * html/canvas/CanvasPath.idl: * html/canvas/CanvasPathDrawingStyles.idl: * html/canvas/CanvasPattern.idl: * html/canvas/CanvasRect.idl: * html/canvas/CanvasRenderingContext2D.idl: * html/canvas/CanvasState.idl: * html/canvas/CanvasText.idl: * html/canvas/CanvasTransform.idl: * html/canvas/CanvasUserInterface.idl: * html/canvas/ImageBitmapRenderingContext.idl: * html/canvas/OESVertexArrayObject.idl: * html/canvas/OffscreenCanvasRenderingContext2D.idl: * html/canvas/Path2D.idl: * html/canvas/WebGL2RenderingContext.idl: * html/canvas/WebGLDrawBuffers.idl: * html/canvas/WebGLLoseContext.idl: * html/canvas/WebGLRenderingContextBase.idl: * html/track/TextTrack.idl: * inspector/CommandLineAPIHost.idl: * inspector/InspectorFrontendHost.idl: * loader/appcache/DOMApplicationCache.idl: * page/DOMSelection.idl: * page/DOMWindow.idl: * page/EventSource.idl: * page/History.idl: * page/IntersectionObserver.idl: * page/IntersectionObserverCallback.idl: * page/Location.idl: * page/Navigator.idl: * page/NavigatorIsLoggedIn.idl: * page/NavigatorShare.idl: * page/Performance.idl: * page/PerformanceObserver.idl: * page/PerformanceObserverCallback.idl: * page/RemoteDOMWindow.idl: * page/ResizeObserver.idl: * page/ResizeObserverCallback.idl: * page/UndoManager.idl: * page/WindowOrWorkerGlobalScope.idl: * plugins/DOMPluginArray.idl: * storage/Storage.idl: * storage/StorageEvent.idl: * svg/SVGAngle.idl: * svg/SVGAnimationElement.idl: * svg/SVGFEDropShadowElement.idl: * svg/SVGFEGaussianBlurElement.idl: * svg/SVGFEMorphologyElement.idl: * svg/SVGLength.idl: * svg/SVGLengthList.idl: * svg/SVGMarkerElement.idl: * svg/SVGNumberList.idl: * svg/SVGPathSegList.idl: * svg/SVGPointList.idl: * svg/SVGSVGElement.idl: * svg/SVGStringList.idl: * svg/SVGTextContentElement.idl: * svg/SVGTransform.idl: * svg/SVGTransformList.idl: * testing/InternalSettings.idl: * testing/Internals.idl: * testing/MockCDMFactory.idl: * testing/MockPageOverlay.idl: * testing/MockPaymentCoordinator.idl: * testing/ServiceWorkerInternals.idl: * testing/TypeConversions.idl: * testing/WebFakeXRDevice.idl: * testing/WebFakeXRInputController.idl: * testing/WebXRTest.idl: * testing/XRSimulateUserActivationFunction.idl: * workers/DedicatedWorkerGlobalScope.idl: * workers/Worker.idl: * workers/WorkerGlobalScope.idl: * workers/service/ExtendableEvent.idl: * workers/service/FetchEvent.idl: * workers/service/ServiceWorker.idl: * workers/service/ServiceWorkerClient.idl: * workers/service/ServiceWorkerClients.idl: * workers/service/ServiceWorkerContainer.idl: * workers/service/ServiceWorkerGlobalScope.idl: * workers/service/ServiceWorkerRegistration.idl: * worklets/PaintWorkletGlobalScope.idl: * worklets/Worklet.idl: * xml/XMLHttpRequest.idl: * xml/XSLTProcessor.idl: Tools: * DumpRenderTree/Bindings/CodeGeneratorDumpRenderTree.pm: (_generateImplementationFile): (_returnExpression): * TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl: * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl: * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: (_generateImplementationFile): (_returnExpression): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: * WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl: Canonical link: https://commits.webkit.org/228750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-08-28 23:04:52 +00:00
};