<?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>71980</bug_id>
          
          <creation_ts>2011-11-09 17:48:50 -0800</creation_ts>
          <short_desc>Remove unneeded frame check in FrameView::detachCustomScrollbars</short_desc>
          <delta_ts>2011-11-11 14:01:46 -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>Frames</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Chaffraix">jchaffraix</reporter>
          <assigned_to name="Julien Chaffraix">jchaffraix</assigned_to>
          <cc>andersca</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>499537</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-11-09 17:48:50 -0800</bug_when>
    <thetext>Looks like this is a left-over from several refactorings that changed the function.

The remainder of detachCustomScrollbars definitely does not care about having a Frame.

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>499542</commentid>
    <comment_count>1</comment_count>
      <attachid>114412</attachid>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-11-09 17:52:19 -0800</bug_when>
    <thetext>Created attachment 114412
Trivial change: remove the check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500109</commentid>
    <comment_count>2</comment_count>
      <attachid>114412</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2011-11-10 12:15:40 -0800</bug_when>
    <thetext>Comment on attachment 114412
Trivial change: remove the check.

Can you remove this because m_frame is never going to be null, or because m_frame is never dereferenced? If it is because m_frame is never going to be null, you can assert that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500416</commentid>
    <comment_count>3</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-11-10 16:54:32 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 114412 [details])
&gt; Can you remove this because m_frame is never going to be null, or because m_frame is never dereferenced? If it is because m_frame is never going to be null, you can assert that.

The latter I am afraid: AFAICT this check was introduced because we would crash if we did not check the Frame but the code has changed and this check is not needed anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>501073</commentid>
    <comment_count>4</comment_count>
      <attachid>114412</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-11 14:01:42 -0800</bug_when>
    <thetext>Comment on attachment 114412
Trivial change: remove the check.

Clearing flags on attachment: 114412

Committed r100014: &lt;http://trac.webkit.org/changeset/100014&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>501074</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-11 14:01:46 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>114412</attachid>
            <date>2011-11-09 17:52:19 -0800</date>
            <delta_ts>2011-11-11 14:01:42 -0800</delta_ts>
            <desc>Trivial change: remove the check.</desc>
            <filename>bug-71980-20111109175218.patch</filename>
            <type>text/plain</type>
            <size>1381</size>
            <attacher name="Julien Chaffraix">jchaffraix</attacher>
            
              <data encoding="base64">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