<?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>90348</bug_id>
          
          <creation_ts>2012-07-01 07:52:55 -0700</creation_ts>
          <short_desc>-webkit-user-select:none does not work as intended with select All( Ctrl + A)</short_desc>
          <delta_ts>2012-07-02 11:28:31 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>80159</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sanjay">sanjaylgb</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>rniwa</cc>
    
    <cc>sanjaylgb</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>661133</commentid>
    <comment_count>0</comment_count>
    <who name="Sanjay">sanjaylgb</who>
    <bug_when>2012-07-01 07:52:55 -0700</bug_when>
    <thetext>Consider below code. The 2nd div element should not be selected, but it does get selected when i give Select All (Ctrl + A) on the browser window. 
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;&lt;/title&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div id=&quot;first&quot;&gt;
            First
        &lt;/div&gt;
        
        &lt;div id=&quot;second&quot;  style=&quot;-webkit-user-select:none;-moz-user-select:none&quot;&gt;
            Second.. Cannot be selected.
        &lt;/div&gt;
        
        &lt;div id=&quot;third&quot;&gt;
            Third
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;

If you remove the third div element, the second one is not selected because there is no select-able element in DOM after the 2nd one which is not select-able

I tried to apply -moz-user-select to test in firefox where it works just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661134</commentid>
    <comment_count>1</comment_count>
    <who name="Sanjay">sanjaylgb</who>
    <bug_when>2012-07-01 08:58:40 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Consider below code. The 2nd div element should not be selected, but it does get selected when i give Select All (Ctrl + A) on the browser window. I can confirm this by giving Copy (Ctrl + c) followed by select all (Ctrl+A) and pasting the content in a text file. 
&gt; &lt;!DOCTYPE html&gt;
&gt; &lt;html&gt;
&gt;     &lt;head&gt;
&gt;         &lt;title&gt;&lt;/title&gt;
&gt;         &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
&gt;     &lt;/head&gt;
&gt;     &lt;body&gt;
&gt;         &lt;div id=&quot;first&quot;&gt;
&gt;             First
&gt;         &lt;/div&gt;
&gt; 
&gt;         &lt;div id=&quot;second&quot;  style=&quot;-webkit-user-select:none;-moz-user-select:none&quot;&gt;
&gt;             Second.. Cannot be selected.
&gt;         &lt;/div&gt;
&gt; 
&gt;         &lt;div id=&quot;third&quot;&gt;
&gt;             Third
&gt;         &lt;/div&gt;
&gt;     &lt;/body&gt;
&gt; &lt;/html&gt;
&gt; 
&gt; If you remove the third div element, the second one is not selected because there is no select-able element in DOM after the 2nd one which is not select-able
&gt; 
&gt; I tried to apply -moz-user-select to test in firefox where it works just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661135</commentid>
    <comment_count>2</comment_count>
    <who name="Sanjay">sanjaylgb</who>
    <bug_when>2012-07-01 09:00:10 -0700</bug_when>
    <thetext>Just to clarify.. the problem here is that the 2nd div gets copied when we select all and then copy the content to the clipboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661143</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-07-01 10:57:57 -0700</bug_when>
    <thetext>This is correct behavior per discussion in the original bug.

*** This bug has been marked as a duplicate of bug 80159 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661339</commentid>
    <comment_count>4</comment_count>
    <who name="Sanjay">sanjaylgb</who>
    <bug_when>2012-07-02 02:18:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; This is correct behavior per discussion in the original bug.
&gt; 
&gt; *** This bug has been marked as a duplicate of bug 80159 ***

The original bug states that Firefox works same as Safari/Chrome. But that is not true. You can test out the above code on all the three browsers. On Safari/Chrome, the non - select-able div gets copied while it does not get copied in Firefox. The behavior is clearly different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>661635</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-07-02 11:28:31 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; This is correct behavior per discussion in the original bug.
&gt; &gt; 
&gt; &gt; *** This bug has been marked as a duplicate of bug 80159 ***
&gt; 
&gt; The original bug states that Firefox works same as Safari/Chrome. But that is not true. You can test out the above code on all the three browsers. On Safari/Chrome, the non - select-able div gets copied while it does not get copied in Firefox. The behavior is clearly different.

I&apos;ve re-opened the original bug so please continue the discussion there.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>