After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680368 - Port spell checking feature to WebKit2
Port spell checking feature to WebKit2
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Xan Lopez
Epiphany Maintainers
Depends on:
Blocks: 678610
 
 
Reported: 2012-07-21 11:24 UTC by Mario Sánchez Prada
Modified: 2012-08-09 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Path proposal (1.33 KB, patch)
2012-08-06 08:06 UTC, Mario Sánchez Prada
committed Details | Review

Description Mario Sánchez Prada 2012-07-21 11:24:10 UTC
We need specific API in WebKit2 to implement this in ephy.

Work is already ongoing in that front. See WebKit bug:

https://bugs.webkit.org/show_bug.cgi?id=90268
Comment 1 Mario Sánchez Prada 2012-08-06 08:06:04 UTC
Created attachment 220419 [details] [review]
Path proposal

Now that the associated WebKit bug has been fixed [1], we can propose a simple patch to port this feature to ephy+wk2 :-)

[1] https://bugs.webkit.org/show_bug.cgi?id=90268
Comment 2 Xan Lopez 2012-08-06 09:48:03 UTC
Review of attachment 220419 [details] [review]:

Cool! I suppose this just shows up automagically in our menus with WK2?

::: embed/ephy-embed-prefs.c
@@ +536,3 @@
+  web_context = webkit_web_context_get_default ();
+  webkit_web_context_set_spell_checking_enabled(web_context, value);
+  webkit_web_context_set_spell_checking_languages(web_context, langs);

Missing spaces after ( here.
Comment 3 Mario Sánchez Prada 2012-08-06 13:34:28 UTC
(In reply to comment #2)
> Review of attachment 220419 [details] [review]:
> 
> Cool! I suppose this just shows up automagically in our menus with WK2?

Yes. It uses the same "Enable spell checking" checkbox + list of languages in the preferences dialog ('Languages' tab) than for WK1.
 
> ::: embed/ephy-embed-prefs.c
> @@ +536,3 @@
> +  web_context = webkit_web_context_get_default ();
> +  webkit_web_context_set_spell_checking_enabled(web_context, value);
> +  webkit_web_context_set_spell_checking_languages(web_context, langs);
> 
> Missing spaces after ( here.

Crap. Blame WK's coding style for that :)
Comment 4 Xan Lopez 2012-08-09 17:21:20 UTC
Comment on attachment 220419 [details] [review]
Path proposal

This was committed as 20261c39.
Comment 5 Xan Lopez 2012-08-09 17:21:30 UTC
Closing.
Comment 6 Mario Sánchez Prada 2012-08-09 17:47:44 UTC
Argh! I forgot resolving this bug when committing. Sorry about that!