<?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>130636</bug_id>
          
          <creation_ts>2014-03-22 00:43:24 -0700</creation_ts>
          <short_desc>Add *final* keyword to NavigatorContentUtils class</short_desc>
          <delta_ts>2014-03-22 18:02:23 -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>New Bugs</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gyuyoung Kim">gyuyoung.kim</reporter>
          <assigned_to name="Gyuyoung Kim">gyuyoung.kim</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>993455</commentid>
    <comment_count>0</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-22 00:43:24 -0700</bug_when>
    <thetext>Though NavigatorContentUtils isn&apos;t declared final class as well as it doesn&apos;t have any virtual function, the destructor has been declared as virtual. We don&apos;t need to declare the destructor as virtual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993456</commentid>
    <comment_count>1</comment_count>
      <attachid>227538</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-22 00:45:47 -0700</bug_when>
    <thetext>Created attachment 227538
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993475</commentid>
    <comment_count>2</comment_count>
      <attachid>227538</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2014-03-22 05:52:32 -0700</bug_when>
    <thetext>Comment on attachment 227538
Patch

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

&gt; Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h:46
&gt; +    ~NavigatorContentUtils();

The destructor *is* virtual as RefCountedSupplement has a virtual destructor. I don&apos;t think it is a good idea to remove virtual here as it makes it less obvious the destructor really is virtual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993478</commentid>
    <comment_count>3</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-22 06:23:03 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 227538 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=227538&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h:46
&gt; &gt; +    ~NavigatorContentUtils();
&gt; 
&gt; The destructor *is* virtual as RefCountedSupplement has a virtual destructor. I don&apos;t think it is a good idea to remove virtual here as it makes it less obvious the destructor really is virtual.

I see. Do you think *final* keyword is not good as well ? I think NavigatorContentUtils won&apos;t become a parent class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993482</commentid>
    <comment_count>4</comment_count>
      <attachid>227538</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2014-03-22 06:44:35 -0700</bug_when>
    <thetext>Comment on attachment 227538
Patch

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

&gt;&gt;&gt; Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h:46
&gt;&gt;&gt; +    ~NavigatorContentUtils();
&gt;&gt; 
&gt;&gt; The destructor *is* virtual as RefCountedSupplement has a virtual destructor. I don&apos;t think it is a good idea to remove virtual here as it makes it less obvious the destructor really is virtual.
&gt; 
&gt; I see. Do you think *final* keyword is not good as well ? I think NavigatorContentUtils won&apos;t become a parent class.

No, the final seems fine to me but I am not aware of the WebKit policy when it comes to final keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993489</commentid>
    <comment_count>5</comment_count>
      <attachid>227538</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-03-22 07:52:24 -0700</bug_when>
    <thetext>Comment on attachment 227538
Patch

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

&gt;&gt;&gt;&gt; Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h:46
&gt;&gt;&gt;&gt; +    ~NavigatorContentUtils();
&gt;&gt;&gt; 
&gt;&gt;&gt; The destructor *is* virtual as RefCountedSupplement has a virtual destructor. I don&apos;t think it is a good idea to remove virtual here as it makes it less obvious the destructor really is virtual.
&gt;&gt; 
&gt;&gt; I see. Do you think *final* keyword is not good as well ? I think NavigatorContentUtils won&apos;t become a parent class.
&gt; 
&gt; No, the final seems fine to me but I am not aware of the WebKit policy when it comes to final keyword.

Yes, it’s fine to add final here and it’s wrong to remove virtual. In fact, I would approve patches adding virtual to destructors in cases like this.

I don’t think there’s any benefit to adding final here, but it’s correct and not harmful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993501</commentid>
    <comment_count>6</comment_count>
      <attachid>227551</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-22 08:38:40 -0700</bug_when>
    <thetext>Created attachment 227551
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993502</commentid>
    <comment_count>7</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-22 08:41:25 -0700</bug_when>
    <thetext>I missed to virtual dtor in RefCountedSupplement. Sorry about it. Though it it not big benefit to add *final*, I also think it is correct. So, I update the patch again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993602</commentid>
    <comment_count>8</comment_count>
      <attachid>227551</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-03-22 18:02:17 -0700</bug_when>
    <thetext>Comment on attachment 227551
Patch

Clearing flags on attachment: 227551

Committed r166130: &lt;http://trac.webkit.org/changeset/166130&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>993603</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-03-22 18:02:23 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>227538</attachid>
            <date>2014-03-22 00:45:47 -0700</date>
            <delta_ts>2014-03-22 08:38:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-130636-20140322164524.patch</filename>
            <type>text/plain</type>
            <size>1827</size>
            <attacher name="Gyuyoung Kim">gyuyoung.kim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY1OTQ2CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYjM1ZTIzYmY1YzczYWUy
