[Webkit-unassigned] [Bug 120559] New: [Forms:color] ColorInputType::didChooseColor should set sanitize value in element.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 31 06:18:58 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=120559
Summary: [Forms:color] ColorInputType::didChooseColor should
set sanitize value in element.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: santosh.ma at samsung.com
When color is selected from ColorPicker , the ColorInputType::didChooseColor try to set original selected value in element.
Instead we should set sanitized value.
The following crash is observed when we set unsanitized color value having alpha component.
ASSERTION FAILED: value == sanitizeValue(value) || sanitizeValue(value).isEmpty()
/home/santosh/projects/WebKit/Source/WebCore/html/HTMLInputElement.cpp(1092) : void WebCore::HTMLInputElement::setValueFromRenderer(const WTF::String&)
1 0xb613c1f0 WTFCrash
2 0xb199df91 WebCore::HTMLInputElement::setValueFromRenderer(WTF::String const&)
3 0xb194dd12 WebCore::ColorInputType::didChooseColor(WebCore::Color const&)
4 0xb71d61f5 WebKit::WebColorChooser::didChooseColor(WebCore::Color const&)
5 0xb72179da WebKit::WebPage::didChooseColor(WebCore::Color const&)
6 0xb72d9bdc void CoreIPC::callMemberFunction<WebKit::WebPage, void (WebKit::WebPage::*)(WebCore::Color const&), WebCore::Color>(CoreIPC::Arguments1<WebCore::Color> const&, WebKit::WebPage*, void (WebKit::WebPage::*)(WebCore::Color const&))
7 0xb72d6dd7 void CoreIPC::handleMessage<Messages::WebPage::DidChooseColor, WebKit::WebPage, void (WebKit::WebPage::*)(WebCore::Color const&)>(CoreIPC::MessageDecoder&, WebKit::WebPage*, void (WebKit::WebPage::*)(WebCore::Color const&))
8 0xb72d346d WebKit::WebPage::didReceiveWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&)
9 0xb721887d WebKit::WebPage::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&)
10 0xb6fd00ce CoreIPC::MessageReceiverMap::dispatchMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&)
11 0xb713ec7f WebKit::WebProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageDecoder&)
12 0xb6fbe098 CoreIPC::Connection::dispatchMessage(CoreIPC::MessageDecoder&)
13 0xb6fbe166 CoreIPC::Connection::dispatchMessage(WTF::PassOwnPtr<CoreIPC::MessageDecoder>)
14 0xb6fbe335 CoreIPC::Connection::dispatchOneMessage()
15 0xb6fcf470 WTF::FunctionWrapper<void (CoreIPC::Connection::*)()>::operator()(CoreIPC::Connection*)
16 0xb6fcf02a WTF::BoundFunctionImpl<WTF::FunctionWrapper<void (CoreIPC::Connection::*)()>, void (CoreIPC::Connection*)>::operator()()
17 0xb71f441d WTF::Function<void ()>::operator()() const
18 0xb1d8e4ed WebCore::RunLoop::performWork()
19 0xb28c9dd4 WebCore::RunLoop::wakeUpEvent(void*, void*, unsigned int)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list