Changeset 199565 in webkit
- Timestamp:
- Apr 14, 2016 4:04:26 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r199559 r199565 1 2016-04-14 Brian Burg <bburg@apple.com> 2 3 Web Automation: suppress automatic text correction in pages controlled by automation 4 https://bugs.webkit.org/show_bug.cgi?id=156599 5 <rdar://problem/25712646> 6 7 Reviewed by Timothy Hatcher. 8 9 If the page is controlled by automation, then automatic text corrections will 10 cause unexpected behaviors by nondeterministically modifying text inserted by 11 a test. Just pretend these behaviors are disabled if controlled by automation. 12 13 * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: 14 (WebKit::WebEditorClient::isAutomaticQuoteSubstitutionEnabled): 15 (WebKit::WebEditorClient::isAutomaticDashSubstitutionEnabled): 16 (WebKit::WebEditorClient::isAutomaticTextReplacementEnabled): 17 (WebKit::WebEditorClient::isAutomaticSpellingCorrectionEnabled): 18 1 19 2016-04-14 Anders Carlsson <andersca@apple.com> 2 20 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm
r179409 r199565 186 186 bool WebEditorClient::isAutomaticQuoteSubstitutionEnabled() 187 187 { 188 if (m_page->isControlledByAutomation()) 189 return false; 190 188 191 return WebProcess::singleton().textCheckerState().isAutomaticQuoteSubstitutionEnabled; 189 192 } … … 208 211 bool WebEditorClient::isAutomaticDashSubstitutionEnabled() 209 212 { 213 if (m_page->isControlledByAutomation()) 214 return false; 215 210 216 return WebProcess::singleton().textCheckerState().isAutomaticDashSubstitutionEnabled; 211 217 } … … 219 225 bool WebEditorClient::isAutomaticTextReplacementEnabled() 220 226 { 227 if (m_page->isControlledByAutomation()) 228 return false; 229 221 230 return WebProcess::singleton().textCheckerState().isAutomaticTextReplacementEnabled; 222 231 } … … 230 239 bool WebEditorClient::isAutomaticSpellingCorrectionEnabled() 231 240 { 241 if (m_page->isControlledByAutomation()) 242 return false; 243 232 244 return WebProcess::singleton().textCheckerState().isAutomaticSpellingCorrectionEnabled; 233 245 }
Note: See TracChangeset
for help on using the changeset viewer.