[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
sullivan
sullivan at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:41:24 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 93f1fde3aedca5879c121504801b800ebbaa2129
Author: sullivan <sullivan at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon May 24 20:01:11 2004 +0000
WebKit:
Reviewed by Dave.
- added private RSSFeedReferrer field to WebHistoryItem so RSS feeds in the
back/forward list can remember what page (if any) they were initiated from.
* History.subproj/WebHistoryItem.m:
new RSSFeedReferrer ivar in private structure
(-[WebHistoryItemPrivate dealloc]):
release RSSFeedReferrer
(-[WebHistoryItem copyWithZone:]):
copy RSSFeedReferrer
(-[WebHistoryItem RSSFeedReferrer]):
return RSSFeedReferrer
(-[WebHistoryItem setRSSFeedReferrer:]):
set RSSFeedReferrer
* History.subproj/WebHistoryItemPrivate.h:
declare -RSSFeedReferrer and -setRSSFeedReferrer:
WebBrowser:
Reviewed by Dave.
More work on Emerson show/hide button. Now when the "Show RSS Feed" button
is clicked, we stash away the URL we are expecting to load. When (if) that URL
is loaded, we find the previous URL from the back list and store that in the
RSS feed's history item, so that if we revisit this RSS feed using the back/forward
list, we'll correctly display the "Hide RSS Feed" button. (If the RSS feed's URL
is visited some other way, it won't have a corresponding URL to "return" to, and
the "Hide RSS Feed" button will not appear.)
* BrowserWebController.h:
new ivar and getter/setter for pendingRSSFeedURLString
* BrowserWebController.m:
(-[BrowserWebView dealloc]):
release _pendingRSSFeedURLString
(-[BrowserWebView pendingRSSFeedURLString]):
get _pendingRSSFeedURLString
(-[BrowserWebView setPendingRSSFeedURLString:]):
set _pendingRSSFeedURLString
(-[BrowserWebView counterpartURLForRSS]):
get RSS feed referrer from current back/forward list history item
* BrowserWindowController.m:
(-[BrowserWindowController windowShouldGoToURL:]):
cleanup noticed in passing: use [[self currentWebView] goToURL:URL] instead of
[[self browserDocument] goToURL:URL] because it seems clearer (and does the same thing)
(-[BrowserWindowController performQuickSearch:]):
ditto
(-[BrowserWindowController updateRSSButton]):
added comment
(-[BrowserWindowController goToCounterpartURLForRSS]):
when going to an RSS feed, call setPendingRSSFeedURLString so we will set
the referrer on the history item in the upcoming commit
* LocationChangeHandler.m:
(-[LocationChangeHandler webView:didCommitLoadForFrame:]):
if the incoming URL matches the pending RSS feed, set the RSS feed referrer on the
history item for the incoming URL
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 42be62f..67dcc61 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,24 @@
+2004-05-24 John Sullivan <sullivan at apple.com>
+
+ Reviewed by Dave.
+
+ - added private RSSFeedReferrer field to WebHistoryItem so RSS feeds in the
+ back/forward list can remember what page (if any) they were initiated from.
+
+ * History.subproj/WebHistoryItem.m:
+ new RSSFeedReferrer ivar in private structure
+ (-[WebHistoryItemPrivate dealloc]):
+ release RSSFeedReferrer
+ (-[WebHistoryItem copyWithZone:]):
+ copy RSSFeedReferrer
+ (-[WebHistoryItem RSSFeedReferrer]):
+ return RSSFeedReferrer
+ (-[WebHistoryItem setRSSFeedReferrer:]):
+ set RSSFeedReferrer
+
+ * History.subproj/WebHistoryItemPrivate.h:
+ declare -RSSFeedReferrer and -setRSSFeedReferrer:
+
2004-05-22 Darin Adler <darin at apple.com>
Reviewed by Ken.
diff --git a/WebKit/History.subproj/WebHistoryItem.m b/WebKit/History.subproj/WebHistoryItem.m
index ed7ac45..f328b74 100644
--- a/WebKit/History.subproj/WebHistoryItem.m
+++ b/WebKit/History.subproj/WebHistoryItem.m
@@ -53,6 +53,8 @@ NSString *WebHistoryItemChangedNotification = @"WebHistoryItemChangedNotificatio
NSData *formData;
NSString *formContentType;
NSString *formReferrer;
+ // info used to support RSS feeds
+ NSString *RSSFeedReferrer;
}
@end
@@ -72,6 +74,7 @@ NSString *WebHistoryItemChangedNotification = @"WebHistoryItemChangedNotificatio
[formData release];
[formContentType release];
[formReferrer release];
+ [RSSFeedReferrer release];
[super dealloc];
}
@@ -127,6 +130,7 @@ NSString *WebHistoryItemChangedNotification = @"WebHistoryItemChangedNotificatio
copy->_private->formData = [_private->formData copy];
copy->_private->formContentType = [_private->formContentType copy];
copy->_private->formReferrer = [_private->formReferrer copy];
+ copy->_private->RSSFeedReferrer = [_private->RSSFeedReferrer copy];
return copy;
}
@@ -478,6 +482,18 @@ NSString *WebHistoryItemChangedNotification = @"WebHistoryItemChangedNotificatio
_private->formReferrer = copy;
}
+- (NSString *)RSSFeedReferrer
+{
+ return _private->RSSFeedReferrer;
+}
+
+- (void)setRSSFeedReferrer:(NSString *)referrer
+{
+ NSString *copy = [referrer copy];
+ [_private->RSSFeedReferrer release];
+ _private->RSSFeedReferrer = copy;
+}
+
- (NSArray *)children
{
return _private->subItems;
diff --git a/WebKit/History.subproj/WebHistoryItemPrivate.h b/WebKit/History.subproj/WebHistoryItemPrivate.h
index 0f24358..bd4f475 100644
--- a/WebKit/History.subproj/WebHistoryItemPrivate.h
+++ b/WebKit/History.subproj/WebHistoryItemPrivate.h
@@ -31,6 +31,7 @@
- (NSData *)formData;
- (NSString *)formContentType;
- (NSString *)formReferrer;
+- (NSString *)RSSFeedReferrer;
- (int)visitCount;
- (void)_mergeAutoCompleteHints:(WebHistoryItem *)otherItem;
@@ -47,6 +48,7 @@
- (void)setFormData:(NSData *)data;
- (void)setFormContentType:(NSString *)type;
- (void)setFormReferrer:(NSString *)referrer;
+- (void)setRSSFeedReferrer:(NSString *)referrer;
- (void)setVisitCount:(int)count;
- (NSArray *)children;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list