Changeset 140793 in webkit
- Timestamp:
- Jan 25, 2013, 12:21:37 AM (12 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r140718 r140793 1 2013-01-24 Dan Bernstein <mitz@apple.com> 2 3 WebNavigationData does not distinguish between an empty title and a missing title 4 https://bugs.webkit.org/show_bug.cgi?id=107917 5 6 Reviewed by Andy Estes. 7 8 * WebCoreSupport/WebFrameLoaderClient.mm: 9 (nilOrNSString): Added this helper function. 10 (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil 11 title, rather than the empty string, if the document does not have a title. 12 1 13 2013-01-24 Mark Hahnenberg <mhahnenberg@apple.com> 2 14 -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r139000 r140793 852 852 } 853 853 854 static inline NSString *nilOrNSString(const String& string) 855 { 856 if (string.isNull()) 857 return nil; 858 return string; 859 } 860 854 861 void WebFrameLoaderClient::updateGlobalHistory() 855 862 { … … 861 868 if (implementations->navigatedFunc) { 862 869 WebNavigationData *data = [[WebNavigationData alloc] initWithURLString:loader->urlForHistory() 863 title: loader->title().string()870 title:nilOrNSString(loader->title().string()) 864 871 originalRequest:loader->originalRequestCopy().nsURLRequest() 865 872 response:loader->response().nsURLResponse()
Note:
See TracChangeset
for help on using the changeset viewer.