Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Issue 2347803002: Drop empty [] for dictionaries and interfaces in IDL files (Closed)

Created:
4 years, 3 months ago by foolip
Modified:
4 years, 3 months ago
CC:
chromium-reviews, tzik, nzolghadr+blinkwatch_chromium.org, eae+blinkwatch, fs, dcheng, dominicc+watchlist_chromium.org, apavlov+blink_chromium.org, Srirama, rwlbuis, jsbell+serviceworker_chromium.org, Yoav Weiss, toyoshim+midi_chromium.org, mvanouwerkerk+watch_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, chasej+watch_chromium.org, hongchan, nhiroki, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, jkarlin+watch_chromium.org, blink-reviews, mcasas+watch+mediastream_chromium.org, kenneth.christiansen, nessy, sof, timvolodine, Raymond Toy, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, eric.carlson_apple.com, darktears, jsbell+idb_chromium.org, vcarbune.chromium, michaeln, shimazu+serviceworker_chromium.org, dtapuska+blinkwatch_chromium.org, mlamouri+watch-blink_chromium.org, serviceworker-reviews, gasubic, falken, blink-reviews-events_chromium.org, kinuko+serviceworker, cmumford, horo+watch_chromium.org, jshin+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop and disalllow empty extended attribute lists [] in IDL WebIDL does not allow this: https://heycam.github.io/webidl/#prod-ExtendedAttributeList This was discovered by markdittmer@ when testing webidl2.js. The changes were made by running this Python script on all IDL files: with open(sys.argv[1], 'r+') as f: text = f.read().replace('[\n] ', '') f.seek(0) f.write(text) f.truncate() This also runs all IDL files through git stripspace, as a first step to ensure that the Python script wouldn't miss a case due to trailing whitespace. (The cases with comments inside were fixed manually.) R=rbyers@chromium.org,markdittmer@chromium.org Committed: https://crrev.com/ff816f196be69a11e903c01262ecba8949d7f2aa Cr-Commit-Position: refs/heads/master@{#419148}

Patch Set 1 #

Patch Set 2 : fix p_ExtendedAttributeList #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -152 lines) Patch
M third_party/WebKit/Source/bindings/scripts/blink_idl_parser.py View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/SVGTestInterface.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestInterfaceOriginTrialEnabled.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/modules/TestInterfacePartial4.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataTransfer.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataTransferItem.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataTransferItemList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSNamespaceRule.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/MediaList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryListEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/PropertyRegistration.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ClientRect.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ClientRectList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMStringList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MutationRecord.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TouchList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URLSearchParams.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventListener.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/ResourceProgressEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/BarProp.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/History.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Navigator.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Screen.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLHRElement.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/MediaError.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextMetrics.idl View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/TimeRanges.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/ValidityState.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/track/TextTrackCueList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/InputDeviceCapabilities.idl View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulateInterfaceBindings.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/GCObservation.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/GarbageCollectedScriptWrappable.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/LayerRect.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/LayerRectList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/PrivateScriptTest.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/TypeConversions.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/UnionTypesTest.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/timing/Performance.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceEntry.idl View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceResourceTiming.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/xml/XPathExpression.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xml/XPathResult.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/NavigatorBattery.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encoding/TextDecoderOptions.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaEncryptedEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeyMessageEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySystemAccess.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/gamepad/Gamepad.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/gamepad/GamepadButton.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/PositionError.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBufferList.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrackEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrackSourcesCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/NavigatorUserMedia.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/NavigatorUserMediaError.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/NavigatorUserMediaErrorCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/NavigatorUserMediaSuccessCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCCertificate.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCIceCandidate.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCIceCandidateEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnectionErrorCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescription.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCSessionDescriptionCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCStatsCallback.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/plugins/MimeType.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/plugins/MimeTypeArray.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/plugins/Plugin.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/plugins/PluginArray.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/srcobject/HTMLMediaElementSrcObject.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/storage/Storage.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VREyeParameters.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/vr/VRStageParameters.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBuffer.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioListener.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/IIRFilterNode.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PeriodicWave.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PeriodicWaveConstraints.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerNode.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/Database.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLActiveInfo.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLContextEvent.idl View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLShaderPrecisionFormat.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLUniformLocation.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIInputMap.idl View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIOutputMap.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
foolip
4 years, 3 months ago (2016-09-16 08:53:36 UTC) #1
haraken
LGTM, but can we also update the IDL parser not to allow an empty []?
4 years, 3 months ago (2016-09-16 09:00:21 UTC) #5
foolip
On 2016/09/16 09:00:21, haraken wrote: > LGTM, but can we also update the IDL parser ...
4 years, 3 months ago (2016-09-16 11:06:53 UTC) #8
foolip
On 2016/09/16 11:06:53, foolip wrote: > On 2016/09/16 09:00:21, haraken wrote: > > LGTM, but ...
4 years, 3 months ago (2016-09-16 11:10:28 UTC) #9
foolip
On 2016/09/16 11:10:28, foolip wrote: > On 2016/09/16 11:06:53, foolip wrote: > > On 2016/09/16 ...
4 years, 3 months ago (2016-09-16 11:32:41 UTC) #14
haraken
On 2016/09/16 11:32:41, foolip wrote: > On 2016/09/16 11:10:28, foolip wrote: > > On 2016/09/16 ...
4 years, 3 months ago (2016-09-16 11:38:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2347803002/20001
4 years, 3 months ago (2016-09-16 12:14:21 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-16 12:38:14 UTC) #20
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 12:40:00 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ff816f196be69a11e903c01262ecba8949d7f2aa
Cr-Commit-Position: refs/heads/master@{#419148}

Powered by Google App Engine
This is Rietveld 408576698