[Webkit-unassigned] [Bug 57969] Add web audio support to DumpRenderTree (mac port)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 6 15:35:07 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=57969
--- Comment #17 from Chris Rogers <crogers at google.com> 2011-04-06 15:35:06 PST ---
(From update of attachment 88523)
View in context: https://bugs.webkit.org/attachment.cgi?id=88523&action=review
>> Tools/DumpRenderTree/LayoutTestController.h:271
>> + void setEncodedAudioData(std::string encodedAudioData) { m_encodedAudioData = encodedAudioData; }
>
> const std::string&
FIXED
>> Tools/DumpRenderTree/mac/DumpRenderTree.mm:739
>> + const char* encodedAudioData = gLayoutTestController->encodedAudioData().c_str();
>
> I think in ObjC we put the * next to the variable name. This file seems like a mix of both styles.
FIXED
>> Tools/DumpRenderTree/mac/DumpRenderTree.mm:741
>> + NSData *data = [NSData dataWithBytes:encodedAudioData length:strlen(encodedAudioData)];
>
> If encodedAudioData has null bytes in it, won't strlen give the wrong value? Should we use gLayoutTestController->encodedAudioData().length() instead?
because it's base64 data that shouldn't be a problem. However, your approach seems better anyway - so fixing.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list