Bug 115463

Summary: [Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: abecsi, cmarcelo, commit-queue, ddavidso, enrica, gyuyoung.kim, jiapu.mail, menard, rakuco, sam
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Work in progress
none
Work in progress 2
none
Work in progress 3
none
Fixes the bug
none
Updated per Sam's comments
none
Updated per Sam's in-person review none

Description Ryosuke Niwa 2013-04-30 21:22:25 PDT
When the user changes system preferences to enable or disable text replacement and spellchecking features, we should be reflecting those changes instead of caching the values set at the time WebView was created.
Comment 1 Ryosuke Niwa 2013-04-30 21:23:04 PDT
Created attachment 200201 [details]
Work in progress
Comment 2 Ryosuke Niwa 2013-04-30 22:45:38 PDT
Created attachment 200203 [details]
Work in progress 2
Comment 3 Ryosuke Niwa 2013-05-01 01:12:25 PDT
Created attachment 200205 [details]
Work in progress 3
Comment 4 Ryosuke Niwa 2013-05-01 02:11:13 PDT
Created attachment 200206 [details]
Fixes the bug
Comment 5 Ryosuke Niwa 2013-05-01 02:23:03 PDT
<rdar://problem/13779030>
Comment 6 Ryosuke Niwa 2013-05-01 16:50:32 PDT
Created attachment 200256 [details]
Updated per Sam's comments
Comment 7 Darin Adler 2013-05-01 17:15:17 PDT
Comment on attachment 200256 [details]
Updated per Sam's comments

View in context: https://bugs.webkit.org/attachment.cgi?id=200256&action=review

> Source/WebKit2/ChangeLog:13
> +        (WebKit):
> +        (TextChecker):

Should remove these, or fix the script so they don’t get added in the first place.

> Source/WebKit2/ChangeLog:15
> +        (WebContext):

Ditto.

> Source/WebKit2/ChangeLog:18
> +        (WebKit):

Ditto.

> Source/WebKit2/UIProcess/mac/WebContextMac.mm:555
> +    [[NSNotificationCenter defaultCenter] removeObserver:(id)m_automaticTextReplacementNotificationObserver.get()];

Can’t these be RetainPtr<NSObject> instead of RetainPtr<CFTypeRef>, to avoid all these (id) casts?
Comment 8 Ryosuke Niwa 2013-05-01 17:42:33 PDT
Created attachment 200291 [details]
Updated per Sam's in-person review
Comment 9 Ryosuke Niwa 2013-05-01 17:46:47 PDT
Comment on attachment 200291 [details]
Updated per Sam's in-person review

Oops, I didn't realize Darin had already reviewed. Thanks for the review!
Comment 10 Ryosuke Niwa 2013-05-01 18:53:27 PDT
Committed r149476: <http://trac.webkit.org/changeset/149476>