WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98748
[EFL][WK2] Port MiniBrowser to Elementary
https://bugs.webkit.org/show_bug.cgi?id=98748
Summary
[EFL][WK2] Port MiniBrowser to Elementary
Chris Dumez
Reported
2012-10-09 04:25:43 PDT
We should port MiniBrowser to Elementary so that we can simplify the code and more easily add functionality.
Attachments
Patch
(29.75 KB, patch)
2012-10-09 06:22 PDT
,
Chris Dumez
kenneth
: review+
Details
Formatted Diff
Diff
Patch for landing
(29.55 KB, patch)
2012-10-09 06:49 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(31.78 KB, patch)
2012-10-09 09:42 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(31.84 KB, patch)
2012-10-09 10:57 PDT
,
Chris Dumez
kenneth
: review+
Details
Formatted Diff
Diff
Patch
(31.84 KB, patch)
2012-10-10 00:11 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(31.86 KB, patch)
2012-10-10 00:48 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2012-10-09 06:22:26 PDT
Created
attachment 167747
[details]
Patch
Kenneth Rohde Christiansen
Comment 2
2012-10-09 06:35:42 PDT
Ok, if it is not too much of a dependency. Maybe we could only build the minibrowser if elementary is actually present to not make it a hard dependency
Kenneth Rohde Christiansen
Comment 3
2012-10-09 06:40:22 PDT
Comment on
attachment 167747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=167747&action=review
> Tools/MiniBrowser/efl/main.c:29 > -static const int DEFAULT_WIDTH = 800; > -static const int DEFAULT_HEIGHT = 600; > +static const int DEFAULT_WIDTH = 1024; > +static const int DEFAULT_HEIGHT = 768;
I think the old size is better, as it is also used by tests (and suggested by W3C as a good testing size)
Chris Dumez
Comment 4
2012-10-09 06:49:26 PDT
Created
attachment 167749
[details]
Patch for landing Take Kenneth's feedback into consideration.
Ryuan Choi
Comment 5
2012-10-09 06:49:48 PDT
Comment on
attachment 167747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=167747&action=review
I am not sure whether it is acceptable for efl side. elementary has dependency of webkit/efl although it is optional. At least, I think that we need to get concensus with some efl folks.
> Tools/MiniBrowser/efl/main.c:371 > + evas_object_focus_set(app_data->webview, EINA_TRUE);
Did you check any regression which is related to focus behavior ? IIRC, focus should be controlled carefully when we change focus between elm_entry and evas_object.
Chris Dumez
Comment 6
2012-10-09 06:55:16 PDT
Comment on
attachment 167749
[details]
Patch for landing I think there is a focus issue I need to investigate.
Chris Dumez
Comment 7
2012-10-09 08:18:59 PDT
(In reply to
comment #5
)
> (From update of
attachment 167747
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=167747&action=review
> > I am not sure whether it is acceptable for efl side. > > elementary has dependency of webkit/efl although it is optional. > > At least, I think that we need to get concensus with some efl folks.
I'm not proposing to use elementary for WebKit EFL itself. However, MiniBrowser is an application (distinct from WebKit EFL) and it makes a lot of sense to use Elementary for it. Elementary brings widgets, layouts, dialogs that will help us a lot make MiniBrowser better. This current patch is merely for porting but the idea is to bring a lot more functionality to MiniBrowser in the near future. I'll ask rakuco to help me with CMake so that Elementary becomes an optional dependency and so that MiniBrowser is not built if Elementary is not installed.
> > > Tools/MiniBrowser/efl/main.c:371 > > + evas_object_focus_set(app_data->webview, EINA_TRUE); > > Did you check any regression which is related to focus behavior ? > IIRC, focus should be controlled carefully when we change focus between elm_entry and evas_object.
Yes. There is indeed an issue with focus. I noticed it afterwards. I have a patch for it locally so I will reupload soon.
Chris Dumez
Comment 8
2012-10-09 09:42:45 PDT
Created
attachment 167775
[details]
Patch - Fix focus issue between view and URL bar - Make Elementary dependency optional and build MiniBrowser only if Elementary is found (Thanks rakuco for the help!) I also sent an email on the mailing list to explain the change.
Chris Dumez
Comment 9
2012-10-09 10:57:27 PDT
Created
attachment 167785
[details]
Patch - Hide the end widget of the URL bar entry
Kenneth Rohde Christiansen
Comment 10
2012-10-09 14:33:47 PDT
Comment on
attachment 167785
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=167785&action=review
Forward/back button coming up? :)
> Tools/MiniBrowser/efl/main.c:323 > +win_del_cb(void *user_data, Evas_Object *window, void *event_info)
why is this called win_del_cb and other callbacks called like on_url_bar_clicked, why not on_win_del?
Ryuan Choi
Comment 11
2012-10-09 16:06:00 PDT
(In reply to
comment #8
)
> Created an attachment (id=167775) [details] > Patch > > - Fix focus issue between view and URL bar > - Make Elementary dependency optional and build MiniBrowser only if Elementary is found (Thanks rakuco for the help!) > > I also sent an email on the mailing list to explain the change.
Now, it looks reasonable to me.
Ryuan Choi
Comment 12
2012-10-09 18:48:50 PDT
Comment on
attachment 167785
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=167785&action=review
> Tools/MiniBrowser/efl/CMakeLists.txt:-4 > - ${TOOLS_DIR}/EWebLauncher/url_bar.c
I think that you should remove ControlTheme dependency also.
> Tools/MiniBrowser/efl/main.c:101 > + evas_object_del(window->webview); > + evas_object_del(window->url_bar); > + evas_object_del(window->bg); > + evas_object_del(window->window); > + evas_object_del(window->vertical_layout);
IIRC, when you remove elm_window, all child objects will be removed.
> Tools/MiniBrowser/efl/main.c:367 > + ewk_view_theme_set(app_data->webview, THEME_DIR"/default.edj");
Nit: How about adding space THEME_DIR "/default.edj" ?
Chris Dumez
Comment 13
2012-10-10 00:11:34 PDT
Created
attachment 167941
[details]
Patch Took into consideration feedback from Kenneth and Ryuan.
Chris Dumez
Comment 14
2012-10-10 00:48:40 PDT
Created
attachment 167945
[details]
Patch - Remove weird focus highlight (only useful for debugging)
WebKit Review Bot
Comment 15
2012-10-10 04:22:25 PDT
Comment on
attachment 167945
[details]
Patch Clearing flags on attachment: 167945 Committed
r130887
: <
http://trac.webkit.org/changeset/130887
>
WebKit Review Bot
Comment 16
2012-10-10 04:22:30 PDT
All reviewed patches have been landed. Closing bug.
Yael
Comment 17
2012-10-14 20:09:40 PDT
After this change, we cannot change the evas engine in use. Filed
https://bugs.webkit.org/show_bug.cgi?id=99286
for that.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug