Changeset 205825 in webkit
- Timestamp:
- Sep 12, 2016 2:42:31 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r205822 r205825 1 2016-09-12 DAN SAUNDERS <dasau@microsoft.com> 2 3 AX: WKWebView for macOS does not allow configuration of tabsToLinks 4 https://bugs.webkit.org/show_bug.cgi?id=161394 5 6 Reviewed by Anders Carlsson. 7 8 * UIProcess/API/Cocoa/WKPreferences.h: 9 * UIProcess/API/Cocoa/WKPreferences.mm: 10 (-[WKPreferences encodeWithCoder:]): 11 (-[WKPreferences initWithCoder:]): 12 (-[WKPreferences tabFocusesLinks]): 13 (-[WKPreferences setTabFocusesLinks:]): 14 1 15 2016-09-12 Saam Barati <sbarati@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.h
r202789 r205825 64 64 */ 65 65 @property (nonatomic) BOOL plugInsEnabled; 66 67 /*! 68 @property tabFocusesLinks 69 @abstract If tabFocusesLinks is YES, the tab key will focus links and form controls. 70 The option key temporarily reverses this preference. 71 */ 72 @property (nonatomic) BOOL tabFocusesLinks WK_API_AVAILABLE(macosx(WK_MAC_TBA)); 66 73 #endif 67 74 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm
r204469 r205825 67 67 [coder encodeBool:self.javaEnabled forKey:@"javaEnabled"]; 68 68 [coder encodeBool:self.plugInsEnabled forKey:@"plugInsEnabled"]; 69 [coder encodeBool:self.tabFocusesLinks forKey:@"tabFocusesLinks"]; 69 70 #endif 70 71 } … … 82 83 self.javaEnabled = [coder decodeBoolForKey:@"javaEnabled"]; 83 84 self.plugInsEnabled = [coder decodeBoolForKey:@"plugInsEnabled"]; 85 self.tabFocusesLinks = [coder decodeBoolForKey:@"tabFocusesLinks"]; 84 86 #endif 85 87 … … 139 141 { 140 142 _preferences->setPluginsEnabled(plugInsEnabled); 143 } 144 145 - (BOOL)tabFocusesLinks 146 { 147 return _preferences->tabsToLinks(); 148 } 149 150 - (void)setTabFocusesLinks:(BOOL)tabFocusesLinks 151 { 152 _preferences->setTabsToLinks(tabFocusesLinks); 141 153 } 142 154 -
trunk/Tools/ChangeLog
r205824 r205825 1 2016-09-12 DAN SAUNDERS <dasau@microsoft.com> 2 3 AX: WKWebView for macOS does not allow configuration of tabsToLinks 4 https://bugs.webkit.org/show_bug.cgi?id=161394 5 6 Reviewed by Anders Carlsson. 7 8 * TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm: 9 (TEST): 10 1 11 2016-09-12 Alex Christensen <achristensen@webkit.org> 2 12 -
trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Coding.mm
r200670 r205825 52 52 [a setJavaEnabled:YES]; 53 53 [a setPlugInsEnabled:YES]; 54 [a setTabFocusesLinks:YES]; 54 55 #endif 55 56 … … 63 64 EXPECT_EQ([a javaEnabled], [b javaEnabled]); 64 65 EXPECT_EQ([a plugInsEnabled], [b plugInsEnabled]); 66 EXPECT_EQ([a tabFocusesLinks], [b tabFocusesLinks]); 65 67 #endif 66 68 }
Note: See TracChangeset
for help on using the changeset viewer.