<?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>132294</bug_id>
          
          <creation_ts>2014-04-28 12:07:21 -0700</creation_ts>
          <short_desc>Don&apos;t immediately snapshot plugin to allow for proper dominant plugin detection.</short_desc>
          <delta_ts>2014-04-29 15:15:36 -0700</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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>131871</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>roger_fong</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1004684</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-04-28 12:07:21 -0700</bug_when>
    <thetext>Currently we immediately set the display state to displaying snapshot if the max number of snapshot retries is 0.
However, this causes timing problems. Namely, it causes hit testing to fail because the hit test needs to happen with the original plugin element.
If we instead call beginSnapshottingRunningPlugin, we allow the page some time to perform the hit test with the plugin element before snapshotting.

I&apos;ve only seen this affect layout tests, where we explicitly set the max number of snapshot retries to 0.
This fix will allow us to enable snapshotting tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004685</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-04-28 12:07:58 -0700</bug_when>
    <thetext>&lt;rdar://problem/16745679&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004690</commentid>
    <comment_count>2</comment_count>
      <attachid>230316</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-04-28 12:21:09 -0700</bug_when>
    <thetext>Created attachment 230316
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1005158</commentid>
    <comment_count>3</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2014-04-29 15:15:36 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/167961</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>230316</attachid>
            <date>2014-04-28 12:21:09 -0700</date>
            <delta_ts>2014-04-29 05:18:03 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>1570</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2Nzg2OCkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE0LTA0LTI3ICBSb2dlciBG
b25nICA8cm9nZXJfZm9uZ0BhcHBsZS5jb20+CisKKyAgICAgICAgRG9uJ3QgaW1tZWRpYXRlbHkg
c25hcHNob3QgcGx1Z2luIHRvIGFsbG93IGZvciBwc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cHAJKHdvcmtpbmcgY29weSkK
QEAgLTYyMiw3ICs2MjIsNyBAQCB2b2lkIFBsdWdpblZpZXc6OmRpZEluaXRpYWxpemVQbHVnaW4o
KQogICAgICAgICAgICAgbV9wbHVnaW5FbGVtZW50LT5zZXROZWVkc1N0eWxlUmVjYWxjKFN5bnRo
ZXRpY1N0eWxlQ2hhbmdlKTsKICAgICAgICAgfQogICAgICAgICBpZiAoZnJhbWUoKSAmJiAhZnJh
bWUoKS0+c2V0dGluZ3MoKS5tYXhpbXVtUGx1Z0luU25hcHNob3RBdHRlbXB0cygpKSB7Ci0gICAg
ICAgICAgICBtX3BsdWdpbkVsZW1lbnQtPnNldERpc3BsYXlTdGF0ZShIVE1MUGx1Z0luRWxlbWVu
dDo6RGlzcGxheWluZ1NuYXBzaG90KTsKKyAgICAgICAgICAgIGJlZ2luU25hcHNob3R0aW5nUnVu
bmluZ1BsdWdpbigpOwogICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICB9CiAgICAgICAgIG1f
cGx1Z2luU25hcHNob3RUaW1lci5yZXN0YXJ0KCk7Cg==
</data>
<flag name="review"
          id="254699"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>