<?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>111451</bug_id>
          
          <creation_ts>2013-03-05 09:42:17 -0800</creation_ts>
          <short_desc>[GTK] New editing/selection/selection-in-iframe-removed-crash.html asserts</short_desc>
          <delta_ts>2023-01-25 19:31:01 -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>Tools / Tests</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>79668</blocked>
    
    <blocked>87008</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ádám Kallai">kadam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>leviw</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ossy</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>rniwa</cc>
    
    <cc>szledan</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>847754</commentid>
    <comment_count>0</comment_count>
    <who name="Ádám Kallai">kadam</who>
    <bug_when>2013-03-05 09:42:17 -0800</bug_when>
    <thetext>* editing/selection/selection-in-iframe-removed-crash.html fails with crash on GTK, Qt debug bots. 
http://trac.webkit.org/changeset/144400

For example:
GTK:
http://build.webkit.org/results/GTK%20Linux%2064-bit%20Debug%20WK1/r144756%20(498)/editing/selection/selection-in-iframe-removed-crash-crash-log.txt

Qt:
http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Debug/r144756%20(27994)/editing/selection/selection-invalid-offset-crash-log.txt

Could you check it please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848891</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-03-06 08:36:19 -0800</bug_when>
    <thetext>editing/selection/selection-in-iframe-removed-crash.html introduced 
in r144400 and https://bugs.webkit.org/show_bug.cgi?id=108696 is a 
security bug, so maybe it is a security issue too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>848893</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-03-06 08:37:11 -0800</bug_when>
    <thetext>It would be great to have a gdb backtrace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849161</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-03-06 12:02:31 -0800</bug_when>
    <thetext>Also see https://bugs.webkit.org/show_bug.cgi?id=111521. Even though the title says it&apos;s about selection-invalid-offset, the crash is happening in selection-in-iframe-removed-crash.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849839</commentid>
    <comment_count>4</comment_count>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2013-03-07 00:59:37 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; It would be great to have a gdb backtrace.

Below you have the backtrace on Qt. It crashes both with DRT and QtTestBrowser, however while DRT crashes right after the start, QtTestBrowser does so only after a refresh.

#0  0x00007ffff4253e5c in WebCore::comparePositions (a=..., b=...) at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/htmlediting.cpp:78
#1  0x00007ffff4295d19 in WebCore::VisibleSelection::toNormalizedRange (this=0x7a3de8)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/VisibleSelection.cpp:173
#2  0x00007ffff3a8f941 in WebCore::FrameSelection::toNormalizedRange (this=0x7a3dc0)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/FrameSelection.h:205
#3  0x00007ffff3a976bf in WebCore::EditorClientQt::respondToChangedSelection (this=0x75ff20, frame=0x7a3790)
    at /home/reni/Data/REPOS/webkit/Source/WebKit/qt/WebCoreSupport/EditorClientQt.cpp:209
#4  0x00007ffff423329a in WebCore::Editor::notifyComponentsOnChangedSelection (this=0x7a3d00, oldSelection=..., options=6)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/Editor.cpp:540
#5  0x00007ffff423ffe5 in WebCore::Editor::respondToChangedSelection (this=0x7a3d00, oldSelection=..., options=6)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/Editor.cpp:2991
#6  0x00007ffff424c0a1 in WebCore::FrameSelection::setSelection (this=0x7a3dc0, newSelection=..., options=6, 
    align=WebCore::FrameSelection::AlignCursorOnScrollIfNeeded, granularity=WebCore::CharacterGranularity)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/FrameSelection.cpp:330
#7  0x00007ffff4251cd3 in WebCore::FrameSelection::selectFrameElementInParentIfFullySelected (this=0x8fc710)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/FrameSelection.cpp:1611
#8  0x00007ffff424c062 in WebCore::FrameSelection::setSelection (this=0x8fc710, newSelection=..., options=6, 
    align=WebCore::FrameSelection::AlignCursorOnScrollIfNeeded, granularity=WebCore::CharacterGranularity)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/FrameSelection.cpp:328
#9  0x00007ffff424be91 in WebCore::FrameSelection::setSelection (this=0x7a3dc0, newSelection=..., options=6, 
    align=WebCore::FrameSelection::AlignCursorOnScrollIfNeeded, granularity=WebCore::CharacterGranularity)
    at /home/reni/Data/REPOS/webkit/Source/WebCore/editing/FrameSelection.cpp:284
#10 0x00007ffff45d2fbf in WebCore::DOMSelection::addRange (this=0x691710, r=0x905cc0) at /home/reni/Data/REPOS/webkit/Source/WebCore/page/DOMSelection.cpp:395
#11 0x00007ffff5086ece in WebCore::jsDOMSelectionPrototypeFunctionAddRange (exec=0x7fffe43630e8) at generated/JSDOMSelection.cpp:456</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928399</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-01-25 19:29:12 -0800</bug_when>
    <thetext>There are no references to this bug in any TestExpectations. It&apos;s probable this bug was solved at some point but it wasn&apos;t marked as closed. I&apos;m closing this bug now. If you think this bug report is still valid, please reopen it and add an entry to TestExpectations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928415</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-25 19:31:01 -0800</bug_when>
    <thetext>&lt;rdar://problem/104678671&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>