Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: ui/app_list/cocoa/apps_grid_view_item.mm

Issue 96103002: [Mac] Workaround for Mavericks AppKit accessibility bug in NSCollectionView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/cocoa/apps_grid_view_item.mm
diff --git a/ui/app_list/cocoa/apps_grid_view_item.mm b/ui/app_list/cocoa/apps_grid_view_item.mm
index ccd6b80db84dbb2cca426fd44ebc0149c95f638d..08304da155cadd2551730eaf333caf7773afc9a6 100644
--- a/ui/app_list/cocoa/apps_grid_view_item.mm
+++ b/ui/app_list/cocoa/apps_grid_view_item.mm
@@ -458,4 +458,11 @@ void ItemModelObserverBridge::ItemPercentDownloadedChanged() {
inView:controlView];
}
+// Workaround for http://crbug.com/324365: AppKit in Mavericks tries to call
+// - [NSButtonCell item] when inspecting accessibility. Without this, an
+// unrecognized selector exception is thrown inside AppKit, crashing Chrome.
+- (id)item {
+ return nil;
+}
+
@end
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698