You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accept a sequence of strings in the WebSocket constructor #9053
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
The WebIDL definitions for WebSocket has been updated upstream at the HTML specification documentation. In our current code, we use optional (DOMString or DOMString) protocols as the second argument to the constructor of WebSockets. The updated spech here instead uses optional (DOMString and sequence<DOMString>) protocols.
Looks like this still won't work with the WebIDL definition since the second parameter is optional (DOMString or sequence<DOMString>) protocols and the codegen doesn't currently support sequences in union types.
Just came across this while updating test expectations for my work on #7860, which fixes some stuff that was hiding failures caused by this issue. Can I grab this one as well, since I have spec'd out some changes for it in order to fix my test?
@jsanders If you've already written/writing code for this then go for it, but I've got a commit ready that was waiting for #9304 to merge. In hindsight, I should have asked for this to be assigned.
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.
Activity
emilio commentedon Dec 23, 2015
I think this is blocked by #544
KiChjang commentedon Dec 23, 2015
That issue is still open? Weird, because #9049 uses
sequence<>for getAll and it compiled fine for me.KiChjang commentedon Dec 23, 2015
Oh I see what the problem is -
Codegen.pycurrently doesn't supportsequencevalues as parameters.emilio commentedon Dec 23, 2015
Yeah, I implemented return values in #8412, but no arguments yet.
nox commentedon Dec 23, 2015
Blocked by #9056.
frewsxcv commentedon Jan 12, 2016
#9056 has merged
[-]Update WebSocket Constructor[/-][+]Accept a sequence of strings in the WebSocket constructor[/+]chkimes commentedon Jan 14, 2016
Looks like this still won't work with the WebIDL definition since the second parameter is
optional (DOMString or sequence<DOMString>) protocolsand the codegen doesn't currently support sequences in union types.https://github.com/servo/servo/blob/master/components/script/dom/bindings/codegen/CodegenRust.py#L3575
frewsxcv commentedon Jan 14, 2016
Blocked on #9290 maybe?
11 remaining items
Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
emilio commentedon Jan 17, 2016
This should be no longer blocked
jsanders commentedon Jan 17, 2016
Just came across this while updating test expectations for my work on #7860, which fixes some stuff that was hiding failures caused by this issue. Can I grab this one as well, since I have spec'd out some changes for it in order to fix my test?
nox commentedon Jan 17, 2016
@jsanders Sure!
chkimes commentedon Jan 18, 2016
@jsanders If you've already written/writing code for this then go for it, but I've got a commit ready that was waiting for #9304 to merge. In hindsight, I should have asked for this to be assigned.
Accept string sequence in WebSocket constructor servo#9053
jsanders commentedon Jan 18, 2016
@ckimes89: D'oh, just pushed #9360. Looks like a pretty similar solution. I'm not fussed either way.
chkimes commentedon Jan 18, 2016
@jsanders All yours, I should've spoken up earlier.
Auto merge of #9360 - jsanders:accept-protocols-sequence, r=KiChjang
Auto merge of #9360 - jsanders:accept-protocols-sequence, r=KiChjang