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 678628 - Port find to WebKit2
Port find to WebKit2
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 678610
 
 
Reported: 2012-06-22 12:23 UTC by Carlos Garcia Campos
Modified: 2012-06-27 12:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (7.44 KB, patch)
2012-06-22 12:23 UTC, Carlos Garcia Campos
reviewed Details | Review
Updated patch (7.20 KB, patch)
2012-06-27 10:01 UTC, Carlos Garcia Campos
committed Details | Review

Description Carlos Garcia Campos 2012-06-22 12:23:44 UTC
Created attachment 217023 [details] [review]
Patch

Use WebKit2 API implement search.
Comment 1 Xan Lopez 2012-06-26 16:57:04 UTC
Review of attachment 217023 [details] [review]:

Hrm, it seems you really only operate on the find controller. Wouldn't it be easier to save that on ephy_find_toolbar_set_embed? Would save a lot of webkit_web_view_get_find_controller.

::: src/ephy-find-toolbar.c
@@ +259,1 @@
 #endif

Is mark_matches called from the WK2 code to do nothing or is it only called from WK1 code? If the latter, should #ifdef it completely no?

@@ +269,3 @@
+
+        if (!priv->find_string || !g_strcmp0 (priv->find_string, ""))
+                return;

If you are going to use g_strcmp0 you can skip the first check I think.
Comment 2 Carlos Garcia Campos 2012-06-27 09:57:14 UTC
(In reply to comment #1)
> Review of attachment 217023 [details] [review]:
> 
> Hrm, it seems you really only operate on the find controller. Wouldn't it be
> easier to save that on ephy_find_toolbar_set_embed? Would save a lot of
> webkit_web_view_get_find_controller.

Yes, indeed.

> ::: src/ephy-find-toolbar.c
> @@ +259,1 @@
>  #endif
> 
> Is mark_matches called from the WK2 code to do nothing or is it only called
> from WK1 code? If the latter, should #ifdef it completely no?

It's only called from wk1 code, so yes, it's should be #ifdefed

> @@ +269,3 @@
> +
> +        if (!priv->find_string || !g_strcmp0 (priv->find_string, ""))
> +                return;
> 
> If you are going to use g_strcmp0 you can skip the first check I think.

You are right, I copied this from the wk1 code.
Comment 3 Carlos Garcia Campos 2012-06-27 10:01:49 UTC
Created attachment 217380 [details] [review]
Updated patch
Comment 4 Xan Lopez 2012-06-27 10:22:07 UTC
Review of attachment 217380 [details] [review]:

OK.