Changeset 246164 in webkit
- Timestamp:
- Jun 6, 2019 12:27:12 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r246161 r246164 1 2019-06-06 Daniel Bates <dabates@apple.com> 2 3 [lldb-webkit] TypeError: cannot concatenate 'str' and 'int' objects when prettify SecurityOrigin with 4 non-default port number 5 https://bugs.webkit.org/show_bug.cgi?id=198618 6 7 Reviewed by Brent Fulgham. 8 9 WebCoreSecurityOriginProvider.port() returns an int data type. We need to explicitly convert this to 10 a string before we concatenate it with another string when building the string representation 11 for the WebCore::SecurityOrigin object. Otherwise, Python complains that we are concatenating a str 12 with an int and we don't get a pretty-printed representation for WebCore::SecurityOrigin. 13 14 * lldb/lldb_webkit.py: 15 (WebCoreSecurityOriginProvider.to_string): Call str() on the port before concatenting it. 16 1 17 2019-06-06 Jonathan Bedard <jbedard@apple.com> 2 18 -
trunk/Tools/lldb/lldb_webkit.py
r244934 r246164 692 692 result = '{}://{}'.format(scheme, host) 693 693 if port: 694 result += ':' + port694 result += ':' + str(port) 695 695 return result 696 696
Note: See TracChangeset
for help on using the changeset viewer.