MTZiMjgyZGQ1NDRlNzc5N2IwZDYyMTU0MC4uZTg3MWMwMTJhNGM0YjgwN2YwNDQyMzdkOWQ0MWFi
MjE3M2FkY2E4NSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDE0LTAzLTIyICBHeXV5
b3VuZyBLaW0gIDxneXV5b3VuZy5raW1Ac2Ftc3VuZy5jb20+CisKKyAgICAgICAgUmVtb3ZlICp2
aXJ0dWFsKiBrZXl3b3JkIGluIGRlc3RydWN0b3Igb2YgTmF2aWdhdG9yQ29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xYmY4NzdkZDI1Yjkz
NTc5YmI5Li4xMDdkYTM2ZGEyNDE4YzM1MGI0ODBlZDk1ZTM3NjUxYTFmNTEyZTM5IDEwMDY0NAot
LS0gYS9Tb3VyY2UvV2ViQ29yZS9Nb2R1bGVzL25hdmlnYXRvcmNvbnRlbnR1dGlscy9OYXZpZ2F0
b3JDb250ZW50VXRpbHMuaAorKysgYi9Tb3VyY2UvV2ViQ29yZS9Nb2R1bGVzL25hdmlnYXRvcmNv
bnRlbnR1dGlscy9OYXZpZ2F0b3JDb250ZW50VXRpbHMuaApAQCAtNDEsOSArNDEsOSBAQCBjbGFz
cyBOYXZpZ2F0b3I7CiAKIHR5cGVkZWYgaW50IEV4Y2VwdGlvbkNvZGU7CiAKLWNsYXNzIE5hdmln
YXRvckNvbnRlbnRVdGlscyA6IHB1YmxpYyBSZWZDb3VudGVkU3VwcGxlbWVudDxQYWdlLCBOYXZp
Z2F0b3JDb250ZW50VXRpbHM+IHsKK2NsYXNzIE5hdmlnYXRvckNvbnRlbnRVdGlscyBmaW5hbCA6
IHB1YmxpYyBSZWZDb3VudGVkU3VwcGxlbWVudDxQYWdlLCBOYXZpZ2F0b3JDb250ZW50VXRpbHM+
IHsKIHB1YmxpYzoKLSAgICB2aXJ0dWFsIH5OYXZpZ2F0b3JDb250ZW50VXRpbHMoKTsKKyAgICB+
TmF2aWdhdG9yQ29udGVudFV0aWxzKCk7CiAKICAgICBzdGF0aWMgY29uc3QgY2hhciogc3VwcGxl
bWVudE5hbWUoKTsKICAgICBzdGF0aWMgTmF2aWdhdG9yQ29udGVudFV0aWxzKiBmcm9tKFBhZ2Uq
KTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>227551</attachid>
            <date>2014-03-22 08:38:40 -0700</date>
            <delta_ts>2014-03-22 18:02:16 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-130636-20140323003817.patch</filename>
            <type>text/plain</type>
            <size>1539</size>
            <attacher name="Gyuyoung Kim">gyuyoung.kim</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY2MTE0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNmYxNDU0OGViNjI3NjRl
NDdjMmI5M2MyZjk1YWVkZTUyZWYwZDdhNC4uYTcyM2JkMjhlNmU2YzI0NTQyNGZkNTY5MzNjNWYw
NzE0MGNmMmMxNSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDE0LTAzLTIyICBHeXV5
b3VuZyBLaW0gIDxneXV5b3VuZy5raW1Ac2Ftc3VuZy5jb20+CisKKyAgICAgICAgQWRkICpmaW5h
bCoga2V5d29yZCB0byBOYXZpZ2F0b3JDb250ZW50VXRpbHMgY2xhc3MKKyAgICAgICAgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTEzMDYzNgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIE5hdmlnYXRvckNvbnRlbnRVdGlscyB3
b24ndCBiZSB1c2VkIGFzIGEgYmFzZSBjbGFzcy4gU28sIGFkZGVkIGZpbmFsIGtleXdvcmQuCisK
KyAgICAgICAgTm8gbmV3IHRlc3RzLCBubyBiZWhhdmlvciBjaGFuZ2VzLgorCisgICAgICAgICog
TW9kdWxlcy9uYXZpZ2F0b3Jjb250ZW50dXRpbHMvTmF2aWdhdG9yQ29udGVudFV0aWxzLmg6CisK
IDIwMTQtMDMtMjIgIE1hcnRpbiBIb2RvdmFuICA8bWhvZG92YW5AaW5mLnUtc3plZ2VkLmh1Pgog
CiAgICAgICAgIEFTU0VSVElPTiBGQUlMRU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