--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu Feb 21 21:07:02 2013 +0100
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu Feb 21 22:11:34 2013 +0100
@@ -873,9 +873,9 @@
(tag == WebMenuItemTagReload)) {
[webViewMenuItems removeObjectIdenticalTo:menuItem];
- //This isn't as nice; there's no tag available. Use the localization from WebKit to look at the title.
- AILogWithSignature(@"Comparing [menuItem title] = %@ with NSLocalizedStringFromTableInBundle(@\"Open Link\", nil, [NSBundle bundleForClass:[WebView class]], nil) = %@", [menuItem title], NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil));
- if ([[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)])
+ //This isn't as nice; there's no tag available. Use the localization from WebKit/WebCore, where it seems to be for some other people (#16101), to look at the title. + if ([[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleForClass:[WebView class]], nil)] || + [[menuItem title] isEqualToString:NSLocalizedStringFromTableInBundle(@"Open Link", nil, [NSBundle bundleWithIdentifier:@"com.apple.WebCore"], nil)]) [webViewMenuItems removeObjectIdenticalTo:menuItem];