<?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>87431</bug_id>
          
          <creation_ts>2012-05-24 14:53:32 -0700</creation_ts>
          <short_desc>[Win] LayoutTests/editing/selection/selection-plugin-clear-crash.html crashes in ScrollView::delegatesScrolling</short_desc>
          <delta_ts>2015-01-19 13:03:05 -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>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=135514</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=140455</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, MakingBotsRed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessie Berlin">jberlin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>bdakin</cc>
    
    <cc>bfulgham</cc>
    
    <cc>inferno</cc>
    
    <cc>jberlin</cc>
    
    <cc>kling</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>633261</commentid>
    <comment_count>0</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-05-24 14:53:32 -0700</bug_when>
    <thetext>run-webkit-tests LayoutTests/editing/selection/selection-plugin-clear-crash.html

Unhandled exception at 0x62c595c1 (WebKit.dll) in DumpRenderTree.exe: 0xC0000005: Access violation reading location 0x000000c8.

&gt;	WebKit.dll!WebCore::ScrollView::delegatesScrolling()  Line 125 + 0x11 bytes	C++
 	WebKit.dll!WebCore::ScrollView::contentsToWindow(const WebCore::IntPoint &amp; contentsPoint={...})  Line 739 + 0x8 bytes	C++
 	WebKit.dll!WebCore::PluginView::setNPWindowRect(const WebCore::IntRect &amp; rect={...})  Line 816	C++
 	WebKit.dll!WebCore::PluginView::platformStart()  Line 1020	C++
 	WebKit.dll!WebCore::PluginView::start()  Line 269 + 0x8 bytes	C++
 	WebKit.dll!WebCore::PluginView::startOrAddToUnstartedList()  Line 225	C++
 	WebKit.dll!WebCore::PluginView::init()  Line 202 + 0x8 bytes	C++
 	WebKit.dll!WebCore::PluginView::setParent(WebCore::ScrollView * parent=0x01c51ff8)  Line 770	C++
 	WebKit.dll!WebCore::ScrollView::addChild(WTF::PassRefPtr&lt;WebCore::Widget&gt; prpChild={...})  Line 74 + 0x13 bytes	C++
 	WebKit.dll!WebCore::moveWidgetToParentSoon(WebCore::Widget * child=0x03103828, WebCore::FrameView * parent=0x01c51ff8)  Line 92	C++
 	WebKit.dll!WebCore::RenderWidget::setWidget(WTF::PassRefPtr&lt;WebCore::Widget&gt; widget={...})  Line 219 + 0x18 bytes	C++
 	WebKit.dll!WebCore::RenderPart::setWidget(WTF::PassRefPtr&lt;WebCore::Widget&gt; widget={...})  Line 59	C++
 	WebKit.dll!WebCore::SubframeLoader::loadPlugin(WebCore::HTMLPlugInImageElement * pluginElement=0x01cb94d8, const WebCore::KURL &amp; url={...}, const WTF::String &amp; mimeType={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramNames={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramValues={...}, bool useFallback=false)  Line 385	C++
 	WebKit.dll!WebCore::SubframeLoader::requestPlugin(WebCore::HTMLPlugInImageElement * ownerElement=0x01cb94d8, const WebCore::KURL &amp; url={...}, const WTF::String &amp; mimeType={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramNames={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramValues={...}, bool useFallback=false)  Line 132	C++
 	WebKit.dll!WebCore::SubframeLoader::requestObject(WebCore::HTMLPlugInImageElement * ownerElement=0x01cb94d8, const WTF::String &amp; url={...}, const WTF::AtomicString &amp; frameName={...}, const WTF::String &amp; mimeType={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramNames={...}, const WTF::Vector&lt;WTF::String,0&gt; &amp; paramValues={...})  Line 151 + 0x20 bytes	C++
 	WebKit.dll!WebCore::HTMLEmbedElement::updateWidget(WebCore::PluginCreationOption pluginCreationOption=CreateAnyWidgetType)  Line 176	C++
 	WebKit.dll!WebCore::FrameView::updateWidget(WebCore::RenderEmbeddedObject * object=0x01c1dd44)  Line 2283 + 0x14 bytes	C++
 	WebKit.dll!WebCore::FrameView::updateWidgets()  Line 2317	C++
 	WebKit.dll!WebCore::FrameView::performPostLayoutTasks()  Line 2369 + 0x8 bytes	C++
 	WebKit.dll!WebCore::FrameView::layout(bool allowSubtree=true)  Line 1157	C++
 	WebKit.dll!WebCore::Document::updateLayout()  Line 1850	C++
 	WebKit.dll!WebCore::Document::updateLayoutIgnorePendingStylesheets()  Line 1883	C++
 	WebKit.dll!WebCore::VisiblePosition::canonicalPosition(const WebCore::Position &amp; passedPosition={...})  Line 521	C++
 	WebKit.dll!WebCore::VisiblePosition::init(const WebCore::Position &amp; position={...}, WebCore::EAffinity affinity=DOWNSTREAM)  Line 58 + 0x10 bytes	C++
 	WebKit.dll!WebCore::VisiblePosition::VisiblePosition(const WebCore::Position &amp; pos={...}, WebCore::EAffinity affinity=DOWNSTREAM)  Line 52	C++
 	WebKit.dll!WebCore::DOMSelection::setPosition(WebCore::Node * node=0x030d14c0, int offset=0, int &amp; ec=0)  Line 283 + 0x2b bytes	C++
 	WebKit.dll!WebCore::jsDOMSelectionPrototypeFunctionSetPosition(JSC::ExecState * exec=0x036200e0)  Line 537	C++
 	02480def()	
 	JavaScriptCore.dll!cti_vm_lazyLinkCall()  Line 2265 + 0x1c bytes	C++
 	JavaScriptCore.dll!JSC::JSValue::decode(__int64 encodedJSValue=7882617061044649984)  Line 154 + 0xf bytes	C++
 	0313a04c()	
 	JavaScriptCore.dll!JSC::Interpreter::executeCall(JSC::ExecState * callFrame=0x0255fcb8, JSC::JSObject * function=0x024df400, JSC::CallType callType=CallTypeJS, const JSC::CallData &amp; callData={...}, JSC::JSValue thisValue={...}, const JSC::ArgList &amp; args={...})  Line 1305 + 0x2a bytes	C++
 	JavaScriptCore.dll!JSC::call(JSC::ExecState * exec=0x0255fcb8, JSC::JSValue functionObject={...}, JSC::CallType callType=CallTypeJS, const JSC::CallData &amp; callData={...}, JSC::JSValue thisValue={...}, const JSC::ArgList &amp; args={...})  Line 39 + 0x3c bytes	C++
 	WebKit.dll!WebCore::JSMainThreadExecState::call(JSC::ExecState * exec=0x0255fcb8, JSC::JSValue functionObject={...}, JSC::CallType callType=CallTypeJS, const JSC::CallData &amp; callData={...}, JSC::JSValue thisValue={...}, const JSC::ArgList &amp; args={...})  Line 56 + 0x29 bytes	C++
 	WebKit.dll!WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext * scriptExecutionContext=0x03120004, WebCore::Event * event=0x0317c4b8)  Line 133 + 0x64 bytes	C++
 	WebKit.dll!WebCore::EventTarget::fireEventListeners(WebCore::Event * event=0x0317c4b8, WebCore::EventTargetData * d=0x01c58020, WTF::Vector&lt;WebCore::RegisteredEventListener,1&gt; &amp; entry={...})  Line 231 + 0x22 bytes	C++
 	WebKit.dll!WebCore::EventTarget::fireEventListeners(WebCore::Event * event=0x0317c4b8)  Line 200	C++
 	WebKit.dll!WebCore::DOMWindow::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; prpEvent={...}, WTF::PassRefPtr&lt;WebCore::EventTarget&gt; prpTarget={...})  Line 1656 + 0x11 bytes	C++
 	WebKit.dll!WebCore::DOMWindow::dispatchLoadEvent()  Line 1631	C++
 	WebKit.dll!WebCore::Document::dispatchWindowLoadEvent()  Line 3979	C++
 	WebKit.dll!WebCore::Document::implicitClose()  Line 2442	C++
 	WebKit.dll!WebCore::FrameLoader::checkCallImplicitClose()  Line 762	C++
 	WebKit.dll!WebCore::FrameLoader::checkCompleted()  Line 709	C++
 	WebKit.dll!WebCore::FrameLoader::finishedParsing()  Line 642	C++
 	WebKit.dll!WebCore::Document::finishedParsing()  Line 4729	C++
 	WebKit.dll!WebCore::HTMLTreeBuilder::finished()  Line 2807 + 0x18 bytes	C++
 	WebKit.dll!WebCore::HTMLDocumentParser::end()  Line 382	C++
 	WebKit.dll!WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd()  Line 391	C++
 	WebKit.dll!WebCore::HTMLDocumentParser::prepareToStopParsing()  Line 154	C++
 	WebKit.dll!WebCore::HTMLDocumentParser::attemptToEnd()  Line 402 + 0xf bytes	C++
 	WebKit.dll!WebCore::HTMLDocumentParser::finish()  Line 430	C++
 	WebKit.dll!WebCore::DocumentWriter::end()  Line 241 + 0x1d bytes	C++
 	WebKit.dll!WebCore::DocumentLoader::finishedLoading()  Line 300	C++
 	WebKit.dll!WebCore::MainResourceLoader::didFinishLoading(double finishTime=0.00000000000000000)  Line 545	C++
 	WebKit.dll!WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle * __formal=0x030d6b78, double finishTime=0.00000000000000000)  Line 435 + 0x18 bytes	C++
 	WebKit.dll!WebCore::didFinishLoading(_CFURLConnection * conn=0x030d6e20, const void * clientInfo=0x030d6b78)  Line 301 + 0x26 bytes	C++
 	CFNetwork.dll!URLConnectionClient::_clientDidFinishLoading(URLConnectionClient::ClientConnectionEventQueue * preQ=0x0014e6a8)  Line 1739 + 0x2b bytes	C++
 	CFNetwork.dll!URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo&lt;enum XClientEvent,XClientEventParams&gt; * e=0x01cbd3e4, long count=3)  Line 2256	C++
 	CFNetwork.dll!URLConnectionClient::processEvents()  Line 360 + 0x21 bytes	C++
 	CFNetwork.dll!URLConnectionWndProc(HWND__ * hWnd=0x001a0396, unsigned int message=1231, unsigned int wParam=51211808, long lParam=0)  Line 109	C++
 	user32.dll!75c26238() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]	
 	user32.dll!75c268ea() 	
 	user32.dll!75c26899() 	
 	user32.dll!75c27d31() 	
 	user32.dll!75c27dfa() 	
 	DumpRenderTree.dll!runTest(const std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt; &gt; &amp; testPathOrURL=&quot;C:\cygwin\home\buildbot\OpenSource\LayoutTests\editing\selection\selection-plugin-clear-crash.html&quot;)  Line 1053 + 0xf bytes	C++
 	DumpRenderTree.dll!dllLauncherEntryPoint(int argc=2, const char * * argv=0x01ce2578)  Line 1435 + 0x28 bytes	C++
 	DumpRenderTree.exe!main(int argc=2, const char * * argv=0x01ce2578)  Line 198 + 0x10 bytes	C++
 	DumpRenderTree.exe!__tmainCRTStartup()  Line 597 + 0x17 bytes	C
 	kernel32.dll!75103677() 	
 	ntdll.dll!77989f42() 	
 	ntdll.dll!77989f15()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633263</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-05-24 14:54:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/11528666&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633277</commentid>
    <comment_count>2</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2012-05-24 15:02:19 -0700</bug_when>
    <thetext>Any idea who regressed it. I do write a lot of security tests but this ones looks like a null ptr which someone else regressed it recently ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633302</commentid>
    <comment_count>3</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-05-24 15:33:38 -0700</bug_when>
    <thetext>Unfortunately, the bots are in such an awful state that I have no clue who regressed it. For all I know right now, it could have been crashing since the test was added.

