<?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>50116</bug_id>
          
          <creation_ts>2010-11-26 10:03:01 -0800</creation_ts>
          <short_desc>On platforms other than Mac, right clicking anywhere discards the selection</short_desc>
          <delta_ts>2014-02-03 03:50:50 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>23351</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierre Rossi">pierre.rossi</reporter>
          <assigned_to name="Pierre Rossi">pierre.rossi</assigned_to>
          <cc>ap</cc>
    
    <cc>avi</cc>
    
    <cc>benjamin</cc>
    
    <cc>dglazkov</cc>
    
    <cc>kalman</cc>
    
    <cc>rniwa</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>victor.fernandez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>314056</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-11-26 10:03:01 -0800</bug_when>
    <thetext>This doesn&apos;t really make sense for right click for instance since one can&apos;t really select anything before a context menu pops up, and the editing behavior was fixed so that it doesn&apos;t even select the text underneath the cursor on right click now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314057</commentid>
    <comment_count>1</comment_count>
      <attachid>74945</attachid>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-11-26 10:07:37 -0800</bug_when>
    <thetext>Created attachment 74945
change proposal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314106</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-11-26 17:55:20 -0800</bug_when>
    <thetext>I&apos;m primarily a Mac user, but I think that having a selection that&apos;s far away from the click point (and perhaps even invisible due to scrolling) would be super confusing. You won&apos;t know what will be copied when selecting Copy from the context menu.

+    const bool shouldReplaceSelection = (m_frame-&gt;editor()-&gt;behavior().shouldSelectOnContextualMenuClick()
+                                         || event.event().button() == LeftButton);

This should be on one line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315612</commentid>
    <comment_count>3</comment_count>
      <attachid>74945</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-01 06:03:54 -0800</bug_when>
    <thetext>Comment on attachment 74945
change proposal

I looks reasonable, but it needs a layout test.

NOTE: It has to be tested through all editing behaviors code paths: mac, win and unix.

Please also fix what ap commented.

r- due to the lack of tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315655</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-01 08:16:54 -0800</bug_when>
    <thetext>My comment amounted to resolving the bug as INVALID, in fact. Am I missing something that makes the proposed behavior good for users?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315656</commentid>
    <comment_count>5</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-01 08:22:11 -0800</bug_when>
    <thetext>@Alexey: At the moment, the selection is discarded on right click, it doesn&apos;t select anything new. I can&apos;t think of any case where that would be much better than leaving it untouched. Besides, this doesn&apos;t feel very consistent with other applications&apos; behavior on Linux, where neither gtk nor Qt does this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315659</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-01 08:29:43 -0800</bug_when>
    <thetext>Right. My concern is about operating on a selection that may be invisible to the user, or otherwise outside of their mental context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315661</commentid>
    <comment_count>7</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-01 08:30:10 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; @Alexey: At the moment, the selection is discarded on right click, it doesn&apos;t select anything new. I can&apos;t think of any case where that would be much better than leaving it untouched. Besides, this doesn&apos;t feel very consistent with other applications&apos; behavior on Linux, where neither gtk nor Qt does this.

@ap, pierri: I also agree that this is something we should fix.

For example, in firefox, selection some text with the mouse and right click somewhere else in the page (outside the selection bounds). Firefox shows the context menu, but keeps the previously selected text selected.

We should behavior this way in my opinion on non-Mac editing-behaviors too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315664</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-01 08:41:08 -0800</bug_when>
    <thetext>Is this the Firefox behavior on all platforms, or only on Linux? Are there other Windows applications that behave this way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315667</commentid>
    <comment_count>9</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-01 08:48:35 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; Is this the Firefox behavior on all platforms, or only on Linux? Are there other Windows applications that behave this way?

Hum, good point.

Firefox on linux, scenario 1: 
1) select some text in the page.
2) right click somewhere else
[the original selection if kept]
3) dismiss the context menu by left clicking the elsewhere in the page, outside the selection boundary
[the original selection is kept]

