RESOLVED FIXED 64683
[EFL] Method ewk_context_menu_destroy returns EINA_FALSE if CONTEXT_MENUS is disabled
https://bugs.webkit.org/show_bug.cgi?id=64683
Summary [EFL] Method ewk_context_menu_destroy returns EINA_FALSE if CONTEXT_MENUS is ...
Grzegorz Czajkowski
Reported 2011-07-18 02:16:33 PDT
If CONTEXT_MENUS macro is disabled ewk_context_menu_destroy does nothing so it returns EINA_FALSE and omits NULL checking.
Attachments
proposed patch (1.45 KB, patch)
2011-07-18 02:17 PDT, Grzegorz Czajkowski
no flags
ChangeLog fix (1.44 KB, patch)
2011-07-18 23:49 PDT, Grzegorz Czajkowski
no flags
ChangeLog fix (1.44 KB, patch)
2011-07-18 23:55 PDT, Grzegorz Czajkowski
no flags
Grzegorz Czajkowski
Comment 1 2011-07-18 02:17:46 PDT
Created attachment 101139 [details] proposed patch
Raphael Kubo da Costa (:rakuco)
Comment 2 2011-07-18 05:57:17 PDT
The ChangeLog entry sounds a bit confusing to me -- the one-line description looks like the method _currently_ does what is being described, not that this is what is being changed. I see that you are submitting a few separate patches related to context menus. Do you plan on adding these #if checks to the other functions in ewk_contextmenu.cpp?
Grzegorz Czajkowski
Comment 3 2011-07-18 07:46:38 PDT
(In reply to comment #2) > The ChangeLog entry sounds a bit confusing to me -- the one-line description looks like the method _currently_ does what is being described, not that this is what is being changed. > Ok, I will fix ChangeLog. > I see that you are submitting a few separate patches related to context menus. Do you plan on adding these #if checks to the other functions in ewk_contextmenu.cpp? I've sent two patches related to the context menu. First fixes build break, second one changes returned value. There aren't more references to WebCore's context menu object (controller) by API that are not surrounded by CONTEXT_MENUS macro. I don't think so others methods should check this macro. What is your opinion on that?
Raphael Kubo da Costa (:rakuco)
Comment 4 2011-07-18 08:35:51 PDT
(In reply to comment #3) > > I see that you are submitting a few separate patches related to context menus. Do you plan on adding these #if checks to the other functions in ewk_contextmenu.cpp? > > I've sent two patches related to the context menu. First fixes build break, second one changes returned value. > There aren't more references to WebCore's context menu object (controller) by API that are not surrounded by CONTEXT_MENUS macro. I don't think so others methods should check this macro. What is your opinion on that? Let's not fix what's not broken ;) If the rest works, I think it's OK to leave it as it is.
Grzegorz Czajkowski
Comment 5 2011-07-18 23:49:19 PDT
Created attachment 101277 [details] ChangeLog fix
WebKit Review Bot
Comment 6 2011-07-18 23:52:07 PDT
Attachment 101277 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit/efl/ChangeLog', u'Source/Web..." exit_code: 1 Source/WebKit/efl/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Grzegorz Czajkowski
Comment 7 2011-07-18 23:55:17 PDT
Created attachment 101278 [details] ChangeLog fix Incorrect URL in the previous patch.
Gyuyoung Kim
Comment 8 2011-07-19 00:18:20 PDT
LGTM.
Raphael Kubo da Costa (:rakuco)
Comment 9 2011-07-19 06:02:17 PDT
r+ from my side too.
WebKit Review Bot
Comment 10 2011-07-25 00:09:50 PDT
Comment on attachment 101278 [details] ChangeLog fix Clearing flags on attachment: 101278 Committed r91658: <http://trac.webkit.org/changeset/91658>
WebKit Review Bot
Comment 11 2011-07-25 00:09:55 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.