Added to the Windows Skipped list in http://trac.webkit.org/changeset/118435 in order to work towards getting the bots green.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633307</commentid>
    <comment_count>4</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-05-24 15:39:23 -0700</bug_when>
    <thetext>First noticed on r118350</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633313</commentid>
    <comment_count>5</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2012-05-24 15:44:56 -0700</bug_when>
    <thetext>void PluginView::setNPWindowRect(const IntRect&amp; rect)
{
.......
    IntPoint p = static_cast&lt;FrameView*&gt;(parent())-&gt;contentsToWindow(rect.location()); // We are assuming our parent is non-null while crash stack says we are in the process of setting it up

     WebKit.dll!WebCore::PluginView::setParent(WebCore::ScrollView * parent=0x01c51ff8)  Line 770    C++
     WebKit.dll!WebCore::ScrollView::addChild(WTF::PassRefPtr&lt;WebCore::Widget&gt; prpChild={...})  Line 74 + 0x13 bytes    C++

I think you need to cc some folks working on ScrollView/PluginView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>633476</commentid>
    <comment_count>6</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2012-05-24 19:23:00 -0700</bug_when>
    <thetext>This also affects plugins/destroy-during-npp-new-object-with-fallback-content.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061625</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-15 13:39:48 -0800</bug_when>
    <thetext>I think this is another flavor of Bug 135514 (see also the stack trace for Bug 140455).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1062475</commentid>
    <comment_count>8</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-19 13:03:05 -0800</bug_when>
    <thetext>This isn&apos;t happening anymore after resolving Bug 135514. Closing as resolved; please reopen if this recurs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>