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

Issue 1175183004: TreatReturnedNullStringAs=undefined removed from WebSocket.idl (Closed)

Created:
5 years, 6 months ago by Habib Virji
Modified:
5 years, 6 months ago
CC:
blink-reviews, yhirano+watch_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

TreatReturnedNullStringAs=undefined removed from WebSocket.idl DOMWebSocket::m_subprotocol and ::m_extensions are initialized as empty strings and are only updated in DOMWebSocket::didConnect(), where the values ultimate come from WebSocketStream::GetSubProtocol() and ::GetExtensions() which are std::string in Chromium. These are both documented as returning the empty string if no protocol/extensions were negotiated, and std::string as no null state like WTF::String. In other words, it's not possible for these to return null string, but even if they did it would appropriate to convert that to empty strings as opposed to undefined. BUG=497982 R=philipj, haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196948

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M Source/modules/websockets/WebSocket.idl View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175183004/1
5 years, 6 months ago (2015-06-11 09:07:26 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-11 11:11:04 UTC) #4
philipj_slow
LGTM. I looked into this case and updated the description with an explanation of why ...
5 years, 6 months ago (2015-06-11 13:39:07 UTC) #5
tyoshino (SeeGerritForStatus)
lgtm From spec side point of view: _Extensions In Use_ and _Subprotocol In Use_ may ...
5 years, 6 months ago (2015-06-11 13:58:52 UTC) #6
Habib Virji
On 2015/06/11 13:39:07, philipj wrote: > LGTM. I looked into this case and updated the ...
5 years, 6 months ago (2015-06-11 14:03:50 UTC) #7
haraken
LGTM
5 years, 6 months ago (2015-06-11 14:07:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1175183004/1
5 years, 6 months ago (2015-06-11 14:07:53 UTC) #10
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 14:11:19 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196948

Powered by Google App Engine
This is Rietveld 408576698