Closed
Bug 1187315
Opened 9 years ago
Closed 9 years ago
Rename dom/webidl/Constraints.webidl to something less generic
Categories
(Core :: WebRTC: Audio/Video, defect, P1)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
backlog | webrtc/webaudio+ |
People
(Reporter: padenot, Assigned: jib)
Details
Attachments
(1 file, 2 obsolete files)
> * | bz is confused about how http://hg.mozilla.org/mozilla-central/rev/c0b31eca151e managed to land without
> | DOM peer review. :(
> bz | we should get the hook fixed
> bz | because the name of this file is nuts. ;)
> bz | Anyway
> bz | r=me in bug, but please add a link to the spec and get this file renamed to something sane. ;)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → padenot
Comment 1•9 years ago
|
||
P1 because bz would have required this if he had reviewed before the file was added.
backlog: --- → webRTC+
Rank: 15
Priority: -- → P1
Assignee | ||
Comment 2•9 years ago
|
||
Thanks, and whoops on the DOM review! Sorry about that. I understand from backscroll that it landed one day before the hooks. For background, this file exists because of some limitation in our webidl compiler with unions and/or typedefs, that types need to be in different files from each other. That's why the file isn't named after an interface in a spec. I wonder if this limitation still exists? If not, we may be able to move these definitions to the files they're used in.
Reporter | ||
Comment 3•9 years ago
|
||
Boris, maybe you know if this (comment 2) limitation still applies ? Maybe we can directly remove the file if it's been fixed.
Flags: needinfo?(bzbarsky)
Assignee | ||
Comment 4•9 years ago
|
||
Still an issue (I tried moving this to MediaTrackConstraintSet.webidl):
> 2:00.97 TypeError: Dictionary contains a union that contains a dictionary in the same WebIDL file. This won't compile. Move the inner dictionary to a different file.
> 2:00.97 /Users/Jan/moz/mozilla-central/dom/webidl/MediaTrackConstraintSet.webidl line 65:45
> 2:00.97 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) ConstrainDOMString;
> 2:00.97 ^
> 2:00.97 /Users/Jan/moz/mozilla-central/dom/webidl/MediaTrackConstraintSet.webidl line 46:0
> 2:00.97 dictionary ConstrainDOMStringParameters {
> 2:00.97 ^
Assignee | ||
Comment 5•9 years ago
|
||
Bug 1187315 - Refactor out Constraints.webidl
Assignee | ||
Updated•9 years ago
|
Attachment #8639295 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8639295 [details] MozReview Request: Bug 1187315 - Refactor out Constraints.webidl Bug 1187315 - Refactor out Constraints.webidl
Assignee | ||
Comment 7•9 years ago
|
||
(I've filed Bug 1187923 on the inability to see what was removed in Review Board.)
Assignee | ||
Comment 8•9 years ago
|
||
Hope this helps http://mxr.mozilla.org/mozilla-central/source/dom/webidl/Constraints.webidl?rev=a1829935d87e I'm on m-c so I'll unbitrot to get https://hg.mozilla.org/integration/mozilla-inbound/rev/2964352ce228#l6.12 later today
Comment 10•9 years ago
|
||
Comment on attachment 8639295 [details] MozReview Request: Bug 1187315 - Refactor out Constraints.webidl > Boris, maybe you know if this (comment 2) limitation still applies ? It does. The limitation is quite simple: if you have the sort of setup that triggers the typeerror in comment 4 there is no way to write the C++ declarations sanely given our setup for unions, in general. It might be possible to do it if the union is only used in this one IDL file, but as soon as any other IDL file used the same union, things would break. In any case, my complaint wasn't about the file _existing_, nor about it being named after something that's not an interface. My complaint was that the name is too generic is all. Given that reviewboard is not showing me the actual diff... mind attaching that diff here so I can review it?
Flags: needinfo?(bzbarsky)
Attachment #8639295 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8639295 -
Attachment is obsolete: true
Attachment #8639365 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 12•9 years ago
|
||
(In reply to Boris Zbarsky [:bz] from comment #10) > In any case, my complaint wasn't about the file _existing_, nor about it > being named after something that's not an interface. My complaint was that > the name is too generic is all. There's always more to clean up. I found that SupportedVideoConstraints was unused, and that we had one more file indirection than we needed. This seems cleaner to me. Let me know what you think.
Comment 13•9 years ago
|
||
Comment on attachment 8639365 [details] [diff] [review] Refactor out Constraints.webidl r=me
Attachment #8639365 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 14•9 years ago
|
||
Rebased (to get https://hg.mozilla.org/integration/mozilla-inbound/rev/2964352ce228#l6.12 ) Carrying forward r=bz.
Attachment #8639365 -
Attachment is obsolete: true
Attachment #8640309 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 15•9 years ago
|
||
can we get a try run here, thanks!
Flags: needinfo?(jib)
Keywords: checkin-needed
Assignee | ||
Comment 16•9 years ago
|
||
There's one in Review Board from the first patch (hidden): https://treeherder.mozilla.org/#/jobs?repo=try&revision=888d88616654
Flags: needinfo?(jib)
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8639295 [details] MozReview Request: Bug 1187315 - Refactor out Constraints.webidl Bug 1187315 - Refactor out Constraints.webidl
Attachment #8639295 -
Attachment is obsolete: false
Attachment #8639295 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•9 years ago
|
Attachment #8639295 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•9 years ago
|
Attachment #8640309 -
Attachment is obsolete: true
Assignee | ||
Comment 18•9 years ago
|
||
Whoops, never got checked in. Rebasing and re-running try.
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 19•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/14207bf8e5b8
Keywords: checkin-needed
Comment 20•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/14207bf8e5b8
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•