Reviewed by Brady.
Moved the update of the title of the current entry in the backforward list to WebCore.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::didChangeTitle):
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::setTitle):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19238
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-01-29 Ada Chan <adachan@apple.com>
+
+ Reviewed by Brady.
+
+ Moved the update of the title of the current entry in the backforward list to WebCore.
+
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::didChangeTitle):
+
2007-01-29 Adele Peterson <adele@apple.com>
Reviewed by Darin.
// The title doesn't get communicated to the WebView until we are committed.
if (loader->isCommitted()) {
// Must update the entries in the back-forward list too.
+ if (m_currentHistoryItem)
+ m_currentHistoryItem->setTitle(loader->title());
// This must go through the WebFrame because it has the right notion of the current b/f item.
m_client->setTitle(loader->title(), loader->urlForHistory());
m_client->setMainFrameDocumentReady(true); // update observers with new DOMDocument
+2007-01-29 Ada Chan <adachan@apple.com>
+
+ Reviewed by Brady.
+
+ Moved the update of the title of the current entry in the backforward list to WebCore.
+
+ * WebCoreSupport/WebFrameLoaderClient.mm:
+ (WebFrameLoaderClient::setTitle):
+
2007-01-29 Adele Peterson <adele@apple.com>
Reviewed by Darin.
return;
NSString *titleNSString = title;
[[[WebHistory optionalSharedHistory] itemForURL:nsURL] setTitle:titleNSString];
- if (HistoryItem* item = core(m_webFrame.get())->loader()->currentHistoryItem())
- item->setTitle(title);
}
// The following 2 functions are copied from [NSHTTPURLProtocol _cachedResponsePassesValidityChecks] and modified for our needs.