Bug 96070 - [EFL][WK2] Minibrowser crashes on right mouse click
Summary: [EFL][WK2] Minibrowser crashes on right mouse click
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 95955
  Show dependency treegraph
 
Reported: 2012-09-06 22:47 PDT by Jinwoo Song
Modified: 2012-09-08 22:55 PDT (History)
5 users (show)

See Also:


Attachments
patch (1.27 KB, patch)
2012-09-06 22:48 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch (1.27 KB, patch)
2012-09-07 00:42 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch. (1.27 KB, patch)
2012-09-07 00:50 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff
patch (1.28 KB, patch)
2012-09-07 04:41 PDT, Jinwoo Song
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jinwoo Song 2012-09-06 22:47:42 PDT
Make eary return if the PageClient does not create a ContextMenuProxy.
Comment 1 Jinwoo Song 2012-09-06 22:48:09 PDT
Created attachment 162674 [details]
patch
Comment 2 Gyuyoung Kim 2012-09-06 23:50:36 PDT
Comment on attachment 162674 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=162674&action=review

> Source/WebKit2/ChangeLog:8
> +        Make eary return if the PageClient does not create a ContextMenuProxy.

eary -> early ?
Comment 3 Gyuyoung Kim 2012-09-07 00:02:56 PDT
Comment on attachment 162674 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=162674&action=review

Basically, I think EFL port should support createContextMenuProxy() as well.

> Source/WebKit2/UIProcess/WebPageProxy.cpp:2965
>  

Unneeded line.
Comment 4 Jinwoo Song 2012-09-07 00:42:48 PDT
Created attachment 162692 [details]
patch
Comment 5 Jinwoo Song 2012-09-07 00:48:18 PDT
(In reply to comment #3)
> (From update of attachment 162674 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=162674&action=review
> 
> Basically, I think EFL port should support createContextMenuProxy() as well.
> 
I agree with you. :) 
> > Source/WebKit2/UIProcess/WebPageProxy.cpp:2965
> >  
> 
> Unneeded line.
Remove empty line.
Comment 6 Jinwoo Song 2012-09-07 00:48:29 PDT
(In reply to comment #2)
> (From update of attachment 162674 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=162674&action=review
> 
> > Source/WebKit2/ChangeLog:8
> > +        Make eary return if the PageClient does not create a ContextMenuProxy.
> 
> eary -> early ?
fixed.
Comment 7 Jinwoo Song 2012-09-07 00:50:14 PDT
Created attachment 162695 [details]
patch.

wrong file was attached.
Comment 8 Jinwoo Song 2012-09-07 04:41:21 PDT
Created attachment 162743 [details]
patch
Comment 9 Raphael Kubo da Costa (:rakuco) 2012-09-07 06:51:25 PDT
Shouldn`t a context menu actually get created on right click?
Comment 10 Jinwoo Song 2012-09-07 19:40:59 PDT
(In reply to comment #9)
> Shouldn`t a context menu actually get created on right click?
Yes, a context menu should be created on right click, but as the EFL has no implementation yet and it caused the crash.

PassRefPtr<WebContextMenuProxy> PageClientImpl::createContextMenuProxy(WebPageProxy*)
{
    notImplemented();
    return 0;
}
AFAIK, Gyuyoung will implement this. 

Did the answer fit to your question?
Comment 11 WebKit Review Bot 2012-09-08 03:57:20 PDT
Comment on attachment 162743 [details]
patch

Clearing flags on attachment: 162743

Committed r127968: <http://trac.webkit.org/changeset/127968>
Comment 12 WebKit Review Bot 2012-09-08 03:57:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 13 Raphael Kubo da Costa (:rakuco) 2012-09-08 05:12:25 PDT
Well, since the context menu implementation has not been written yet, this looks like a fix in the wrong place -- why bother trying to create a context menu in the first place? Now the check might end up being forgotten and lose its need once Gyuyoung adds his context menu implementation.
Comment 14 Jinwoo Song 2012-09-08 22:55:30 PDT
(In reply to comment #13)
> Well, since the context menu implementation has not been written yet, this looks like a fix in the wrong place -- why bother trying to create a context menu in the first place? Now the check might end up being forgotten and lose its need once Gyuyoung adds his context menu implementation.

IMO, In the case that a port did not implement the ContextMenuProxy, this defensive code is worth well enough. Surely if EFL implement the ContextMenuProxy, it is no more necessary but it may care the other ports as well. 
The similar code have been landed recently for the PopupMenuProxy. 
http://trac.webkit.org/changeset/127745