<?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>39291</bug_id>
          
          <creation_ts>2010-05-18 07:25:50 -0700</creation_ts>
          <short_desc>[Qt] Links are selected on right click by default</short_desc>
          <delta_ts>2010-11-26 04:39:48 -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>Text</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P5</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>23351</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pierre Rossi">pierre.rossi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>kling</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>227292</commentid>
    <comment_count>0</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-05-18 07:25:50 -0700</bug_when>
    <thetext>And the current selection is discarded as a consequence.
The behavior seems different on Chromium though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227296</commentid>
    <comment_count>1</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-05-18 07:32:24 -0700</bug_when>
    <thetext>imo, it either depends on bug 23351 or is a duplicated of bug 36627

ps: when reporting, please use the &apos;Qt&apos; Keyword, assign to unassigned-qtwebkit-bugs and etc ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227298</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-05-18 07:40:38 -0700</bug_when>
    <thetext>more info here:

WebCore/page/EventHandler.cpp
(...)
#if ENABLE(CONTEXT_MENUS)
bool EventHandler::sendContextMenuEvent(const PlatformMouseEvent&amp; event)
{
  Document* doc = m_frame-&gt;document();
  FrameView* v = m_frame-&gt;view();
  if (!v)
      return false;
(...)

  // Context menu events shouldn&apos;t select text in GTK+ applications or in Chromium.
  // FIXME: This should probably be configurable by embedders. Consider making it a WebPreferences setting.
  // See: https://bugs.webkit.org/show_bug.cgi?id=15279
#if !PLATFORM(GTK) &amp;&amp; !PLATFORM(CHROMIUM)
  if (!m_frame-&gt;selection()-&gt;contains(viewportPos) &amp;&amp; 
    // FIXME: In the editable case, word selection sometimes selects content that isn&apos;t underneath the mouse.
    // If the selection is non-editable, we do word selection to make it easier to use the contextual menu items
    // available for text selections.  But only if we&apos;re above text.
    (m_frame-&gt;selection()-&gt;isContentEditable() || (mev.targetNode() &amp;&amp; mev.targetNode()-&gt;isTextNode()))) {
    m_mouseDownMayStartSelect = true; // context menu events are always allowed to perform a selection
    selectClosestWordOrLinkFromMouseEvent(mev);
  }
#endif
(...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>307344</commentid>
    <comment_count>3</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2010-11-10 07:15:21 -0800</bug_when>
    <thetext>Pierre, this bug is for you :). It should be trivial as soon as Antonio land 23351.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>307348</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-11-10 07:35:39 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Pierre, this bug is for you :). It should be trivial as soon as Antonio land 23351.

Plan is for it to land tonight :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>313961</commentid>
    <comment_count>5</comment_count>
    <who name="Pierre Rossi">pierre.rossi</who>
    <bug_when>2010-11-26 04:39:48 -0800</bug_when>
    <thetext>Fixed as a consequence of fixing 23351.
The test editing/selection/context-menu-text-selection.html works as well, so there is really nothing left to do about this. :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>