<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>128775</bug_id>
          
          <creation_ts>2014-02-13 16:22:16 -0800</creation_ts>
          <short_desc>Assertion on google.com in NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator seen with WinCairo</short_desc>
          <delta_ts>2014-02-19 19:30:30 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 8</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">alex.christensen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>peavo</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>980522</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2014-02-13 16:22:16 -0800</bug_when>
    <thetext>The ASSERT_WITH_MESSAGE in initializeIterator in TextBreakIterator.cpp fails when an XmlHttpRequest is sent from a webpage like typing the first character into google.com.

Here&apos;s the stack.  I&apos;m not sure what&apos;s going on.

 	WTF.dll!WTFCrash() Line 333	C++
&gt;	WebKit.dll!WebCore::initializeIterator(UBreakIteratorType type, const char * locale) Line 41	C++
 	WebKit.dll!WebCore::NonSharedCharacterBreakIterator::NonSharedCharacterBreakIterator(WTF::StringView string) Line 295	C++
 	WebKit.dll!WebCore::numCharactersInGraphemeClusters(const WTF::String &amp; s, unsigned int numGraphemeClusters) Line 390	C++
 	WebKit.dll!WebCore::limitLength(const WTF::String &amp; string, int maxLength) Line 354	C++
 	WebKit.dll!WebCore::TextFieldInputType::handleBeforeTextInsertedEvent(WebCore::BeforeTextInsertedEvent * event) Line 402	C++
 	WebKit.dll!WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event * evt) Line 1177	C++
 	WebKit.dll!WebCore::TextControlInnerTextElement::defaultEventHandler(WebCore::Event * event) Line 109	C++
 	WebKit.dll!WebCore::callDefaultEventHandlersInTheBubblingOrder(WebCore::Event &amp; event, const WebCore::EventPath &amp; path) Line 234	C++
 	WebKit.dll!WebCore::EventDispatcher::dispatchEvent(WebCore::Node * origin, WTF::PassRefPtr&lt;WebCore::Event&gt; prpEvent) Line 339	C++
 	WebKit.dll!WebCore::Node::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; event) Line 2037	C++
 	WebKit.dll!WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; event, int &amp; ec) Line 152	C++
 	WebKit.dll!WebCore::dispatchBeforeTextInsertedEvent(const WTF::String &amp; text, const WebCore::VisibleSelection &amp; selectionForInsertion, bool insertionIsForUpdatingComposition) Line 68	C++
 	WebKit.dll!WebCore::TypingCommand::insertText(WebCore::Document &amp; document, const WTF::String &amp; text, const WebCore::VisibleSelection &amp; selectionForInsertion, unsigned int options, WebCore::TypingCommand::TextCompositionType compositionType) Line 168	C++
 	WebKit.dll!WebCore::Editor::insertTextWithoutSendingTextEvent(const WTF::String &amp; text, bool selectInsertedText, WebCore::TextEvent * triggeringEvent) Line 1220	C++
 	WebKit.dll!WebCore::Editor::handleTextEvent(WebCore::TextEvent * event) Line 283	C++
 	WebKit.dll!WebCore::EventHandler::defaultTextInputEventHandler(WebCore::TextEvent * event) Line 3312	C++
 	WebKit.dll!WebCore::Node::defaultEventHandler(WebCore::Event * event) Line 2120	C++
 	WebKit.dll!WebCore::HTMLTextFormControlElement::defaultEventHandler(WebCore::Event * event) Line 114	C++
 	WebKit.dll!WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event * evt) Line 1190	C++
 	WebKit.dll!WebCore::callDefaultEventHandlersInTheBubblingOrder(WebCore::Event &amp; event, const WebCore::EventPath &amp; path) Line 234	C++
 	WebKit.dll!WebCore::EventDispatcher::dispatchEvent(WebCore::Node * origin, WTF::PassRefPtr&lt;WebCore::Event&gt; prpEvent) Line 339	C++
 	WebKit.dll!WebCore::Node::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; event) Line 2037	C++
 	WebKit.dll!WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; event, int &amp; ec) Line 152	C++
 	WebKit.dll!WebCore::EventHandler::handleTextInputEvent(const WTF::String &amp; text, WebCore::Event * underlyingEvent, WebCore::TextEventInputType inputType) Line 3277	C++
 	WebKit.dll!WebCore::Editor::insertText(const WTF::String &amp; text, WebCore::Event * triggeringEvent) Line 1167	C++
 	WebKit.dll!WebView::handleEditingKeyboardEvent(WebCore::KeyboardEvent * evt) Line 2025	C++
 	WebKit.dll!WebEditorClient::handleKeyboardEvent(WebCore::KeyboardEvent * evt) Line 628	C++
 	WebKit.dll!WebCore::Editor::handleKeyboardEvent(WebCore::KeyboardEvent * event) Line 244	C++
 	WebKit.dll!WebCore::EventHandler::defaultKeyboardEventHandler(WebCore::KeyboardEvent * event) Line 3021	C++
 	WebKit.dll!WebCore::Node::defaultEventHandler(WebCore::Event * event) Line 2105	C++
 	WebKit.dll!WebCore::HTMLTextFormControlElement::defaultEventHandler(WebCore::Event * event) Line 114	C++
 	WebKit.dll!WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event * evt) Line 1129	C++
 	WebKit.dll!WebCore::callDefaultEventHandlersInTheBubblingOrder(WebCore::Event &amp; event, const WebCore::EventPath &amp; path) Line 234	C++
 	WebKit.dll!WebCore::EventDispatcher::dispatchEvent(WebCore::Node * origin, WTF::PassRefPtr&lt;WebCore::Event&gt; prpEvent) Line 339	C++
 	WebKit.dll!WebCore::Element::dispatchKeyEvent(const WebCore::PlatformKeyboardEvent &amp; platformEvent) Line 284	C++
 	WebKit.dll!WebCore::EventHandler::keyEvent(const WebCore::PlatformKeyboardEvent &amp; initialKeyEvent) Line 2865	C++
 	WebKit.dll!WebView::keyPress(unsigned int charCode, long keyData, bool systemKeyDown) Line 2115	C++
 	WebKit.dll!WebView::WebViewWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam) Line 2277	C++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980523</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-02-13 16:25:42 -0800</bug_when>
    <thetext>I&apos;ve been tracking down some bugs in Windows code where it assumes it will always be handed 16-bit strings. Recent work has turned on a lot of 8-bit code paths, and I&apos;ll bet we have a similar situation here.

I&apos;ll try to get to it shortly. But for now, look for &quot;data16&quot; or &quot;character16&quot; calls being made. There might be assertions firing when it discovers that the string is an &quot;is8Bit&quot; type string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980848</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-14 09:59:16 -0800</bug_when>
    <thetext>Perhaps a regression from &lt;http://trac.webkit.org/changeset/162184&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980937</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2014-02-14 13:13:16 -0800</bug_when>
    <thetext>The call to event-&gt;defaultHandled() in EventHandler::handleTextInputEvent calls EventTarget::dispatchEvent with an Event of NULL and an ExceptionCode of -858993460.  Everything before this call seems ok, everything after this call seems to be dealing with invalid data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>982645</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2014-02-19 19:30:30 -0800</bug_when>
    <thetext>The issue was that the call to ubrk_open was returning null.  I was wondering why nobody else was running into such a major problem.  I isolated it to my build of icu.  Brent&apos;s build works fine.  This is not a bug in WebKit or in WinCairoRequirements.  Just on my local experimental icu build.  Sorry for the fuss.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>