<?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>159310</bug_id>
          
          <creation_ts>2016-06-30 13:23:34 -0700</creation_ts>
          <short_desc>HTMLAttachment elements don&apos;t receive clicks after the first on iOS</short_desc>
          <delta_ts>2016-07-05 15:24:56 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>iOS 9.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Enrica Casucci">enrica</reporter>
          <assigned_to name="Enrica Casucci">enrica</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1206824</commentid>
    <comment_count>0</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2016-06-30 13:23:34 -0700</bug_when>
    <thetext>The first click on the element selects it. On iOS we prevent clicks to go through on a selected element, in order to toggle the selection menu.

rdar://problem/25776940</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206826</commentid>
    <comment_count>1</comment_count>
      <attachid>282458</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2016-06-30 13:28:38 -0700</bug_when>
    <thetext>Created attachment 282458
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206827</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2016-06-30 13:29:38 -0700</bug_when>
    <thetext>Is this testable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206828</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-06-30 13:30:14 -0700</bug_when>
    <thetext>Attachment 282458 did not pass style-queue:


ERROR: Source/WebCore/html/HTMLAttachmentElement.h:55:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206884</commentid>
    <comment_count>4</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2016-06-30 15:21:23 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Is this testable?

Actually I think so, even without using gestures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206936</commentid>
    <comment_count>5</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2016-06-30 16:45:15 -0700</bug_when>
    <thetext>We already have a test that checks the selection of the attachment element. I just need to change it to reliably testing on iOS too. I&apos;ll add it to the patch before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1207957</commentid>
    <comment_count>6</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2016-07-05 15:24:56 -0700</bug_when>
    <thetext>Updated test to correctly detect new behavior.

Committed revision 202835.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>282458</attachid>
            <date>2016-06-30 13:28:38 -0700</date>
            <delta_ts>2016-06-30 13:29:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>clickonlyonceonattachments.txt</filename>
            <type>text/plain</type>
            <size>1417</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIwMjY5NikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE2LTA2LTMwICBFbnJpY2Eg
Q2FzdWNjaSAgPGVucmljYUBhcHBsZS5jb20+CisKKyAgICAgICAgSFRNTEF0dGFjaG1lbnQgZWxl
bWVudHMgZG9uJ3QgcmVjZWl2ZSBjbGlja3MgYWZ0ZXIgdGhlIGZpcnN0IG9uIGlPUy4KKyAgICAg
ICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE1OTMxMAorICAgICAg
ICByZGFyOi8vcHJvYmxlbS8yNTc3Njk0MAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIHNob3VsZFNlbGVjdE9uTW91c2VEb3duKCkgbm93IHJldHVybnMg
ZmFsc2Ugb24gaU9TLgorCisgICAgICAgICogaHRtbC9IVE1MQXR0YWNobWVudEVsZW1lbnQuaDoK
KwogMjAxNi0wNi0zMCAgQW50b2luZSBRdWludCAgPGdyYW91dHNAYXBwbGUuY29tPgogCiAgICAg
ICAgIFtpT1NdIE1lZGlhIGNvbnRyb2xzIGFyZSB0b28gY3JhbXBlZCB3aXRoIHNtYWxsIHZpZGVv
CkluZGV4OiBTb3VyY2UvV2ViQ29yZS9odG1sL0hUTUxBdHRhY2htZW50RWxlbWVudC5oCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIFNvdXJjZS9XZWJDb3JlL2h0bWwvSFRNTEF0dGFjaG1lbnRFbGVtZW50LmgJKHJl
dmlzaW9uIDIwMjQ5MSkKKysrIFNvdXJjZS9XZWJDb3JlL2h0bWwvSFRNTEF0dGFjaG1lbnRFbGVt
ZW50LmgJKHdvcmtpbmcgY29weSkKQEAgLTUyLDcgKzUyLDEzIEBAIHByaXZhdGU6CiAKICAgICBS
ZW5kZXJQdHI8UmVuZGVyRWxlbWVudD4gY3JlYXRlRWxlbWVudFJlbmRlcmVyKFJlbmRlclN0eWxl
JiYsIGNvbnN0IFJlbmRlclRyZWVQb3NpdGlvbiYpIG92ZXJyaWRlOwogCi0gICAgYm9vbCBzaG91
bGRTZWxlY3RPbk1vdXNlRG93bigpIG92ZXJyaWRlIHsgcmV0dXJuIHRydWU7IH0KKyAgICBib29s
IHNob3VsZFNlbGVjdE9uTW91c2VEb3duKCkgb3ZlcnJpZGUgeworI2lmIFBMQVRGT1JNKElPUykK
KyAgICAgICAgcmV0dXJuIGZhbHNlOworI2Vsc2UKKyAgICAgICAgcmV0dXJuIHRydWU7CisjZW5k
aWYKKyAgICB9CiAgICAgYm9vbCBjYW5Db250YWluUmFuZ2VFbmRQb2ludCgpIGNvbnN0IG92ZXJy
aWRlIHsgcmV0dXJuIGZhbHNlOyB9CiAgICAgdm9pZCBwYXJzZUF0dHJpYnV0ZShjb25zdCBRdWFs
aWZpZWROYW1lJiwgY29uc3QgQXRvbWljU3RyaW5nJikgb3ZlcnJpZGU7CiAgICAgCg==
</data>
<flag name="review"
          id="306265"
          type_id="1"
          status="+"
          setter="thorton"
    />
          </attachment>
      

    </bug>

</bugzilla>