Merge pull request #230 from dblugeon/fixe-issue-189

Fixe issue 189
This commit is contained in:
Jeena Paradies 2013-05-13 16:48:54 -07:00
commit 8178b83efe
2 changed files with 10 additions and 0 deletions

View file

@ -73,6 +73,8 @@
- (void)notificateViewsAboutDeletedPostWithId:(NSString *)postId byEntity:(NSString*)entity;
- (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)dataSource;
- (void)setString:(NSString *)string forKey:(NSString *)aKey;
- (void)setSecret:(NSString *)string;
- (NSString *)secret;

View file

@ -26,6 +26,7 @@
- (void)awakeFromNib
{
[timelineViewWindow setExcludedFromWindowsMenu:YES];
[timelineView setResourceLoadDelegate:self];
[self initHotKeys];
@ -432,6 +433,13 @@
[timelineView stringByEvaluatingJavaScriptFromString:fun];
}
/* we disable cookies to avoid see a timeline during the consultation of a profile with which the user are connected through safari cf https://github.com/jeena/Bungloo/issues/189 */
- (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)dataSource{
NSMutableURLRequest * response = [request mutableCopy];
[response setHTTPShouldHandleCookies:FALSE];
return response;
}
- (void)loggedIn
{
[loginActivityIndicator stopAnimation:self];