Bug 120572

Summary: ASSERT if port don't have color picker implemenation by inheriting webcolorpicker
Product: WebKit Reporter: Santosh Mahto <santosh.ma>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review-

Description Santosh Mahto 2013-08-31 22:26:16 PDT
Crash happens if port don't have implementation by inheriting WebColorPicker as happening in EFL port.
Comment 1 Santosh Mahto 2013-08-31 22:29:50 PDT
Created attachment 210228 [details]
Patch
Comment 2 Darin Adler 2013-09-01 07:16:33 PDT
Comment on attachment 210228 [details]
Patch

I don’t understand the point of this.
Comment 3 Darin Adler 2013-09-01 07:17:31 PDT
Comment on attachment 210228 [details]
Patch

This is not a useful assertion. Don’t turn on INPUT_TYPE_COLOR without implementing createColorPicker. An assertion is not a helpful way to go further with this. The null dereference happens on the next line of code!
Comment 4 Santosh Mahto 2013-09-01 07:40:57 PDT
(In reply to comment #3)
> (From update of attachment 210228 [details])
> This is not a useful assertion. Don’t turn on INPUT_TYPE_COLOR without implementing createColorPicker. An assertion is not a helpful way to go further with this. The null dereference happens on the next line of code!

 WK2 ports implement color picker as two way.
1. inherit WebColorPicker  --> 

2. register PageUIClient Callback   --> Currently EFL port has this and m_colorPicke return null and its crashing now. [EFL]https://bugs.webkit.org/show_bug.cgi?id=119120 try to move the implementaion accoroding to first procedure.

I had a thought 
we should put a assert  to have m_colorpicker at that point.
OR we can avoid crash by having null check
OR wait for 119120 to land 

What is your view??