Summary: | rtc::PacketOptions should have its own IPC encoding/decoding routines | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||
Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | achristensen, alex, buildbot, commit-queue, webkit-bug-importer, youennf | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
youenn fablet
2017-10-03 06:44:47 PDT
Created attachment 322515 [details]
Patch
Comment on attachment 322515 [details] Patch Attachment 322515 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/4744831 New failing tests: workers/wasm-hashset.html Created attachment 322582 [details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 322515 [details]
Patch
Error is unrelated
Comment on attachment 322515 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322515&action=review > Source/WebKit/NetworkProcess/webrtc/NetworkRTCSocket.messages.in:26 > +void SendTo(IPC::DataReference data, WebKit::RTCNetwork::SocketAddress address, struct WebKit::RTCPacketOptions options) keep the indentation. > Source/WebKit/Shared/RTCPacketOptions.cpp:58 > + if (!decoder.decodeEnum(dscp)) We should add an enum traits for this somewhere so we don't have to use decodeEnum. > Source/WebKit/Shared/RTCPacketOptions.cpp:74 > + if (!decoder.decode(srtpAuthKey)) This looks like it might be wrong. The encoder encodes a DataReference, and this is decoding a std::optional<DataReference>. That doesn't match. > Source/WebKit/Shared/RTCPacketOptions.h:2 > + * Copyright (C) 2016 Apple Inc. All rights reserved. 2017 Thanks for the review. (In reply to Alex Christensen from comment #5) > Comment on attachment 322515 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=322515&action=review > > > Source/WebKit/NetworkProcess/webrtc/NetworkRTCSocket.messages.in:26 > > +void SendTo(IPC::DataReference data, WebKit::RTCNetwork::SocketAddress address, struct WebKit::RTCPacketOptions options) > > keep the indentation. OK > > Source/WebKit/Shared/RTCPacketOptions.cpp:58 > > + if (!decoder.decodeEnum(dscp)) > > We should add an enum traits for this somewhere so we don't have to use > decodeEnum. I am not sure. The enumeration is not in WebCore code, it might be easy to miss a change in the enumeration and not update the type trait. Since it is not an enum class, I am also not sure there is a way to catch this issue through compilation error. > > Source/WebKit/Shared/RTCPacketOptions.cpp:74 > > + if (!decoder.decode(srtpAuthKey)) > > This looks like it might be wrong. The encoder encodes a DataReference, and > this is decoding a std::optional<DataReference>. That doesn't match. Ah, right! Seems like an easy trap when mixing the legacy/new decoders. Created attachment 322644 [details]
Patch
Comment on attachment 322644 [details] Patch Clearing flags on attachment: 322644 Committed r222894: <http://trac.webkit.org/changeset/222894> All reviewed patches have been landed. Closing bug. |