Changeset 121271 in webkit


Ignore:
Timestamp:
Jun 26, 2012 11:38:56 AM (12 years ago)
Author:
jpu@apple.com
Message:

On Mac, autocorrection sometimes fails to take place in Safari.
https://bugs.webkit.org/show_bug.cgi?id=89982

Reviewed by Darin Adler.

Existing test was turned off due to intermittent failure, which is caused by autocorrection result depending on user data
that may be altered by previous test runs. Hopefully we can turn the test back on once we have a way to make autocorrection
behave consistently.

Basically we should check the value of shouldCheckForCorrection, not shouldShowCorrectionPanel, to determine if we should
early return in markAndReplaceFor().

  • editing/Editor.cpp:

(WebCore::Editor::markAndReplaceFor):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121270 r121271  
     12012-06-26  Jia Pu  <jpu@apple.com>
     2
     3        On Mac, autocorrection sometimes fails to take place in Safari.
     4        https://bugs.webkit.org/show_bug.cgi?id=89982
     5
     6        Reviewed by Darin Adler.
     7
     8        Existing test was turned off due to intermittent failure, which is caused by autocorrection result depending on user data
     9        that may be altered by previous test runs. Hopefully we can turn the test back on once we have a way to make autocorrection
     10        behave consistently.
     11
     12        Basically we should check the value of shouldCheckForCorrection, not shouldShowCorrectionPanel, to determine if we should
     13        early return in markAndReplaceFor().
     14
     15        * editing/Editor.cpp:
     16        (WebCore::Editor::markAndReplaceFor):
     17
    1182012-06-26  Joe Thomas  <joethomas@motorola.com>
    219
  • trunk/Source/WebCore/editing/Editor.cpp

    r121125 r121271  
    20862086                continue;
    20872087
    2088             if (!(shouldPerformReplacement || shouldShowCorrectionPanel || shouldMarkLink) || !doReplacement)
     2088            if (!(shouldPerformReplacement || shouldCheckForCorrection || shouldMarkLink) || !doReplacement)
    20892089                continue;
    20902090
Note: See TracChangeset for help on using the changeset viewer.