| Summary: | [Win] DumpRenderTree always using 800x600 size even if test needs other size | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||
| Component: | Tools / Tests | Assignee: | Brent Fulgham <bfulgham> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ossy | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Brent Fulgham
2015-01-08 10:56:23 PST
The problem was actually a bug in how we identify when to use the special W3C screen size of 480x360. Depending on how the code is run (i.e., from a Windows Shell versus a Cygwin shell) the path separator can be different, and the naive path test will fail. Correction is to test both path types for a match. Created attachment 244302 [details]
Patch
Created attachment 244303 [details]
Patch
Comment on attachment 244303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=244303&action=review > Tools/DumpRenderTree/win/DumpRenderTree.cpp:827 > + Vector<UniChar> urlCharacters(stringLength + 1, 0); Do you really need stringLength + 1 here? IIRC BSTRs aren't null-terminated. (In reply to comment #4) > Comment on attachment 244303 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=244303&action=review > > > Tools/DumpRenderTree/win/DumpRenderTree.cpp:827 > > + Vector<UniChar> urlCharacters(stringLength + 1, 0); > > Do you really need stringLength + 1 here? IIRC BSTRs aren't null-terminated. Right! But, the _bstr_t template expects to receive a null-terminated input string, which it converts to a BSTR. If this was in WebCore I'd just use our BString class, but it's outside of WebCore/WebKit so I'm trying to use _bstr_t instead. Committed r178139: <http://trac.webkit.org/changeset/178139> *** Bug 139972 has been marked as a duplicate of this bug. *** |