DescriptionTreatReturnedNullStringAs=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 #
Messages
Total messages: 11 (3 generated)
|