| Summary: | iOS should use shared code to determine the system marketing version | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Rowe (bdash) <mrowe> | ||||
| Component: | WebCore Misc. | Assignee: | Mark Rowe (bdash) <mrowe> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bunhere, cdumez, commit-queue, gyuyoung.kim, sergio | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 134524 | ||||||
| Attachments: |
|
||||||
|
Description
Mark Rowe (bdash)
2014-07-01 16:20:24 PDT
Created attachment 234214 [details]
Patch
Comment on attachment 234214 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=234214&action=review > Source/WebCore/page/cocoa/UserAgent.mm:38 > + return [systemMarketingVersion() stringByReplacingOccurrencesOfString:@"." withString:@"_"]; It's sad that we go from String to NSString* and back here. Comment on attachment 234214 [details] Patch Clearing flags on attachment: 234214 Committed r170730: <http://trac.webkit.org/changeset/170730> All reviewed patches have been landed. Closing bug. Comment on attachment 234214 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=234214&action=review >> Source/WebCore/page/cocoa/UserAgent.mm:38 >> + return [systemMarketingVersion() stringByReplacingOccurrencesOfString:@"." withString:@"_"]; > > It's sad that we go from String to NSString* and back here. WTF::String dose have a function to do this. return systemMarketingVersion.replace('.', '_'); |