<?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>61376</bug_id>
          
          <creation_ts>2011-05-24 11:08:45 -0700</creation_ts>
          <short_desc>[Qt] plugin-document-has-focus.html crashes since r86870</short_desc>
          <delta_ts>2012-12-26 07:13:42 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>60722</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Hogan">robert</reporter>
          <assigned_to name="Robert Hogan">robert</assigned_to>
          <cc>kling</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>409008</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-05-24 11:08:45 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/86870

Note: This is with the patch at https://bugs.webkit.org/show_bug.cgi?id=60722 applied. I haven&apos;t confirmed if it crashes without it yet.

$ WebKitBuild/plugindocument-new/Release/bin/DumpRenderTree -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
127.0.0.1 - - [24/May/2011:18:52:19 +0100] &quot;GET /plugins/plugin-document-has-focus.html HTTP/1.1&quot; 200 457
127.0.0.1 - - [24/May/2011:18:52:19 +0100] &quot;GET /plugins/resources/plugin-document-has-focus.pl HTTP/1.1&quot; 200 3
The program &apos;&lt;unknown&gt;&apos; received an X Window System error.
This probably reflects a bug in the program.                                                                                                 
The error was &apos;BadValue (integer parameter out of range for operation)&apos;.                                                                     
  (Details: serial 236 error_code 2 request_code 53 minor_code 0)                                                                            
  (Note to programmers: normally, X errors are reported asynchronously;                                                                      
   that is, you will receive the error a while after causing it.                                                                             
   To debug your program, run it with the --sync command line                                                                                
   option to change this behavior. You can then get a meaningful                                                                             
   backtrace from your debugger if you break on the gdk_x_error() function.)    

This isn&apos;t reproducable in QtTestBrowser so must be specific to DRT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>409077</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-05-24 12:02:33 -0700</bug_when>
    <thetext>It doesn&apos;t happen in trunk - the test just times out. So likely a product of something happening in the patch at bug 60722.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412311</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-05-30 11:47:38 -0700</bug_when>
    <thetext>Got a bt:


(gdb) b gdk_x_error
Function &quot;gdk_x_error&quot; not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
(gdb) run --sync -v -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
Starting program: /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/bin/DumpRenderTree --sync -v -v http://127.0.0.1:8000/plugins/plugin-document-has-focus.html
[Thread debugging using libthread_db enabled]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
[New Thread 0xb6e27b70 (LWP 9350)]
[New Thread 0xb64feb70 (LWP 9351)]
[Thread 0xb64feb70 (LWP 9351) exited]
[New Thread 0xb64feb70 (LWP 9352)]
127.0.0.1 - - [30/May/2011:19:46:21 +0100] &quot;GET /plugins/plugin-document-has-focus.html HTTP/1.1&quot; 200 457
127.0.0.1 - - [30/May/2011:19:46:22 +0100] &quot;GET /plugins/resources/plugin-document-has-focus.pl HTTP/1.1&quot; 200 3

Breakpoint 1, gdk_x_error (display=0x8162680, error=0xbfffd5ec) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c:439
439     /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c: No such file or directory.
        in /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c
(gdb) bt
#0  gdk_x_error (display=0x8162680, error=0xbfffd5ec) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c:439
#1  0x0306a2c9 in _XError (dpy=0x8162680, rep=0x82806d0) at ../../src/XlibInt.c:3103
#2  0x0307099f in process_responses (dpy=0x8162680, wait_for_first_event=&lt;value optimized out&gt;, current_error=0xbfffd71c, 
    current_request=237) at ../../src/xcb_io.c:214
#3  0x03071036 in _XReply (dpy=0x8162680, rep=0xbfffd750, extra=0, discard=1) at ../../src/xcb_io.c:464
#4  0x03064867 in XSync (dpy=0x8162680, discard=0) at ../../src/Sync.c:46
#5  0x01a69092 in QApplication::syncX () at kernel/qapplication_x11.cpp:3004
#6  0x00de2ce5 in WebCore::PluginView::updatePluginWidget() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#7  0x00de3bd3 in WebCore::PluginView::platformStart() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#8  0x00c97909 in WebCore::PluginView::start() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#9  0x00c97bb8 in WebCore::PluginView::startOrAddToUnstartedList() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#10 0x00c97c18 in WebCore::PluginView::init() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#11 0x00de2698 in WebCore::PluginView::setParent(WebCore::ScrollView*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#12 0x00c73bdd in WebCore::ScrollView::addChild(WTF::PassRefPtr&lt;WebCore::Widget&gt;) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#13 0x00d88812 in WebCore::moveWidgetToParentSoon(WebCore::Widget*, WebCore::FrameView*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#14 0x00d88a8a in WebCore::RenderWidget::setWidget(WTF::PassRefPtr&lt;WebCore::Widget&gt;) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#15 0x00d49bcc in WebCore::RenderPart::setWidget(WTF::PassRefPtr&lt;WebCore::Widget&gt;) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#16 0x00b97218 in WebCore::SubframeLoader::loadPlugin(WebCore::HTMLPlugInImageElement*, WebCore::KURL const&amp;, WTF::String const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;, bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#17 0x00b9741c in WebCore::SubframeLoader::requestPlugin(WebCore::HTMLPlugInImageElement*, WebCore::KURL const&amp;, WTF::String const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;, bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#18 0x00b98919 in WebCore::SubframeLoader::requestObject(WebCore::HTMLPlugInImageElement*, WTF::String const&amp;, WTF::AtomicString const&amp;, WTF::String const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;, WTF::Vector&lt;WTF::String, 0u&gt; const&amp;) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#19 0x00a51ded in WebCore::HTMLEmbedElement::updateWidget(WebCore::PluginCreationOption) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#20 0x00bead3b in WebCore::FrameView::updateWidget(WebCore::RenderEmbeddedObject*) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#21 0x00becda3 in WebCore::FrameView::updateWidgets() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#22 0x00bef2eb in WebCore::FrameView::performPostLayoutTasks() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#23 0x00befe51 in WebCore::FrameView::layout(bool) ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4
#24 0x0091ad40 in WebCore::Document::updateLayout() ()
   from /home/robert/Development/WebKit/WebKitBuild/plugindocument-new/Release/lib/libQtWebKit.so.4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>