Firefox on linux, scenario 2: 
1) select some text in the page.
2) right click somewhere else
[the original selection if kept]
3) dismiss the context menu by pressing ESC
[the original selection is kept]


Firefox on linux, scenario 1: 
1) select some text in the page.
2) right click somewhere else
[the original selection if kept]
3) dismiss the context menu by left clicking the elsewhere in the page, outside the selection boundary
[the original selection is gone]

Firefox on Windows, scenario 2: 
1) select some text in the page.
2) right click somewhere else
[the original selection if kept]
3) dismiss the context menu by pressing ESC
[the original selection is kept]

I do not have a Mac handy to test though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315668</commentid>
    <comment_count>10</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-01 08:50:10 -0800</bug_when>
    <thetext>Also in both cases above when there is a text selected, and user right clicks within or beyond the selection boundary, the context menu options that are shown are the same, as if the user had right clicked on the selected text.

It is not what happens in webkit non-mac platform I suppose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316092</commentid>
    <comment_count>11</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-02 05:34:02 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; I do not have a Mac handy to test though.

I just tested that. Firefox on Mac follows the Linux behavior, the selection is kept when right-clicking outside of the rect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316097</commentid>
    <comment_count>12</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-02 05:46:30 -0800</bug_when>
    <thetext>I also tested Windows and the result is curious :)

All the applications I have tried have the same behavior as what Antonio described. Except ... Internet Explorer 9 which as the same behavior as Mac OS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316100</commentid>
    <comment_count>13</comment_count>
      <attachid>75369</attachid>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-02 05:51:43 -0800</bug_when>
    <thetext>Created attachment 75369
Take 2 (updated for style and added a test)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316121</commentid>
    <comment_count>14</comment_count>
      <attachid>75369</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-02 07:02:26 -0800</bug_when>
    <thetext>Comment on attachment 75369
Take 2 (updated for style and added a test)

Pierre, thanks for the test case. We would be now covering the ESC case, but I would also like to cover the &apos;click outside the selection bounds&apos; case. Could you add this other test too, please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316164</commentid>
    <comment_count>15</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-02 08:26:32 -0800</bug_when>
    <thetext>(In reply to comment #14)
&gt; (From update of attachment 75369 [details])
&gt; Pierre, thanks for the test case. We would be now covering the ESC case, but I would also like to cover the &apos;click outside the selection bounds&apos; case. Could you add this other test too, please?

Mhh, but I might need a little hint then: how would I take into account the actual platform that the test runs on ? (i.e it has to be ran on windows for the mouse click to actually discard the selection at the same time it discards the menu).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>316189</commentid>
    <comment_count>16</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-02 09:14:06 -0800</bug_when>
    <thetext>&gt; I also tested Windows and the result is curious :)
&gt; 
&gt; All the applications I have tried have the same behavior as what Antonio described. Except ... Internet Explorer 9 which as the same behavior as Mac OS.

Could you please list the ones you tried? I&apos;m mostly interested if that included MS Word, Outlook and other major apps known to end users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317639</commentid>
    <comment_count>17</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-12-06 08:30:18 -0800</bug_when>
    <thetext>(In reply to comment #16)
&gt; &gt; I also tested Windows and the result is curious :)
&gt; &gt; 
&gt; &gt; All the applications I have tried have the same behavior as what Antonio described. Except ... Internet Explorer 9 which as the same behavior as Mac OS.
&gt; 
&gt; Could you please list the ones you tried? I&apos;m mostly interested if that included MS Word, Outlook and other major apps known to end users.

I tried with Notepad, wordpad, and all the default utilities I could find on Win7.

