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 694659 - Create ephy-web-dom-utils for sharing DOM bindings code between WK1 and WK2
Create ephy-web-dom-utils for sharing DOM bindings code between WK1 and WK2
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: Backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Xan Lopez
Epiphany Maintainers
Depends on:
Blocks: 694091 694144
 
 
Reported: 2013-02-25 11:06 UTC by Manuel Rego Casasnovas
Modified: 2013-02-28 17:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (12.89 KB, patch)
2013-02-25 11:11 UTC, Manuel Rego Casasnovas
none Details | Review
Patch updated (12.99 KB, patch)
2013-02-26 09:29 UTC, Manuel Rego Casasnovas
reviewed Details | Review
Patch updated fixing issues detected in the review (12.94 KB, patch)
2013-02-27 17:53 UTC, Manuel Rego Casasnovas
reviewed Details | Review
Patch updated (12.97 KB, patch)
2013-02-27 21:18 UTC, Manuel Rego Casasnovas
committed Details | Review
Patch renaming method (2.76 KB, patch)
2013-02-28 15:34 UTC, Manuel Rego Casasnovas
committed Details | Review

Description Manuel Rego Casasnovas 2013-02-25 11:06:24 UTC
At this moment code related to DOM bindings is copy-pasted in web extension in order to be used from WK2 (so far only the code for checking modified forms is copied).

We should have a common place to share this code and avoid copy-pasting.
Comment 1 Manuel Rego Casasnovas 2013-02-25 11:11:09 UTC
Created attachment 237348 [details] [review]
Patch
Comment 2 Manuel Rego Casasnovas 2013-02-26 09:29:28 UTC
Created attachment 237417 [details] [review]
Patch updated

Remove MIN_INPUT_LENGTH from embed/ephy-web-view.c as I forgot to remove it in the previous patch.
Comment 3 Xan Lopez 2013-02-27 17:37:01 UTC
Review of attachment 237417 [details] [review]:

::: embed/web-extension/Makefile.am
@@ +11,3 @@
+	ephy-web-extension.h \
+    $(top_srcdir)/lib/ephy-web-dom-utils.c \
+    $(top_srcdir)/lib/ephy-web-dom-utils.h

Indentation seems to be off here?

::: embed/web-extension/ephy-web-extension.c
@@ +37,1 @@
 #define MIN_INPUT_LENGTH 50

Can't you just remove this?
Comment 4 Manuel Rego Casasnovas 2013-02-27 17:53:22 UTC
Created attachment 237547 [details] [review]
Patch updated fixing issues detected in the review
Comment 5 Xan Lopez 2013-02-27 20:06:17 UTC
Review of attachment 237547 [details] [review]:

::: embed/web-extension/ephy-web-extension.c
@@ +37,1 @@
 #define MIN_INPUT_LENGTH 50

So you left the constant here and hardcoded the number in ephy-web-dom-utils.c? I'm confused. It would seem you need to remove it here and just use it in the implementation.
Comment 6 Manuel Rego Casasnovas 2013-02-27 21:15:09 UTC
(In reply to comment #5)
> Review of attachment 237547 [details] [review]:
> 
> ::: embed/web-extension/ephy-web-extension.c
> @@ +37,1 @@
>  #define MIN_INPUT_LENGTH 50
> 
> So you left the constant here and hardcoded the number in ephy-web-dom-utils.c?
> I'm confused. It would seem you need to remove it here and just use it in the
> implementation.

I'm confused too. I know that I should remove that line and I don't know how I forgot it. Sorry next time I'll try to be more careful.
Comment 7 Manuel Rego Casasnovas 2013-02-27 21:18:51 UTC
Created attachment 237564 [details] [review]
Patch updated
Comment 8 Xan Lopez 2013-02-28 00:41:31 UTC
Review of attachment 237564 [details] [review]:

Looks good, thanks!
Comment 9 Manuel Rego Casasnovas 2013-02-28 06:26:58 UTC
(In reply to comment #8)
> Review of attachment 237564 [details] [review]:
> 
> Looks good, thanks!

Please push it by yourself as I don't have permissions at git.gnome.org. Thanks :-)
Comment 10 Manuel Rego Casasnovas 2013-02-28 15:34:10 UTC
Created attachment 237614 [details] [review]
Patch renaming method

It renames ephy_web_dom_has_modified_forms to ephy_web_dom_utils_has_modified_forms in order to match with the file name.
Comment 11 Xan Lopez 2013-02-28 17:10:30 UTC
Review of attachment 237614 [details] [review]:

Thanks, I'll push this now.