<?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>217884</bug_id>
          
          <creation_ts>2020-10-17 16:13:47 -0700</creation_ts>
          <short_desc>REGRESSION (r25430): Fix -Wstring-concatenation warning from open source clang</short_desc>
          <delta_ts>2020-10-20 09:08:43 -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>WebKit Misc.</component>
          <version>Other</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>217960</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="David Kilzer (:ddkilzer)">ddkilzer</assigned_to>
          <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1699019</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-17 16:13:47 -0700</bug_when>
    <thetext>Fix -Wstring-concatenation warning from open source clang:

Source/WebKitLegacy/mac/WebView/WebPreferences.mm:135:13: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation]
            &quot;com.app4mac.wKiosk&quot;,
            ^
Source/WebKitLegacy/mac/WebView/WebPreferences.mm:134:13: note: place parentheses around the string literal to silence warning
            &quot;com.app4mac.KidsBrowser&quot;
            ^

This regressed way back in r25430.  &lt;https://trac.webkit.org/r25430&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699020</commentid>
    <comment_count>1</comment_count>
      <attachid>411685</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-17 16:19:07 -0700</bug_when>
    <thetext>Created attachment 411685
Patch v1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699049</commentid>
    <comment_count>2</comment_count>
      <attachid>411685</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-10-17 19:35:11 -0700</bug_when>
    <thetext>Comment on attachment 411685
Patch v1

r=me as a mechanical change, but is any of this still necessary?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699056</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-17 22:13:59 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; Comment on attachment 411685 [details]
&gt; Patch v1
&gt; 
&gt; r=me as a mechanical change, but is any of this still necessary?

Thanks.  Removing this seems like a separate concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699057</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-17 22:14:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/70414026&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699058</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-17 22:19:26 -0700</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #3)
&gt; (In reply to Alexey Proskuryakov from comment #2)
&gt; &gt; Comment on attachment 411685 [details]
&gt; &gt; Patch v1
&gt; &gt; 
&gt; &gt; r=me as a mechanical change, but is any of this still necessary?
&gt; 
&gt; Thanks.  Removing this seems like a separate concern.

Oops, hit the Save button too soon.

I’m not sure what the time limit is for removing older quirks.  We should have a way to document when (or what releases) they were added for so we can make a judgment call to remove them without resorting to reviewing commit history.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699059</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-10-17 22:28:43 -0700</bug_when>
    <thetext>Committed r268652: &lt;https://trac.webkit.org/changeset/268652&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 411685.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699098</commentid>
    <comment_count>7</comment_count>
      <attachid>411685</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-10-18 09:54:19 -0700</bug_when>
    <thetext>Comment on attachment 411685
Patch v1

Before this change, both com.app4mac.KidsBrowser and com.app4mac.wKiosk were *not* getting treated as primary web browsers!

Because string pasting turned the first string in the array into this:

    &quot;com.app4mac.KidsBrowsercom.app4mac.wKiosk&quot;

So while this fix is great to have, fixing it without a regression test kind of violates our WebKit policy and we should explain why we are unable to effectively test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699162</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-18 16:25:34 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #7)
&gt; Comment on attachment 411685 [details]
&gt; Patch v1
&gt; 
&gt; Before this change, both com.app4mac.KidsBrowser and com.app4mac.wKiosk were
&gt; *not* getting treated as primary web browsers!
&gt; 
&gt; Because string pasting turned the first string in the array into this:
&gt; 
&gt;     &quot;com.app4mac.KidsBrowsercom.app4mac.wKiosk&quot;
&gt; 
&gt; So while this fix is great to have, fixing it without a regression test kind
&gt; of violates our WebKit policy and we should explain why we are unable to
&gt; effectively test.

Because WebKit compiles with -Werror, this warning (which is on by default in open source clang) will generate an error in future versions of Apple clang, causing the compile to fail.

I will look at adding a test next week if it&apos;s not sufficient for the compiler to catch the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699164</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2020-10-18 16:27:29 -0700</bug_when>
    <thetext>(In reply to David Kilzer (:ddkilzer) from comment #8)
&gt; Because WebKit compiles with -Werror, this warning (which is on by default
&gt; in open source clang) will generate an error in future versions of Apple
&gt; clang, causing the compile to fail.

My point is that the code didn’t work because it was untested. Normally we’d test that the code did what was intended.

&gt; I will look at adding a test next week if it&apos;s not sufficient for the
&gt; compiler to catch the issue.

I’m not worried about catching the exact same issue. I’m worried about this being broken and untested, and now fixed and still untested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699755</commentid>
    <comment_count>10</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2020-10-20 09:08:43 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #9)
&gt; (In reply to David Kilzer (:ddkilzer) from comment #8)
&gt; &gt; Because WebKit compiles with -Werror, this warning (which is on by default
&gt; &gt; in open source clang) will generate an error in future versions of Apple
&gt; &gt; clang, causing the compile to fail.
&gt; 
&gt; My point is that the code didn’t work because it was untested. Normally we’d
&gt; test that the code did what was intended.
&gt; 
&gt; &gt; I will look at adding a test next week if it&apos;s not sufficient for the
&gt; &gt; compiler to catch the issue.
&gt; 
&gt; I’m not worried about catching the exact same issue. I’m worried about this
&gt; being broken and untested, and now fixed and still untested.

Bug 217960: Add test for cacheModelForMainBundle() in WebKitLegacy</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>411685</attachid>
            <date>2020-10-17 16:19:07 -0700</date>
            <delta_ts>2020-10-17 22:28:43 -0700</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-217884-20201017162259.patch</filename>
            <type>text/plain</type>
            <size>1505</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
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