On MS word 2007 and Outlook 2007, I get the same behavior as Mac, right click outside the selection discard the selection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317644</commentid>
    <comment_count>18</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-06 08:43:00 -0800</bug_when>
    <thetext>(In reply to comment #17)
&gt; (In reply to comment #16)
&gt; &gt; &gt; I also tested Windows and the result is curious :)
&gt; &gt; &gt; 
&gt; &gt; &gt; All the applications I have tried have the same behavior as what Antonio described. Except ... Internet Explorer 9 which as the same behavior as Mac OS.
&gt; &gt; 
&gt; &gt; Could you please list the ones you tried? I&apos;m mostly interested if that included MS Word, Outlook and other major apps known to end users.
&gt; 
&gt; I tried with Notepad, wordpad, and all the default utilities I could find on Win7.
&gt; 
&gt; On MS word 2007 and Outlook 2007, I get the same behavior as Mac, right click outside the selection discard the selection.

I think is might make sense here to make not discarding the selection be UNIX specific then, once windows has mixed behavior, and Mac does discards on purpose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317651</commentid>
    <comment_count>19</comment_count>
      <attachid>75369</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-06 09:01:01 -0800</bug_when>
    <thetext>Comment on attachment 75369
Take 2 (updated for style and added a test)

r-, because we almost certainly don&apos;t want to be different from IE, Outlook and Word on Windows here.

&gt; On MS word 2007 and Outlook 2007, I get the same behavior as Mac, right click
&gt; outside the selection discard the selection.

Do they also select the word under right click, like Mac?

&gt; Mhh, but I might need a little hint then: how would I take into account the actual
&gt; platform that the test runs on ?

The correct way is to test all editing behaviors on all platforms - you can set the behavior with a layoutTestController method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317655</commentid>
    <comment_count>20</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-06 09:07:13 -0800</bug_when>
    <thetext>
&gt; &gt; On MS word 2007 and Outlook 2007, I get the same behavior as Mac, right click
&gt; &gt; outside the selection discard the selection.
&gt; 
&gt; Do they also select the word under right click, like Mac?

no, ap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320206</commentid>
    <comment_count>21</comment_count>
      <attachid>76212</attachid>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-10 09:33:31 -0800</bug_when>
    <thetext>Created attachment 76212
Take 3 (Change windows behavior.)

@Tonikitoo: well, after a lot of headaches I think I&apos;m going to give up on discarding the menu with the mouse from javascript, since eventSender will pass the event to the page directly and not to X or whatever need to receive it to discard the menu on a given platform. Sure I could do with a middle click or something but that will only do for unstable tests in my opinion, since this seems border-line undefined behavior. Or should I do a Qt/C++ autotest then? What do you think ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320210</commentid>
    <comment_count>22</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-10 09:41:13 -0800</bug_when>
    <thetext>(In reply to comment #19)
&gt; 
&gt; The correct way is to test all editing behaviors on all platforms - you can set the behavior with a layoutTestController method.

What I meant was that the test would return different results for the windows behavior depending on whether it actually ran on windows or not. 

Due to what I mentioned in my previous comment to Antonio, and the change for the Windows behavior, it probably won&apos;t be necessary anymore but what I was looking for was probably something in that fashion:
var onWinPlatform =  navigator.userAgent.search(&quot;Windows&quot;) != -1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>320216</commentid>
    <comment_count>23</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-10 10:10:10 -0800</bug_when>
    <thetext>&gt; What I meant was that the test would return different results for the windows behavior depending on whether it actually ran on windows or not. 

Why? Actual behavior should respect editing behavior preference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323370</commentid>
    <comment_count>24</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-12-16 13:03:39 -0800</bug_when>
    <thetext>(In reply to comment #23)
&gt; &gt; What I meant was that the test would return different results for the windows behavior depending on whether it actually ran on windows or not. 
&gt; 
&gt; Why? Actual behavior should respect editing behavior preference.

The fact that the selection was discarded when clicking outside of the context menu was not caused by anything else than the fact that while this click discards the menu, it&apos;s *also* passed to the webpage, and this is because of the way events work on windows. 

Now the selection is discarded with the right click, to follow IE9 behavior, so it&apos;s not a problem anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323377</commentid>
    <comment_count>25</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-12-16 13:23:10 -0800</bug_when>
    <thetext>Sorry, I&apos;m afraid that I&apos;m not following your reasoning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323899</commentid>
    <comment_count>26</comment_count>
      <attachid>76212</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-12-17 11:34:51 -0800</bug_when>
    <thetext>Comment on attachment 76212
Take 3 (Change windows behavior.)

View in context: https://bugs.webkit.org/attachment.cgi?id=76212&amp;action=review

&gt; WebCore/editing/EditingBehavior.h:64
&gt; +    // On Linux, right clicking outside of the current selection shouldn&apos;t discard the existing selection
&gt; +    bool shouldDiscardCurrentSelectionOnRightClick() const { return m_type != EditingUnixBehavior; }

Nit: since editing behavior is &quot;unix&quot;, we should probably say &quot;On UNIX, right clicking...&quot;

&gt; WebCore/page/EventHandler.cpp:403
&gt; +    // Don&apos;t alter the selection for buttons other than the left button unless it&apos;s desired behavior

Nit: I don&apos;t think this comment is necessary.  It repeats what code says.

&gt; WebCore/page/EventHandler.cpp:405
&gt; +    if (m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection) &amp;&amp; shouldReplaceSelection)

I&apos;m not sure if we want to call editing delegates if we&apos;re not changing the selection.  It&apos;s odd to call editing delegates to ask if the selection should change and then not changing regardless of what the delegates returns.  We should probably swap the order and do: shouldReplaceSelection &amp;&amp; m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>335776</commentid>
    <comment_count>27</comment_count>
      <attachid>79267</attachid>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-01-18 05:30:03 -0800</bug_when>
    <thetext>Created attachment 79267
Modified as per Ryosuke&apos;s comments</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338496</commentid>
    <comment_count>28</comment_count>
      <attachid>79267</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2011-01-21 21:07:26 -0800</bug_when>
    <thetext>Comment on attachment 79267
Modified as per Ryosuke&apos;s comments

View in context: https://bugs.webkit.org/attachment.cgi?id=79267&amp;action=review

I have a question: with the patch applied, context menu does not deselect the text on UNIX editing behavior, but what options does the context menu show? Are they relative to selected content (i.e. copy, cut, etc) or relative to the page (reload, back, forward, etc). Firefox on linux does the former to me...

&gt; LayoutTests/editing/selection/selection-modified-on-right-click.html:21
&gt; +

Unneeded extra line</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>352637</commentid>
    <comment_count>29</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-02-17 00:11:55 -0800</bug_when>
    <thetext>Pierre, can you answer Antonio&apos;s question so that I can proceed with my review?

Also, hit testing belongs HTML Editing component, not Text component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353164</commentid>
    <comment_count>30</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-02-17 14:12:47 -0800</bug_when>
    <thetext>(In reply to comment #28)
&gt; (From update of attachment 79267 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=79267&amp;action=review
&gt; 
&gt; I have a question: with the patch applied, context menu does not deselect the text on UNIX editing behavior, but what options does the context menu show? Are they relative to selected content (i.e. copy, cut, etc) or relative to the page (reload, back, forward, etc). Firefox on linux does the former to me...
&gt; 
&gt; &gt; LayoutTests/editing/selection/selection-modified-on-right-click.html:21
&gt; &gt; +
&gt; 
&gt; Unneeded extra line

With the patch applied, the contents of the context menu depends on whether the click happened within the selected range or not (so the behavior is pretty much untouched in that respect I would say). So by default (in QtTestBrowser) if I click within the selection it offers &quot;Copy&quot;, else only &quot;Reload&quot;

Actually now that you point it out, firefox always offer a Copy action as long as there&apos;s a selection for me on Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353169</commentid>
    <comment_count>31</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-02-17 14:15:11 -0800</bug_when>
    <thetext>(In reply to comment #29)
&gt; Pierre, can you answer Antonio&apos;s question so that I can proceed with my review?
&gt; 

Thanks for the reminder, I had completely forgotten to answer this comment.

&gt; Also, hit testing belongs HTML Editing component, not Text component.

I&apos;m afraid I don&apos;t follow ? Could you clarify what this means practically (I suspect I have to move the layout test somewhere else but I have no clue where) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353244</commentid>
    <comment_count>32</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-02-17 16:49:32 -0800</bug_when>
    <thetext>(In reply to comment #31)
&gt; &gt; Also, hit testing belongs HTML Editing component, not Text component.
&gt; 
&gt; I&apos;m afraid I don&apos;t follow ? Could you clarify what this means practically (I suspect I have to move the layout test somewhere else but I have no clue where) ?

Oh, I just changed the component of this bug from Text to HTML Editing.  That&apos;s all.  Your test is already in LayoutTests/editing so it&apos;s fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353260</commentid>
    <comment_count>33</comment_count>
      <attachid>79267</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-02-17 17:26:40 -0800</bug_when>
    <thetext>Comment on attachment 79267
Modified as per Ryosuke&apos;s comments

View in context: https://bugs.webkit.org/attachment.cgi?id=79267&amp;action=review

&gt; LayoutTests/editing/selection/selection-modified-on-right-click.html:1
&gt; +&lt;body onload=&quot;load()&quot;&gt;

Missing &lt;!DOCTYPE html&gt;.  Do you really need to wait until page load?  I feel like you can just run the test in the script element?

&gt; WebCore/ChangeLog:5
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=50116

Missing bug title.

&gt; WebCore/page/EventHandler.cpp:404
&gt;      } else
&gt;          newSelection = VisibleSelection(visiblePos);
&gt; -    
&gt; -    if (m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection))
&gt; +
&gt; +    const bool shouldReplaceSelection = (m_frame-&gt;editor()-&gt;behavior().shouldDiscardCurrentSelectionOnRightClick() || event.event().button() == LeftButton);
&gt; +    if (shouldReplaceSelection &amp;&amp; m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection))

It seems like we should avoid setting selection only if the above else statement was executed.  i.e. we should set selection when selection is extended even if the editing behavior was Linux, and the right button is pressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354208</commentid>
    <comment_count>34</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-02-19 12:09:43 -0800</bug_when>
    <thetext>(In reply to comment #33)

&gt; &gt; WebCore/page/EventHandler.cpp:404
&gt; &gt;      } else
&gt; &gt;          newSelection = VisibleSelection(visiblePos);
&gt; &gt; -    
&gt; &gt; -    if (m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection))
&gt; &gt; +
&gt; &gt; +    const bool shouldReplaceSelection = (m_frame-&gt;editor()-&gt;behavior().shouldDiscardCurrentSelectionOnRightClick() || event.event().button() == LeftButton);
&gt; &gt; +    if (shouldReplaceSelection &amp;&amp; m_frame-&gt;selection()-&gt;shouldChangeSelection(newSelection))
&gt; 
&gt; It seems like we should avoid setting selection only if the above else statement was executed.  i.e. we should set selection when selection is extended even if the editing behavior was Linux, and the right button is pressed.

I don&apos;t like this idea that much, as it would mean the context menu pops out as the selection gets modified, this feels confusing to me (yes, apparently that&apos;s the way it works on Mac...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>354457</commentid>
    <comment_count>35</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-02-21 01:31:52 -0800</bug_when>
    <thetext>(In reply to comment #34)
&gt; (In reply to comment #33)
&gt; &gt; It seems like we should avoid setting selection only if the above else statement was executed.  i.e. we should set selection when selection is extended even if the editing behavior was Linux, and the right button is pressed.
&gt; 
&gt; I don&apos;t like this idea that much, as it would mean the context menu pops out as the selection gets modified, this feels confusing to me (yes, apparently that&apos;s the way it works on Mac...)

Is this what users expect on all Unix platforms?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355165</commentid>
    <comment_count>36</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2011-02-22 03:43:11 -0800</bug_when>
    <thetext>(In reply to comment #35)
&gt; (In reply to comment #34)
&gt; &gt; (In reply to comment #33)
&gt; &gt; &gt; It seems like we should avoid setting selection only if the above else statement was executed.  i.e. we should set selection when selection is extended even if the editing behavior was Linux, and the right button is pressed.
&gt; &gt; 
&gt; &gt; I don&apos;t like this idea that much, as it would mean the context menu pops out as the selection gets modified, this feels confusing to me (yes, apparently that&apos;s the way it works on Mac...)
&gt; 
&gt; Is this what users expect on all Unix platforms?

I don&apos;t know really, it&apos;s just the behavior I get in Firefox, and I feel it makes sense, or at least it&apos;s something I can live with. 
If you have any usability gurus at hand to discuss this, that&apos;d be nice. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>386499</commentid>
    <comment_count>37</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-04-15 03:54:17 -0700</bug_when>
    <thetext>*** Bug 58647 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975823</commentid>
    <comment_count>38</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:50:50 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>74945</attachid>
            <date>2010-11-26 10:07:37 -0800</date>
            <delta_ts>2010-12-02 05:51:43 -0800</delta_ts>
            <desc>change proposal</desc>
            <filename>webkit-keep-selection.patch</filename>
            <type>text/plain</type>
            <size>1595</size>
            <attacher name="Pierre Rossi">pierre.rossi</attacher>
            
              <data encoding="base64">ZGlmZiAtL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EAgLTM5OSw4ICszOTksMTEgQEAgYm9vbCBFdmVudEhhbmRsZXI6OmhhbmRsZU1vdXNl
UHJlc3NFdmVudFNpbmdsZUNsaWNrKGNvbnN0IE1vdXNlRXZlbnRXaXRoSGl0VGVzdFIKICAgICAg
ICAgbV9iZWdhblNlbGVjdGluZ1RleHQgPSB0cnVlOwogICAgIH0gZWxzZQogICAgICAgICBuZXdT
ZWxlY3Rpb24gPSBWaXNpYmxlU2VsZWN0aW9uKHZpc2libGVQb3MpOwotICAgIAotICAgIGlmICht
X2ZyYW1lLT5zZWxlY3Rpb24oKS0+c2hvdWxkQ2hhbmdlU2VsZWN0aW9uKG5ld1NlbGVjdGlvbikp
CisKKyAgICAvLyBEb24ndCBhbHRlciB0aGUgc2VsZWN0aW9uIGZvciBidXR0b25zIG90aGVyIHRo
YW4gdGhlIGxlZnQgYnV0dG9uIHVubGVzcyBpdCdzIGRlc2lyZWQgYmVoYXZpb3IKKyAgICBjb25z
dCBib29sIHNob3VsZFJlcGxhY2VTZWxlY3Rpb24gPSAobV9mcmFtZS0+ZWRpdG9yKCktPmJlaGF2
aW9yKCkuc2hvdWxkU2VsZWN0T25Db250ZXh0dWFsTWVudUNsaWNrKCkKKyAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgZXZlbnQuZXZlbnQoKS5idXR0b24oKSA9PSBM
ZWZ0QnV0dG9uKTsKKyAgICBpZiAobV9mcmFtZS0+c2VsZWN0aW9uKCktPnNob3VsZENoYW5nZVNl
bGVjdGlvbihuZXdTZWxlY3Rpb24pICYmIHNob3VsZFJlcGxhY2VTZWxlY3Rpb24pCiAgICAgICAg
IG1fZnJhbWUtPnNlbGVjdGlvbigpLT5zZXRTZWxlY3Rpb24obmV3U2VsZWN0aW9uLCBncmFudWxh
cml0eSwgTWFrZU5vbkRpcmVjdGlvbmFsU2VsZWN0aW9uKTsKIAogICAgIHJldHVybiB0cnVlOwo=
</data>
<flag name="review"
          id="65659"
          type_id="1"
          status="-"
          setter="tonikitoo"
    />
    <flag name="commit-queue"
          id="65660"
          type_id="3"
          status="-"
          setter="tonikitoo"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>75369</attachid>
            <date>2010-12-02 05:51:43 -0800</date>
            <delta_ts>2010-12-10 09:33:31 -0800</delta_ts>
            <desc>Take 2 (updated for style and added a test)</desc>
            <filename>webkit-keep-selection.patch</filename>
            <type>text/plain</type>
            <size>4269</size>
            <attacher name="Pierre Rossi">pierre.rossi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL2VkaXRpbmcvc2VsZWN0aW9uL3NlbGVjdGlvbi1tb2Rp
ZmllZC1vbi1yaWdodC1jbGljay1leHBlY3RlZC50eHQgYi9MYXlvdXRUZXN0cy9lZGl0aW5nL3Nl
bGVjdGlvbi9zZWxlY3Rpb24tbW9kaWZpZWQtb24tcmlnaHQtY2xpY2stZXhwZWN0ZWQudHh0Cm5l
dyBmaWxlIG1vZGUgMTAwNjQ0CmluZGV4IDAwMDAwMDAuLjNmZTk2MTgKLS0tIC9kZXYvbnVsbAor
KysgYi9MYXlvdXRUZXN0cy9lZGl0aW5nL3NlbGVjdGlvbi9zZWxlY3Rpb24tbW9kaWZpZWQtb24t
cmlnaHQtY2xpY2stZXhwZWN0ZWQudHh0CkBAIC0wLDAgKzEsNyBAQAorVGhpcyB0ZXN0IGNoZWNr
cyB0aGF0IHRyaWdnZXJpbmcgdGhlIGNvbnRleHQgbWVudSBzZWxlY3RzL2RvZXNuJ3Qgc2VsZWN0
IGFzIHBsYXRmb3JtLWFwcHJvcHJpYXRlLgorCitMb3JlbSBpcHN1bQorRm9vIGJhcgorU1VDQ0VT
UworU1VDQ0VTUworU1VDQ0VTUwpkaWZmIC0tZ2l0IGEvTGF5b3V0VGVzdHMvZWRpdGluZy9zZWxl
Y3Rpb24vc2VsZWN0aW9uLW1vZGlmaWVkLW9uLXJpZ2h0LW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BpZiAobV9mcmFtZS0+c2VsZWN0aW9uKCkt
PnNob3VsZENoYW5nZVNlbGVjdGlvbihuZXdTZWxlY3Rpb24pKQorCisgICAgLy8gRG9uJ3QgYWx0
ZXIgdGhlIHNlbGVjdGlvbiBmb3IgYnV0dG9ucyBvdGhlciB0aGFuIHRoZSBsZWZ0IGJ1dHRvbiB1
bmxlc3MgaXQncyBkZXNpcmVkIGJlaGF2aW9yCisgICAgY29uc3QgYm9vbCBzaG91bGRSZXBsYWNl
U2VsZWN0aW9uID0gKG1fZnJhbWUtPmVkaXRvcigpLT5iZWhhdmlvcigpLnNob3VsZFNlbGVjdE9u
Q29udGV4dHVhbE1lbnVDbGljaygpIHx8IGV2ZW50LmV2ZW50KCkuYnV0dG9uKCkgPT0gTGVmdEJ1
dHRvbik7CisgICAgaWYgKG1fZnJhbWUtPnNlbGVjdGlvbigpLT5zaG91bGRDaGFuZ2VTZWxlY3Rp
b24obmV3U2VsZWN0aW9uKSAmJiBzaG91bGRSZXBsYWNlU2VsZWN0aW9uKQogICAgICAgICBtX2Zy
YW1lLT5zZWxlY3Rpb24oKS0+c2V0U2VsZWN0aW9uKG5ld1NlbGVjdGlvbiwgZ3JhbnVsYXJpdHks
IE1ha2VOb25EaXJlY3Rpb25hbFNlbGVjdGlvbik7CiAKICAgICByZXR1cm4gdHJ1ZTsK
</data>
<flag name="review"
          id="66155"
          type_id="1"
          status="-"
          setter="ap"
    />
    <flag name="commit-queue"
          id="66156"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76212</attachid>
            <date>2010-12-10 09:33:31 -0800</date>
            <delta_ts>2011-01-18 05:30:03 -0800</delta_ts>
            <desc>Take 3 (Change windows behavior.)</desc>
            <filename>webkit-keep-selection.patch</filename>
            <type>text/plain</type>
            <size>4950</size>
            <attacher name="Pierre Rossi">pierre.rossi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL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WxlY3Rpb24o
bmV3U2VsZWN0aW9uKSAmJiBzaG91bGRSZXBsYWNlU2VsZWN0aW9uKQogICAgICAgICBtX2ZyYW1l
LT5zZWxlY3Rpb24oKS0+c2V0U2VsZWN0aW9uKG5ld1NlbGVjdGlvbiwgZ3JhbnVsYXJpdHksIE1h
a2VOb25EaXJlY3Rpb25hbFNlbGVjdGlvbik7CiAKICAgICByZXR1cm4gdHJ1ZTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79267</attachid>
            <date>2011-01-18 05:30:03 -0800</date>
            <delta_ts>2011-04-11 15:37:48 -0700</delta_ts>
            <desc>Modified as per Ryosuke&apos;s comments</desc>
            <filename>webkit-keep-selection.patch</filename>
            <type>text/plain</type>
            <size>4846</size>
            <attacher name="Pierre Rossi">pierre.rossi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL2VkaXRpbmcvc2VsZWN0aW9uL3NlbGVjdGlvbi1tb2Rp
ZmllZC1vbi1yaWdodC1jbGljay1leHBlY3RlZC50eHQgYi9MYXlvdXRUZXN0cy9lZGl0aW5nL3Nl
bGVjdGlvbi9zZWxlY3Rpb24tbW9kaWZpZWQtb24tcmlnaHQtY2xpY2stZXhwZWN0ZWQudHh0Cm5l
dyBmaWxlIG1vZGUgMTAwNjQ0CmluZGV4IDAwMDAwMDAuLjNmZTk2MTgKLS0tIC9kZXYvbnVsbAor
KysgYi9MYXlvdXRUZXN0cy9lZGl0aW5nL3NlbGVjdGlvbi9zZWxlY3Rpb24tbW9kaWZpZWQtb24t
cmlnaHQtY2xpY2stZXhwZWN0ZWQudHh0CkBAIC0wLDAgKzEsNyBAQAorVGhpcyB0ZXN0IGNoZWNr
cyB0aGF0IHRyaWdnZXJpbmcgdGhlIGNvbnRleHQgbWVudSBzZWxlY3RzL2RvZXNuJ3Qgc2VsZWN0
IGFzIHBsYXRmb3JtLWFwcHJvcHJpYXRlLgorCitMb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3Rpb24oKS0+c2hvdWxkQ2hhbmdl
U2VsZWN0aW9uKG5ld1NlbGVjdGlvbikpCisKKyAgICBjb25zdCBib29sIHNob3VsZFJlcGxhY2VT
ZWxlY3Rpb24gPSAobV9mcmFtZS0+ZWRpdG9yKCktPmJlaGF2aW9yKCkuc2hvdWxkRGlzY2FyZEN1
cnJlbnRTZWxlY3Rpb25PblJpZ2h0Q2xpY2soKSB8fCBldmVudC5ldmVudCgpLmJ1dHRvbigpID09
IExlZnRCdXR0b24pOworICAgIGlmIChzaG91bGRSZXBsYWNlU2VsZWN0aW9uICYmIG1fZnJhbWUt
PnNlbGVjdGlvbigpLT5zaG91bGRDaGFuZ2VTZWxlY3Rpb24obmV3U2VsZWN0aW9uKSkKICAgICAg
ICAgbV9mcmFtZS0+c2VsZWN0aW9uKCktPnNldFNlbGVjdGlvbihuZXdTZWxlY3Rpb24sIGdyYW51
bGFyaXR5LCBNYWtlTm9uRGlyZWN0aW9uYWxTZWxlY3Rpb24pOwogCiAgICAgcmV0dXJuIHRydWU7
Cg==
</data>
<flag name="review"
          id="70662"
          type_id="1"
          status="-"
          setter="rniwa"
    />
    <flag name="commit-queue"
          id="70663"
          type_id="3"
          status="-"
          setter="rniwa"
    />
          </attachment>
      

    </bug>

</bugzilla>